Home
last modified time | relevance | path

Searched refs:hw_coal (Results 1 – 2 of 2) sorted by relevance

/Linux-v5.4/drivers/net/ethernet/broadcom/bnxt/
Dbnxt_ethtool.c50 struct bnxt_coal *hw_coal; in bnxt_get_coalesce() local
57 hw_coal = &bp->rx_coal; in bnxt_get_coalesce()
58 mult = hw_coal->bufs_per_record; in bnxt_get_coalesce()
59 coal->rx_coalesce_usecs = hw_coal->coal_ticks; in bnxt_get_coalesce()
60 coal->rx_max_coalesced_frames = hw_coal->coal_bufs / mult; in bnxt_get_coalesce()
61 coal->rx_coalesce_usecs_irq = hw_coal->coal_ticks_irq; in bnxt_get_coalesce()
62 coal->rx_max_coalesced_frames_irq = hw_coal->coal_bufs_irq / mult; in bnxt_get_coalesce()
64 hw_coal = &bp->tx_coal; in bnxt_get_coalesce()
65 mult = hw_coal->bufs_per_record; in bnxt_get_coalesce()
66 coal->tx_coalesce_usecs = hw_coal->coal_ticks; in bnxt_get_coalesce()
[all …]
Dbnxt.c6130 struct bnxt_coal *hw_coal, in bnxt_hwrm_set_coal_params() argument
6137 max = hw_coal->bufs_per_record * 128; in bnxt_hwrm_set_coal_params()
6138 if (hw_coal->budget) in bnxt_hwrm_set_coal_params()
6139 max = hw_coal->bufs_per_record * hw_coal->budget; in bnxt_hwrm_set_coal_params()
6142 val = clamp_t(u16, hw_coal->coal_bufs, 1, max); in bnxt_hwrm_set_coal_params()
6148 val = clamp_t(u16, hw_coal->coal_bufs_irq, 1, in bnxt_hwrm_set_coal_params()
6152 tmr = bnxt_usec_to_coal_tmr(bp, hw_coal->coal_ticks); in bnxt_hwrm_set_coal_params()
6170 tmr = bnxt_usec_to_coal_tmr(bp, hw_coal->coal_ticks_irq); in bnxt_hwrm_set_coal_params()
6181 hw_coal->idle_thresh && hw_coal->coal_ticks < hw_coal->idle_thresh) in bnxt_hwrm_set_coal_params()
6189 struct bnxt_coal *hw_coal) in __bnxt_hwrm_set_coal_nq() argument
[all …]