Searched refs:hw_coal (Results 1 – 2 of 2) sorted by relevance
/linux-6.12.1/drivers/net/ethernet/broadcom/bnxt/ |
D | bnxt_ethtool.c | 66 struct bnxt_coal *hw_coal; in bnxt_get_coalesce() local 73 hw_coal = &bp->rx_coal; in bnxt_get_coalesce() 74 mult = hw_coal->bufs_per_record; in bnxt_get_coalesce() 75 coal->rx_coalesce_usecs = hw_coal->coal_ticks; in bnxt_get_coalesce() 76 coal->rx_max_coalesced_frames = hw_coal->coal_bufs / mult; in bnxt_get_coalesce() 77 coal->rx_coalesce_usecs_irq = hw_coal->coal_ticks_irq; in bnxt_get_coalesce() 78 coal->rx_max_coalesced_frames_irq = hw_coal->coal_bufs_irq / mult; in bnxt_get_coalesce() 79 if (hw_coal->flags & in bnxt_get_coalesce() 83 hw_coal = &bp->tx_coal; in bnxt_get_coalesce() 84 mult = hw_coal->bufs_per_record; in bnxt_get_coalesce() [all …]
|
D | bnxt.c | 7847 struct bnxt_coal *hw_coal, in bnxt_hwrm_set_coal_params() argument 7851 u16 val, tmr, max, flags = hw_coal->flags; in bnxt_hwrm_set_coal_params() 7854 max = hw_coal->bufs_per_record * 128; in bnxt_hwrm_set_coal_params() 7855 if (hw_coal->budget) in bnxt_hwrm_set_coal_params() 7856 max = hw_coal->bufs_per_record * hw_coal->budget; in bnxt_hwrm_set_coal_params() 7859 val = clamp_t(u16, hw_coal->coal_bufs, 1, max); in bnxt_hwrm_set_coal_params() 7865 val = clamp_t(u16, hw_coal->coal_bufs_irq, 1, in bnxt_hwrm_set_coal_params() 7869 tmr = bnxt_usec_to_coal_tmr(bp, hw_coal->coal_ticks); in bnxt_hwrm_set_coal_params() 7887 tmr = bnxt_usec_to_coal_tmr(bp, hw_coal->coal_ticks_irq); in bnxt_hwrm_set_coal_params() 7896 hw_coal->idle_thresh && hw_coal->coal_ticks < hw_coal->idle_thresh) in bnxt_hwrm_set_coal_params() [all …]
|