/linux/sound/soc/dwc/ |
A D | dwc-pcm.c | 26 struct snd_pcm_runtime *runtime, unsigned int tx_ptr, \ 30 unsigned int period_pos = tx_ptr % runtime->period_size; \ 34 iowrite32(p[tx_ptr][0], dev->i2s_base + LRBR_LTHR(0)); \ 35 iowrite32(p[tx_ptr][1], dev->i2s_base + RRBR_RTHR(0)); \ 37 if (++tx_ptr >= runtime->buffer_size) \ 38 tx_ptr = 0; \ 41 return tx_ptr; \ 111 ptr = READ_ONCE(dev->tx_ptr); in dw_pcm_transfer() 114 cmpxchg(&dev->tx_ptr, ptr, new_ptr); in dw_pcm_transfer() 204 WRITE_ONCE(dev->tx_ptr, 0); in dw_pcm_trigger() [all …]
|
A D | local.h | 113 struct snd_pcm_runtime *runtime, unsigned int tx_ptr, 118 unsigned int tx_ptr; member
|
/linux/sound/soc/xtensa/ |
A D | xtfpga-i2s.c | 78 unsigned tx_ptr); 132 unsigned tx_ptr) \ 139 iowrite32(p[tx_ptr][0], \ 141 iowrite32(p[tx_ptr][channels - 1], \ 143 if (++tx_ptr >= runtime->buffer_size) \ 144 tx_ptr = 0; \ 146 return tx_ptr; \ 165 unsigned tx_ptr = READ_ONCE(i2s->tx_ptr); in xtfpga_pcm_push_tx() local 167 tx_ptr); in xtfpga_pcm_push_tx() 169 cmpxchg(&i2s->tx_ptr, tx_ptr, new_tx_ptr); in xtfpga_pcm_push_tx() [all …]
|
/linux/sound/soc/intel/keembay/ |
A D | kmb_platform.c | 79 unsigned int tx_ptr) in hdmi_reformat_iec958() argument 88 temp = buf[tx_ptr][j]; in hdmi_reformat_iec958() 92 buf[tx_ptr][j] = sample << 4; in hdmi_reformat_iec958() 95 tx_ptr++; in hdmi_reformat_iec958() 123 if (++tx_ptr >= runtime->buffer_size) in kmb_pcm_tx_fn() 124 tx_ptr = 0; in kmb_pcm_tx_fn() 129 return tx_ptr; in kmb_pcm_tx_fn() 236 ptr = kmb_i2s->tx_ptr; in kmb_pcm_operation() 239 cmpxchg(&kmb_i2s->tx_ptr, ptr, new_ptr); in kmb_pcm_operation() 275 kmb_i2s->tx_ptr = 0; in kmb_pcm_trigger() [all …]
|
A D | kmb_platform.h | 151 unsigned int tx_ptr; member
|
/linux/drivers/spi/ |
A D | spi-xilinx.c | 88 const u8 *tx_ptr; /* pointer in the Rx buffer */ member 120 if (!xspi->tx_ptr) { in xilinx_spi_tx() 127 data = *(u8 *)(xspi->tx_ptr); in xilinx_spi_tx() 130 data = *(u16 *)(xspi->tx_ptr); in xilinx_spi_tx() 133 data = *(u32 *)(xspi->tx_ptr); in xilinx_spi_tx() 138 xspi->tx_ptr += xspi->bytes_per_word; in xilinx_spi_tx() 247 xspi->tx_ptr = t->tx_buf; in xilinx_spi_txrx_bufs()
|
A D | spi-st-ssc4.c | 61 const u8 *tx_ptr; member 81 if (spi_st->tx_ptr) { in ssc_write_tx_fifo() 83 word = *spi_st->tx_ptr++; in ssc_write_tx_fifo() 85 word = *spi_st->tx_ptr++; in ssc_write_tx_fifo() 86 word = *spi_st->tx_ptr++ | (word << 8); in ssc_write_tx_fifo() 126 spi_st->tx_ptr = t->tx_buf; in spi_st_transfer_one()
|
A D | spi-sifive.c | 238 static void sifive_spi_tx(struct sifive_spi *spi, const u8 *tx_ptr) in sifive_spi_tx() argument 243 *tx_ptr & SIFIVE_SPI_TXDATA_DATA_MASK); in sifive_spi_tx() 260 const u8 *tx_ptr = t->tx_buf; in sifive_spi_transfer_one() local 270 sifive_spi_tx(spi, tx_ptr++); in sifive_spi_transfer_one()
|
/linux/drivers/net/usb/ |
A D | catc.c | 155 unsigned int tx_ptr, tx_idx; member 355 catc->tx_ptr = (catc->tx_ptr + 63) & ~63; in catc_tx_run() 357 catc->tx_urb->transfer_buffer_length = catc->tx_ptr; in catc_tx_run() 366 catc->tx_ptr = 0; in catc_tx_run() 396 if (catc->tx_ptr) { in catc_tx_done() 419 catc->tx_ptr = (((catc->tx_ptr - 1) >> 6) + 1) << 6; in catc_start_xmit() 420 tx_buf = catc->tx_buf[catc->tx_idx] + catc->tx_ptr; in catc_start_xmit() 426 catc->tx_ptr += skb->len + 2; in catc_start_xmit() 434 if ((catc->is_f5u011 && catc->tx_ptr) || in catc_start_xmit() 435 (catc->tx_ptr >= ((TX_MAX_BURST - 1) * (PKT_SZ + 2)))) in catc_start_xmit()
|
/linux/drivers/net/hamradio/ |
A D | dmascc.c | 199 int tx_ptr; member 747 priv->tx_ptr = 0; in scc_open() 1284 int i = priv->tx_tail, p = priv->tx_ptr; in tx_isr() 1299 if (!priv->tx_ptr && p && priv->chip == Z8530) in tx_isr() 1302 priv->tx_ptr = p; in tx_isr() 1328 res = priv->tx_len[i] - priv->tx_ptr; in es_isr() 1329 priv->tx_ptr = 0; in es_isr()
|
/linux/drivers/net/ethernet/amd/ |
A D | 7990.h | 81 volatile unsigned short tx_ptr; /* transmit descriptor addr */ member
|
A D | a2065.c | 92 unsigned short tx_ptr; /* transmit descriptor addr */ member 210 ib->tx_ptr = leptr; in lance_init_ring()
|
A D | sunlance.c | 218 u16 tx_ptr; /* transmit descriptor addr */ member 370 ib->tx_ptr = leptr; in lance_init_ring_dvma() 431 sbus_writew(leptr, &ib->tx_ptr); in lance_init_ring_pio()
|
A D | declance.c | 216 unsigned short tx_ptr; /* transmit descriptor addr */ member 486 *lib_ptr(ib, tx_ptr, lp->type) = leptr; in lance_init_ring()
|
A D | 7990.c | 218 ib->tx_ptr = leptr; in lance_init_ring()
|
/linux/drivers/net/wan/ |
A D | z85230.c | 381 write_zsreg(c, R8, *c->tx_ptr++); in z8530_tx() 1322 c->tx_ptr = c->tx_next_ptr; in z8530_tx_begin() 1360 set_dma_addr(c->txdma, virt_to_bus(c->tx_ptr)); in z8530_tx_begin() 1372 write_zsreg(c, R8, *c->tx_ptr++); in z8530_tx_begin()
|
A D | z85230.h | 285 u8 *tx_ptr; /* Byte pointer into the buffer */ member
|
/linux/drivers/usb/host/ |
A D | fhci.h | 199 __be32 tx_ptr; /* Tx internal data pointer */ member
|