Home
last modified time | relevance | path

Searched refs:max_rx_rings (Results 1 – 12 of 12) sorted by relevance

/Linux-v5.4/drivers/net/ethernet/netronome/nfp/
Dnfp_netvf_main.c69 int max_tx_rings, max_rx_rings; in nfp_netvf_pci_probe() local
150 max_rx_rings = readl(ctrl_bar + NFP_NET_CFG_MAX_RXRINGS); in nfp_netvf_pci_probe()
153 rx_bar_sz = NFP_QCP_QUEUE_ADDR_SZ * max_rx_rings * stride; in nfp_netvf_pci_probe()
166 max_rx_rings = (rx_bar_sz / NFP_QCP_QUEUE_ADDR_SZ) / 2; in nfp_netvf_pci_probe()
175 nn = nfp_net_alloc(pdev, ctrl_bar, true, max_tx_rings, max_rx_rings); in nfp_netvf_pci_probe()
Dnfp_net_debugfs.c170 for (i = 0; i < min(nn->max_rx_rings, nn->max_r_vecs); i++) { in nfp_net_debugfs_vnic_add()
Dnfp_net.h624 unsigned int max_rx_rings; member
927 unsigned int max_tx_rings, unsigned int max_rx_rings);
Dnfp_net_ethtool.c1328 channel->max_rx = min(nn->max_rx_rings, nn->max_r_vecs); in nfp_net_get_channels()
1371 if (total_rx > min(nn->max_rx_rings, nn->max_r_vecs) || in nfp_net_set_channels()
Dnfp_net_common.c3769 nn->dp.num_rx_rings, nn->max_rx_rings); in nfp_net_info()
3816 unsigned int max_tx_rings, unsigned int max_rx_rings) in nfp_net_alloc() argument
3825 max_tx_rings, max_rx_rings); in nfp_net_alloc()
3843 nn->max_rx_rings = max_rx_rings; in nfp_net_alloc()
3847 nn->dp.num_rx_rings = min_t(unsigned int, max_rx_rings, in nfp_net_alloc()
/Linux-v5.4/drivers/net/ethernet/broadcom/bnxt/
Dbnxt_sriov.c530 vf_rx_rings = hw_resc->max_rx_rings - bp->rx_nr_rings * 2; in bnxt_hwrm_func_vf_resc_cfg()
532 vf_rx_rings = hw_resc->max_rx_rings - bp->rx_nr_rings; in bnxt_hwrm_func_vf_resc_cfg()
571 req.max_rx_rings = cpu_to_le16(vf_rx_rings); in bnxt_hwrm_func_vf_resc_cfg()
597 hw_resc->max_rx_rings -= le16_to_cpu(req.min_rx_rings) * n; in bnxt_hwrm_func_vf_resc_cfg()
631 vf_rx_rings = (hw_resc->max_rx_rings - bp->rx_nr_rings * 2) / in bnxt_hwrm_func_cfg()
634 vf_rx_rings = (hw_resc->max_rx_rings - bp->rx_nr_rings) / in bnxt_hwrm_func_cfg()
687 hw_resc->max_rx_rings -= vf_rx_rings * num_vfs; in bnxt_hwrm_func_cfg()
756 if (hw_resc->max_rx_rings - bp->rx_nr_rings * 2 >= in bnxt_sriov_enable()
760 if (hw_resc->max_rx_rings - bp->rx_nr_rings >= in bnxt_sriov_enable()
Dbnxt_ethtool.c766 int max_rx_rings, max_tx_rings, tcs; in bnxt_get_channels() local
774 bnxt_get_max_rings(bp, &max_rx_rings, &max_tx_rings, true); in bnxt_get_channels()
777 channel->max_combined = min_t(int, max_rx_rings, max_tx_rings); in bnxt_get_channels()
779 if (bnxt_get_max_rings(bp, &max_rx_rings, &max_tx_rings, false)) { in bnxt_get_channels()
780 max_rx_rings = 0; in bnxt_get_channels()
790 channel->max_rx = max_rx_rings; in bnxt_get_channels()
Dbnxt.c6893 hw_resc->max_rx_rings = le16_to_cpu(resp->max_rx_rings); in bnxt_hwrm_func_resc_qcaps()
6907 hw_resc->max_hw_ring_grps = hw_resc->max_rx_rings; in bnxt_hwrm_func_resc_qcaps()
6960 hw_resc->max_rx_rings = le16_to_cpu(resp->max_rx_rings); in __bnxt_hwrm_func_qcaps()
11416 *max_rx = hw_resc->max_rx_rings; in _bnxt_get_max_rings()
11509 int dflt_rings, max_rx_rings, max_tx_rings, rc; in bnxt_set_dflt_rings() local
11526 rc = bnxt_get_dflt_rings(bp, &max_rx_rings, &max_tx_rings, sh); in bnxt_set_dflt_rings()
11529 bp->rx_nr_rings = min_t(int, dflt_rings, max_rx_rings); in bnxt_set_dflt_rings()
Dbnxt.h1027 u16 max_rx_rings; member
Dbnxt_hsi.h1122 __le16 max_rx_rings; member
1692 __le16 max_rx_rings; member
1724 __le16 max_rx_rings; member
/Linux-v5.4/drivers/net/ethernet/netronome/nfp/abm/
Dmain.c93 txqs = alink->vnic->max_rx_rings; in nfp_abm_spawn_repr()
326 alink->total_queues = alink->vnic->max_rx_rings; in nfp_abm_vnic_alloc()
/Linux-v5.4/drivers/net/ethernet/broadcom/
Dbnx2.c7777 u32 max_rx_rings = 1; in bnx2_get_channels() local
7781 max_rx_rings = RX_MAX_RINGS; in bnx2_get_channels()
7785 channels->max_rx = max_rx_rings; in bnx2_get_channels()
7799 u32 max_rx_rings = 1; in bnx2_set_channels() local
7804 max_rx_rings = RX_MAX_RINGS; in bnx2_set_channels()
7807 if (channels->rx_count > max_rx_rings || in bnx2_set_channels()