/linux-6.6.21/sound/soc/dwc/ |
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, 0); in dw_pcm_trigger() [all …]
|
D | local.h | 145 struct snd_pcm_runtime *runtime, unsigned int tx_ptr, 150 unsigned int tx_ptr; member
|
/linux-6.6.21/sound/soc/xtensa/ |
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 167 tx_ptr); in xtfpga_pcm_push_tx() [all …]
|
/linux-6.6.21/sound/soc/intel/keembay/ |
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() 101 unsigned int tx_ptr, bool *period_elapsed) in kmb_pcm_tx_fn() argument 103 unsigned int period_pos = tx_ptr % runtime->period_size; in kmb_pcm_tx_fn() 109 hdmi_reformat_iec958(runtime, kmb_i2s, tx_ptr); in kmb_pcm_tx_fn() 114 writel(((u16(*)[2])buf)[tx_ptr][0], i2s_base + LRBR_LTHR(0)); in kmb_pcm_tx_fn() 115 writel(((u16(*)[2])buf)[tx_ptr][1], i2s_base + RRBR_RTHR(0)); in kmb_pcm_tx_fn() 117 writel(((u32(*)[2])buf)[tx_ptr][0], i2s_base + LRBR_LTHR(0)); in kmb_pcm_tx_fn() [all …]
|
D | kmb_platform.h | 151 unsigned int tx_ptr; member
|
/linux-6.6.21/drivers/spi/ |
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()
|
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()
|
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-6.6.21/drivers/net/usb/ |
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-6.6.21/drivers/net/ethernet/amd/ |
D | 7990.h | 81 volatile unsigned short tx_ptr; /* transmit descriptor addr */ member
|
D | a2065.c | 92 unsigned short tx_ptr; /* transmit descriptor addr */ member 210 ib->tx_ptr = leptr; in lance_init_ring()
|
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()
|
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()
|
D | 7990.c | 218 ib->tx_ptr = leptr; in lance_init_ring()
|
/linux-6.6.21/drivers/usb/host/ |
D | fhci.h | 200 __be32 tx_ptr; /* Tx internal data pointer */ member
|