axienet_calc_cr(9)
π axienet_calc_cr(9) β the Kernel API Manual page you didn't know you needed π
okay bestie, so this is axienet_calc_cr, straight out of the Linux Kernel API Manual. yeah. we're in the kernel now. bring a snack. π
β¨ NAME β¨
axienet_calc_cr β literally just Calculate control register value. that's the whole gig. iconic behaviour, no notes. π
πΈ SYNOPSIS πΈ
u32 axienet_calc_cr(struct axienet_local *lp, u32 count, u32 usec);
three args, one u32 coming back at you. she's compact. she's efficient. she ate. π
π¦ ARGUMENTS π¦
lpβ the device's private data. like, the main character's whole lore file. πcountβ how many completions happen before an interrupt fires. the "how many before we yell" number.usecβ microseconds after the last completion before an interrupt fires. the "wait a hot sec" number. β±οΈ
π DESCRIPTION π
so the way this works is: axienet_calc_cr calculates a control register value based on the coalescing settings. that's it, that's the function. π₯
and the important bit β do not miss this β the run/stop bit is not set. nope. not her job. she hands you the value and the run/stop bit is somebody else's problem, fr fr. π«Ά
π RETURN π
she returns the control register value with the coalescing settings all configured. ready to go, prepped, slayed. β¨
π SEE ALSO π
buckle up bestie, this list is a journey. the whole friend group showed up:
- kernel file
./drivers/net/ethernet/xilinx/xilinx_axienet_main.c axienet_dma_in32(9)axienet_dma_bd_release(9)axienet_coalesce_params(9)axienet_dma_start(9)axienet_dma_bd_init(9)axienet_set_mac_address(9)netdev_set_mac_address(9)axienet_set_multicast_list(9)axienet_setoptions(9)axienet_dma_stop(9)axienet_device_reset(9)axienet_free_tx_chain(9)axienet_check_tx_bd_space(9)axienet_dma_tx_cb(9)axienet_start_xmit_dmaengine(9)axienet_tx_poll(9)axienet_start_xmit(9)axienet_dma_rx_cb(9)axienet_rx_poll(9)axienet_tx_irq(9)axienet_rx_irq(9)axienet_eth_irq(9)axienet_rx_submit_desc(9)axienet_init_dmaengine(9)axienet_init_legacy_dma(9)axienet_open(9)axienet_stop(9)axienet_change_mtu(9)axienet_poll_controller(9)axienet_ethtools_get_drvinfo(9)axienet_ethtools_get_regs_len(9)axienet_ethtools_get_regs(9)axienet_ethtools_get_pauseparam(9)axienet_ethtools_set_pauseparam(9)axienet_update_coalesce_rx(9)axienet_dim_coalesce_count_rx(9)axienet_rx_dim_work(9)axienet_update_coalesce_tx(9)axienet_ethtools_get_coalesce(9)axienet_ethtools_set_coalesce(9)axienet_dma_err_handler(9)axienet_probe(9)
forty-something functions and not one of them skipped. iykyk. π
the whole thing lives under ./drivers/net/ethernet/xilinx β that's home base, that's the address, don't lose it. π‘
and that's the page!! π« source: ./drivers/net/ethernet/xilinx, version October 2026 β mwah, catch you in the next man page, bestie. π§π
π¦ 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