hw_resc 5656 drivers/net/ethernet/broadcom/bnxt/bnxt.c struct bnxt_hw_resc *hw_resc = &bp->hw_resc; hw_resc 5672 drivers/net/ethernet/broadcom/bnxt/bnxt.c hw_resc->resv_tx_rings = le16_to_cpu(resp->alloc_tx_rings); hw_resc 5676 drivers/net/ethernet/broadcom/bnxt/bnxt.c hw_resc->resv_rx_rings = le16_to_cpu(resp->alloc_rx_rings); hw_resc 5677 drivers/net/ethernet/broadcom/bnxt/bnxt.c hw_resc->resv_hw_ring_grps = hw_resc 5679 drivers/net/ethernet/broadcom/bnxt/bnxt.c hw_resc->resv_vnics = le16_to_cpu(resp->alloc_vnics); hw_resc 5682 drivers/net/ethernet/broadcom/bnxt/bnxt.c hw_resc->resv_irqs = cp; hw_resc 5684 drivers/net/ethernet/broadcom/bnxt/bnxt.c int rx = hw_resc->resv_rx_rings; hw_resc 5685 drivers/net/ethernet/broadcom/bnxt/bnxt.c int tx = hw_resc->resv_tx_rings; hw_resc 5693 drivers/net/ethernet/broadcom/bnxt/bnxt.c hw_resc->resv_rx_rings = rx; hw_resc 5694 drivers/net/ethernet/broadcom/bnxt/bnxt.c hw_resc->resv_tx_rings = tx; hw_resc 5696 drivers/net/ethernet/broadcom/bnxt/bnxt.c hw_resc->resv_irqs = le16_to_cpu(resp->alloc_msix); hw_resc 5697 drivers/net/ethernet/broadcom/bnxt/bnxt.c hw_resc->resv_hw_ring_grps = rx; hw_resc 5699 drivers/net/ethernet/broadcom/bnxt/bnxt.c hw_resc->resv_cp_rings = cp; hw_resc 5700 drivers/net/ethernet/broadcom/bnxt/bnxt.c hw_resc->resv_stat_ctxs = stats; hw_resc 5836 drivers/net/ethernet/broadcom/bnxt/bnxt.c bp->hw_resc.resv_tx_rings = tx_rings; hw_resc 5850 drivers/net/ethernet/broadcom/bnxt/bnxt.c bp->hw_resc.resv_tx_rings = tx_rings; hw_resc 5917 drivers/net/ethernet/broadcom/bnxt/bnxt.c struct bnxt_hw_resc *hw_resc = &bp->hw_resc; hw_resc 5926 drivers/net/ethernet/broadcom/bnxt/bnxt.c if (hw_resc->resv_tx_rings != bp->tx_nr_rings) hw_resc 5935 drivers/net/ethernet/broadcom/bnxt/bnxt.c (hw_resc->resv_rx_rings != rx || hw_resc->resv_cp_rings != cp || hw_resc 5936 drivers/net/ethernet/broadcom/bnxt/bnxt.c hw_resc->resv_vnics != vnic || hw_resc->resv_stat_ctxs != stat || hw_resc 5937 drivers/net/ethernet/broadcom/bnxt/bnxt.c (hw_resc->resv_hw_ring_grps != grp && hw_resc 5941 drivers/net/ethernet/broadcom/bnxt/bnxt.c hw_resc->resv_irqs != nq) hw_resc 5948 drivers/net/ethernet/broadcom/bnxt/bnxt.c struct bnxt_hw_resc *hw_resc = &bp->hw_resc; hw_resc 5972 drivers/net/ethernet/broadcom/bnxt/bnxt.c tx = hw_resc->resv_tx_rings; hw_resc 5974 drivers/net/ethernet/broadcom/bnxt/bnxt.c rx = hw_resc->resv_rx_rings; hw_resc 5975 drivers/net/ethernet/broadcom/bnxt/bnxt.c cp = hw_resc->resv_irqs; hw_resc 5976 drivers/net/ethernet/broadcom/bnxt/bnxt.c grp = hw_resc->resv_hw_ring_grps; hw_resc 5977 drivers/net/ethernet/broadcom/bnxt/bnxt.c vnic = hw_resc->resv_vnics; hw_resc 5978 drivers/net/ethernet/broadcom/bnxt/bnxt.c stat = hw_resc->resv_stat_ctxs; hw_resc 6879 drivers/net/ethernet/broadcom/bnxt/bnxt.c struct bnxt_hw_resc *hw_resc = &bp->hw_resc; hw_resc 6891 drivers/net/ethernet/broadcom/bnxt/bnxt.c hw_resc->max_tx_sch_inputs = le16_to_cpu(resp->max_tx_scheduler_inputs); hw_resc 6895 drivers/net/ethernet/broadcom/bnxt/bnxt.c hw_resc->min_rsscos_ctxs = le16_to_cpu(resp->min_rsscos_ctx); hw_resc 6896 drivers/net/ethernet/broadcom/bnxt/bnxt.c hw_resc->max_rsscos_ctxs = le16_to_cpu(resp->max_rsscos_ctx); hw_resc 6897 drivers/net/ethernet/broadcom/bnxt/bnxt.c hw_resc->min_cp_rings = le16_to_cpu(resp->min_cmpl_rings); hw_resc 6898 drivers/net/ethernet/broadcom/bnxt/bnxt.c hw_resc->max_cp_rings = le16_to_cpu(resp->max_cmpl_rings); hw_resc 6899 drivers/net/ethernet/broadcom/bnxt/bnxt.c hw_resc->min_tx_rings = le16_to_cpu(resp->min_tx_rings); hw_resc 6900 drivers/net/ethernet/broadcom/bnxt/bnxt.c hw_resc->max_tx_rings = le16_to_cpu(resp->max_tx_rings); hw_resc 6901 drivers/net/ethernet/broadcom/bnxt/bnxt.c hw_resc->min_rx_rings = le16_to_cpu(resp->min_rx_rings); hw_resc 6902 drivers/net/ethernet/broadcom/bnxt/bnxt.c hw_resc->max_rx_rings = le16_to_cpu(resp->max_rx_rings); hw_resc 6903 drivers/net/ethernet/broadcom/bnxt/bnxt.c hw_resc->min_hw_ring_grps = le16_to_cpu(resp->min_hw_ring_grps); hw_resc 6904 drivers/net/ethernet/broadcom/bnxt/bnxt.c hw_resc->max_hw_ring_grps = le16_to_cpu(resp->max_hw_ring_grps); hw_resc 6905 drivers/net/ethernet/broadcom/bnxt/bnxt.c hw_resc->min_l2_ctxs = le16_to_cpu(resp->min_l2_ctxs); hw_resc 6906 drivers/net/ethernet/broadcom/bnxt/bnxt.c hw_resc->max_l2_ctxs = le16_to_cpu(resp->max_l2_ctxs); hw_resc 6907 drivers/net/ethernet/broadcom/bnxt/bnxt.c hw_resc->min_vnics = le16_to_cpu(resp->min_vnics); hw_resc 6908 drivers/net/ethernet/broadcom/bnxt/bnxt.c hw_resc->max_vnics = le16_to_cpu(resp->max_vnics); hw_resc 6909 drivers/net/ethernet/broadcom/bnxt/bnxt.c hw_resc->min_stat_ctxs = le16_to_cpu(resp->min_stat_ctx); hw_resc 6910 drivers/net/ethernet/broadcom/bnxt/bnxt.c hw_resc->max_stat_ctxs = le16_to_cpu(resp->max_stat_ctx); hw_resc 6915 drivers/net/ethernet/broadcom/bnxt/bnxt.c hw_resc->max_nqs = max_msix; hw_resc 6916 drivers/net/ethernet/broadcom/bnxt/bnxt.c hw_resc->max_hw_ring_grps = hw_resc->max_rx_rings; hw_resc 6937 drivers/net/ethernet/broadcom/bnxt/bnxt.c struct bnxt_hw_resc *hw_resc = &bp->hw_resc; hw_resc 6966 drivers/net/ethernet/broadcom/bnxt/bnxt.c hw_resc->max_rsscos_ctxs = le16_to_cpu(resp->max_rsscos_ctx); hw_resc 6967 drivers/net/ethernet/broadcom/bnxt/bnxt.c hw_resc->max_cp_rings = le16_to_cpu(resp->max_cmpl_rings); hw_resc 6968 drivers/net/ethernet/broadcom/bnxt/bnxt.c hw_resc->max_tx_rings = le16_to_cpu(resp->max_tx_rings); hw_resc 6969 drivers/net/ethernet/broadcom/bnxt/bnxt.c hw_resc->max_rx_rings = le16_to_cpu(resp->max_rx_rings); hw_resc 6970 drivers/net/ethernet/broadcom/bnxt/bnxt.c hw_resc->max_hw_ring_grps = le32_to_cpu(resp->max_hw_ring_grps); hw_resc 6971 drivers/net/ethernet/broadcom/bnxt/bnxt.c if (!hw_resc->max_hw_ring_grps) hw_resc 6972 drivers/net/ethernet/broadcom/bnxt/bnxt.c hw_resc->max_hw_ring_grps = hw_resc->max_tx_rings; hw_resc 6973 drivers/net/ethernet/broadcom/bnxt/bnxt.c hw_resc->max_l2_ctxs = le16_to_cpu(resp->max_l2_ctxs); hw_resc 6974 drivers/net/ethernet/broadcom/bnxt/bnxt.c hw_resc->max_vnics = le16_to_cpu(resp->max_vnics); hw_resc 6975 drivers/net/ethernet/broadcom/bnxt/bnxt.c hw_resc->max_stat_ctxs = le16_to_cpu(resp->max_stat_ctx); hw_resc 7940 drivers/net/ethernet/broadcom/bnxt/bnxt.c return bp->hw_resc.max_rsscos_ctxs; hw_resc 7945 drivers/net/ethernet/broadcom/bnxt/bnxt.c return bp->hw_resc.max_vnics; hw_resc 7951 drivers/net/ethernet/broadcom/bnxt/bnxt.c return bp->hw_resc.max_stat_ctxs; hw_resc 7956 drivers/net/ethernet/broadcom/bnxt/bnxt.c return bp->hw_resc.max_cp_rings; hw_resc 7961 drivers/net/ethernet/broadcom/bnxt/bnxt.c unsigned int cp = bp->hw_resc.max_cp_rings; hw_resc 7971 drivers/net/ethernet/broadcom/bnxt/bnxt.c struct bnxt_hw_resc *hw_resc = &bp->hw_resc; hw_resc 7974 drivers/net/ethernet/broadcom/bnxt/bnxt.c return min_t(unsigned int, hw_resc->max_irqs, hw_resc->max_nqs); hw_resc 7976 drivers/net/ethernet/broadcom/bnxt/bnxt.c return min_t(unsigned int, hw_resc->max_irqs, hw_resc->max_cp_rings); hw_resc 7981 drivers/net/ethernet/broadcom/bnxt/bnxt.c bp->hw_resc.max_irqs = max_irqs; hw_resc 8791 drivers/net/ethernet/broadcom/bnxt/bnxt.c struct bnxt_hw_resc *hw_resc = &bp->hw_resc; hw_resc 8794 drivers/net/ethernet/broadcom/bnxt/bnxt.c hw_resc->resv_cp_rings = 0; hw_resc 8795 drivers/net/ethernet/broadcom/bnxt/bnxt.c hw_resc->resv_stat_ctxs = 0; hw_resc 8796 drivers/net/ethernet/broadcom/bnxt/bnxt.c hw_resc->resv_irqs = 0; hw_resc 8797 drivers/net/ethernet/broadcom/bnxt/bnxt.c hw_resc->resv_tx_rings = 0; hw_resc 8798 drivers/net/ethernet/broadcom/bnxt/bnxt.c hw_resc->resv_rx_rings = 0; hw_resc 8799 drivers/net/ethernet/broadcom/bnxt/bnxt.c hw_resc->resv_hw_ring_grps = 0; hw_resc 8800 drivers/net/ethernet/broadcom/bnxt/bnxt.c hw_resc->resv_vnics = 0; hw_resc 9680 drivers/net/ethernet/broadcom/bnxt/bnxt.c struct bnxt_hw_resc *hw_resc = &bp->hw_resc; hw_resc 9685 drivers/net/ethernet/broadcom/bnxt/bnxt.c if (hw_resc->min_tx_rings || hw_resc->resv_tx_rings) hw_resc 9739 drivers/net/ethernet/broadcom/bnxt/bnxt.c if (vnics == bp->hw_resc.resv_vnics) hw_resc 9743 drivers/net/ethernet/broadcom/bnxt/bnxt.c if (vnics <= bp->hw_resc.resv_vnics) hw_resc 11466 drivers/net/ethernet/broadcom/bnxt/bnxt.c struct bnxt_hw_resc *hw_resc = &bp->hw_resc; hw_resc 11469 drivers/net/ethernet/broadcom/bnxt/bnxt.c *max_tx = hw_resc->max_tx_rings; hw_resc 11470 drivers/net/ethernet/broadcom/bnxt/bnxt.c *max_rx = hw_resc->max_rx_rings; hw_resc 11474 drivers/net/ethernet/broadcom/bnxt/bnxt.c hw_resc->max_stat_ctxs - bnxt_get_ulp_stat_ctxs(bp)); hw_resc 11477 drivers/net/ethernet/broadcom/bnxt/bnxt.c max_ring_grps = hw_resc->max_hw_ring_grps; hw_resc 1761 drivers/net/ethernet/broadcom/bnxt/bnxt.h struct bnxt_hw_resc hw_resc; hw_resc 767 drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c struct bnxt_hw_resc *hw_resc = &bp->hw_resc; hw_resc 774 drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c max_tx_sch_inputs = hw_resc->max_tx_sch_inputs; hw_resc 506 drivers/net/ethernet/broadcom/bnxt/bnxt_sriov.c struct bnxt_hw_resc *hw_resc = &bp->hw_resc; hw_resc 516 drivers/net/ethernet/broadcom/bnxt/bnxt_sriov.c vf_msix = hw_resc->max_nqs - bnxt_nq_rings_in_use(bp); hw_resc 519 drivers/net/ethernet/broadcom/bnxt/bnxt_sriov.c vf_ring_grps = hw_resc->max_hw_ring_grps - bp->rx_nr_rings; hw_resc 524 drivers/net/ethernet/broadcom/bnxt/bnxt_sriov.c vf_rx_rings = hw_resc->max_rx_rings - bp->rx_nr_rings * 2; hw_resc 526 drivers/net/ethernet/broadcom/bnxt/bnxt_sriov.c vf_rx_rings = hw_resc->max_rx_rings - bp->rx_nr_rings; hw_resc 527 drivers/net/ethernet/broadcom/bnxt/bnxt_sriov.c vf_tx_rings = hw_resc->max_tx_rings - bp->tx_nr_rings; hw_resc 528 drivers/net/ethernet/broadcom/bnxt/bnxt_sriov.c vf_vnics = hw_resc->max_vnics - bp->nr_vnics; hw_resc 590 drivers/net/ethernet/broadcom/bnxt/bnxt_sriov.c hw_resc->max_tx_rings -= le16_to_cpu(req.min_tx_rings) * n; hw_resc 591 drivers/net/ethernet/broadcom/bnxt/bnxt_sriov.c hw_resc->max_rx_rings -= le16_to_cpu(req.min_rx_rings) * n; hw_resc 592 drivers/net/ethernet/broadcom/bnxt/bnxt_sriov.c hw_resc->max_hw_ring_grps -= le16_to_cpu(req.min_hw_ring_grps) * hw_resc 594 drivers/net/ethernet/broadcom/bnxt/bnxt_sriov.c hw_resc->max_cp_rings -= le16_to_cpu(req.min_cmpl_rings) * n; hw_resc 595 drivers/net/ethernet/broadcom/bnxt/bnxt_sriov.c hw_resc->max_rsscos_ctxs -= pf->active_vfs; hw_resc 596 drivers/net/ethernet/broadcom/bnxt/bnxt_sriov.c hw_resc->max_stat_ctxs -= le16_to_cpu(req.min_stat_ctx) * n; hw_resc 597 drivers/net/ethernet/broadcom/bnxt/bnxt_sriov.c hw_resc->max_vnics -= le16_to_cpu(req.min_vnics) * n; hw_resc 599 drivers/net/ethernet/broadcom/bnxt/bnxt_sriov.c hw_resc->max_irqs -= vf_msix * n; hw_resc 613 drivers/net/ethernet/broadcom/bnxt/bnxt_sriov.c struct bnxt_hw_resc *hw_resc = &bp->hw_resc; hw_resc 625 drivers/net/ethernet/broadcom/bnxt/bnxt_sriov.c vf_rx_rings = (hw_resc->max_rx_rings - bp->rx_nr_rings * 2) / hw_resc 628 drivers/net/ethernet/broadcom/bnxt/bnxt_sriov.c vf_rx_rings = (hw_resc->max_rx_rings - bp->rx_nr_rings) / hw_resc 630 drivers/net/ethernet/broadcom/bnxt/bnxt_sriov.c vf_ring_grps = (hw_resc->max_hw_ring_grps - bp->rx_nr_rings) / num_vfs; hw_resc 631 drivers/net/ethernet/broadcom/bnxt/bnxt_sriov.c vf_tx_rings = (hw_resc->max_tx_rings - bp->tx_nr_rings) / num_vfs; hw_resc 632 drivers/net/ethernet/broadcom/bnxt/bnxt_sriov.c vf_vnics = (hw_resc->max_vnics - bp->nr_vnics) / num_vfs; hw_resc 680 drivers/net/ethernet/broadcom/bnxt/bnxt_sriov.c hw_resc->max_tx_rings -= total_vf_tx_rings; hw_resc 681 drivers/net/ethernet/broadcom/bnxt/bnxt_sriov.c hw_resc->max_rx_rings -= vf_rx_rings * num_vfs; hw_resc 682 drivers/net/ethernet/broadcom/bnxt/bnxt_sriov.c hw_resc->max_hw_ring_grps -= vf_ring_grps * num_vfs; hw_resc 683 drivers/net/ethernet/broadcom/bnxt/bnxt_sriov.c hw_resc->max_cp_rings -= vf_cp_rings * num_vfs; hw_resc 684 drivers/net/ethernet/broadcom/bnxt/bnxt_sriov.c hw_resc->max_rsscos_ctxs -= num_vfs; hw_resc 685 drivers/net/ethernet/broadcom/bnxt/bnxt_sriov.c hw_resc->max_stat_ctxs -= vf_stat_ctx * num_vfs; hw_resc 686 drivers/net/ethernet/broadcom/bnxt/bnxt_sriov.c hw_resc->max_vnics -= vf_vnics * num_vfs; hw_resc 730 drivers/net/ethernet/broadcom/bnxt/bnxt_sriov.c struct bnxt_hw_resc *hw_resc = &bp->hw_resc; hw_resc 750 drivers/net/ethernet/broadcom/bnxt/bnxt_sriov.c if (hw_resc->max_rx_rings - bp->rx_nr_rings * 2 >= hw_resc 754 drivers/net/ethernet/broadcom/bnxt/bnxt_sriov.c if (hw_resc->max_rx_rings - bp->rx_nr_rings >= hw_resc 758 drivers/net/ethernet/broadcom/bnxt/bnxt_sriov.c if (hw_resc->max_vnics - bp->nr_vnics < min_rx_rings || hw_resc 762 drivers/net/ethernet/broadcom/bnxt/bnxt_sriov.c if (hw_resc->max_tx_rings - bp->tx_nr_rings >= min_tx_rings && hw_resc 766 drivers/net/ethernet/broadcom/bnxt/bnxt_sriov.c if (hw_resc->max_rsscos_ctxs - bp->rsscos_nr_ctxs >= hw_resc 116 drivers/net/ethernet/broadcom/bnxt/bnxt_ulp.c struct bnxt_hw_resc *hw_resc; hw_resc 147 drivers/net/ethernet/broadcom/bnxt/bnxt_ulp.c hw_resc = &bp->hw_resc; hw_resc 150 drivers/net/ethernet/broadcom/bnxt/bnxt_ulp.c (BNXT_NEW_RM(bp) && hw_resc->resv_irqs < total_vecs)) { hw_resc 166 drivers/net/ethernet/broadcom/bnxt/bnxt_ulp.c resv_msix = hw_resc->resv_irqs - bp->cp_nr_rings;