Home
last modified time | relevance | path

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

123

/Linux-v4.19/drivers/spi/
Dspi-au1550.c56 unsigned tx_count; member
322 hw->tx_count = 0; in au1550_spi_dma_txrxb()
418 return hw->rx_count < hw->tx_count ? hw->rx_count : hw->tx_count; in au1550_spi_dma_txrxb()
448 hw->tx_count = hw->len - au1xxx_get_dma_residue(hw->dma_tx_ch); in au1550_spi_dma_irq_callback()
470 hw->tx_count = hw->len; in au1550_spi_dma_irq_callback()
498 hw->tx_count += (size) / 8; \
499 if (hw->tx_count >= hw->len) \
520 hw->tx_count = 0; in au1550_spi_pio_txrxb()
527 while (hw->tx_count < hw->len) { in au1550_spi_pio_txrxb()
531 if (hw->tx_count >= hw->len) { in au1550_spi_pio_txrxb()
[all …]
Dspi-uniphier.c293 unsigned int tx_count; in uniphier_spi_fill_tx_fifo() local
296 tx_count = DIV_ROUND_UP(priv->tx_bytes, in uniphier_spi_fill_tx_fifo()
298 tx_count = min(tx_count, SSI_FIFO_DEPTH); in uniphier_spi_fill_tx_fifo()
303 val |= FIELD_PREP(SSI_FC_TXFTH_MASK, tx_count); in uniphier_spi_fill_tx_fifo()
304 val |= FIELD_PREP(SSI_FC_RXFTH_MASK, tx_count); in uniphier_spi_fill_tx_fifo()
307 while (tx_count--) in uniphier_spi_fill_tx_fifo()
Dspi-img-spfi.c254 unsigned int tx_count, rx_count; in img_spfi_start_pio() local
257 tx_count = spfi_pio_write32(spfi, tx_buf, tx_bytes); in img_spfi_start_pio()
259 tx_count = spfi_pio_write8(spfi, tx_buf, tx_bytes); in img_spfi_start_pio()
266 tx_buf += tx_count; in img_spfi_start_pio()
268 tx_bytes -= tx_count; in img_spfi_start_pio()
Dspi-loopback-test.c827 int i, tx_count, rx_count; in spi_test_run_iter() local
839 rx_count = tx_count = 0; in spi_test_run_iter()
842 tx_count++; in spi_test_run_iter()
850 if (tx_off && (!tx_count)) { in spi_test_run_iter()
/Linux-v4.19/drivers/net/hamradio/
Dyam.c135 int tx_count; member
611 yp->tx_count = 1; in yam_start_tx()
613 yp->tx_count = (yp->bitrate * yp->txd) / 8000; in yam_start_tx()
672 if (--yp->tx_count <= 0) { in yam_tx_byte()
693 yp->tx_count = 0; in yam_tx_byte()
700 b = yp->tx_buf[yp->tx_count++]; in yam_tx_byte()
705 if (yp->tx_count >= yp->tx_len) { in yam_tx_byte()
718 yp->tx_count = (yp->bitrate * yp->txtail) / 8000; in yam_tx_byte()
720 yp->tx_count += (yp->bitrate * yp->holdd) / 8; in yam_tx_byte()
721 if (yp->tx_count == 0) in yam_tx_byte()
[all …]
Ddmascc.c213 int tx_head, tx_tail, tx_count; member
758 priv->tx_head = priv->tx_tail = priv->tx_count = 0; in scc_open()
946 priv->tx_count++; in scc_send_packet()
951 if (priv->tx_count < NUM_TX_BUF) in scc_send_packet()
1365 priv->tx_count--; in es_isr()
1371 if (priv->tx_count && in es_isr()
1437 if (priv->tx_count) { in tm_isr()
/Linux-v4.19/drivers/net/ethernet/apple/
Dmacmace.c68 int tx_slot, tx_sloti, tx_count; member
159 mp->tx_count = N_TX_RING; in mace_txdma_reset()
456 if (!mp->tx_count) { in mace_xmit_start()
461 mp->tx_count--; in mace_xmit_start()
581 if (!mp->tx_count) { in mace_interrupt()
599 if (mp->tx_count) in mace_interrupt()
624 mp->tx_count = N_TX_RING; in mace_tx_timeout()
733 mp->tx_count++; in mace_dma_intr()
/Linux-v4.19/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-v4.19/drivers/net/ethernet/cavium/thunder/
Dnicvf_ethtool.c488 u32 rx_count, tx_count; in nicvf_set_ringparam() local
497 tx_count = clamp_t(u32, ring->tx_pending, in nicvf_set_ringparam()
502 if ((tx_count == qs->sq_len) && (rx_count == qs->cq_len)) in nicvf_set_ringparam()
506 qs->sq_len = rounddown_pow_of_two(tx_count); in nicvf_set_ringparam()
717 channel->tx_count = nic->tx_queues; in nicvf_get_channels()
729 if (!channel->rx_count || !channel->tx_count) in nicvf_set_channels()
733 if (channel->tx_count > nic->max_queues) in nicvf_set_channels()
737 ((channel->tx_count + channel->rx_count) > nic->max_queues)) { in nicvf_set_channels()
748 nic->tx_queues = channel->tx_count; in nicvf_set_channels()
/Linux-v4.19/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-v4.19/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-v4.19/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-v4.19/drivers/net/wan/
Dwanxlfw.S300 clrl tx_count(%d0)
450 cmpl #TX_BUFFERS, tx_count(%d0)
480 addl #1, tx_count(%d0)
565 tx_end: tstl tx_count(%d0)
578 subl #1, tx_count(%d0)
887 tx_count: .long 0, 0, 0, 0 // currently in transmit queue label
/Linux-v4.19/drivers/net/ethernet/sgi/
Dmeth.c82 unsigned long tx_read, tx_write, tx_count; member
219 priv->tx_count = priv->tx_read = priv->tx_write = 0; in meth_init_tx_ring()
474 return priv->tx_count >= TX_RING_ENTRIES - 1; in meth_tx_full()
528 priv->tx_count--; in meth_tx_cleanup()
694 priv->tx_count++; in meth_add_to_tx_ring()
/Linux-v4.19/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-v4.19/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-v4.19/drivers/net/wireless/st/cw1200/
Dtxrx.c902 int tx_count = arg->ack_failures; in cw1200_tx_confirm_cb() local
924 ++tx_count; in cw1200_tx_confirm_cb()
934 if (tx_count) in cw1200_tx_confirm_cb()
935 ++tx_count; in cw1200_tx_confirm_cb()
939 if (tx->status.rates[i].count >= tx_count) { in cw1200_tx_confirm_cb()
940 tx->status.rates[i].count = tx_count; in cw1200_tx_confirm_cb()
943 tx_count -= tx->status.rates[i].count; in cw1200_tx_confirm_cb()
/Linux-v4.19/drivers/infiniband/hw/hfi1/
Diowait.h122 u32 tx_count; member
/Linux-v4.19/drivers/net/ethernet/emulex/benet/
Dbe_ethtool.c1211 ch->tx_count = adapter->num_tx_qs - ch->combined_count; in be_get_channels()
1229 (ch->rx_count && ch->tx_count)) in be_set_channels()
1235 (ch->tx_count && in be_set_channels()
1236 (ch->tx_count + ch->combined_count) > be_max_tx_irqs(adapter))) in be_set_channels()
1240 adapter->cfg_num_tx_irqs = ch->combined_count + ch->tx_count; in be_set_channels()
/Linux-v4.19/drivers/net/ethernet/qlogic/qede/
Dqede_ethtool.c1003 channels->tx_count = edev->fp_num_tx; in qede_get_channels()
1015 channels->rx_count, channels->tx_count, in qede_set_channels()
1018 count = channels->rx_count + channels->tx_count + in qede_set_channels()
1029 channels->tx_count))) { in qede_set_channels()
1044 (channels->tx_count == edev->fp_num_tx) && in qede_set_channels()
1053 (channels->tx_count % edev->dev_info.common.num_hwfns) || in qede_set_channels()
1063 edev->req_num_tx = channels->tx_count; in qede_set_channels()
/Linux-v4.19/drivers/net/ethernet/ibm/emac/
Dmal.h290 u32 tx_count; member
/Linux-v4.19/drivers/net/wireless/intersil/hostap/
Dhostap_ap.h72 u32 tx_count[WLAN_RATE_COUNT]; /* number of frames sent (per rate) */ member
/Linux-v4.19/drivers/net/ethernet/cavium/liquidio/
Dlio_ethtool.c495 u32 max_rx = 0, max_tx = 0, tx_count = 0, rx_count = 0; in lio_ethtool_get_channels() local
504 tx_count = CFG_GET_NUM_TXQS_NIC_IF(conf6x, lio->ifidx); in lio_ethtool_get_channels()
529 channel->tx_count = tx_count; in lio_ethtool_get_channels()
609 channel->rx_count || channel->tx_count) in lio_ethtool_set_channels()
1282 u32 rx_count, tx_count, rx_count_old, tx_count_old; in lio_ethtool_set_ringparam() local
1295 tx_count = clamp_t(u32, ering->tx_pending, CN23XX_MIN_IQ_DESCRIPTORS, in lio_ethtool_set_ringparam()
1301 if (rx_count == rx_count_old && tx_count == tx_count_old) in lio_ethtool_set_ringparam()
1312 if (tx_count != tx_count_old) in lio_ethtool_set_ringparam()
1314 tx_count); in lio_ethtool_set_ringparam()
1330 if (tx_count != tx_count_old) in lio_ethtool_set_ringparam()
/Linux-v4.19/drivers/gpu/drm/bridge/
Dsil-sii8620.c101 int tx_count; member
607 u8 *buf = &ctx->burst.tx_buf[ctx->burst.tx_count]; in sii8620_burst_get_tx_buf()
610 if (ctx->burst.tx_count + size > ARRAY_SIZE(ctx->burst.tx_buf)) { in sii8620_burst_get_tx_buf()
616 ctx->burst.tx_count += size; in sii8620_burst_get_tx_buf()
627 if (ctx->burst.tx_count + size > ARRAY_SIZE(ctx->burst.tx_buf)) { in sii8620_burst_get_rx_buf()
641 int tx_left = ctx->burst.tx_count; in sii8620_burst_send()
657 ctx->burst.tx_count = tx_left; in sii8620_burst_send()

123