Lines Matching refs:hw_resc

5905 	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()
5945 hw_resc->resv_irqs = le16_to_cpu(resp->alloc_msix); in bnxt_hwrm_get_rings()
5946 hw_resc->resv_hw_ring_grps = rx; in bnxt_hwrm_get_rings()
5948 hw_resc->resv_cp_rings = cp; in bnxt_hwrm_get_rings()
5949 hw_resc->resv_stat_ctxs = stats; in bnxt_hwrm_get_rings()
6085 bp->hw_resc.resv_tx_rings = tx_rings; in bnxt_hwrm_reserve_pf_rings()
6098 bp->hw_resc.resv_tx_rings = tx_rings; in bnxt_hwrm_reserve_vf_rings()
6167 struct bnxt_hw_resc *hw_resc = &bp->hw_resc; in bnxt_check_rss_tbl_no_rmgr() local
6170 if (hw_resc->resv_rx_rings != bp->rx_nr_rings) { in bnxt_check_rss_tbl_no_rmgr()
6171 hw_resc->resv_rx_rings = bp->rx_nr_rings; in bnxt_check_rss_tbl_no_rmgr()
6179 struct bnxt_hw_resc *hw_resc = &bp->hw_resc; in bnxt_need_reserve_rings() local
6185 if (hw_resc->resv_tx_rings != bp->tx_nr_rings && in bnxt_need_reserve_rings()
6203 if (hw_resc->resv_rx_rings != rx || hw_resc->resv_cp_rings != cp || in bnxt_need_reserve_rings()
6204 hw_resc->resv_vnics != vnic || hw_resc->resv_stat_ctxs != stat || in bnxt_need_reserve_rings()
6205 (hw_resc->resv_hw_ring_grps != grp && in bnxt_need_reserve_rings()
6209 hw_resc->resv_irqs != nq) in bnxt_need_reserve_rings()
6216 struct bnxt_hw_resc *hw_resc = &bp->hw_resc; in __bnxt_reserve_rings() local
6240 tx = hw_resc->resv_tx_rings; in __bnxt_reserve_rings()
6242 rx = hw_resc->resv_rx_rings; in __bnxt_reserve_rings()
6243 cp = hw_resc->resv_irqs; in __bnxt_reserve_rings()
6244 grp = hw_resc->resv_hw_ring_grps; in __bnxt_reserve_rings()
6245 vnic = hw_resc->resv_vnics; in __bnxt_reserve_rings()
6246 stat = hw_resc->resv_stat_ctxs; in __bnxt_reserve_rings()
7198 struct bnxt_hw_resc *hw_resc = &bp->hw_resc; in bnxt_hwrm_func_resc_qcaps() local
7210 hw_resc->max_tx_sch_inputs = le16_to_cpu(resp->max_tx_scheduler_inputs); in bnxt_hwrm_func_resc_qcaps()
7214 hw_resc->min_rsscos_ctxs = le16_to_cpu(resp->min_rsscos_ctx); in bnxt_hwrm_func_resc_qcaps()
7215 hw_resc->max_rsscos_ctxs = le16_to_cpu(resp->max_rsscos_ctx); in bnxt_hwrm_func_resc_qcaps()
7216 hw_resc->min_cp_rings = le16_to_cpu(resp->min_cmpl_rings); in bnxt_hwrm_func_resc_qcaps()
7217 hw_resc->max_cp_rings = le16_to_cpu(resp->max_cmpl_rings); in bnxt_hwrm_func_resc_qcaps()
7218 hw_resc->min_tx_rings = le16_to_cpu(resp->min_tx_rings); in bnxt_hwrm_func_resc_qcaps()
7219 hw_resc->max_tx_rings = le16_to_cpu(resp->max_tx_rings); in bnxt_hwrm_func_resc_qcaps()
7220 hw_resc->min_rx_rings = le16_to_cpu(resp->min_rx_rings); in bnxt_hwrm_func_resc_qcaps()
7221 hw_resc->max_rx_rings = le16_to_cpu(resp->max_rx_rings); in bnxt_hwrm_func_resc_qcaps()
7222 hw_resc->min_hw_ring_grps = le16_to_cpu(resp->min_hw_ring_grps); in bnxt_hwrm_func_resc_qcaps()
7223 hw_resc->max_hw_ring_grps = le16_to_cpu(resp->max_hw_ring_grps); in bnxt_hwrm_func_resc_qcaps()
7224 hw_resc->min_l2_ctxs = le16_to_cpu(resp->min_l2_ctxs); in bnxt_hwrm_func_resc_qcaps()
7225 hw_resc->max_l2_ctxs = le16_to_cpu(resp->max_l2_ctxs); in bnxt_hwrm_func_resc_qcaps()
7226 hw_resc->min_vnics = le16_to_cpu(resp->min_vnics); in bnxt_hwrm_func_resc_qcaps()
7227 hw_resc->max_vnics = le16_to_cpu(resp->max_vnics); in bnxt_hwrm_func_resc_qcaps()
7228 hw_resc->min_stat_ctxs = le16_to_cpu(resp->min_stat_ctx); in bnxt_hwrm_func_resc_qcaps()
7229 hw_resc->max_stat_ctxs = le16_to_cpu(resp->max_stat_ctx); in bnxt_hwrm_func_resc_qcaps()
7234 hw_resc->max_nqs = max_msix; in bnxt_hwrm_func_resc_qcaps()
7235 hw_resc->max_hw_ring_grps = hw_resc->max_rx_rings; in bnxt_hwrm_func_resc_qcaps()
7256 struct bnxt_hw_resc *hw_resc = &bp->hw_resc; in __bnxt_hwrm_func_qcaps() local
7294 hw_resc->max_rsscos_ctxs = le16_to_cpu(resp->max_rsscos_ctx); in __bnxt_hwrm_func_qcaps()
7295 hw_resc->max_cp_rings = le16_to_cpu(resp->max_cmpl_rings); in __bnxt_hwrm_func_qcaps()
7296 hw_resc->max_tx_rings = le16_to_cpu(resp->max_tx_rings); in __bnxt_hwrm_func_qcaps()
7297 hw_resc->max_rx_rings = le16_to_cpu(resp->max_rx_rings); in __bnxt_hwrm_func_qcaps()
7298 hw_resc->max_hw_ring_grps = le32_to_cpu(resp->max_hw_ring_grps); in __bnxt_hwrm_func_qcaps()
7299 if (!hw_resc->max_hw_ring_grps) in __bnxt_hwrm_func_qcaps()
7300 hw_resc->max_hw_ring_grps = hw_resc->max_tx_rings; in __bnxt_hwrm_func_qcaps()
7301 hw_resc->max_l2_ctxs = le16_to_cpu(resp->max_l2_ctxs); in __bnxt_hwrm_func_qcaps()
7302 hw_resc->max_vnics = le16_to_cpu(resp->max_vnics); in __bnxt_hwrm_func_qcaps()
7303 hw_resc->max_stat_ctxs = le16_to_cpu(resp->max_stat_ctx); in __bnxt_hwrm_func_qcaps()
8446 return bp->hw_resc.max_rsscos_ctxs; in bnxt_get_max_func_rss_ctxs()
8451 return bp->hw_resc.max_vnics; in bnxt_get_max_func_vnics()
8457 return bp->hw_resc.max_stat_ctxs; in bnxt_get_max_func_stat_ctxs()
8462 return bp->hw_resc.max_cp_rings; in bnxt_get_max_func_cp_rings()
8467 unsigned int cp = bp->hw_resc.max_cp_rings; in bnxt_get_max_func_cp_rings_for_en()
8477 struct bnxt_hw_resc *hw_resc = &bp->hw_resc; in bnxt_get_max_func_irqs() local
8480 return min_t(unsigned int, hw_resc->max_irqs, hw_resc->max_nqs); in bnxt_get_max_func_irqs()
8482 return min_t(unsigned int, hw_resc->max_irqs, hw_resc->max_cp_rings); in bnxt_get_max_func_irqs()
8487 bp->hw_resc.max_irqs = max_irqs; in bnxt_set_max_func_irqs()
9390 struct bnxt_hw_resc *hw_resc = &bp->hw_resc; in bnxt_hwrm_if_change() local
9393 hw_resc->resv_cp_rings = 0; in bnxt_hwrm_if_change()
9394 hw_resc->resv_stat_ctxs = 0; in bnxt_hwrm_if_change()
9395 hw_resc->resv_irqs = 0; in bnxt_hwrm_if_change()
9396 hw_resc->resv_tx_rings = 0; in bnxt_hwrm_if_change()
9397 hw_resc->resv_rx_rings = 0; in bnxt_hwrm_if_change()
9398 hw_resc->resv_hw_ring_grps = 0; in bnxt_hwrm_if_change()
9399 hw_resc->resv_vnics = 0; in bnxt_hwrm_if_change()
10306 struct bnxt_hw_resc *hw_resc = &bp->hw_resc; in bnxt_can_reserve_rings() local
10311 if (hw_resc->min_tx_rings || hw_resc->resv_tx_rings) in bnxt_can_reserve_rings()
10365 if (vnics == bp->hw_resc.resv_vnics) in bnxt_rfs_capable()
10369 if (vnics <= bp->hw_resc.resv_vnics) in bnxt_rfs_capable()
12187 struct bnxt_hw_resc *hw_resc = &bp->hw_resc; in _bnxt_get_max_rings() local
12190 *max_tx = hw_resc->max_tx_rings; in _bnxt_get_max_rings()
12191 *max_rx = hw_resc->max_rx_rings; in _bnxt_get_max_rings()
12195 hw_resc->max_stat_ctxs - bnxt_get_ulp_stat_ctxs(bp)); in _bnxt_get_max_rings()
12198 max_ring_grps = hw_resc->max_hw_ring_grps; in _bnxt_get_max_rings()