Lines Matching refs:rx_nr_rings
1946 for (i = 0; i < bp->rx_nr_rings; i++) { in bnxt_agg_ring_id_to_grp_idx()
2668 for (i = 0; i < bp->rx_nr_rings; i++) in bnxt_free_rx_skbs()
2764 for (i = 0; i < bp->rx_nr_rings; i++) { in bnxt_free_tpa_info()
2790 for (i = 0; i < bp->rx_nr_rings; i++) { in bnxt_alloc_tpa_info()
2823 for (i = 0; i < bp->rx_nr_rings; i++) { in bnxt_free_rx_rings()
2877 for (i = 0; i < bp->rx_nr_rings; i++) { in bnxt_alloc_rx_rings()
3101 if (i < bp->rx_nr_rings) { in bnxt_alloc_cp_rings()
3111 (!sh && i >= bp->rx_nr_rings)) { in bnxt_alloc_cp_rings()
3329 for (i = 0; i < bp->rx_nr_rings; i++) { in bnxt_init_rx_rings()
3396 num_vnics += bp->rx_nr_rings; in bnxt_alloc_vnics()
3648 max_rings = bp->rx_nr_rings; in bnxt_alloc_vnic_attributes()
4151 bp->rx_ring = kcalloc(bp->rx_nr_rings, in bnxt_alloc_mem()
4157 for (i = 0; i < bp->rx_nr_rings; i++) { in bnxt_alloc_mem()
4185 j = bp->rx_nr_rings; in bnxt_alloc_mem()
5022 if (!bp->rx_nr_rings) in bnxt_set_dflt_rss_indir_tbl()
5026 max_rings = bp->rx_nr_rings - 1; in bnxt_set_dflt_rss_indir_tbl()
5028 max_rings = bp->rx_nr_rings; in bnxt_set_dflt_rss_indir_tbl()
5145 nr_ctxs = bnxt_get_nr_rss_ctxs(bp, bp->rx_nr_rings); in bnxt_hwrm_vnic_set_rss_p5()
5283 ring = bp->rx_nr_rings - 1; in bnxt_hwrm_vnic_cfg()
5418 for (i = 0; i < bp->rx_nr_rings; i++) { in bnxt_hwrm_ring_grp_alloc()
5714 for (i = 0; i < bp->rx_nr_rings; i++) { in bnxt_hwrm_ring_alloc()
5747 for (i = 0; i < bp->rx_nr_rings; i++) { in bnxt_hwrm_ring_alloc()
5752 u32 map_idx = grp_idx + bp->rx_nr_rings; in bnxt_hwrm_ring_alloc()
5821 for (i = 0; i < bp->rx_nr_rings; i++) { in bnxt_hwrm_ring_free()
5843 for (i = 0; i < bp->rx_nr_rings; i++) { in bnxt_hwrm_ring_free()
6144 cp = bp->tx_nr_rings + bp->rx_nr_rings; in bnxt_cp_rings_in_use()
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()
6182 int rx = bp->rx_nr_rings, stat; in bnxt_need_reserve_rings()
6219 int rx = bp->rx_nr_rings; in __bnxt_reserve_rings()
6233 grp = bp->rx_nr_rings; in __bnxt_reserve_rings()
6278 if (rx_rings != bp->rx_nr_rings) { in __bnxt_reserve_rings()
6280 rx_rings, bp->rx_nr_rings); in __bnxt_reserve_rings()
6282 (bnxt_get_nr_rss_ctxs(bp, bp->rx_nr_rings) != in __bnxt_reserve_rings()
6289 bp->rx_nr_rings = rx_rings; in __bnxt_reserve_rings()
8099 nr_ctxs = bnxt_get_nr_rss_ctxs(bp, bp->rx_nr_rings); in __bnxt_setup_vnic_p5()
8150 for (i = 0; i < bp->rx_nr_rings; i++) { in bnxt_alloc_rfs_vnics()
8192 rc = bnxt_hwrm_vnic_alloc(bp, 1, bp->rx_nr_rings - 1, 1); in bnxt_setup_nitroa0_vnic()
8215 unsigned int rx_nr_rings = bp->rx_nr_rings; in bnxt_init_chip() local
8239 rx_nr_rings--; in bnxt_init_chip()
8242 rc = bnxt_hwrm_vnic_alloc(bp, 0, 0, rx_nr_rings); in bnxt_init_chip()
8348 rc = netif_set_real_num_rx_queues(dev, bp->rx_nr_rings); in bnxt_set_real_num_queues()
8354 dev->rx_cpu_rmap = alloc_irq_cpu_rmap(bp->rx_nr_rings); in bnxt_set_real_num_queues()
8407 else if (i < bp->rx_nr_rings) in bnxt_setup_msix()
8496 return cp - bp->rx_nr_rings - bp->tx_nr_rings; in bnxt_get_avail_cp_rings_for_en()
8575 rc = bnxt_trim_rings(bp, &bp->rx_nr_rings, &bp->tx_nr_rings, in bnxt_init_msix()
8581 max_t(int, bp->tx_nr_rings, bp->rx_nr_rings) : in bnxt_init_msix()
8582 bp->tx_nr_rings + bp->rx_nr_rings; in bnxt_init_msix()
8608 bp->rx_nr_rings = 1; in bnxt_init_inta()
9402 bp->rx_nr_rings = 0; in bnxt_hwrm_if_change()
10347 vnics = 1 + bp->rx_nr_rings; in bnxt_rfs_capable()
10355 if (bp->rx_nr_rings > 1) in bnxt_rfs_capable()
10749 for (i = 0; i < bp->rx_nr_rings; i++) { in bnxt_rx_ring_reset()
11715 rc = bnxt_check_rings(bp, bp->tx_nr_rings_per_tc, bp->rx_nr_rings, in bnxt_setup_mq_tc()
11732 bp->cp_nr_rings = sh ? max_t(int, bp->tx_nr_rings, bp->rx_nr_rings) : in bnxt_setup_mq_tc()
11733 bp->tx_nr_rings + bp->rx_nr_rings; in bnxt_setup_mq_tc()
12276 bp->cp_nr_rings = min_t(int, bp->tx_nr_rings_per_tc, bp->rx_nr_rings); in bnxt_trim_dflt_sh_rings()
12277 bp->rx_nr_rings = bp->cp_nr_rings; in bnxt_trim_dflt_sh_rings()
12304 bp->rx_nr_rings = min_t(int, dflt_rings, max_rx_rings); in bnxt_set_dflt_rings()
12309 bp->cp_nr_rings = bp->tx_nr_rings_per_tc + bp->rx_nr_rings; in bnxt_set_dflt_rings()
12327 bp->rx_nr_rings++; in bnxt_set_dflt_rings()
12332 bp->rx_nr_rings = 0; in bnxt_set_dflt_rings()