Lines Matching refs:rx_rings

5043 int bnxt_get_nr_rss_ctxs(struct bnxt *bp, int rx_rings)  in bnxt_get_nr_rss_ctxs()  argument
5046 return DIV_ROUND_UP(rx_rings, BNXT_RSS_TABLE_ENTRIES_P5); in bnxt_get_nr_rss_ctxs()
6014 __bnxt_hwrm_reserve_pf_rings(struct bnxt *bp, int tx_rings, int rx_rings, in __bnxt_hwrm_reserve_pf_rings() argument
6027 enables |= rx_rings ? FUNC_CFG_REQ_ENABLES_NUM_RX_RINGS : 0; in __bnxt_hwrm_reserve_pf_rings()
6033 enables |= rx_rings ? in __bnxt_hwrm_reserve_pf_rings()
6044 req->num_rx_rings = cpu_to_le16(rx_rings); in __bnxt_hwrm_reserve_pf_rings()
6067 __bnxt_hwrm_reserve_vf_rings(struct bnxt *bp, int tx_rings, int rx_rings, in __bnxt_hwrm_reserve_vf_rings() argument
6077 enables |= rx_rings ? FUNC_VF_CFG_REQ_ENABLES_NUM_RX_RINGS | in __bnxt_hwrm_reserve_vf_rings()
6094 req->num_rx_rings = cpu_to_le16(rx_rings); in __bnxt_hwrm_reserve_vf_rings()
6111 bnxt_hwrm_reserve_pf_rings(struct bnxt *bp, int tx_rings, int rx_rings, in bnxt_hwrm_reserve_pf_rings() argument
6117 req = __bnxt_hwrm_reserve_pf_rings(bp, tx_rings, rx_rings, ring_grps, in bnxt_hwrm_reserve_pf_rings()
6138 bnxt_hwrm_reserve_vf_rings(struct bnxt *bp, int tx_rings, int rx_rings, in bnxt_hwrm_reserve_vf_rings() argument
6149 req = __bnxt_hwrm_reserve_vf_rings(bp, tx_rings, rx_rings, ring_grps, in bnxt_hwrm_reserve_vf_rings()
6270 int grp, rx_rings, rc; in __bnxt_reserve_rings() local
6299 rx_rings = rx; in __bnxt_reserve_rings()
6302 rx_rings = rx >> 1; in __bnxt_reserve_rings()
6314 rx_rings = min_t(int, rx_rings, grp); in __bnxt_reserve_rings()
6319 rc = bnxt_trim_rings(bp, &rx_rings, &tx, cp, sh); in __bnxt_reserve_rings()
6321 rx = rx_rings << 1; in __bnxt_reserve_rings()
6322 cp = sh ? max_t(int, tx, rx_rings) : tx + rx_rings; in __bnxt_reserve_rings()
6328 if (rx_rings != bp->rx_nr_rings) { in __bnxt_reserve_rings()
6330 rx_rings, bp->rx_nr_rings); in __bnxt_reserve_rings()
6333 bnxt_get_nr_rss_ctxs(bp, rx_rings) || in __bnxt_reserve_rings()
6334 bnxt_get_max_rss_ring(bp) >= rx_rings)) { in __bnxt_reserve_rings()
6339 bp->rx_nr_rings = rx_rings; in __bnxt_reserve_rings()
6351 static int bnxt_hwrm_check_vf_rings(struct bnxt *bp, int tx_rings, int rx_rings, in bnxt_hwrm_check_vf_rings() argument
6361 req = __bnxt_hwrm_reserve_vf_rings(bp, tx_rings, rx_rings, ring_grps, in bnxt_hwrm_check_vf_rings()
6376 static int bnxt_hwrm_check_pf_rings(struct bnxt *bp, int tx_rings, int rx_rings, in bnxt_hwrm_check_pf_rings() argument
6383 req = __bnxt_hwrm_reserve_pf_rings(bp, tx_rings, rx_rings, ring_grps, in bnxt_hwrm_check_pf_rings()
6402 static int bnxt_hwrm_check_rings(struct bnxt *bp, int tx_rings, int rx_rings, in bnxt_hwrm_check_rings() argument
6410 return bnxt_hwrm_check_pf_rings(bp, tx_rings, rx_rings, in bnxt_hwrm_check_rings()
6414 return bnxt_hwrm_check_vf_rings(bp, tx_rings, rx_rings, ring_grps, in bnxt_hwrm_check_rings()
11817 int rx_rings = rx; in bnxt_check_rings() local
11836 vnics += rx_rings; in bnxt_check_rings()
11839 rx_rings <<= 1; in bnxt_check_rings()
11846 return bnxt_hwrm_check_rings(bp, tx_rings_needed, rx_rings, rx, cp, in bnxt_check_rings()