Home
last modified time | relevance | path

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

/drivers/net/ethernet/broadcom/bnxt/
Dbnxt_sriov.c527 struct bnxt_hw_resc *hw_resc = &bp->hw_resc; in bnxt_hwrm_func_vf_resc_cfg() local
540 vf_msix = hw_resc->max_nqs - bnxt_nq_rings_in_use(bp); in bnxt_hwrm_func_vf_resc_cfg()
543 vf_ring_grps = hw_resc->max_hw_ring_grps - bp->rx_nr_rings; in bnxt_hwrm_func_vf_resc_cfg()
548 vf_rx_rings = hw_resc->max_rx_rings - bp->rx_nr_rings * 2; in bnxt_hwrm_func_vf_resc_cfg()
550 vf_rx_rings = hw_resc->max_rx_rings - bp->rx_nr_rings; in bnxt_hwrm_func_vf_resc_cfg()
551 vf_tx_rings = hw_resc->max_tx_rings - bp->tx_nr_rings; in bnxt_hwrm_func_vf_resc_cfg()
552 vf_vnics = hw_resc->max_vnics - bp->nr_vnics; in bnxt_hwrm_func_vf_resc_cfg()
554 vf_rss = hw_resc->max_rsscos_ctxs - bp->rsscos_nr_ctxs; in bnxt_hwrm_func_vf_resc_cfg()
616 hw_resc->max_tx_rings -= le16_to_cpu(req->min_tx_rings) * n; in bnxt_hwrm_func_vf_resc_cfg()
617 hw_resc->max_rx_rings -= le16_to_cpu(req->min_rx_rings) * n; in bnxt_hwrm_func_vf_resc_cfg()
[all …]
Dbnxt.c6144 struct bnxt_hw_resc *hw_resc = &bp->hw_resc; in bnxt_hwrm_get_rings() local
6164 hw_resc->resv_tx_rings = le16_to_cpu(resp->alloc_tx_rings); in bnxt_hwrm_get_rings()
6168 hw_resc->resv_rx_rings = le16_to_cpu(resp->alloc_rx_rings); in bnxt_hwrm_get_rings()
6169 hw_resc->resv_hw_ring_grps = in bnxt_hwrm_get_rings()
6171 hw_resc->resv_vnics = le16_to_cpu(resp->alloc_vnics); in bnxt_hwrm_get_rings()
6174 hw_resc->resv_irqs = cp; in bnxt_hwrm_get_rings()
6176 int rx = hw_resc->resv_rx_rings; in bnxt_hwrm_get_rings()
6177 int tx = hw_resc->resv_tx_rings; in bnxt_hwrm_get_rings()
6185 hw_resc->resv_rx_rings = rx; in bnxt_hwrm_get_rings()
6186 hw_resc->resv_tx_rings = tx; in bnxt_hwrm_get_rings()
[all …]
Dbnxt_ethtool.c855 struct bnxt_hw_resc *hw_resc = &bp->hw_resc; in bnxt_get_channels() local
862 max_tx_sch_inputs = hw_resc->max_tx_sch_inputs; in bnxt_get_channels()
Dbnxt.h2118 struct bnxt_hw_resc hw_resc; member