Searched refs:hw_resc (Results 1 – 8 of 8) sorted by relevance
27 struct bnge_hw_resc *hw_resc = &bd->hw_resc; in bnge_get_max_func_irqs() local29 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() local228 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 …]
388 struct bnge_hw_resc *hw_resc = &bd->hw_resc; in bnge_hwrm_get_rings() local407 hw_resc->resv_tx_rings = le16_to_cpu(resp->alloc_tx_rings); in bnge_hwrm_get_rings()408 hw_resc->resv_rx_rings = le16_to_cpu(resp->alloc_rx_rings); in bnge_hwrm_get_rings()409 hw_resc->resv_hw_ring_grps = in bnge_hwrm_get_rings()411 hw_resc->resv_vnics = le16_to_cpu(resp->alloc_vnics); in bnge_hwrm_get_rings()412 hw_resc->resv_rsscos_ctxs = le16_to_cpu(resp->alloc_rsscos_ctx); in bnge_hwrm_get_rings()415 hw_resc->resv_irqs = cp; in bnge_hwrm_get_rings()416 rx = hw_resc->resv_rx_rings; in bnge_hwrm_get_rings()417 tx = hw_resc->resv_tx_rings; in bnge_hwrm_get_rings()426 hw_resc->resv_rx_rings = rx; in bnge_hwrm_get_rings()[all …]
152 struct bnge_hw_resc hw_resc; member
223 bd->hw_resc.max_irqs = max_irqs; in bnge_set_max_func_irqs()
619 struct bnxt_hw_resc *hw_resc = &bp->hw_resc; in bnxt_hwrm_func_vf_resc_cfg() local632 vf_msix = hw_resc->max_nqs - bnxt_nq_rings_in_use(bp); in bnxt_hwrm_func_vf_resc_cfg()635 vf_ring_grps = hw_resc->max_hw_ring_grps - bp->rx_nr_rings; in bnxt_hwrm_func_vf_resc_cfg()640 vf_rx_rings = hw_resc->max_rx_rings - bp->rx_nr_rings * 2; in bnxt_hwrm_func_vf_resc_cfg()642 vf_rx_rings = hw_resc->max_rx_rings - bp->rx_nr_rings; in bnxt_hwrm_func_vf_resc_cfg()643 vf_tx_rings = hw_resc->max_tx_rings - bp->tx_nr_rings; in bnxt_hwrm_func_vf_resc_cfg()644 vf_vnics = hw_resc->max_vnics - bp->nr_vnics; in bnxt_hwrm_func_vf_resc_cfg()645 vf_rss = hw_resc->max_rsscos_ctxs - bp->rsscos_nr_ctxs; in bnxt_hwrm_func_vf_resc_cfg()722 hw_resc->max_tx_rings -= le16_to_cpu(req->min_tx_rings) * n; in bnxt_hwrm_func_vf_resc_cfg()723 hw_resc->max_rx_rings -= le16_to_cpu(req->min_rx_rings) * n; in bnxt_hwrm_func_vf_resc_cfg()[all …]
7662 struct bnxt_hw_resc *hw_resc = &bp->hw_resc; in bnxt_hwrm_get_rings() local7682 hw_resc->resv_tx_rings = le16_to_cpu(resp->alloc_tx_rings); in bnxt_hwrm_get_rings()7686 hw_resc->resv_rx_rings = le16_to_cpu(resp->alloc_rx_rings); in bnxt_hwrm_get_rings()7687 hw_resc->resv_hw_ring_grps = in bnxt_hwrm_get_rings()7689 hw_resc->resv_vnics = le16_to_cpu(resp->alloc_vnics); in bnxt_hwrm_get_rings()7690 hw_resc->resv_rsscos_ctxs = le16_to_cpu(resp->alloc_rsscos_ctx); in bnxt_hwrm_get_rings()7693 hw_resc->resv_irqs = cp; in bnxt_hwrm_get_rings()7695 int rx = hw_resc->resv_rx_rings; in bnxt_hwrm_get_rings()7696 int tx = hw_resc->resv_tx_rings; in bnxt_hwrm_get_rings()7706 hw_resc->resv_rx_rings = rx; in bnxt_hwrm_get_rings()[all …]
895 struct bnxt_hw_resc *hw_resc = &bp->hw_resc; in bnxt_get_channels() local902 max_tx_sch_inputs = hw_resc->max_tx_sch_inputs; in bnxt_get_channels()
2655 struct bnxt_hw_resc hw_resc; member