Home
last modified time | relevance | path

Searched refs:hw_coal (Results 1 - 4 of 4) sorted by relevance

/kernel/linux/linux-6.6/drivers/net/ethernet/broadcom/bnxt/
H A Dbnxt_ethtool.c65 struct bnxt_coal *hw_coal; in bnxt_get_coalesce() local
72 hw_coal = &bp->rx_coal; in bnxt_get_coalesce()
73 mult = hw_coal->bufs_per_record; in bnxt_get_coalesce()
74 coal->rx_coalesce_usecs = hw_coal->coal_ticks; in bnxt_get_coalesce()
75 coal->rx_max_coalesced_frames = hw_coal->coal_bufs / mult; in bnxt_get_coalesce()
76 coal->rx_coalesce_usecs_irq = hw_coal->coal_ticks_irq; in bnxt_get_coalesce()
77 coal->rx_max_coalesced_frames_irq = hw_coal->coal_bufs_irq / mult; in bnxt_get_coalesce()
78 if (hw_coal->flags & in bnxt_get_coalesce()
82 hw_coal = &bp->tx_coal; in bnxt_get_coalesce()
83 mult = hw_coal in bnxt_get_coalesce()
104 struct bnxt_coal *hw_coal; bnxt_set_coalesce() local
[all...]
H A Dbnxt.c6692 struct bnxt_coal *hw_coal, in bnxt_hwrm_set_coal_params()
6696 u16 val, tmr, max, flags = hw_coal->flags; in bnxt_hwrm_set_coal_params()
6699 max = hw_coal->bufs_per_record * 128; in bnxt_hwrm_set_coal_params()
6700 if (hw_coal->budget) in bnxt_hwrm_set_coal_params()
6701 max = hw_coal->bufs_per_record * hw_coal->budget; in bnxt_hwrm_set_coal_params()
6704 val = clamp_t(u16, hw_coal->coal_bufs, 1, max); in bnxt_hwrm_set_coal_params()
6710 val = clamp_t(u16, hw_coal->coal_bufs_irq, 1, in bnxt_hwrm_set_coal_params()
6714 tmr = bnxt_usec_to_coal_tmr(bp, hw_coal->coal_ticks); in bnxt_hwrm_set_coal_params()
6732 tmr = bnxt_usec_to_coal_tmr(bp, hw_coal in bnxt_hwrm_set_coal_params()
6691 bnxt_hwrm_set_coal_params(struct bnxt *bp, struct bnxt_coal *hw_coal, struct hwrm_ring_cmpl_ring_cfg_aggint_params_input *req) bnxt_hwrm_set_coal_params() argument
6747 __bnxt_hwrm_set_coal_nq(struct bnxt *bp, struct bnxt_napi *bnapi, struct bnxt_coal *hw_coal) __bnxt_hwrm_set_coal_nq() argument
6827 struct bnxt_coal *hw_coal; bnxt_hwrm_set_coal() local
[all...]
/kernel/linux/linux-5.10/drivers/net/ethernet/broadcom/bnxt/
H A Dbnxt_ethtool.c51 struct bnxt_coal *hw_coal; in bnxt_get_coalesce() local
58 hw_coal = &bp->rx_coal; in bnxt_get_coalesce()
59 mult = hw_coal->bufs_per_record; in bnxt_get_coalesce()
60 coal->rx_coalesce_usecs = hw_coal->coal_ticks; in bnxt_get_coalesce()
61 coal->rx_max_coalesced_frames = hw_coal->coal_bufs / mult; in bnxt_get_coalesce()
62 coal->rx_coalesce_usecs_irq = hw_coal->coal_ticks_irq; in bnxt_get_coalesce()
63 coal->rx_max_coalesced_frames_irq = hw_coal->coal_bufs_irq / mult; in bnxt_get_coalesce()
65 hw_coal = &bp->tx_coal; in bnxt_get_coalesce()
66 mult = hw_coal->bufs_per_record; in bnxt_get_coalesce()
67 coal->tx_coalesce_usecs = hw_coal in bnxt_get_coalesce()
82 struct bnxt_coal *hw_coal; bnxt_set_coalesce() local
[all...]
H A Dbnxt.c6524 struct bnxt_coal *hw_coal, in bnxt_hwrm_set_coal_params()
6531 max = hw_coal->bufs_per_record * 128; in bnxt_hwrm_set_coal_params()
6532 if (hw_coal->budget) in bnxt_hwrm_set_coal_params()
6533 max = hw_coal->bufs_per_record * hw_coal->budget; in bnxt_hwrm_set_coal_params()
6536 val = clamp_t(u16, hw_coal->coal_bufs, 1, max); in bnxt_hwrm_set_coal_params()
6542 val = clamp_t(u16, hw_coal->coal_bufs_irq, 1, in bnxt_hwrm_set_coal_params()
6546 tmr = bnxt_usec_to_coal_tmr(bp, hw_coal->coal_ticks); in bnxt_hwrm_set_coal_params()
6564 tmr = bnxt_usec_to_coal_tmr(bp, hw_coal->coal_ticks_irq); in bnxt_hwrm_set_coal_params()
6575 hw_coal in bnxt_hwrm_set_coal_params()
6523 bnxt_hwrm_set_coal_params(struct bnxt *bp, struct bnxt_coal *hw_coal, struct hwrm_ring_cmpl_ring_cfg_aggint_params_input *req) bnxt_hwrm_set_coal_params() argument
6582 __bnxt_hwrm_set_coal_nq(struct bnxt *bp, struct bnxt_napi *bnapi, struct bnxt_coal *hw_coal) __bnxt_hwrm_set_coal_nq() argument
6652 struct bnxt_coal *hw_coal; bnxt_hwrm_set_coal() local
[all...]

Completed in 28 milliseconds