| /linux/net/sched/ |
| H A D | sch_mq.c | 52 unsigned int ntx; in mq_destroy_common() local 56 for (ntx = 0; ntx < dev->num_tx_queues && priv->qdiscs[ntx]; ntx++) in mq_destroy_common() 57 qdisc_put(priv->qdiscs[ntx]); in mq_destroy_common() 76 unsigned int ntx; in mq_init_common() local 89 for (ntx = 0; ntx < dev->num_tx_queues; ntx++) { in mq_init_common() 90 dev_queue = netdev_get_tx_queue(dev, ntx); in mq_init_common() 92 qdisc_ops ?: get_default_qdisc_ops(dev, ntx), in mq_init_common() 94 TC_H_MIN(ntx + 1)), in mq_init_common() 98 priv->qdiscs[ntx] = qdisc; in mq_init_common() 125 unsigned int ntx; in mq_attach() local [all …]
|
| H A D | sch_mqprio.c | 99 unsigned int ntx; in mqprio_destroy() local 102 for (ntx = 0; in mqprio_destroy() 103 ntx < dev->num_tx_queues && priv->qdiscs[ntx]; in mqprio_destroy() 104 ntx++) in mqprio_destroy() 105 qdisc_put(priv->qdiscs[ntx]); in mqprio_destroy() 436 unsigned int ntx; in mqprio_attach() local 439 for (ntx = 0; ntx < dev->num_tx_queues; ntx++) { in mqprio_attach() 440 qdisc = priv->qdiscs[ntx]; in mqprio_attach() 444 if (ntx < dev->real_num_tx_queues) in mqprio_attach() 455 unsigned long ntx = cl - 1; in mqprio_queue_get() local [all …]
|
| H A D | sch_htb.c | 1058 unsigned int ntx; in htb_init() local 1120 for (ntx = 0; ntx < q->num_direct_qdiscs; ntx++) { in htb_init() 1121 struct netdev_queue *dev_queue = netdev_get_tx_queue(dev, ntx); in htb_init() 1130 q->direct_qdiscs[ntx] = qdisc; in htb_init() 1158 unsigned int ntx; in htb_attach_offload() local 1160 for (ntx = 0; ntx < q->num_direct_qdiscs; ntx++) { in htb_attach_offload() 1161 struct Qdisc *old, *qdisc = q->direct_qdiscs[ntx]; in htb_attach_offload() 1167 for (ntx = q->num_direct_qdiscs; ntx < dev->num_tx_queues; ntx++) { in htb_attach_offload() 1168 struct netdev_queue *dev_queue = netdev_get_tx_queue(dev, ntx); in htb_attach_offload() 1181 unsigned int ntx; in htb_attach_software() local [all …]
|
| H A D | sch_taprio.c | 2131 unsigned int ntx; in taprio_attach() local 2134 for (ntx = 0; ntx < dev->num_tx_queues; ntx++) { in taprio_attach() 2135 struct netdev_queue *dev_queue = netdev_get_tx_queue(dev, ntx); in taprio_attach() 2139 struct Qdisc *qdisc = q->qdiscs[ntx]; in taprio_attach() 2167 unsigned long ntx = cl - 1; in taprio_queue_get() local 2169 if (ntx >= dev->num_tx_queues) in taprio_queue_get() 2172 return netdev_get_tx_queue(dev, ntx); in taprio_queue_get() 2451 unsigned int ntx = cl - 1; in taprio_leaf() local 2453 if (ntx >= dev->num_tx_queues) in taprio_leaf() 2456 return q->qdiscs[ntx]; in taprio_leaf() [all …]
|
| H A D | sch_cake.c | 2023 unsigned int ntx; in cake_dequeue() local 2025 for (ntx = 0; ntx < dev->num_tx_queues; ntx++) { in cake_dequeue() 2026 other_sch = rcu_dereference(netdev_get_tx_queue(dev, ntx)->qdisc_sleeping); in cake_dequeue() 3258 int ret, ntx; in cake_mq_init() local 3272 for (ntx = 0; ntx < dev->num_tx_queues; ntx++) in cake_mq_init() 3273 cake_config_replace(priv->mq_priv.qdiscs[ntx], &priv->cake_config); in cake_mq_init() 3292 unsigned int ntx; in cake_mq_change() local 3299 for (ntx = 0; ntx < dev->num_tx_queues; ntx++) { in cake_mq_change() 3300 struct Qdisc *chld = rtnl_dereference(netdev_get_tx_queue(dev, ntx)->qdisc_sleeping); in cake_mq_change()
|
| /linux/drivers/net/ethernet/fungible/funeth/ |
| H A D | funeth_main.c | 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() 1450 void fun_set_ring_count(struct net_device *netdev, unsigned int ntx, in fun_set_ring_count() argument 1453 netif_set_real_num_tx_queues(netdev, ntx); in fun_set_ring_count() 1518 static int fun_max_qs(struct fun_ethdev *ed, unsigned int *ntx, in fun_max_qs() argument 1524 *ntx = 1; in fun_max_qs() 1540 *ntx = min(ed->nsqs_per_port - 1, num_online_cpus()); in fun_max_qs() 1541 *nrx = *ntx; in fun_max_qs() 1542 if (*ntx > neth) in fun_max_qs() [all …]
|
| /linux/drivers/net/wireless/realtek/rtw89/ |
| H A D | phy.c | 2529 u8 bw, u8 ntx, u8 rs, u8 bf, u8 ch) in rtw89_phy_read_txpwr_limit() argument 2548 .ntx = ntx, in rtw89_phy_read_txpwr_limit() 2560 da_lmt = (*rule_da_2ghz->lmt)[bw][ntx][rs][bf][regd][ch_idx]; in rtw89_phy_read_txpwr_limit() 2562 lmt = (*rule_2ghz->lmt)[bw][ntx][rs][bf][regd][ch_idx]; in rtw89_phy_read_txpwr_limit() 2566 lmt = (*rule_2ghz->lmt)[bw][ntx][rs][bf][RTW89_WW][ch_idx]; in rtw89_phy_read_txpwr_limit() 2570 da_lmt = (*rule_da_5ghz->lmt)[bw][ntx][rs][bf][regd][ch_idx]; in rtw89_phy_read_txpwr_limit() 2572 lmt = (*rule_5ghz->lmt)[bw][ntx][rs][bf][regd][ch_idx]; in rtw89_phy_read_txpwr_limit() 2576 lmt = (*rule_5ghz->lmt)[bw][ntx][rs][bf][RTW89_WW][ch_idx]; in rtw89_phy_read_txpwr_limit() 2580 da_lmt = (*rule_da_6ghz->lmt)[bw][ntx][rs][bf][regd][reg6][ch_idx]; in rtw89_phy_read_txpwr_limit() 2582 lmt = (*rule_6ghz->lmt)[bw][ntx][rs][bf][regd][reg6][ch_idx]; in rtw89_phy_read_txpwr_limit() [all …]
|
| H A D | sar.c | 177 if (sar_parm->ntx == RTW89_2TX) in rtw89_query_sar_config_acpi()
|
| /linux/drivers/spi/ |
| H A D | spi-cadence.c | 395 static void cdns_spi_process_fifo(struct cdns_spi *xspi, int ntx, int nrx) in cdns_spi_process_fifo() argument 397 ntx = clamp(ntx, 0, xspi->tx_bytes); in cdns_spi_process_fifo() 400 xspi->tx_bytes -= ntx; in cdns_spi_process_fifo() 403 while (ntx || nrx) { in cdns_spi_process_fifo() 409 if (ntx) { in cdns_spi_process_fifo() 411 ntx--; in cdns_spi_process_fifo()
|
| /linux/drivers/net/ethernet/davicom/ |
| H A D | dm9051.c | 842 int ntx = 0; in dm9051_loop_tx() local 851 ntx++; in dm9051_loop_tx() 868 return ntx; in dm9051_loop_tx()
|
| /linux/include/net/ |
| H A D | sch_generic.h | 621 get_default_qdisc_ops(const struct net_device *dev, int ntx) in qdisc_class_hash() 623 return ntx < dev->real_num_tx_queues ? in qdisc_class_hash() 601 get_default_qdisc_ops(const struct net_device * dev,int ntx) get_default_qdisc_ops() argument
|
| /linux/drivers/atm/ |
| H A D | lanai.c | 1711 int ntx = 0; in run_service() local 1715 ntx += handle_service(lanai, in run_service() 1721 if (ntx != 0) { in run_service()
|