/linux/drivers/net/can/spi/mcp251xfd/ |
H A D | mcp251xfd-ram.c | 66 u8 num_rx, num_tx; in can_ram_get_layout() local 71 num_tx = config->tx.def[fd_mode]; in can_ram_get_layout() 72 num_tx = can_ram_rounddown_pow_of_two(config, &config->tx, 0, num_tx); in can_ram_get_layout() 75 ram_free -= config->tx.size[fd_mode] * num_tx; in can_ram_get_layout() 80 layout->default_tx = num_tx; in can_ram_get_layout() 90 num_tx = ram_free / config->tx.size[fd_mode]; in can_ram_get_layout() 93 layout->max_tx = can_ram_rounddown_pow_of_two(config, &config->tx, 0, num_tx); in can_ram_get_layout() 130 num_tx = ram_free / config->tx.size[fd_mode]; in can_ram_get_layout() 131 num_tx = min_t(u8, ring->tx_pending, num_tx); in can_ram_get_layout() 132 num_tx = can_ram_rounddown_pow_of_two(config, &config->tx, 0, num_tx); in can_ram_get_layout() [all …]
|
/linux/tools/testing/selftests/drivers/net/hw/ |
H A D | ethtool_rmon.sh | 38 local num_tx=20000 55 $MZ $iface -q -c $num_tx -p $len -a own -b bcast -d 10us 62 expected=$([ $set = rx ] && echo $num_rx || echo $num_tx)
|
/linux/drivers/net/ethernet/ |
H A D | ethoc.c | 204 unsigned int num_tx; member 312 ethoc_write(dev, TX_BD_NUM, dev->num_tx); in ethoc_init_ring() 319 for (i = 0; i < dev->num_tx; i++) { in ethoc_init_ring() 320 if (i == dev->num_tx - 1) in ethoc_init_ring() 336 ethoc_write_bd(dev, dev->num_tx + i, &bd); in ethoc_init_ring() 339 dev->vma[dev->num_tx + i] = vma; in ethoc_init_ring() 429 entry = priv->num_tx + priv->cur_rx; in ethoc_rx() 521 entry = priv->dty_tx & (priv->num_tx-1); in ethoc_tx() 544 if ((priv->cur_tx - priv->dty_tx) <= (priv->num_tx / 2)) in ethoc_tx() 897 entry = priv->cur_tx % priv->num_tx; in ethoc_start_xmit() [all …]
|
H A D | fealnx.c | 1433 unsigned int num_tx = 0; in intr_handler() local 1546 num_tx++; in intr_handler() 1549 if (num_tx && np->free_tx_count >= 2) in intr_handler()
|
/linux/drivers/net/wireless/silabs/wfx/ |
H A D | bh.c | 238 int num_tx, num_rx; in bh_work() local 242 num_tx = bh_work_tx(wdev, 32); in bh_work() 243 stats_req += num_tx; in bh_work() 244 if (num_tx) in bh_work() 250 } while (num_rx || num_tx); in bh_work()
|
/linux/drivers/net/ethernet/ti/ |
H A D | cpsw_priv.c | 133 int num_tx, cur_budget, ch; in cpsw_tx_mq_poll() local 139 for (ch = 0, num_tx = 0; ch_map & 0xff; ch_map <<= 1, ch++) { in cpsw_tx_mq_poll() 144 if (unlikely(txv->budget > budget - num_tx)) in cpsw_tx_mq_poll() 145 cur_budget = budget - num_tx; in cpsw_tx_mq_poll() 149 num_tx += cpdma_chan_process(txv->ch, cur_budget); in cpsw_tx_mq_poll() 150 if (num_tx >= budget) in cpsw_tx_mq_poll() 154 if (num_tx < budget) { in cpsw_tx_mq_poll() 159 return num_tx; in cpsw_tx_mq_poll() 165 int num_tx; in cpsw_tx_poll() local 167 num_tx = cpdma_chan_process(cpsw->txv[0].ch, budget); in cpsw_tx_poll() [all …]
|
H A D | am65-cpsw-nuss.c | 1403 int res, num_tx = 0; in am65_cpsw_nuss_tx_compl_packets() local 1436 num_tx++; in am65_cpsw_nuss_tx_compl_packets() 1440 netdev_tx_completed_queue(netif_txq, num_tx, total_bytes); in am65_cpsw_nuss_tx_compl_packets() 1445 dev_dbg(dev, "%s:%u pkt:%d\n", __func__, chn, num_tx); in am65_cpsw_nuss_tx_compl_packets() 1447 return num_tx; in am65_cpsw_nuss_tx_compl_packets() 1462 int res, num_tx = 0; in am65_cpsw_nuss_tx_compl_packets_2g() local 1493 num_tx++; in am65_cpsw_nuss_tx_compl_packets_2g() 1496 if (!num_tx) in am65_cpsw_nuss_tx_compl_packets_2g() 1501 netdev_tx_completed_queue(netif_txq, num_tx, total_bytes); in am65_cpsw_nuss_tx_compl_packets_2g() 1505 dev_dbg(dev, "%s:%u pkt:%d\n", __func__, chn, num_tx); in am65_cpsw_nuss_tx_compl_packets_2g() [all …]
|
H A D | am65-cpsw-nuss.h | 228 int num_tx, int num_rx);
|
/linux/drivers/net/ethernet/brocade/bna/ |
H A D | bnad.h | 95 #define BNAD_NUM_TXQ (bnad->num_tx * bnad->num_txq_per_tx) 292 u32 num_tx; member
|
H A D | bnad_ethtool.c | 486 for (i = 0; i < bnad->num_tx; i++) { in bnad_set_ringparam() 650 for (i = 0; i < bnad->num_tx; i++) { in bnad_get_strings() 695 for (i = 0; i < bnad->num_tx; i++) { in bnad_get_stats_count_locked() 773 for (i = 0; i < bnad->num_tx; i++) { in bnad_per_q_stats_fill()
|
H A D | bnad.c | 825 for (i = 0; i < bnad->num_tx; i++) { in bnad_isr() 950 for (tx_id = 0; tx_id < bnad->num_tx; tx_id++) { in bnad_cb_ethport_link_status() 1473 (bnad->num_tx * bnad->num_txq_per_tx) + in bnad_txrx_irq_alloc() 2407 for (i = 0; i < bnad->num_tx; i++) { in bnad_netdev_qstats_fill() 2528 bnad->num_tx = 1; in bnad_q_num_init() 2543 if ((msix_vectors >= (bnad->num_tx * bnad->num_txq_per_tx) + in bnad_q_num_adjust() 2547 (bnad->num_tx * bnad->num_txq_per_tx) - in bnad_q_num_adjust() 3482 bnad->msix_num = (bnad->num_tx * bnad->num_txq_per_tx) + in bnad_init()
|
/linux/drivers/net/ethernet/ti/icssg/ |
H A D | icssg_common.c | 138 int res, num_tx = 0; in emac_tx_complete_packets() local 174 num_tx++; in emac_tx_complete_packets() 177 if (!num_tx) in emac_tx_complete_packets() 181 netdev_tx_completed_queue(netif_txq, num_tx, total_bytes); in emac_tx_complete_packets() 195 return num_tx; in emac_tx_complete_packets()
|
/linux/drivers/net/ethernet/meta/fbnic/ |
H A D | fbnic_txrx.c | 1158 unsigned int num_tx = fbn->num_tx_queues; in fbnic_alloc_napi_vectors() local 1165 if (num_napi < FBNIC_MAX_TXQS && num_napi == num_tx + num_rx) { in fbnic_alloc_napi_vectors() 1166 while (num_tx) { in fbnic_alloc_napi_vectors() 1174 num_tx--; in fbnic_alloc_napi_vectors() 1182 while (num_rx | num_tx) { in fbnic_alloc_napi_vectors() 1183 int tqpv = DIV_ROUND_UP(num_tx, num_napi - txq_idx); in fbnic_alloc_napi_vectors() 1192 num_tx -= tqpv; in fbnic_alloc_napi_vectors()
|
/linux/drivers/net/dsa/mv88e6xxx/ |
H A D | chip.c | 6852 int num_tx, int nth) in mv88e6xxx_lag_set_port_mask() argument 6857 num_tx = num_tx <= 8 ? num_tx : 8; in mv88e6xxx_lag_set_port_mask() 6858 if (nth < num_tx) in mv88e6xxx_lag_set_port_mask() 6859 active = mv88e6xxx_lag_mask_table[num_tx - 1][nth]; in mv88e6xxx_lag_set_port_mask() 6870 unsigned int id, num_tx; in mv88e6xxx_lag_sync_masks() local 6899 num_tx = 0; in mv88e6xxx_lag_sync_masks() 6902 num_tx++; in mv88e6xxx_lag_sync_masks() 6905 if (!num_tx) in mv88e6xxx_lag_sync_masks() 6915 num_tx, nth); in mv88e6xxx_lag_sync_masks()
|
/linux/drivers/net/wireless/ath/ath6kl/ |
H A D | debug.c | 1724 tx_wakeup, num_tx; in ath6kl_power_params_write() local 1759 if (kstrtou16(token, 0, &num_tx)) in ath6kl_power_params_write() 1763 dtim, tx_wakeup, num_tx, 0); in ath6kl_power_params_write()
|
/linux/drivers/net/ethernet/freescale/ |
H A D | fec_main.c | 4214 fec_enet_get_queue_num(struct platform_device *pdev, int *num_tx, int *num_rx) in fec_enet_get_queue_num() argument 4218 *num_tx = *num_rx = 1; in fec_enet_get_queue_num() 4224 of_property_read_u32(np, "fsl,num-tx-queues", num_tx); in fec_enet_get_queue_num() 4228 if (*num_tx < 1 || *num_tx > FEC_ENET_MAX_TX_QS) { in fec_enet_get_queue_num() 4230 *num_tx); in fec_enet_get_queue_num() 4231 *num_tx = 1; in fec_enet_get_queue_num()
|
/linux/drivers/net/ |
H A D | virtio_net.c | 4373 u32 num_cq, num_rx, num_tx; in virtnet_fill_total_fields() local 4377 num_tx = ctx->desc_num[VIRTNET_Q_TYPE_TX]; in virtnet_fill_total_fields() 4379 first_rx_q = ctx->data + num_rx + num_tx + num_cq; in virtnet_fill_total_fields() 4388 stats_sum_queue(data, num_tx, first_tx_q, vi->curr_queue_pairs); in virtnet_fill_total_fields() 4502 u32 queue_type, num_rx, num_tx, num_cq; in virtnet_fill_stats() local 4514 num_tx = ctx->desc_num[VIRTNET_Q_TYPE_TX]; in virtnet_fill_stats() 4520 offset = num_rx + num_tx; in virtnet_fill_stats() 4523 offset += num_cq + num_rx * vi->curr_queue_pairs + num_tx * (qid / 2); in virtnet_fill_stats()
|