/linux/sound/soc/dwc/ |
H 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 + dev->l_reg); \ 35 iowrite32(p[tx_ptr][1], dev->i2s_base + dev->r_reg); \ 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, in dw_pcm_trigger() [all...] |
/linux/sound/soc/xtensa/ |
H A D | xtfpga-i2s.c | 78 unsigned tx_ptr); 79 unsigned tx_ptr; /* next frame index in the sample buffer */ member 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 [all...] |
/linux/drivers/spi/ |
H A D | spi-apple.c | 267 static void apple_spi_tx(struct apple_spi *spi, const void **tx_ptr, u32 *left, in apple_spi_tx() argument 272 if (!*tx_ptr) in apple_spi_tx() 285 const u8 *p = *tx_ptr; in apple_spi_tx() 292 const u16 *p = *tx_ptr; in apple_spi_tx() 299 const u32 *p = *tx_ptr; in apple_spi_tx() 309 *tx_ptr = ((u8 *)*tx_ptr) + bytes_per_word * wrote; in apple_spi_tx() 362 const void *tx_ptr = t->tx_buf; in apple_spi_transfer_one() local 379 remaining_tx = tx_ptr ? words : 0; in apple_spi_transfer_one() 390 if (tx_ptr) in apple_spi_transfer_one() [all...] |
H A D | spi-st-ssc4.c | 60 const u8 *tx_ptr; member 80 if (spi_st->tx_ptr) { in ssc_write_tx_fifo() 82 word = *spi_st->tx_ptr++; in ssc_write_tx_fifo() 84 word = *spi_st->tx_ptr++; in ssc_write_tx_fifo() 85 word = *spi_st->tx_ptr++ | (word << 8); in ssc_write_tx_fifo() 125 spi_st->tx_ptr = t->tx_buf; in spi_st_transfer_one()
|
H 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/sound/soc/intel/keembay/ |
H A D | kmb_platform.c | 78 unsigned int tx_ptr) in hdmi_reformat_iec958() argument 87 temp = buf[tx_ptr][j]; in hdmi_reformat_iec958() 91 buf[tx_ptr][j] = sample << 4; in hdmi_reformat_iec958() 94 tx_ptr++; in hdmi_reformat_iec958() 100 unsigned int tx_ptr, bool *period_elapsed) in kmb_pcm_tx_fn() argument 102 unsigned int period_pos = tx_ptr % runtime->period_size; in kmb_pcm_tx_fn() 108 hdmi_reformat_iec958(runtime, kmb_i2s, tx_ptr); in kmb_pcm_tx_fn() 113 writel(((u16(*)[2])buf)[tx_ptr][0], i2s_base + LRBR_LTHR(0)); in kmb_pcm_tx_fn() 114 writel(((u16(*)[2])buf)[tx_ptr][1], i2s_base + RRBR_RTHR(0)); in kmb_pcm_tx_fn() 116 writel(((u32(*)[2])buf)[tx_ptr][ in kmb_pcm_tx_fn() [all...] |
H A D | kmb_platform.h | 151 unsigned int tx_ptr; member
|
/linux/drivers/net/usb/ |
H 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 in catc_start_xmit() [all...] |
/linux/drivers/net/ethernet/amd/ |
H A D | 7990.h | 81 volatile unsigned short tx_ptr; /* transmit descriptor addr */ member
|
H 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()
|
H 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()
|
H A D | 7990.c | 218 ib->tx_ptr = leptr; in lance_init_ring()
|
/linux/drivers/usb/host/ |
H A D | fhci.h | 200 __be32 tx_ptr; /* Tx internal data pointer */ member
|