Lines Matching refs:nrxqs
330 unsigned int nrxqs; in mvpp2_get_nrxqs() local
340 nrxqs = (num_possible_cpus() + 3) & ~0x3; in mvpp2_get_nrxqs()
341 if (nrxqs > MVPP2_PORT_MAX_RXQ) in mvpp2_get_nrxqs()
342 nrxqs = MVPP2_PORT_MAX_RXQ; in mvpp2_get_nrxqs()
344 return nrxqs; in mvpp2_get_nrxqs()
788 for (q = 0; q < port->nrxqs; q++) { in mvpp2_rxq_enable_fc()
849 for (q = 0; q < port->nrxqs; q++) { in mvpp2_rxq_disable_fc()
936 for (i = 0; i < port->nrxqs; i++) in mvpp2_bm_pool_update_priv_fc()
1097 if (pool < port->nrxqs) in mvpp2_bm_pool_use()
1136 if (pool > port->nrxqs * 2) { in mvpp2_bm_pool_use_percpu()
1204 for (rxq = 0; rxq < port->nrxqs; rxq++) in mvpp2_swf_bm_pool_init_shared()
1217 for (rxq = 0; rxq < port->nrxqs; rxq++) in mvpp2_swf_bm_pool_init_shared()
1231 for (i = 0; i < port->nrxqs; i++) { in mvpp2_swf_bm_pool_init_percpu()
1241 for (i = 0; i < port->nrxqs; i++) { in mvpp2_swf_bm_pool_init_percpu()
1242 bm_pool = mvpp2_bm_pool_use_percpu(port, MVPP2_BM_LONG, i + port->nrxqs, in mvpp2_swf_bm_pool_init_percpu()
1941 #define MVPP2_N_ETHTOOL_STATS(ntxqs, nrxqs) (ARRAY_SIZE(mvpp2_ethtool_mib_regs) + \ argument
1944 (ARRAY_SIZE(mvpp2_ethtool_rxq_regs) * (nrxqs)) + \
1976 for (q = 0; q < port->nrxqs; q++) { in mvpp2_ethtool_get_strings()
2057 for (q = 0; q < port->nrxqs; q++) in mvpp2_read_stats()
2127 sizeof(u64) * MVPP2_N_ETHTOOL_STATS(port->ntxqs, port->nrxqs)); in mvpp2_ethtool_get_stats()
2136 return MVPP2_N_ETHTOOL_STATS(port->ntxqs, port->nrxqs); in mvpp2_ethtool_get_sset_count()
2280 for (lrxq = 0; lrxq < port->nrxqs; lrxq++) { in mvpp2_defaults_set()
2298 for (lrxq = 0; lrxq < port->nrxqs; lrxq++) { in mvpp2_ingress_enable()
2311 for (lrxq = 0; lrxq < port->nrxqs; lrxq++) { in mvpp2_ingress_disable()
2984 port->nrxqs]); in mvpp2_rxq_init()
3277 for (queue = 0; queue < port->nrxqs; queue++) in mvpp2_cleanup_rxqs()
3289 for (queue = 0; queue < port->nrxqs; queue++) { in mvpp2_setup_rxqs()
4985 numbufs = port->nrxqs * 2; in mvpp2_bm_switch_buffers()
5391 for (queue = 0; queue < port->nrxqs; queue++) { in mvpp2_ethtool_set_coalesce()
5579 info->data = port->nrxqs; in mvpp2_ethtool_get_rxnfc()
5778 v->nrxqs = port->nrxqs; in mvpp2_simple_queue_vectors_init()
5826 v->nrxqs = 1; in mvpp2_multi_queue_vectors_init()
5830 v->nrxqs = port->nrxqs; in mvpp2_multi_queue_vectors_init()
5883 port->nrxqs); in mvpp2_rx_irqs_setup()
5891 if (!qv->nrxqs) in mvpp2_rx_irqs_setup()
5899 val |= qv->nrxqs << MVPP22_ISR_RXQ_SUB_GROUP_SIZE_OFFSET; in mvpp2_rx_irqs_setup()
5914 if (port->first_rxq + port->nrxqs > in mvpp2_port_init()
5918 if (port->nrxqs > priv->max_port_rxqs || port->ntxqs > MVPP2_MAX_TXQ) in mvpp2_port_init()
5974 port->rxqs = devm_kcalloc(dev, port->nrxqs, sizeof(*port->rxqs), in mvpp2_port_init()
5982 for (queue = 0; queue < port->nrxqs; queue++) { in mvpp2_port_init()
6002 for (queue = 0; queue < port->nrxqs; queue++) { in mvpp2_port_init()
6033 MVPP2_N_ETHTOOL_STATS(port->ntxqs, port->nrxqs) * sizeof(u64)); in mvpp2_port_init()
6586 for (i = 0; i < port->nrxqs; i++) in mvpp2_mac_link_up()
6692 unsigned int ntxqs, nrxqs, thread; in mvpp2_port_probe() local
6707 nrxqs = mvpp2_get_nrxqs(priv); in mvpp2_port_probe()
6709 dev = alloc_etherdev_mqs(sizeof(*port), ntxqs, nrxqs); in mvpp2_port_probe()
6755 port->nrxqs = nrxqs; in mvpp2_port_probe()
6781 port->first_rxq = port->id * port->nrxqs; in mvpp2_port_probe()
6827 MVPP2_N_ETHTOOL_STATS(ntxqs, nrxqs), in mvpp2_port_probe()