Searched refs:max_rx_rings (Results 1 – 12 of 12) sorted by relevance
/Linux-v5.4/drivers/net/ethernet/netronome/nfp/ |
D | nfp_netvf_main.c | 69 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()
|
D | nfp_net_debugfs.c | 170 for (i = 0; i < min(nn->max_rx_rings, nn->max_r_vecs); i++) { in nfp_net_debugfs_vnic_add()
|
D | nfp_net.h | 624 unsigned int max_rx_rings; member 927 unsigned int max_tx_rings, unsigned int max_rx_rings);
|
D | nfp_net_ethtool.c | 1328 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()
|
D | nfp_net_common.c | 3769 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/ |
D | bnxt_sriov.c | 530 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()
|
D | bnxt_ethtool.c | 766 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()
|
D | bnxt.c | 6893 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()
|
D | bnxt.h | 1027 u16 max_rx_rings; member
|
D | bnxt_hsi.h | 1122 __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/ |
D | main.c | 93 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/ |
D | bnx2.c | 7777 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()
|