Home
last modified time | relevance | path

Searched refs:num_rx (Results 1 – 16 of 16) sorted by relevance

/linux-6.12.1/drivers/net/can/spi/mcp251xfd/
Dmcp251xfd-ram.c66 u8 num_rx, num_tx; in can_ram_get_layout() local
77 num_rx = ram_free / config->rx.size[fd_mode]; in can_ram_get_layout()
79 layout->default_rx = can_ram_rounddown_pow_of_two(config, &config->rx, 0, num_rx); in can_ram_get_layout()
86 num_rx = ram_free / config->rx.size[fd_mode]; in can_ram_get_layout()
92 layout->max_rx = can_ram_rounddown_pow_of_two(config, &config->rx, 0, num_rx); in can_ram_get_layout()
105 num_rx = ring->rx_pending; in can_ram_get_layout()
106 if (num_rx > layout->max_rx) in can_ram_get_layout()
107 num_rx = layout->default_rx; in can_ram_get_layout()
109 num_rx = can_ram_rounddown_pow_of_two(config, &config->rx, 0, num_rx); in can_ram_get_layout()
119 max = min_t(u8, num_rx / 2, config->fifo_depth); in can_ram_get_layout()
[all …]
/linux-6.12.1/tools/testing/selftests/drivers/net/hw/
Dethtool_rmon.sh37 local num_rx=10000
54 $MZ $neigh -q -c $num_rx -p $len -a own -b bcast -d 10us
62 expected=$([ $set = rx ] && echo $num_rx || echo $num_tx)
/linux-6.12.1/drivers/net/wireless/silabs/wfx/
Dbh.c238 int num_tx, num_rx; in bh_work() local
246 num_rx = bh_work_rx(wdev, 32, &stats_cnf); in bh_work()
247 stats_ind += num_rx; in bh_work()
248 if (num_rx) in bh_work()
250 } while (num_rx || num_tx); in bh_work()
/linux-6.12.1/drivers/net/ethernet/ti/
Dcpsw_priv.c183 int num_rx, cur_budget, ch; in cpsw_rx_mq_poll() local
189 for (ch = 0, num_rx = 0; ch_map; ch_map >>= 1, ch++) { in cpsw_rx_mq_poll()
194 if (unlikely(rxv->budget > budget - num_rx)) in cpsw_rx_mq_poll()
195 cur_budget = budget - num_rx; in cpsw_rx_mq_poll()
199 num_rx += cpdma_chan_process(rxv->ch, cur_budget); in cpsw_rx_mq_poll()
200 if (num_rx >= budget) in cpsw_rx_mq_poll()
204 if (num_rx < budget) { in cpsw_rx_mq_poll()
205 napi_complete_done(napi_rx, num_rx); in cpsw_rx_mq_poll()
209 return num_rx; in cpsw_rx_mq_poll()
215 int num_rx; in cpsw_rx_poll() local
[all …]
Dam65-cpsw-nuss.h228 int num_tx, int num_rx);
Dam65-cpsw-nuss.c1277 int num_rx = 0; in am65_cpsw_nuss_rx_poll() local
1286 num_rx++; in am65_cpsw_nuss_rx_poll()
1292 dev_dbg(common->dev, "%s num_rx:%d %d\n", __func__, num_rx, budget); in am65_cpsw_nuss_rx_poll()
1294 if (num_rx < budget && napi_complete_done(napi_rx, num_rx)) { in am65_cpsw_nuss_rx_poll()
1307 return num_rx; in am65_cpsw_nuss_rx_poll()
3384 int num_tx, int num_rx) in am65_cpsw_nuss_update_tx_rx_chns() argument
3392 common->rx_ch_num_flows = num_rx; in am65_cpsw_nuss_update_tx_rx_chns()
/linux-6.12.1/drivers/net/ethernet/
Dethoc.c208 unsigned int num_rx; member
332 for (i = 0; i < dev->num_rx; i++) { in ethoc_init_ring()
333 if (i == dev->num_rx - 1) in ethoc_init_ring()
473 if (++priv->cur_rx == priv->num_rx) in ethoc_rx()
959 ring->rx_pending = priv->num_rx; in ethoc_get_ringparam()
986 priv->num_rx = ring->rx_pending; in ethoc_set_ringparam()
1134 priv->num_rx = num_bd - priv->num_tx; in ethoc_probe()
1137 priv->num_tx, priv->num_rx); in ethoc_probe()
/linux-6.12.1/drivers/net/ethernet/ti/icssg/
Dicssg_common.c903 int num_rx = 0; in icssg_napi_rx_poll() local
908 cur_budget = budget - num_rx; in icssg_napi_rx_poll()
914 num_rx++; in icssg_napi_rx_poll()
917 if (num_rx >= budget) in icssg_napi_rx_poll()
921 if (num_rx < budget && napi_complete_done(napi_rx, num_rx)) { in icssg_napi_rx_poll()
931 return num_rx; in icssg_napi_rx_poll()
/linux-6.12.1/drivers/net/ethernet/brocade/bna/
Dbnad_ethtool.c458 for (i = 0; i < bnad->num_rx; i++) { in bnad_set_ringparam()
629 for (i = 0; i < bnad->num_rx; i++) { in bnad_get_strings()
637 for (i = 0; i < bnad->num_rx; i++) { in bnad_get_strings()
683 for (i = 0; i < bnad->num_rx; i++) { in bnad_get_stats_count_locked()
710 for (i = 0; i < bnad->num_rx; i++) { in bnad_per_q_stats_fill()
735 for (i = 0; i < bnad->num_rx; i++) { in bnad_per_q_stats_fill()
Dbnad.h96 #define BNAD_NUM_RXP (bnad->num_rx * bnad->num_rxp_per_rx)
293 u32 num_rx; member
Dbnad.c833 for (i = 0; i < bnad->num_rx; i++) { in bnad_isr()
1755 for (i = 0; i < bnad->num_rx; i++) { in bnad_dim_timeout()
2107 for (rx_id = 0; rx_id < bnad->num_rx; rx_id++) { in bnad_reinit_rx()
2118 for (rx_id = 0; rx_id < bnad->num_rx; rx_id++) { in bnad_reinit_rx()
2310 for (i = 0; i < bnad->num_rx; i++) { in bnad_rx_coalescing_timeo_set()
2387 for (i = 0; i < bnad->num_rx; i++) { in bnad_netdev_qstats_fill()
2527 bnad->num_rx = 1; in bnad_q_num_init()
3386 for (i = 0; i < bnad->num_rx; i++) { in bnad_netpoll()
3483 (bnad->num_rx * bnad->num_rxp_per_rx) + in bnad_init()
/linux-6.12.1/drivers/net/ethernet/meta/fbnic/
Dfbnic_rpc.c13 unsigned int num_rx = fbn->num_rx_queues; in fbnic_reset_indir_tbl() local
17 fbn->indir_tbl[0][i] = ethtool_rxfh_indir_default(i, num_rx); in fbnic_reset_indir_tbl()
18 fbn->indir_tbl[1][i] = ethtool_rxfh_indir_default(i, num_rx); in fbnic_reset_indir_tbl()
Dfbnic_txrx.c1159 unsigned int num_rx = fbn->num_rx_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()
1182 while (num_rx | num_tx) { in fbnic_alloc_napi_vectors()
1184 int rqpv = DIV_ROUND_UP(num_rx, num_napi - rxq_idx); in fbnic_alloc_napi_vectors()
1195 num_rx -= rqpv; in fbnic_alloc_napi_vectors()
/linux-6.12.1/drivers/net/
Dvirtio_net.c4373 u32 num_cq, num_rx, num_tx; in virtnet_fill_total_fields() local
4376 num_rx = ctx->desc_num[VIRTNET_Q_TYPE_RX]; in virtnet_fill_total_fields()
4379 first_rx_q = ctx->data + num_rx + num_tx + num_cq; in virtnet_fill_total_fields()
4380 first_tx_q = first_rx_q + vi->curr_queue_pairs * num_rx; in virtnet_fill_total_fields()
4384 stats_sum_queue(data, num_rx, first_rx_q, vi->curr_queue_pairs); in virtnet_fill_total_fields()
4386 data = ctx->data + num_rx; in virtnet_fill_total_fields()
4502 u32 queue_type, num_rx, num_tx, num_cq; in virtnet_fill_stats() local
4513 num_rx = ctx->desc_num[VIRTNET_Q_TYPE_RX]; 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()
[all …]
/linux-6.12.1/drivers/net/ethernet/freescale/
Dfec_main.c4214 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()
4226 of_property_read_u32(np, "fsl,num-rx-queues", num_rx); in fec_enet_get_queue_num()
4235 if (*num_rx < 1 || *num_rx > FEC_ENET_MAX_RX_QS) { in fec_enet_get_queue_num()
4237 *num_rx); in fec_enet_get_queue_num()
4238 *num_rx = 1; in fec_enet_get_queue_num()
/linux-6.12.1/drivers/net/ethernet/emulex/benet/
Dbe_cmds.h1588 u32 num_rx; member