Home
last modified time | relevance | path

Searched refs:hw_resc (Results 1 – 4 of 4) sorted by relevance

/linux/drivers/net/ethernet/broadcom/bnge/
H A Dbnge_resc.c27 struct bnge_hw_resc *hw_resc = &bd->hw_resc; in bnge_get_max_func_irqs() local
29 return min_t(u16, hw_resc->max_irqs, hw_resc->max_nqs); in bnge_get_max_func_irqs()
34 return bd->hw_resc.max_stat_ctxs; in bnge_get_max_func_stat_ctxs()
51 return bd->hw_resc.max_cp_rings; in bnge_get_max_func_cp_rings()
226 struct bnge_hw_resc *hw_resc = &bd->hw_resc; in bnge_copy_reserved_rings() local
228 hwr->tx = hw_resc->resv_tx_rings; in bnge_copy_reserved_rings()
229 hwr->rx = hw_resc->resv_rx_rings; in bnge_copy_reserved_rings()
230 hwr->nq = hw_resc->resv_irqs; in bnge_copy_reserved_rings()
231 hwr->cmpl = hw_resc->resv_cp_rings; in bnge_copy_reserved_rings()
232 hwr->grp = hw_resc->resv_hw_ring_grps; in bnge_copy_reserved_rings()
[all …]
/linux/drivers/net/ethernet/broadcom/bnxt/
H A Dbnxt.c7755 struct bnxt_hw_resc *hw_resc = &bp->hw_resc; in bnxt_hwrm_get_rings() local
7775 hw_resc->resv_tx_rings = le16_to_cpu(resp->alloc_tx_rings); in bnxt_hwrm_get_rings()
7779 hw_resc->resv_rx_rings = le16_to_cpu(resp->alloc_rx_rings); in bnxt_hwrm_get_rings()
7780 hw_resc->resv_hw_ring_grps = in bnxt_hwrm_get_rings()
7782 hw_resc->resv_vnics = le16_to_cpu(resp->alloc_vnics); in bnxt_hwrm_get_rings()
7783 hw_resc->resv_rsscos_ctxs = le16_to_cpu(resp->alloc_rsscos_ctx); in bnxt_hwrm_get_rings()
7786 hw_resc->resv_irqs = cp; in bnxt_hwrm_get_rings()
7788 int rx = hw_resc->resv_rx_rings; in bnxt_hwrm_get_rings()
7789 int tx = hw_resc->resv_tx_rings; in bnxt_hwrm_get_rings()
7799 hw_resc->resv_rx_rings = rx; in bnxt_hwrm_get_rings()
[all …]
H A Dbnxt_ethtool.c910 struct bnxt_hw_resc *hw_resc = &bp->hw_resc; in bnxt_get_channels() local
917 max_tx_sch_inputs = hw_resc->max_tx_sch_inputs; in bnxt_get_channels()
H A Dbnxt.h2664 struct bnxt_hw_resc hw_resc; member