Home
last modified time | relevance | path

Searched refs:max_tx_rings (Results 1 – 15 of 15) sorted by relevance

/drivers/net/ethernet/netronome/nfp/
Dnfp_netvf_main.c69 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()
Dnfp_net_debugfs.c178 for (i = 0; i < min(nn->max_tx_rings, nn->max_r_vecs); i++) { in nfp_net_debugfs_vnic_add()
Dnfp_net.h633 unsigned int max_tx_rings; member
945 unsigned int max_tx_rings, unsigned int max_rx_rings);
Dnfp_net_common.c3320 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()
Dnfp_net_ethtool.c1409 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/
Dbnxt_sriov.c551 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()
Dbnxt_ethtool.c820 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()
Dbnxt.c7405 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()
Dbnxt.h1071 u16 max_tx_rings; member
Dbnxt_hsi.h1547 __le16 max_tx_rings; member
2305 __le16 max_tx_rings; member
2341 __le16 max_tx_rings; member
/drivers/net/ethernet/qlogic/qlcnic/
Dqlcnic_83xx_init.c2288 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()
Dqlcnic_ethtool.c711 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()
Dqlcnic_main.c631 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()
Dqlcnic.h1118 u8 max_tx_rings; /* max tx rings supported by adapter */ member
/drivers/net/ethernet/broadcom/
Dbnx2.c7776 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()