Home
last modified time | relevance | path

Searched refs:tx_count (Results 1 – 25 of 79) sorted by relevance

1234

/drivers/staging/wfx/
Ddata_tx.c456 int tx_count; in wfx_tx_fill_rates() local
459 tx_count = arg->ack_failures; in wfx_tx_fill_rates()
461 tx_count += 1; // Also report success in wfx_tx_fill_rates()
466 if (tx_count < rate->count && in wfx_tx_fill_rates()
470 rate->count, tx_count); in wfx_tx_fill_rates()
471 if (tx_count <= rate->count && tx_count && in wfx_tx_fill_rates()
475 if (tx_count > rate->count) { in wfx_tx_fill_rates()
476 tx_count -= rate->count; in wfx_tx_fill_rates()
477 } else if (!tx_count) { in wfx_tx_fill_rates()
481 rate->count = tx_count; in wfx_tx_fill_rates()
[all …]
Dtraces.h378 __array(int, tx_count, 4)
402 __entry->tx_count[i] = rates[i].count;
427 __entry->tx_count[0],
429 __entry->tx_count[1],
431 __entry->tx_count[2],
433 __entry->tx_count[3],
/drivers/spi/
Dspi-au1550.c47 unsigned int tx_count; member
312 hw->tx_count = 0; in au1550_spi_dma_txrxb()
408 return hw->rx_count < hw->tx_count ? hw->rx_count : hw->tx_count; in au1550_spi_dma_txrxb()
438 hw->tx_count = hw->len - au1xxx_get_dma_residue(hw->dma_tx_ch); in au1550_spi_dma_irq_callback()
460 hw->tx_count = hw->len; in au1550_spi_dma_irq_callback()
488 hw->tx_count += (size) / 8; \
489 if (hw->tx_count >= hw->len) \
510 hw->tx_count = 0; in au1550_spi_pio_txrxb()
517 while (hw->tx_count < hw->len) { in au1550_spi_pio_txrxb()
521 if (hw->tx_count >= hw->len) { in au1550_spi_pio_txrxb()
[all …]
Dspi-img-spfi.c246 unsigned int tx_count, rx_count; in img_spfi_start_pio() local
249 tx_count = spfi_pio_write32(spfi, tx_buf, tx_bytes); in img_spfi_start_pio()
251 tx_count = spfi_pio_write8(spfi, tx_buf, tx_bytes); in img_spfi_start_pio()
258 tx_buf += tx_count; in img_spfi_start_pio()
260 tx_bytes -= tx_count; in img_spfi_start_pio()
Dspi-amd.c121 u8 tx_count) in amd_spi_set_tx_count() argument
123 amd_spi_setclear_reg8(master, AMD_SPI_TX_COUNT_REG, tx_count, 0xff); in amd_spi_set_tx_count()
Dspi-loopback-test.c825 int i, tx_count, rx_count; in spi_test_run_iter() local
837 rx_count = tx_count = 0; in spi_test_run_iter()
840 tx_count++; in spi_test_run_iter()
848 if (tx_off && (!tx_count)) { in spi_test_run_iter()
/drivers/s390/net/
Dqeth_ethtool.c207 channels->tx_count = dev->real_num_tx_queues; in qeth_get_channels()
219 if (channels->rx_count == 0 || channels->tx_count == 0) in qeth_set_channels()
221 if (channels->tx_count > card->qdio.no_out_queues) in qeth_set_channels()
229 if (channels->tx_count < QETH_IQD_MIN_TXQ) in qeth_set_channels()
236 channels->tx_count < dev->real_num_tx_queues) in qeth_set_channels()
240 rc = qeth_set_real_num_tx_queues(card, channels->tx_count); in qeth_set_channels()
242 priv->tx_wanted_queues = channels->tx_count; in qeth_set_channels()
/drivers/net/hamradio/
Dyam.c120 int tx_count; member
596 yp->tx_count = 1; in yam_start_tx()
598 yp->tx_count = (yp->bitrate * yp->txd) / 8000; in yam_start_tx()
657 if (--yp->tx_count <= 0) { in yam_tx_byte()
678 yp->tx_count = 0; in yam_tx_byte()
685 b = yp->tx_buf[yp->tx_count++]; in yam_tx_byte()
690 if (yp->tx_count >= yp->tx_len) { in yam_tx_byte()
703 yp->tx_count = (yp->bitrate * yp->txtail) / 8000; in yam_tx_byte()
705 yp->tx_count += (yp->bitrate * yp->holdd) / 8; in yam_tx_byte()
706 if (yp->tx_count == 0) in yam_tx_byte()
[all …]
Ddmascc.c200 int tx_head, tx_tail, tx_count; member
746 priv->tx_head = priv->tx_tail = priv->tx_count = 0; in scc_open()
931 priv->tx_count++; in scc_send_packet()
936 if (priv->tx_count < NUM_TX_BUF) in scc_send_packet()
1350 priv->tx_count--; in es_isr()
1356 if (priv->tx_count && in es_isr()
1422 if (priv->tx_count) { in tm_isr()
/drivers/net/ethernet/apple/
Dmacmace.c64 int tx_slot, tx_sloti, tx_count; member
155 mp->tx_count = N_TX_RING; in mace_txdma_reset()
452 if (!mp->tx_count) { in mace_xmit_start()
457 mp->tx_count--; in mace_xmit_start()
577 if (!mp->tx_count) { in mace_interrupt()
595 if (mp->tx_count) in mace_interrupt()
620 mp->tx_count = N_TX_RING; in mace_tx_timeout()
729 mp->tx_count++; in mace_dma_intr()
/drivers/net/ethernet/cavium/thunder/
Dnicvf_ethtool.c486 u32 rx_count, tx_count; in nicvf_set_ringparam() local
495 tx_count = clamp_t(u32, ring->tx_pending, in nicvf_set_ringparam()
500 if ((tx_count == qs->sq_len) && (rx_count == qs->cq_len)) in nicvf_set_ringparam()
504 qs->sq_len = rounddown_pow_of_two(tx_count); in nicvf_set_ringparam()
715 channel->tx_count = nic->tx_queues; in nicvf_get_channels()
727 if (!channel->rx_count || !channel->tx_count) in nicvf_set_channels()
731 if (channel->tx_count > nic->max_queues) in nicvf_set_channels()
735 ((channel->tx_count + channel->rx_count) > nic->max_queues)) { in nicvf_set_channels()
746 nic->tx_queues = channel->tx_count; in nicvf_set_channels()
/drivers/net/ethernet/marvell/octeontx2/nic/
Dotx2_ethtool.c269 channel->tx_count = pfvf->hw.tx_queues; in otx2_get_channels()
280 if (!channel->rx_count || !channel->tx_count) in otx2_set_channels()
292 err = otx2_set_real_num_queues(dev, channel->tx_count, in otx2_set_channels()
298 pfvf->hw.tx_queues = channel->tx_count; in otx2_set_channels()
377 u32 rx_count, tx_count; in otx2_set_ringparam() local
395 tx_count = clamp_t(u32, ring->tx_pending, in otx2_set_ringparam()
397 tx_count = Q_COUNT(Q_SIZE(tx_count, 3)); in otx2_set_ringparam()
399 if (tx_count == qs->sqe_cnt && rx_count == qs->rqe_cnt) in otx2_set_ringparam()
406 qs->sqe_cnt = tx_count; in otx2_set_ringparam()
/drivers/char/pcmcia/
Dsynclink_cs.c153 int tx_count; member
970 info->tx_count = info->tx_put = info->tx_get = 0; in tx_done()
1012 if (!info->tx_count) in tx_ready()
1016 if (!info->tx_count) in tx_ready()
1019 while (info->tx_count && fifo_count) { in tx_ready()
1020 c = min(2, min_t(int, fifo_count, min(info->tx_count, TXBUFSIZE - info->tx_get))); in tx_ready()
1028 info->tx_count -= c; in tx_ready()
1034 if (info->tx_count < WAKEUP_CHARS) in tx_ready()
1038 if (info->tx_count) in tx_ready()
1373 info->tx_count = info->tx_put = info->tx_get = 0; in mgslpc_program_hw()
[all …]
/drivers/net/ethernet/amd/xgbe/
Dxgbe-ethtool.c726 channels->tx_count = tx; in xgbe_get_channels()
734 channels->tx_count); in xgbe_print_set_channels_input()
782 if (channels->rx_count && channels->tx_count) { in xgbe_set_channels()
798 if ((channels->combined_count + channels->tx_count) > tx) { in xgbe_set_channels()
801 channels->combined_count + channels->tx_count, tx); in xgbe_set_channels()
807 tx = channels->combined_count + channels->tx_count; in xgbe_set_channels()
/drivers/tty/
Dehv_bytechan.c202 unsigned int rx_count, tx_count; in udbg_init_ehv_bc() local
207 &rx_count, &tx_count); in udbg_init_ehv_bc()
350 unsigned int rx_count, tx_count, len; in ehv_bc_tty_rx_isr() local
359 ev_byte_channel_poll(bc->handle, &rx_count, &tx_count); in ehv_bc_tty_rx_isr()
/drivers/net/wan/
Dwanxlfw.S298 clrl tx_count(%d0)
448 cmpl #TX_BUFFERS, tx_count(%d0)
478 addl #1, tx_count(%d0)
563 tx_end: tstl tx_count(%d0)
576 subl #1, tx_count(%d0)
885 tx_count: .long 0, 0, 0, 0 // currently in transmit queue label
/drivers/net/ethernet/sgi/
Dmeth.c80 unsigned long tx_read, tx_write, tx_count; member
217 priv->tx_count = priv->tx_read = priv->tx_write = 0; in meth_init_tx_ring()
473 return priv->tx_count >= TX_RING_ENTRIES - 1; in meth_tx_full()
527 priv->tx_count--; in meth_tx_cleanup()
693 priv->tx_count++; in meth_add_to_tx_ring()
/drivers/infiniband/hw/hfi1/
Diowait.h117 u32 tx_count; member
421 w->iow->tx_count++; in iowait_inc_wait_count()
Dipoib_tx.c153 int tx_count; in hfi1_ipoib_drain_tx_ring() local
164 for (tx_count = work_done; tx_count; tx_count--) { in hfi1_ipoib_drain_tx_ring()
/drivers/net/wireless/mediatek/mt76/
Dtestmode.c274 td->tx_pending = td->tx_count; in mt76_testmode_tx_start()
317 td->tx_count = 1; in mt76_testmode_init_defaults()
432 td->tx_count = nla_get_u32(tb[MT76_TM_ATTR_TX_COUNT]); in mt76_testmode_cmd()
599 if (nla_put_u32(msg, MT76_TM_ATTR_TX_COUNT, td->tx_count) || in mt76_testmode_dump()
/drivers/net/ethernet/ti/
Dcpsw_ethtool.c394 ch->tx_count = cpsw->tx_ch_num; in cpsw_get_channels()
524 if (!ch->rx_count || !ch->tx_count) in cpsw_check_ch_settings()
528 ch->tx_count > cpsw->data.channels) in cpsw_check_ch_settings()
617 ret = cpsw_update_channels_res(priv, chs->tx_count, 0, rx_handler); in cpsw_set_channels_common()
Dam65-cpsw-ethtool.c434 ch->tx_count = common->tx_ch_num; in am65_cpsw_get_channels()
442 if (!chs->rx_count || !chs->tx_count) in am65_cpsw_set_channels()
453 return am65_cpsw_nuss_update_tx_chns(common, chs->tx_count); in am65_cpsw_set_channels()
/drivers/net/wireless/st/cw1200/
Dtxrx.c899 int tx_count = arg->ack_failures; in cw1200_tx_confirm_cb() local
921 ++tx_count; in cw1200_tx_confirm_cb()
931 if (tx_count) in cw1200_tx_confirm_cb()
932 ++tx_count; in cw1200_tx_confirm_cb()
936 if (tx->status.rates[i].count >= tx_count) { in cw1200_tx_confirm_cb()
937 tx->status.rates[i].count = tx_count; in cw1200_tx_confirm_cb()
940 tx_count -= tx->status.rates[i].count; in cw1200_tx_confirm_cb()
/drivers/net/ethernet/
Dkorina.c359 int tx_count; member
435 if (lp->tx_count >= (KORINA_NUM_TDS - 2)) { in korina_send_packet()
438 if (lp->tx_count == (KORINA_NUM_TDS - 2)) in korina_send_packet()
444 lp->tx_count++; in korina_send_packet()
831 lp->tx_count--; in korina_tx()
1001 lp->tx_full = lp->tx_count = 0; in korina_alloc_ring()
/drivers/net/ethernet/emulex/benet/
Dbe_ethtool.c1227 ch->tx_count = adapter->num_tx_qs - ch->combined_count; in be_get_channels()
1245 (ch->rx_count && ch->tx_count)) in be_set_channels()
1251 (ch->tx_count && in be_set_channels()
1252 (ch->tx_count + ch->combined_count) > be_max_tx_irqs(adapter))) in be_set_channels()
1256 adapter->cfg_num_tx_irqs = ch->combined_count + ch->tx_count; in be_set_channels()

1234