Lines Matching refs:rx_nr_rings
2543 for (i = 0; i < bp->rx_nr_rings; i++) { in bnxt_free_rx_skbs()
2711 for (i = 0; i < bp->rx_nr_rings; i++) { in bnxt_free_tpa_info()
2737 for (i = 0; i < bp->rx_nr_rings; i++) { in bnxt_alloc_tpa_info()
2770 for (i = 0; i < bp->rx_nr_rings; i++) { in bnxt_free_rx_rings()
2824 for (i = 0; i < bp->rx_nr_rings; i++) { in bnxt_alloc_rx_rings()
3048 if (i < bp->rx_nr_rings) { in bnxt_alloc_cp_rings()
3058 (!sh && i >= bp->rx_nr_rings)) { in bnxt_alloc_cp_rings()
3277 for (i = 0; i < bp->rx_nr_rings; i++) { in bnxt_init_rx_rings()
3344 num_vnics += bp->rx_nr_rings; in bnxt_alloc_vnics()
3588 max_rings = bp->rx_nr_rings; in bnxt_alloc_vnic_attributes()
3983 bp->rx_ring = kcalloc(bp->rx_nr_rings, in bnxt_alloc_mem()
3989 for (i = 0; i < bp->rx_nr_rings; i++) { in bnxt_alloc_mem()
4017 j = bp->rx_nr_rings; in bnxt_alloc_mem()
4838 max_rings = bp->rx_nr_rings - 1; in bnxt_hwrm_vnic_set_rss()
4840 max_rings = bp->rx_nr_rings; in bnxt_hwrm_vnic_set_rss()
4863 u32 i, j, k, nr_ctxs, max_rings = bp->rx_nr_rings; in bnxt_hwrm_vnic_set_rss_p5()
4877 nr_ctxs = DIV_ROUND_UP(bp->rx_nr_rings, 64); in bnxt_hwrm_vnic_set_rss_p5()
5029 ring = bp->rx_nr_rings - 1; in bnxt_hwrm_vnic_cfg()
5157 for (i = 0; i < bp->rx_nr_rings; i++) { in bnxt_hwrm_ring_grp_alloc()
5456 for (i = 0; i < bp->rx_nr_rings; i++) { in bnxt_hwrm_ring_alloc()
5489 for (i = 0; i < bp->rx_nr_rings; i++) { in bnxt_hwrm_ring_alloc()
5494 u32 map_idx = grp_idx + bp->rx_nr_rings; in bnxt_hwrm_ring_alloc()
5563 for (i = 0; i < bp->rx_nr_rings; i++) { in bnxt_hwrm_ring_free()
5585 for (i = 0; i < bp->rx_nr_rings; i++) { in bnxt_hwrm_ring_free()
5888 cp = bp->tx_nr_rings + bp->rx_nr_rings; in bnxt_cp_rings_in_use()
5911 int rx = bp->rx_nr_rings, stat; in bnxt_need_reserve_rings()
5942 int rx = bp->rx_nr_rings; in __bnxt_reserve_rings()
5956 grp = bp->rx_nr_rings; in __bnxt_reserve_rings()
5997 bp->rx_nr_rings = rx_rings; in __bnxt_reserve_rings()
7584 nr_ctxs = DIV_ROUND_UP(bp->rx_nr_rings, 64); in __bnxt_setup_vnic_p5()
7635 for (i = 0; i < bp->rx_nr_rings; i++) { in bnxt_alloc_rfs_vnics()
7677 rc = bnxt_hwrm_vnic_alloc(bp, 1, bp->rx_nr_rings - 1, 1); in bnxt_setup_nitroa0_vnic()
7700 unsigned int rx_nr_rings = bp->rx_nr_rings; in bnxt_init_chip() local
7724 rx_nr_rings--; in bnxt_init_chip()
7727 rc = bnxt_hwrm_vnic_alloc(bp, 0, 0, rx_nr_rings); in bnxt_init_chip()
7833 rc = netif_set_real_num_rx_queues(dev, bp->rx_nr_rings); in bnxt_set_real_num_queues()
7839 dev->rx_cpu_rmap = alloc_irq_cpu_rmap(bp->rx_nr_rings); in bnxt_set_real_num_queues()
7892 else if (i < bp->rx_nr_rings) in bnxt_setup_msix()
7981 return cp - bp->rx_nr_rings - bp->tx_nr_rings; in bnxt_get_avail_cp_rings_for_en()
8060 rc = bnxt_trim_rings(bp, &bp->rx_nr_rings, &bp->tx_nr_rings, in bnxt_init_msix()
8066 max_t(int, bp->tx_nr_rings, bp->rx_nr_rings) : in bnxt_init_msix()
8067 bp->tx_nr_rings + bp->rx_nr_rings; in bnxt_init_msix()
8093 bp->rx_nr_rings = 1; in bnxt_init_inta()
8791 bp->rx_nr_rings = 0; in bnxt_hwrm_if_change()
9713 vnics = 1 + bp->rx_nr_rings; in bnxt_rfs_capable()
9721 if (bp->rx_nr_rings > 1) in bnxt_rfs_capable()
10894 rc = bnxt_check_rings(bp, bp->tx_nr_rings_per_tc, bp->rx_nr_rings, in bnxt_setup_mq_tc()
10911 bp->cp_nr_rings = sh ? max_t(int, bp->tx_nr_rings, bp->rx_nr_rings) : in bnxt_setup_mq_tc()
10912 bp->tx_nr_rings + bp->rx_nr_rings; in bnxt_setup_mq_tc()
11501 bp->cp_nr_rings = min_t(int, bp->tx_nr_rings_per_tc, bp->rx_nr_rings); in bnxt_trim_dflt_sh_rings()
11502 bp->rx_nr_rings = bp->cp_nr_rings; in bnxt_trim_dflt_sh_rings()
11529 bp->rx_nr_rings = min_t(int, dflt_rings, max_rx_rings); in bnxt_set_dflt_rings()
11534 bp->cp_nr_rings = bp->tx_nr_rings_per_tc + bp->rx_nr_rings; in bnxt_set_dflt_rings()
11552 bp->rx_nr_rings++; in bnxt_set_dflt_rings()