Lines Matching refs:tx_rings
6026 int __bnxt_hwrm_get_tx_rings(struct bnxt *bp, u16 fid, int *tx_rings) in __bnxt_hwrm_get_tx_rings() argument
6043 *tx_rings = le16_to_cpu(resp->alloc_tx_rings); in __bnxt_hwrm_get_tx_rings()
6052 __bnxt_hwrm_reserve_pf_rings(struct bnxt *bp, int tx_rings, int rx_rings, in __bnxt_hwrm_reserve_pf_rings() argument
6062 enables |= tx_rings ? FUNC_CFG_REQ_ENABLES_NUM_TX_RINGS : 0; in __bnxt_hwrm_reserve_pf_rings()
6063 req->num_tx_rings = cpu_to_le16(tx_rings); in __bnxt_hwrm_reserve_pf_rings()
6069 enables |= tx_rings + ring_grps ? in __bnxt_hwrm_reserve_pf_rings()
6084 req->num_cmpl_rings = cpu_to_le16(tx_rings + ring_grps); in __bnxt_hwrm_reserve_pf_rings()
6105 __bnxt_hwrm_reserve_vf_rings(struct bnxt *bp, int tx_rings, int rx_rings, in __bnxt_hwrm_reserve_vf_rings() argument
6114 enables |= tx_rings ? FUNC_VF_CFG_REQ_ENABLES_NUM_TX_RINGS : 0; in __bnxt_hwrm_reserve_vf_rings()
6119 enables |= tx_rings + ring_grps ? in __bnxt_hwrm_reserve_vf_rings()
6131 req->num_tx_rings = cpu_to_le16(tx_rings); in __bnxt_hwrm_reserve_vf_rings()
6134 req->num_cmpl_rings = cpu_to_le16(tx_rings + ring_grps); in __bnxt_hwrm_reserve_vf_rings()
6149 bnxt_hwrm_reserve_pf_rings(struct bnxt *bp, int tx_rings, int rx_rings, in bnxt_hwrm_reserve_pf_rings() argument
6155 req = __bnxt_hwrm_reserve_pf_rings(bp, tx_rings, rx_rings, ring_grps, in bnxt_hwrm_reserve_pf_rings()
6170 bp->hw_resc.resv_tx_rings = tx_rings; in bnxt_hwrm_reserve_pf_rings()
6176 bnxt_hwrm_reserve_vf_rings(struct bnxt *bp, int tx_rings, int rx_rings, in bnxt_hwrm_reserve_vf_rings() argument
6183 bp->hw_resc.resv_tx_rings = tx_rings; in bnxt_hwrm_reserve_vf_rings()
6187 req = __bnxt_hwrm_reserve_vf_rings(bp, tx_rings, rx_rings, ring_grps, in bnxt_hwrm_reserve_vf_rings()
6389 static int bnxt_hwrm_check_vf_rings(struct bnxt *bp, int tx_rings, int rx_rings, in bnxt_hwrm_check_vf_rings() argument
6399 req = __bnxt_hwrm_reserve_vf_rings(bp, tx_rings, rx_rings, ring_grps, in bnxt_hwrm_check_vf_rings()
6414 static int bnxt_hwrm_check_pf_rings(struct bnxt *bp, int tx_rings, int rx_rings, in bnxt_hwrm_check_pf_rings() argument
6421 req = __bnxt_hwrm_reserve_pf_rings(bp, tx_rings, rx_rings, ring_grps, in bnxt_hwrm_check_pf_rings()
6440 static int bnxt_hwrm_check_rings(struct bnxt *bp, int tx_rings, int rx_rings, in bnxt_hwrm_check_rings() argument
6448 return bnxt_hwrm_check_pf_rings(bp, tx_rings, rx_rings, in bnxt_hwrm_check_rings()
6452 return bnxt_hwrm_check_vf_rings(bp, tx_rings, rx_rings, ring_grps, in bnxt_hwrm_check_rings()