/drivers/net/ethernet/netronome/nfp/ |
D | nfp_netvf_main.c | 69 int max_tx_rings, max_rx_rings; in nfp_netvf_pci_probe() local 149 max_tx_rings = readl(ctrl_bar + NFP_NET_CFG_MAX_TXRINGS); in nfp_netvf_pci_probe() 152 tx_bar_sz = NFP_QCP_QUEUE_ADDR_SZ * max_tx_rings * stride; in nfp_netvf_pci_probe() 160 max_tx_rings = (tx_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 | 178 for (i = 0; i < min(nn->max_tx_rings, nn->max_r_vecs); i++) { in nfp_net_debugfs_vnic_add()
|
D | nfp_net.h | 633 unsigned int max_tx_rings; member 945 unsigned int max_tx_rings, unsigned int max_rx_rings);
|
D | nfp_net_common.c | 3320 if (dp->num_tx_rings > nn->max_tx_rings) { in nfp_net_check_config() 3811 nn->dp.num_tx_rings, nn->max_tx_rings, in nfp_net_info() 3859 unsigned int max_tx_rings, unsigned int max_rx_rings) in nfp_net_alloc() argument 3868 max_tx_rings, max_rx_rings); in nfp_net_alloc() 3885 nn->max_tx_rings = max_tx_rings; in nfp_net_alloc() 3889 max_tx_rings, num_online_cpus()); in nfp_net_alloc()
|
D | nfp_net_ethtool.c | 1409 channel->max_tx = min(nn->max_tx_rings, nn->max_r_vecs); in nfp_net_get_channels() 1451 total_tx > min(nn->max_tx_rings, nn->max_r_vecs)) in nfp_net_set_channels()
|
/drivers/net/ethernet/broadcom/bnxt/ |
D | bnxt_sriov.c | 551 vf_tx_rings = hw_resc->max_tx_rings - bp->tx_nr_rings; in bnxt_hwrm_func_vf_resc_cfg() 590 req->max_tx_rings = cpu_to_le16(vf_tx_rings); in bnxt_hwrm_func_vf_resc_cfg() 616 hw_resc->max_tx_rings -= le16_to_cpu(req->min_tx_rings) * n; in bnxt_hwrm_func_vf_resc_cfg() 662 vf_tx_rings = (hw_resc->max_tx_rings - bp->tx_nr_rings) / num_vfs; in bnxt_hwrm_func_cfg() 710 hw_resc->max_tx_rings -= total_vf_tx_rings; in bnxt_hwrm_func_cfg() 792 if (hw_resc->max_tx_rings - bp->tx_nr_rings >= min_tx_rings && in bnxt_sriov_enable()
|
D | bnxt_ethtool.c | 820 int max_rx_rings, max_tx_rings, tcs; in bnxt_get_channels() local 828 bnxt_get_max_rings(bp, &max_rx_rings, &max_tx_rings, true); in bnxt_get_channels() 830 max_tx_rings = min_t(int, max_tx_rings, max_tx_sch_inputs); in bnxt_get_channels() 836 max_tx_rings /= tx_grps; in bnxt_get_channels() 837 channel->max_combined = min_t(int, max_rx_rings, max_tx_rings); in bnxt_get_channels() 839 if (bnxt_get_max_rings(bp, &max_rx_rings, &max_tx_rings, false)) { in bnxt_get_channels() 841 max_tx_rings = 0; in bnxt_get_channels() 844 max_tx_rings = min_t(int, max_tx_rings, max_tx_sch_inputs); in bnxt_get_channels() 847 max_tx_rings /= tcs; in bnxt_get_channels() 850 channel->max_tx = max_tx_rings; in bnxt_get_channels()
|
D | bnxt.c | 7405 hw_resc->max_tx_rings = le16_to_cpu(resp->max_tx_rings); in bnxt_hwrm_func_resc_qcaps() 7548 hw_resc->max_tx_rings = le16_to_cpu(resp->max_tx_rings); in __bnxt_hwrm_func_qcaps() 7552 hw_resc->max_hw_ring_grps = hw_resc->max_tx_rings; in __bnxt_hwrm_func_qcaps() 12958 *max_tx = hw_resc->max_tx_rings; in _bnxt_get_max_rings() 13052 int dflt_rings, max_rx_rings, max_tx_rings, rc; in bnxt_set_dflt_rings() local 13069 rc = bnxt_get_dflt_rings(bp, &max_rx_rings, &max_tx_rings, sh); in bnxt_set_dflt_rings() 13073 bp->tx_nr_rings_per_tc = min_t(int, dflt_rings, max_tx_rings); in bnxt_set_dflt_rings()
|
D | bnxt.h | 1071 u16 max_tx_rings; member
|
D | bnxt_hsi.h | 1547 __le16 max_tx_rings; member 2305 __le16 max_tx_rings; member 2341 __le16 max_tx_rings; member
|
/drivers/net/ethernet/qlogic/qlcnic/ |
D | qlcnic_83xx_init.c | 2288 u16 max_sds_rings, max_tx_rings; in qlcnic_83xx_configure_opmode() local 2302 max_tx_rings = QLCNIC_MAX_VNIC_TX_RINGS; in qlcnic_83xx_configure_opmode() 2308 max_tx_rings = QLCNIC_MAX_TX_RINGS; in qlcnic_83xx_configure_opmode() 2316 adapter->max_tx_rings = min(ahw->max_tx_ques, max_tx_rings); in qlcnic_83xx_configure_opmode() 2422 adapter->max_tx_rings = QLCNIC_MAX_TX_RINGS; in qlcnic_83xx_init_rings()
|
D | qlcnic_ethtool.c | 711 if (tx_ring > adapter->max_tx_rings) { in qlcnic_validate_ring_count() 714 tx_ring, adapter->max_tx_rings); in qlcnic_validate_ring_count() 728 channel->max_tx = adapter->max_tx_rings; in qlcnic_get_channels()
|
D | qlcnic_main.c | 631 max_rings = adapter->max_tx_rings; in qlcnic_max_rings() 645 if (adapter->max_tx_rings) in qlcnic_set_tx_ring_count() 1315 adapter->max_tx_rings = QLCNIC_MAX_HW_VNIC_TX_RINGS; in qlcnic_initialize_nic() 1321 adapter->max_tx_rings = QLCNIC_MAX_HW_TX_RINGS; in qlcnic_initialize_nic()
|
D | qlcnic.h | 1118 u8 max_tx_rings; /* max tx rings supported by adapter */ member
|
/drivers/net/ethernet/broadcom/ |
D | bnx2.c | 7776 u32 max_tx_rings = 1; in bnx2_get_channels() local 7780 max_tx_rings = TX_MAX_RINGS; in bnx2_get_channels() 7784 channels->max_tx = max_tx_rings; in bnx2_get_channels() 7798 u32 max_tx_rings = 1; in bnx2_set_channels() local 7803 max_tx_rings = TX_MAX_RINGS; in bnx2_set_channels() 7806 channels->tx_count > max_tx_rings) in bnx2_set_channels()
|