Home
last modified time | relevance | path

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

/Linux-v5.10/drivers/net/ethernet/broadcom/bnxt/
Dbnxt_sriov.c505 struct bnxt_hw_resc *hw_resc = &bp->hw_resc; in bnxt_hwrm_func_vf_resc_cfg() local
516 vf_msix = hw_resc->max_nqs - bnxt_nq_rings_in_use(bp); in bnxt_hwrm_func_vf_resc_cfg()
519 vf_ring_grps = hw_resc->max_hw_ring_grps - bp->rx_nr_rings; in bnxt_hwrm_func_vf_resc_cfg()
524 vf_rx_rings = hw_resc->max_rx_rings - bp->rx_nr_rings * 2; in bnxt_hwrm_func_vf_resc_cfg()
526 vf_rx_rings = hw_resc->max_rx_rings - bp->rx_nr_rings; in bnxt_hwrm_func_vf_resc_cfg()
527 vf_tx_rings = hw_resc->max_tx_rings - bp->tx_nr_rings; in bnxt_hwrm_func_vf_resc_cfg()
528 vf_vnics = hw_resc->max_vnics - bp->nr_vnics; in bnxt_hwrm_func_vf_resc_cfg()
530 vf_rss = hw_resc->max_rsscos_ctxs - bp->rsscos_nr_ctxs; in bnxt_hwrm_func_vf_resc_cfg()
593 hw_resc->max_tx_rings -= le16_to_cpu(req.min_tx_rings) * n; in bnxt_hwrm_func_vf_resc_cfg()
594 hw_resc->max_rx_rings -= le16_to_cpu(req.min_rx_rings) * n; in bnxt_hwrm_func_vf_resc_cfg()
[all …]
Dbnxt_ulp.c122 struct bnxt_hw_resc *hw_resc; in bnxt_req_msix_vecs() local
153 hw_resc = &bp->hw_resc; in bnxt_req_msix_vecs()
156 (BNXT_NEW_RM(bp) && hw_resc->resv_irqs < total_vecs)) { in bnxt_req_msix_vecs()
172 resv_msix = hw_resc->resv_irqs - bp->cp_nr_rings; in bnxt_req_msix_vecs()
Dbnxt.c5905 struct bnxt_hw_resc *hw_resc = &bp->hw_resc; in bnxt_hwrm_get_rings() local
5921 hw_resc->resv_tx_rings = le16_to_cpu(resp->alloc_tx_rings); in bnxt_hwrm_get_rings()
5925 hw_resc->resv_rx_rings = le16_to_cpu(resp->alloc_rx_rings); in bnxt_hwrm_get_rings()
5926 hw_resc->resv_hw_ring_grps = in bnxt_hwrm_get_rings()
5928 hw_resc->resv_vnics = le16_to_cpu(resp->alloc_vnics); in bnxt_hwrm_get_rings()
5931 hw_resc->resv_irqs = cp; in bnxt_hwrm_get_rings()
5933 int rx = hw_resc->resv_rx_rings; in bnxt_hwrm_get_rings()
5934 int tx = hw_resc->resv_tx_rings; in bnxt_hwrm_get_rings()
5942 hw_resc->resv_rx_rings = rx; in bnxt_hwrm_get_rings()
5943 hw_resc->resv_tx_rings = tx; in bnxt_hwrm_get_rings()
[all …]
Dbnxt_ethtool.c803 struct bnxt_hw_resc *hw_resc = &bp->hw_resc; in bnxt_get_channels() local
810 max_tx_sch_inputs = hw_resc->max_tx_sch_inputs; in bnxt_get_channels()
Dbnxt.h1918 struct bnxt_hw_resc hw_resc; member