Lines Matching refs:rx_nr_rings

2369 	for (i = 0; i < bp->rx_nr_rings; i++) {  in bnxt_agg_ring_id_to_grp_idx()
3410 for (i = 0; i < bp->rx_nr_rings; i++) in bnxt_free_rx_skbs()
3527 for (i = 0; i < bp->rx_nr_rings; i++) { in bnxt_free_tpa_info()
3554 for (i = 0; i < bp->rx_nr_rings; i++) { in bnxt_alloc_tpa_info()
3587 for (i = 0; i < bp->rx_nr_rings; i++) { in bnxt_free_rx_rings()
3649 for (i = 0; i < bp->rx_nr_rings; i++) { in bnxt_alloc_rx_rings()
3948 if (i < bp->rx_nr_rings) { in bnxt_alloc_cp_rings()
3956 (!sh && i >= bp->rx_nr_rings)) { in bnxt_alloc_cp_rings()
4287 for (i = 0; i < bp->rx_nr_rings; i++) { in bnxt_init_rx_rings()
4362 num_vnics += bp->rx_nr_rings; in bnxt_alloc_vnics()
4663 max_rings = bp->rx_nr_rings; in bnxt_alloc_vnic_attributes()
5188 bp->rx_ring = kcalloc(bp->rx_nr_rings, in bnxt_alloc_mem()
5194 for (i = 0; i < bp->rx_nr_rings; i++) { in bnxt_alloc_mem()
5224 j = bp->rx_nr_rings; in bnxt_alloc_mem()
6221 if (!bp->rx_nr_rings) in bnxt_set_dflt_rss_indir_tbl()
6225 max_rings = bp->rx_nr_rings - 1; in bnxt_set_dflt_rss_indir_tbl()
6227 max_rings = bp->rx_nr_rings; in bnxt_set_dflt_rss_indir_tbl()
6295 j = ethtool_rxfh_indir_default(i, bp->rx_nr_rings); in bnxt_fill_hw_rss_tbl_p5()
6373 nr_ctxs = bnxt_get_nr_rss_ctxs(bp, bp->rx_nr_rings); in bnxt_hwrm_vnic_set_rss_p5()
6547 ring = bp->rx_nr_rings - 1; in bnxt_hwrm_vnic_cfg()
6712 for (i = 0; i < bp->rx_nr_rings; i++) { in bnxt_hwrm_ring_grp_alloc()
7004 map_idx = grp_idx + bp->rx_nr_rings; in bnxt_hwrm_rx_agg_ring_alloc()
7083 for (i = 0; i < bp->rx_nr_rings; i++) { in bnxt_hwrm_ring_alloc()
7111 for (i = 0; i < bp->rx_nr_rings; i++) { in bnxt_hwrm_ring_alloc()
7221 for (i = 0; i < bp->rx_nr_rings; i++) { in bnxt_hwrm_ring_free()
7506 cp = bp->tx_nr_rings + bp->rx_nr_rings; in bnxt_cp_rings_in_use()
7541 if (hw_resc->resv_rx_rings != bp->rx_nr_rings) { in bnxt_check_rss_tbl_no_rmgr()
7542 hw_resc->resv_rx_rings = bp->rx_nr_rings; in bnxt_check_rss_tbl_no_rmgr()
7564 int rx = bp->rx_nr_rings, stat; in bnxt_need_reserve_rings()
7648 hwr.rx = bp->rx_nr_rings; in __bnxt_reserve_rings()
7658 hwr.grp = bp->rx_nr_rings; in __bnxt_reserve_rings()
7699 if (rx_rings != bp->rx_nr_rings) { in __bnxt_reserve_rings()
7701 rx_rings, bp->rx_nr_rings); in __bnxt_reserve_rings()
7703 (bnxt_get_nr_rss_ctxs(bp, bp->rx_nr_rings) != in __bnxt_reserve_rings()
7710 bp->rx_nr_rings = rx_rings; in __bnxt_reserve_rings()
10182 nr_ctxs = bnxt_get_nr_rss_ctxs(bp, bp->rx_nr_rings); in __bnxt_setup_vnic_p5()
10239 return bnxt_alloc_and_setup_vnic(bp, vnic, 0, bp->rx_nr_rings); in bnxt_alloc_rfs_vnics()
10245 for (i = 0; i < bp->rx_nr_rings; i++) { in bnxt_alloc_rfs_vnics()
10309 if (bnxt_hwrm_vnic_alloc(bp, vnic, 0, bp->rx_nr_rings) || in bnxt_hwrm_realloc_rss_ctx_vnic()
10347 rc = bnxt_hwrm_vnic_alloc(bp, vnic, bp->rx_nr_rings - 1, 1); in bnxt_setup_nitroa0_vnic()
10370 unsigned int rx_nr_rings = bp->rx_nr_rings; in bnxt_init_chip() local
10394 rx_nr_rings--; in bnxt_init_chip()
10397 rc = bnxt_hwrm_vnic_alloc(bp, vnic, 0, rx_nr_rings); in bnxt_init_chip()
10515 rc = netif_set_real_num_rx_queues(dev, bp->rx_nr_rings); in bnxt_set_real_num_queues()
10521 dev->rx_cpu_rmap = alloc_irq_cpu_rmap(bp->rx_nr_rings); in bnxt_set_real_num_queues()
10614 else if (i < bp->rx_nr_rings) in bnxt_setup_msix()
10718 return cp - bp->rx_nr_rings - bp->tx_nr_rings; in bnxt_get_avail_cp_rings_for_en()
10782 rc = bnxt_trim_rings(bp, &bp->rx_nr_rings, &bp->tx_nr_rings, in bnxt_init_int_mode()
10789 max_t(int, tx_cp, bp->rx_nr_rings) : in bnxt_init_int_mode()
10790 tx_cp + bp->rx_nr_rings; in bnxt_init_int_mode()
10962 for (i = 0; i < bp->rx_nr_rings; i++) in bnxt_del_napi()
11665 bp->rx_nr_rings = 0; in bnxt_clear_reservations()
12825 if (!bnxt_can_reserve_rings(bp) || !bp->rx_nr_rings) in bnxt_rfs_capable()
12828 hwr.grp = bp->rx_nr_rings; in bnxt_rfs_capable()
12829 hwr.vnic = bnxt_get_total_vnics(bp, bp->rx_nr_rings); in bnxt_rfs_capable()
12837 if (bp->rx_nr_rings > 1) in bnxt_rfs_capable()
13398 for (i = 0; i < bp->rx_nr_rings; i++) { in bnxt_rx_ring_reset()
14523 rc = bnxt_check_rings(bp, bp->tx_nr_rings_per_tc, bp->rx_nr_rings, in bnxt_setup_mq_tc()
14543 bp->cp_nr_rings = sh ? max_t(int, tx_cp, bp->rx_nr_rings) : in bnxt_setup_mq_tc()
14544 tx_cp + bp->rx_nr_rings; in bnxt_setup_mq_tc()
15476 bp->cp_nr_rings = min_t(int, bp->tx_nr_rings_per_tc, bp->rx_nr_rings); in bnxt_trim_dflt_sh_rings()
15477 bp->rx_nr_rings = bp->cp_nr_rings; in bnxt_trim_dflt_sh_rings()
15505 bp->rx_nr_rings = min_t(int, dflt_rings, max_rx_rings); in bnxt_set_dflt_rings()
15510 bp->cp_nr_rings = bp->tx_nr_rings_per_tc + bp->rx_nr_rings; in bnxt_set_dflt_rings()
15536 bp->rx_nr_rings++; in bnxt_set_dflt_rings()
15541 bp->rx_nr_rings = 0; in bnxt_set_dflt_rings()