Lines Matching refs:rx_rings
5245 int bnxt_get_nr_rss_ctxs(struct bnxt *bp, int rx_rings) in bnxt_get_nr_rss_ctxs() argument
5248 return DIV_ROUND_UP(rx_rings, BNXT_RSS_TABLE_ENTRIES_P5); in bnxt_get_nr_rss_ctxs()
6220 __bnxt_hwrm_reserve_pf_rings(struct bnxt *bp, int tx_rings, int rx_rings, in __bnxt_hwrm_reserve_pf_rings() argument
6233 enables |= rx_rings ? FUNC_CFG_REQ_ENABLES_NUM_RX_RINGS : 0; in __bnxt_hwrm_reserve_pf_rings()
6239 enables |= rx_rings ? in __bnxt_hwrm_reserve_pf_rings()
6250 req->num_rx_rings = cpu_to_le16(rx_rings); in __bnxt_hwrm_reserve_pf_rings()
6273 __bnxt_hwrm_reserve_vf_rings(struct bnxt *bp, int tx_rings, int rx_rings, in __bnxt_hwrm_reserve_vf_rings() argument
6283 enables |= rx_rings ? FUNC_VF_CFG_REQ_ENABLES_NUM_RX_RINGS | in __bnxt_hwrm_reserve_vf_rings()
6300 req->num_rx_rings = cpu_to_le16(rx_rings); in __bnxt_hwrm_reserve_vf_rings()
6317 bnxt_hwrm_reserve_pf_rings(struct bnxt *bp, int tx_rings, int rx_rings, in bnxt_hwrm_reserve_pf_rings() argument
6323 req = __bnxt_hwrm_reserve_pf_rings(bp, tx_rings, rx_rings, ring_grps, in bnxt_hwrm_reserve_pf_rings()
6344 bnxt_hwrm_reserve_vf_rings(struct bnxt *bp, int tx_rings, int rx_rings, in bnxt_hwrm_reserve_vf_rings() argument
6355 req = __bnxt_hwrm_reserve_vf_rings(bp, tx_rings, rx_rings, ring_grps, in bnxt_hwrm_reserve_vf_rings()
6476 int grp, rx_rings, rc; in __bnxt_reserve_rings() local
6505 rx_rings = rx; in __bnxt_reserve_rings()
6508 rx_rings = rx >> 1; in __bnxt_reserve_rings()
6520 rx_rings = min_t(int, rx_rings, grp); in __bnxt_reserve_rings()
6525 rc = bnxt_trim_rings(bp, &rx_rings, &tx, cp, sh); in __bnxt_reserve_rings()
6527 rx = rx_rings << 1; in __bnxt_reserve_rings()
6528 cp = sh ? max_t(int, tx, rx_rings) : tx + rx_rings; in __bnxt_reserve_rings()
6534 if (rx_rings != bp->rx_nr_rings) { in __bnxt_reserve_rings()
6536 rx_rings, bp->rx_nr_rings); in __bnxt_reserve_rings()
6539 bnxt_get_nr_rss_ctxs(bp, rx_rings) || in __bnxt_reserve_rings()
6540 bnxt_get_max_rss_ring(bp) >= rx_rings)) { in __bnxt_reserve_rings()
6545 bp->rx_nr_rings = rx_rings; in __bnxt_reserve_rings()
6557 static int bnxt_hwrm_check_vf_rings(struct bnxt *bp, int tx_rings, int rx_rings, in bnxt_hwrm_check_vf_rings() argument
6567 req = __bnxt_hwrm_reserve_vf_rings(bp, tx_rings, rx_rings, ring_grps, in bnxt_hwrm_check_vf_rings()
6582 static int bnxt_hwrm_check_pf_rings(struct bnxt *bp, int tx_rings, int rx_rings, in bnxt_hwrm_check_pf_rings() argument
6589 req = __bnxt_hwrm_reserve_pf_rings(bp, tx_rings, rx_rings, ring_grps, in bnxt_hwrm_check_pf_rings()
6608 static int bnxt_hwrm_check_rings(struct bnxt *bp, int tx_rings, int rx_rings, in bnxt_hwrm_check_rings() argument
6616 return bnxt_hwrm_check_pf_rings(bp, tx_rings, rx_rings, in bnxt_hwrm_check_rings()
6620 return bnxt_hwrm_check_vf_rings(bp, tx_rings, rx_rings, ring_grps, in bnxt_hwrm_check_rings()
12093 int rx_rings = rx; in bnxt_check_rings() local
12112 vnics += rx_rings; in bnxt_check_rings()
12115 rx_rings <<= 1; in bnxt_check_rings()
12122 return bnxt_hwrm_check_rings(bp, tx_rings_needed, rx_rings, rx, cp, in bnxt_check_rings()