mc7_calc_size(9)
π mc7_calc_size(9) β like, the Kernel API Manual era π
okay bestie, buckle up, we're in the Kernel API Manual today and this one is short but iconic. no cap.
β¨ NAME β¨
mc7_calc_size β literally calculates the MC7 memory size. that's it. that's the whole job. main character energy, zero drama. π¦
πΈ SYNOPSIS πΈ
unsigned int mc7_calc_size (u32 cfg );
so you hand it a cfg and it hands you back an unsigned int. a little exchange. a little transaction. we love a clean API. π
π ARGUMENTS π
cfgβ the MC7 configuration. that's the one. the whole vibe. you give it this and it does the math for you. π«Ά
π DESCRIPTION π
okay so here's the tea: mc7_calc_size calculates the size of an MC7 memory in bytes, and it gets that number straight from the value of its configuration register. so like, the register already knows, and this function just translates the vibe check into an actual byte count for you. ngl it's giving "professional translator" and honestly? slay. π₯
π§ reminder: bytes. not bits, not kilobytes, not vibes. bytes. π
π SEE ALSO π
the squad. the whole friend group. the group chat. iykyk. π
Kernel file ./drivers/net/ethernet/chelsio/cxgb3/t3_hw.ct3_wait_op_done_val(9)t3_write_regs(9)t3_set_reg_field(9)t3_read_indirect(9)t3_mc7_bd_read(9)t3_mdio_change_bits(9)t3_phy_reset(9)t3_phy_advertise(9)t3_phy_advertise_fiber(9)t3_set_phy_speed_duplex(9)t3_seeprom_wp(9)get_vpd_params(9)sf1_read(9)sf1_write(9)flash_wait_op(9)t3_read_flash(9)t3_write_flash(9)t3_get_tp_version(9)t3_check_tpsram_version(9)t3_check_tpsram(9)t3_get_fw_version(9)t3_check_fw_version(9)t3_flash_erase_sectors(9)t3_load_fw(9)t3_cim_ctl_blk_read(9)t3_link_changed(9)t3_link_start(9)t3_set_vlan_accel(9)t3_handle_intr_status(9)t3_intr_enable(9)t3_intr_disable(9)t3_intr_clear(9)t3_port_intr_enable(9)t3_port_intr_disable(9)t3_port_intr_clear(9)t3_sge_write_context(9)clear_sge_ctxt(9)t3_sge_init_ecntxt(9)t3_sge_init_flcntxt(9)t3_sge_init_rspcntxt(9)t3_sge_init_cqcntxt(9)t3_sge_enable_ecntxt(9)t3_sge_disable_fl(9)t3_sge_disable_rspcntxt(9)t3_sge_disable_cqcntxt(9)t3_sge_cqcntxt_op(9)t3_config_rss(9)t3_tp_set_offload_mode(9)pm_num_pages(9)partition_mem(9)tp_set_timers(9)t3_tp_set_coalescing_size(9)t3_tp_set_max_rxsize(9)t3_load_mtus(9)t3_tp_get_mib_stats(9)t3_set_proto_sram(9)t3_config_sched(9)get_pci_mode(9)init_link_config(9)
like, that's the entire extended friend group and they're all (9). respect. π
kisses bestie, that's the page π«Ά this lil doc came from ./drivers/net/ethernet/chelsio... and it's stamped October 2026, so go forth and calculate those sizes, mwah πβ¨
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms