/linux-4.1.27/drivers/spi/ |
D | spi-au1550.c | 56 unsigned tx_count; member 323 hw->tx_count = 0; in au1550_spi_dma_txrxb() 419 return hw->rx_count < hw->tx_count ? hw->rx_count : hw->tx_count; in au1550_spi_dma_txrxb() 449 hw->tx_count = hw->len - au1xxx_get_dma_residue(hw->dma_tx_ch); in au1550_spi_dma_irq_callback() 471 hw->tx_count = hw->len; in au1550_spi_dma_irq_callback() 499 hw->tx_count += (size) / 8; \ 500 if (hw->tx_count >= hw->len) \ 521 hw->tx_count = 0; in au1550_spi_pio_txrxb() 528 while (hw->tx_count < hw->len) { in au1550_spi_pio_txrxb() 532 if (hw->tx_count >= hw->len) { in au1550_spi_pio_txrxb() [all …]
|
D | spi-fsl-dspi.c | 218 int tx_count = 0; in dspi_transfer_write() local 238 while (dspi->len && (tx_count < DSPI_FIFO_SIZE)) { in dspi_transfer_write() 273 if (dspi->len == 0 || tx_count == DSPI_FIFO_SIZE - 1) { in dspi_transfer_write() 288 tx_count++; in dspi_transfer_write() 291 return tx_count * (tx_word + 1); in dspi_transfer_write()
|
D | spi-img-spfi.c | 254 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()
|
/linux-4.1.27/drivers/net/hamradio/ |
D | yam.c | 135 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 …]
|
D | dmascc.c | 213 int tx_head, tx_tail, tx_count; member 751 priv->tx_head = priv->tx_tail = priv->tx_count = 0; in scc_open() 939 priv->tx_count++; in scc_send_packet() 944 if (priv->tx_count < NUM_TX_BUF) in scc_send_packet() 1358 priv->tx_count--; in es_isr() 1364 if (priv->tx_count && in es_isr() 1430 if (priv->tx_count) { in tm_isr()
|
/linux-4.1.27/drivers/net/ethernet/apple/ |
D | macmace.c | 68 int tx_slot, tx_sloti, tx_count; member 159 mp->tx_count = N_TX_RING; in mace_txdma_reset() 457 if (!mp->tx_count) { in mace_xmit_start() 462 mp->tx_count--; in mace_xmit_start() 582 if (!mp->tx_count) { in mace_interrupt() 601 if (mp->tx_count) in mace_interrupt() 626 mp->tx_count = N_TX_RING; in mace_tx_timeout() 737 mp->tx_count++; in mace_dma_intr()
|
/linux-4.1.27/drivers/tty/serial/ |
D | ifx6x60.c | 420 static void ifx_spi_setup_spi_header(unsigned char *txbuffer, int tx_count, in ifx_spi_setup_spi_header() argument 423 *(u16 *)(txbuffer) = tx_count; in ifx_spi_setup_spi_header() 444 int tx_count; in ifx_spi_prepare_tx_buffer() local 451 tx_count = IFX_SPI_HEADER_OVERHEAD; in ifx_spi_prepare_tx_buffer() 470 tx_count += temp_count; in ifx_spi_prepare_tx_buffer() 481 tx_count-IFX_SPI_HEADER_OVERHEAD, in ifx_spi_prepare_tx_buffer() 484 ifx_dev->swap_buf((ifx_dev->tx_buffer), tx_count, in ifx_spi_prepare_tx_buffer() 486 return tx_count; in ifx_spi_prepare_tx_buffer() 506 int tx_count; in ifx_spi_write() local 510 tx_count = kfifo_in(&ifx_dev->tx_fifo, tmp_buf, count); in ifx_spi_write() [all …]
|
D | msm_serial.c | 238 unsigned int tx_count, num_chars; in handle_tx() local 247 tx_count = uart_circ_chars_pending(xmit); in handle_tx() 248 tx_count = min3(tx_count, (unsigned int)UART_XMIT_SIZE - xmit->tail, in handle_tx() 253 reset_dm_count(port, tx_count + 1); in handle_tx() 258 } else if (tx_count && msm_port->is_uartdm) { in handle_tx() 259 reset_dm_count(port, tx_count); in handle_tx() 262 while (tf_pointer < tx_count) { in handle_tx() 270 num_chars = min(tx_count - tf_pointer, in handle_tx()
|
D | bfin_uart.c | 157 xmit->tail = (xmit->tail + uart->tx_count) & (UART_XMIT_SIZE - 1); in bfin_serial_stop_tx() 158 uart->port.icount.tx += uart->tx_count; in bfin_serial_stop_tx() 159 uart->tx_count = 0; in bfin_serial_stop_tx() 382 uart->tx_count = 0; in bfin_serial_dma_tx_chars() 393 uart->tx_count = CIRC_CNT(xmit->head, xmit->tail, UART_XMIT_SIZE); in bfin_serial_dma_tx_chars() 394 if (uart->tx_count > (UART_XMIT_SIZE - xmit->tail)) in bfin_serial_dma_tx_chars() 395 uart->tx_count = UART_XMIT_SIZE - xmit->tail; in bfin_serial_dma_tx_chars() 397 (unsigned long)(xmit->buf+xmit->tail+uart->tx_count)); in bfin_serial_dma_tx_chars() 405 set_dma_x_count(uart->tx_dma_channel, uart->tx_count); in bfin_serial_dma_tx_chars() 520 uart->port.icount.tx += uart->tx_count; in bfin_serial_dma_tx_int() [all …]
|
/linux-4.1.27/drivers/char/pcmcia/ |
D | synclink_cs.c | 153 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-4.1.27/drivers/tty/ |
D | ehv_bytechan.c | 191 unsigned int rx_count, tx_count; in udbg_init_ehv_bc() local 196 &rx_count, &tx_count); in udbg_init_ehv_bc() 339 unsigned int rx_count, tx_count, len; in ehv_bc_tty_rx_isr() local 348 ev_byte_channel_poll(bc->handle, &rx_count, &tx_count); in ehv_bc_tty_rx_isr()
|
D | synclinkmp.c | 170 int tx_count; member 946 if (info->tx_count) { in write() 949 tx_load_dma_buffer(info, info->tx_buf, info->tx_count); in write() 952 ret = info->tx_count = count; in write() 959 min(info->max_frame_size - info->tx_count - 1, in write() 970 info->tx_count += c; in write() 980 ret = info->tx_count = 0; in write() 983 tx_load_dma_buffer(info, info->tx_buf, info->tx_count); in write() 986 if (info->tx_count && !tty->stopped && !tty->hw_stopped) { in write() 1024 if (info->tx_count < info->max_frame_size - 1) { in put_char() [all …]
|
D | synclink_gt.c | 318 int tx_count; member 847 if (info->tx_count) { in write() 849 if (!tx_load(info, info->tx_buf, info->tx_count)) in write() 851 info->tx_count = 0; in write() 875 if (info->tx_count < info->max_frame_size) { in put_char() 876 info->tx_buf[info->tx_count++] = ch; in put_char() 961 DBGINFO(("%s flush_chars entry tx_count=%d\n", info->device_name, info->tx_count)); in flush_chars() 963 if (info->tx_count <= 0 || tty->stopped || in flush_chars() 970 if (info->tx_count && tx_load(info, info->tx_buf, info->tx_count)) in flush_chars() 971 info->tx_count = 0; in flush_chars() [all …]
|
/linux-4.1.27/drivers/net/wan/ |
D | wanxlfw.S | 300 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-4.1.27/drivers/net/ethernet/sgi/ |
D | meth.c | 82 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-4.1.27/arch/powerpc/include/asm/ |
D | epapr_hcalls.h | 369 unsigned int *rx_count, unsigned int *tx_count) in ev_byte_channel_poll() argument 385 *tx_count = r5; in ev_byte_channel_poll()
|
/linux-4.1.27/drivers/net/ethernet/ |
D | korina.c | 120 int tx_count; member 209 if (lp->tx_count >= (KORINA_NUM_TDS - 2)) { in korina_send_packet() 212 if (lp->tx_count == (KORINA_NUM_TDS - 2)) in korina_send_packet() 223 lp->tx_count++; in korina_send_packet() 583 lp->tx_count--; in korina_tx() 751 lp->tx_full = lp->tx_count = 0; in korina_alloc_ring()
|
/linux-4.1.27/drivers/net/wireless/cw1200/ |
D | txrx.c | 902 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-4.1.27/drivers/net/ethernet/ibm/emac/ |
D | mal.h | 290 u32 tx_count; member
|
D | mal.c | 495 regs->tx_count = mal->num_tx_chans; in mal_dump_regs() 510 for (i = 0; i < regs->tx_count; ++i) in mal_dump_regs()
|
/linux-4.1.27/drivers/net/wireless/hostap/ |
D | hostap_ap.h | 71 u32 tx_count[WLAN_RATE_COUNT]; /* number of frames sent (per rate) */ member
|
D | hostap_ap.c | 1087 sta->tx_rate, sta->tx_count[0], sta->tx_count[1], in prism2_sta_proc_show() 1088 sta->tx_count[2], sta->tx_count[3], sta->rx_count[0], in prism2_sta_proc_show() 2661 sta->tx_count[rate] = 0; in prism2_hostapd_sta_clear_stats() 2709 sta->tx_count[sta->tx_rate_idx]++; in ap_update_sta_tx_rate()
|
/linux-4.1.27/drivers/net/ethernet/qlogic/qlcnic/ |
D | qlcnic_ethtool.c | 720 channel->tx_count = adapter->drv_tx_rings; in qlcnic_get_channels() 738 channel->tx_count); in qlcnic_set_channels() 753 if (adapter->drv_tx_rings != channel->tx_count) { in qlcnic_set_channels() 754 err = qlcnic_validate_rings(adapter, channel->tx_count, in qlcnic_set_channels() 758 channel->tx_count); in qlcnic_set_channels() 761 adapter->drv_tss_rings = channel->tx_count; in qlcnic_set_channels()
|
/linux-4.1.27/drivers/net/ethernet/broadcom/bnx2x/ |
D | bnx2x_sriov.h | 488 int bnx2x_vfpf_acquire(struct bnx2x *bp, u8 tx_count, u8 rx_count); 561 u8 tx_count, u8 rx_count) {return 0; } in bnx2x_vfpf_acquire() argument
|
D | bnx2x_vfpf.c | 221 int bnx2x_vfpf_acquire(struct bnx2x *bp, u8 tx_count, u8 rx_count) in bnx2x_vfpf_acquire() argument 244 req->resc_request.num_txqs = tx_count; in bnx2x_vfpf_acquire()
|
D | bnx2x_ethtool.c | 3480 channels->rx_count, channels->tx_count, channels->other_count, in bnx2x_set_channels() 3491 if (channels->rx_count || channels->tx_count || channels->other_count in bnx2x_set_channels()
|
D | bnx2x_main.c | 13367 int rx_count, tx_count, rss_count, doorbell_size; in bnx2x_init_one() local 13414 tx_count = rss_count * max_cos_est + cnic_cnt; in bnx2x_init_one() 13417 dev = alloc_etherdev_mqs(sizeof(*bp), tx_count, rx_count); in bnx2x_init_one() 13446 tx_count, rx_count); in bnx2x_init_one() 13480 rc = bnx2x_vfpf_acquire(bp, tx_count, rx_count); in bnx2x_init_one()
|
/linux-4.1.27/drivers/net/ethernet/hisilicon/ |
D | hip04_eth.c | 186 static inline unsigned int tx_count(unsigned int head, unsigned int tail) in tx_count() function 376 count = tx_count(ACCESS_ONCE(priv->tx_head), tx_tail); in hip04_tx_reclaim() 434 count = tx_count(tx_head, ACCESS_ONCE(priv->tx_tail)); in hip04_mac_start_xmit()
|
/linux-4.1.27/drivers/net/ethernet/mellanox/mlx4/ |
D | en_ethtool.c | 1691 channel->tx_count = priv->tx_ring_num / MLX4_EN_NUM_UP; in mlx4_en_get_channels() 1703 channel->tx_count > MLX4_EN_MAX_TX_RING_P_UP || in mlx4_en_set_channels() 1705 !channel->tx_count || !channel->rx_count) in mlx4_en_set_channels() 1716 priv->num_tx_rings_p_up = channel->tx_count; in mlx4_en_set_channels() 1717 priv->tx_ring_num = channel->tx_count * MLX4_EN_NUM_UP; in mlx4_en_set_channels()
|
/linux-4.1.27/drivers/net/ethernet/samsung/sxgbe/ |
D | sxgbe_ethtool.c | 277 channel->tx_count = SXGBE_TX_QUEUES; in sxgbe_get_channels()
|
/linux-4.1.27/include/uapi/linux/ |
D | ethtool.h | 494 __u32 tx_count; member
|
/linux-4.1.27/arch/blackfin/include/asm/ |
D | bfin_serial.h | 42 int tx_count; member
|
/linux-4.1.27/drivers/net/ethernet/qlogic/qlge/ |
D | qlge_main.c | 2133 atomic_inc(&tx_ring->tx_count); in ql_process_mac_tx_intr() 2232 if ((atomic_read(&tx_ring->tx_count) > (tx_ring->wq_len / 4))) in ql_clean_outbound_rx_ring() 2647 if (unlikely(atomic_read(&tx_ring->tx_count) < 2)) { in qlge_send() 2701 atomic_dec(&tx_ring->tx_count); in qlge_send() 2703 if (unlikely(atomic_read(&tx_ring->tx_count) < 2)) { in qlge_send() 2705 if ((atomic_read(&tx_ring->tx_count) > (tx_ring->wq_len / 4))) in qlge_send() 2778 atomic_set(&tx_ring->tx_count, tx_ring->wq_len); in ql_init_tx_ring()
|
D | qlge.h | 1401 atomic_t tx_count; /* counts down for every outstanding IO */ member
|
D | qlge_dbg.c | 1690 pr_err("tx_ring->tx_count = %d\n", atomic_read(&tx_ring->tx_count)); in ql_dump_tx_ring()
|
/linux-4.1.27/drivers/net/wireless/b43/ |
D | b43.h | 891 unsigned int tx_count; member
|
D | main.c | 3412 dev->tx_count / 15, in b43_periodic_every15sec() 3415 dev->tx_count = 0; in b43_periodic_every15sec() 3638 dev->tx_count++; in b43_tx_work()
|
/linux-4.1.27/drivers/net/ethernet/qlogic/ |
D | qla3xxx.h | 1116 atomic_t tx_count; member
|
D | qla3xxx.c | 1966 atomic_inc(&qdev->tx_count); in ql_process_mac_tx_intr() 2471 if (unlikely(atomic_read(&qdev->tx_count) < 2)) in ql3xxx_send() 2512 atomic_dec(&qdev->tx_count); in ql3xxx_send() 3036 atomic_set(&qdev->tx_count, NUM_REQ_Q_ENTRIES); in ql_adapter_initialize()
|
/linux-4.1.27/drivers/net/ |
D | virtio_net.c | 1345 if (channels->rx_count || channels->tx_count || channels->other_count) in virtnet_set_channels() 1373 channels->tx_count = 0; in virtnet_get_channels()
|
/linux-4.1.27/drivers/net/ethernet/intel/fm10k/ |
D | fm10k_ethtool.c | 1033 if (!count || ch->rx_count || ch->tx_count) in fm10k_set_channels()
|
/linux-4.1.27/drivers/net/ethernet/emulex/benet/ |
D | be_ethtool.c | 1156 if (ch->rx_count || ch->tx_count || ch->other_count || in be_set_channels()
|
/linux-4.1.27/drivers/net/ethernet/intel/i40e/ |
D | i40e_ethtool.c | 2395 if (!count || ch->rx_count || ch->tx_count) in i40e_set_channels()
|
/linux-4.1.27/drivers/net/ethernet/broadcom/ |
D | bnx2.c | 7753 channels->tx_count = bp->num_tx_rings; in bnx2_get_channels() 7771 channels->tx_count > max_tx_rings) in bnx2_set_channels() 7775 bp->num_req_tx_rings = channels->tx_count; in bnx2_set_channels()
|
D | tg3.c | 12638 channel->tx_count = tp->txq_cnt; in tg3_get_channels() 12646 channel->tx_count = tp->txq_req; in tg3_get_channels() 12648 channel->tx_count = min(deflt_qs, tp->txq_max); in tg3_get_channels() 12661 channel->tx_count > tp->txq_max) in tg3_set_channels() 12665 tp->txq_req = channel->tx_count; in tg3_set_channels()
|
/linux-4.1.27/drivers/net/ethernet/intel/igb/ |
D | igb_ethtool.c | 2997 if (!count || ch->rx_count || ch->tx_count) in igb_set_channels()
|
/linux-4.1.27/drivers/net/ethernet/intel/ixgbe/ |
D | ixgbe_ethtool.c | 3021 if (!count || ch->rx_count || ch->tx_count) in ixgbe_set_channels()
|