Home
last modified time | relevance | path

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

123

/Linux-v5.4/drivers/spi/
Dspi-au1550.c47 unsigned tx_count; member
313 hw->tx_count = 0; in au1550_spi_dma_txrxb()
409 return hw->rx_count < hw->tx_count ? hw->rx_count : hw->tx_count; in au1550_spi_dma_txrxb()
439 hw->tx_count = hw->len - au1xxx_get_dma_residue(hw->dma_tx_ch); in au1550_spi_dma_irq_callback()
461 hw->tx_count = hw->len; in au1550_spi_dma_irq_callback()
489 hw->tx_count += (size) / 8; \
490 if (hw->tx_count >= hw->len) \
511 hw->tx_count = 0; in au1550_spi_pio_txrxb()
518 while (hw->tx_count < hw->len) { in au1550_spi_pio_txrxb()
522 if (hw->tx_count >= hw->len) { in au1550_spi_pio_txrxb()
[all …]
Dspi-img-spfi.c251 unsigned int tx_count, rx_count; in img_spfi_start_pio() local
254 tx_count = spfi_pio_write32(spfi, tx_buf, tx_bytes); in img_spfi_start_pio()
256 tx_count = spfi_pio_write8(spfi, tx_buf, tx_bytes); in img_spfi_start_pio()
263 tx_buf += tx_count; in img_spfi_start_pio()
265 tx_bytes -= tx_count; in img_spfi_start_pio()
Dspi-loopback-test.c818 int i, tx_count, rx_count; in spi_test_run_iter() local
830 rx_count = tx_count = 0; in spi_test_run_iter()
833 tx_count++; in spi_test_run_iter()
841 if (tx_off && (!tx_count)) { in spi_test_run_iter()
/Linux-v5.4/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
745 priv->tx_head = priv->tx_tail = priv->tx_count = 0; in scc_open()
933 priv->tx_count++; in scc_send_packet()
938 if (priv->tx_count < NUM_TX_BUF) in scc_send_packet()
1352 priv->tx_count--; in es_isr()
1358 if (priv->tx_count && in es_isr()
1424 if (priv->tx_count) { in tm_isr()
/Linux-v5.4/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()
/Linux-v5.4/drivers/tty/serial/
Difx6x60.c409 static void ifx_spi_setup_spi_header(unsigned char *txbuffer, int tx_count, in ifx_spi_setup_spi_header() argument
412 *(u16 *)(txbuffer) = tx_count; in ifx_spi_setup_spi_header()
433 int tx_count; in ifx_spi_prepare_tx_buffer() local
440 tx_count = IFX_SPI_HEADER_OVERHEAD; in ifx_spi_prepare_tx_buffer()
459 tx_count += temp_count; in ifx_spi_prepare_tx_buffer()
470 tx_count-IFX_SPI_HEADER_OVERHEAD, in ifx_spi_prepare_tx_buffer()
473 ifx_dev->swap_buf((ifx_dev->tx_buffer), tx_count, in ifx_spi_prepare_tx_buffer()
475 return tx_count; in ifx_spi_prepare_tx_buffer()
495 int tx_count; in ifx_spi_write() local
499 tx_count = kfifo_in(&ifx_dev->tx_fifo, tmp_buf, count); in ifx_spi_write()
[all …]
/Linux-v5.4/drivers/net/ethernet/cavium/thunder/
Dnicvf_ethtool.c485 u32 rx_count, tx_count; in nicvf_set_ringparam() local
494 tx_count = clamp_t(u32, ring->tx_pending, in nicvf_set_ringparam()
499 if ((tx_count == qs->sq_len) && (rx_count == qs->cq_len)) in nicvf_set_ringparam()
503 qs->sq_len = rounddown_pow_of_two(tx_count); in nicvf_set_ringparam()
714 channel->tx_count = nic->tx_queues; in nicvf_get_channels()
726 if (!channel->rx_count || !channel->tx_count) in nicvf_set_channels()
730 if (channel->tx_count > nic->max_queues) in nicvf_set_channels()
734 ((channel->tx_count + channel->rx_count) > nic->max_queues)) { in nicvf_set_channels()
745 nic->tx_queues = channel->tx_count; in nicvf_set_channels()
/Linux-v5.4/tools/include/uapi/linux/
Dethtool.h46 __u32 tx_count; member
/Linux-v5.4/drivers/tty/
Dehv_bytechan.c187 unsigned int rx_count, tx_count; in udbg_init_ehv_bc() local
192 &rx_count, &tx_count); in udbg_init_ehv_bc()
335 unsigned int rx_count, tx_count, len; in ehv_bc_tty_rx_isr() local
344 ev_byte_channel_poll(bc->handle, &rx_count, &tx_count); in ehv_bc_tty_rx_isr()
Dsynclinkmp.c170 int tx_count; member
932 if (info->tx_count) { in write()
935 tx_load_dma_buffer(info, info->tx_buf, info->tx_count); in write()
938 ret = info->tx_count = count; in write()
945 min(info->max_frame_size - info->tx_count - 1, in write()
956 info->tx_count += c; in write()
966 ret = info->tx_count = 0; in write()
969 tx_load_dma_buffer(info, info->tx_buf, info->tx_count); in write()
972 if (info->tx_count && !tty->stopped && !tty->hw_stopped) { in write()
1010 if (info->tx_count < info->max_frame_size - 1) { in put_char()
[all …]
/Linux-v5.4/drivers/char/pcmcia/
Dsynclink_cs.c153 int tx_count; member
972 info->tx_count = info->tx_put = info->tx_get = 0; in tx_done()
1014 if (!info->tx_count) in tx_ready()
1018 if (!info->tx_count) in tx_ready()
1021 while (info->tx_count && fifo_count) { in tx_ready()
1022 c = min(2, min_t(int, fifo_count, min(info->tx_count, TXBUFSIZE - info->tx_get))); in tx_ready()
1030 info->tx_count -= c; in tx_ready()
1036 if (info->tx_count < WAKEUP_CHARS) in tx_ready()
1040 if (info->tx_count) in tx_ready()
1375 info->tx_count = info->tx_put = info->tx_get = 0; in mgslpc_program_hw()
[all …]
/Linux-v5.4/drivers/net/ethernet/amd/xgbe/
Dxgbe-ethtool.c742 channels->tx_count = tx; in xgbe_get_channels()
750 channels->tx_count); in xgbe_print_set_channels_input()
798 if (channels->rx_count && channels->tx_count) { in xgbe_set_channels()
814 if ((channels->combined_count + channels->tx_count) > tx) { in xgbe_set_channels()
817 channels->combined_count + channels->tx_count, tx); in xgbe_set_channels()
823 tx = channels->combined_count + channels->tx_count; in xgbe_set_channels()
/Linux-v5.4/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
/Linux-v5.4/drivers/infiniband/hw/hfi1/
Diowait.h158 u32 tx_count; member
462 w->iow->tx_count++; in iowait_inc_wait_count()
/Linux-v5.4/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()
/Linux-v5.4/drivers/net/ethernet/google/gve/
Dgve_ethtool.c174 cmd->tx_count = priv->tx_cfg.num_queues; in gve_get_channels()
186 int new_tx = cmd->tx_count; in gve_set_channels()
/Linux-v5.4/drivers/net/ethernet/ti/
Dcpsw_ethtool.c391 ch->tx_count = cpsw->tx_ch_num; in cpsw_get_channels()
521 if (!ch->rx_count || !ch->tx_count) in cpsw_check_ch_settings()
525 ch->tx_count > cpsw->data.channels) in cpsw_check_ch_settings()
614 ret = cpsw_update_channels_res(priv, chs->tx_count, 0, rx_handler); in cpsw_set_channels_common()
/Linux-v5.4/arch/powerpc/include/asm/
Depapr_hcalls.h369 unsigned int *rx_count, unsigned int *tx_count) in ev_byte_channel_poll() argument
385 *tx_count = r5; in ev_byte_channel_poll()
/Linux-v5.4/drivers/net/ethernet/
Dkorina.c125 int tx_count; member
212 if (lp->tx_count >= (KORINA_NUM_TDS - 2)) { in korina_send_packet()
215 if (lp->tx_count == (KORINA_NUM_TDS - 2)) in korina_send_packet()
226 lp->tx_count++; in korina_send_packet()
587 lp->tx_count--; in korina_tx()
756 lp->tx_full = lp->tx_count = 0; in korina_alloc_ring()
/Linux-v5.4/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()
/Linux-v5.4/drivers/net/ethernet/emulex/benet/
Dbe_ethtool.c1224 ch->tx_count = adapter->num_tx_qs - ch->combined_count; in be_get_channels()
1242 (ch->rx_count && ch->tx_count)) in be_set_channels()
1248 (ch->tx_count && in be_set_channels()
1249 (ch->tx_count + ch->combined_count) > be_max_tx_irqs(adapter))) in be_set_channels()
1253 adapter->cfg_num_tx_irqs = ch->combined_count + ch->tx_count; in be_set_channels()
/Linux-v5.4/drivers/net/ethernet/ibm/emac/
Dmal.h285 u32 tx_count; member
/Linux-v5.4/drivers/net/wireless/intersil/hostap/
Dhostap_ap.h72 u32 tx_count[WLAN_RATE_COUNT]; /* number of frames sent (per rate) */ member
/Linux-v5.4/drivers/net/ethernet/cavium/liquidio/
Dlio_ethtool.c502 u32 max_rx = 0, max_tx = 0, tx_count = 0, rx_count = 0; in lio_ethtool_get_channels() local
511 tx_count = CFG_GET_NUM_TXQS_NIC_IF(conf6x, lio->ifidx); in lio_ethtool_get_channels()
536 channel->tx_count = tx_count; in lio_ethtool_get_channels()
616 channel->rx_count || channel->tx_count) in lio_ethtool_set_channels()
1259 u32 rx_count, tx_count, rx_count_old, tx_count_old; in lio_ethtool_set_ringparam() local
1272 tx_count = clamp_t(u32, ering->tx_pending, CN23XX_MIN_IQ_DESCRIPTORS, in lio_ethtool_set_ringparam()
1278 if (rx_count == rx_count_old && tx_count == tx_count_old) in lio_ethtool_set_ringparam()
1289 if (tx_count != tx_count_old) in lio_ethtool_set_ringparam()
1291 tx_count); in lio_ethtool_set_ringparam()
1307 if (tx_count != tx_count_old) in lio_ethtool_set_ringparam()

123