Lines Matching refs:ntx
319 static int fun_alloc_queue_irqs(struct net_device *dev, unsigned int ntx, in fun_alloc_queue_irqs() argument
327 for (i = fp->num_tx_irqs; i < ntx; i++) { in fun_alloc_queue_irqs()
346 ntx, nrx); in fun_alloc_queue_irqs()
1465 void fun_set_ring_count(struct net_device *netdev, unsigned int ntx, in fun_set_ring_count() argument
1468 netif_set_real_num_tx_queues(netdev, ntx); in fun_set_ring_count()
1533 static int fun_max_qs(struct fun_ethdev *ed, unsigned int *ntx, in fun_max_qs() argument
1539 *ntx = 1; in fun_max_qs()
1555 *ntx = min(ed->nsqs_per_port - 1, num_online_cpus()); in fun_max_qs()
1556 *nrx = *ntx; in fun_max_qs()
1557 if (*ntx > neth) in fun_max_qs()
1558 *ntx = neth; in fun_max_qs()
1566 unsigned int ntx, nrx; in fun_queue_defaults() local
1568 ntx = min(dev->num_tx_queues, FUN_DFLT_QUEUES); in fun_queue_defaults()
1570 if (ntx <= nrx) { in fun_queue_defaults()
1571 ntx = min(ntx, nsqs / 2); in fun_queue_defaults()
1572 nrx = min(nrx, nsqs - ntx); in fun_queue_defaults()
1575 ntx = min(ntx, nsqs - nrx); in fun_queue_defaults()
1578 netif_set_real_num_tx_queues(dev, ntx); in fun_queue_defaults()
1625 int fun_change_num_queues(struct net_device *dev, unsigned int ntx, in fun_change_num_queues() argument
1628 unsigned int keep_tx = min(dev->real_num_tx_queues, ntx); in fun_change_num_queues()
1642 .ntxqs = ntx, in fun_change_num_queues()
1676 if (ntx < dev->real_num_tx_queues) in fun_change_num_queues()
1677 netif_set_real_num_tx_queues(dev, ntx); in fun_change_num_queues()
1683 if (ntx > dev->real_num_tx_queues) in fun_change_num_queues()
1684 netif_set_real_num_tx_queues(dev, ntx); in fun_change_num_queues()
1700 for (i = oldqs.ntxqs; i < ntx; i++) in fun_change_num_queues()
1715 unsigned int ntx, nrx; in fun_create_netdev() local
1718 rc = fun_max_qs(ed, &ntx, &nrx); in fun_create_netdev()
1722 netdev = alloc_etherdev_mqs(sizeof(*fp), ntx, nrx); in fun_create_netdev()
1736 fp->rx_irq_ofst = ntx; in fun_create_netdev()