Home
last modified time | relevance | path

Searched refs:rx_ptr (Results 1 – 19 of 19) sorted by relevance

/Linux-v5.15/sound/soc/dwc/
Ddwc-pcm.c46 struct snd_pcm_runtime *runtime, unsigned int rx_ptr, \
50 unsigned int period_pos = rx_ptr % runtime->period_size; \
54 p[rx_ptr][0] = ioread32(dev->i2s_base + LRBR_LTHR(0)); \
55 p[rx_ptr][1] = ioread32(dev->i2s_base + RRBR_RTHR(0)); \
57 if (++rx_ptr >= runtime->buffer_size) \
58 rx_ptr = 0; \
61 return rx_ptr; \
116 ptr = READ_ONCE(dev->rx_ptr); in dw_pcm_transfer()
119 cmpxchg(&dev->rx_ptr, ptr, new_ptr); in dw_pcm_transfer()
207 WRITE_ONCE(dev->rx_ptr, 0); in dw_pcm_trigger()
[all …]
Dlocal.h116 struct snd_pcm_runtime *runtime, unsigned int rx_ptr,
119 unsigned int rx_ptr; member
/Linux-v5.15/sound/soc/intel/keembay/
Dkmb_platform.c134 unsigned int rx_ptr, bool *period_elapsed) in kmb_pcm_rx_fn() argument
136 unsigned int period_pos = rx_ptr % runtime->period_size; in kmb_pcm_rx_fn()
146 ((u16 *)buf)[rx_ptr * chan + (j * 2)] = in kmb_pcm_rx_fn()
148 ((u16 *)buf)[rx_ptr * chan + ((j * 2) + 1)] = in kmb_pcm_rx_fn()
151 ((u32 *)buf)[rx_ptr * chan + (j * 2)] = in kmb_pcm_rx_fn()
153 ((u32 *)buf)[rx_ptr * chan + ((j * 2) + 1)] = in kmb_pcm_rx_fn()
159 if (++rx_ptr >= runtime->buffer_size) in kmb_pcm_rx_fn()
160 rx_ptr = 0; in kmb_pcm_rx_fn()
165 return rx_ptr; in kmb_pcm_rx_fn()
241 ptr = kmb_i2s->rx_ptr; in kmb_pcm_operation()
[all …]
Dkmb_platform.h152 unsigned int rx_ptr; member
/Linux-v5.15/drivers/spi/
Dspi-xilinx.c87 u8 *rx_ptr; /* pointer in the Tx buffer */ member
145 if (!xspi->rx_ptr) in xilinx_spi_rx()
150 *(u8 *)(xspi->rx_ptr) = data; in xilinx_spi_rx()
153 *(u16 *)(xspi->rx_ptr) = data; in xilinx_spi_rx()
156 *(u32 *)(xspi->rx_ptr) = data; in xilinx_spi_rx()
160 xspi->rx_ptr += xspi->bytes_per_word; in xilinx_spi_rx()
248 xspi->rx_ptr = t->rx_buf; in xilinx_spi_txrx_bufs()
Dspi-st-ssc4.c62 u8 *rx_ptr; member
107 if (spi_st->rx_ptr) { in ssc_read_rx_fifo()
109 *spi_st->rx_ptr++ = (uint8_t)word; in ssc_read_rx_fifo()
111 *spi_st->rx_ptr++ = (word >> 8); in ssc_read_rx_fifo()
112 *spi_st->rx_ptr++ = word & 0xff; in ssc_read_rx_fifo()
127 spi_st->rx_ptr = t->rx_buf; in spi_st_transfer_one()
Dspi-sifive.c246 static void sifive_spi_rx(struct sifive_spi *spi, u8 *rx_ptr) in sifive_spi_rx() argument
251 *rx_ptr = data & SIFIVE_SPI_RXDATA_DATA_MASK; in sifive_spi_rx()
261 u8 *rx_ptr = t->rx_buf; in sifive_spi_transfer_one() local
272 if (rx_ptr) { in sifive_spi_transfer_one()
280 sifive_spi_rx(spi, rx_ptr++); in sifive_spi_transfer_one()
/Linux-v5.15/include/uapi/linux/hsi/
Dcs-protocol.h101 __u32 rx_ptr; member
/Linux-v5.15/drivers/net/hamradio/
Ddmascc.c193 int rx_ptr; member
742 priv->rx_ptr = 0; in scc_open()
1038 priv->rx_ptr = 0; in rx_on()
1166 if (priv->rx_ptr < BUF_SIZE) in rx_isr()
1168 rx_ptr++] = in rx_isr()
1200 cb = priv->rx_ptr - 2; in special_condition()
1240 priv->rx_ptr = 0; in special_condition()
/Linux-v5.15/drivers/net/ethernet/amd/
D7990.h79 volatile unsigned short rx_ptr; /* receive descriptor addr */ member
Da2065.c90 unsigned short rx_ptr; /* receive descriptor addr */ member
204 ib->rx_ptr = leptr; in lance_init_ring()
Dsunlance.c216 u16 rx_ptr; /* receive descriptor addr */ member
365 ib->rx_ptr = leptr; in lance_init_ring_dvma()
425 sbus_writew(leptr, &ib->rx_ptr); in lance_init_ring_pio()
Ddeclance.c214 unsigned short rx_ptr; /* receive descriptor addr */ member
477 *lib_ptr(ib, rx_ptr, lp->type) = leptr; in lance_init_ring()
D7990.c211 ib->rx_ptr = leptr; in lance_init_ring()
/Linux-v5.15/drivers/net/wireless/
Dray_cs.c2104 UCHAR *rx_ptr; in rx_data() local
2183 rx_ptr = skb_put(skb, total_len); in rx_data()
2185 rx_ptr += in rx_data()
2186 copy_from_rx_buff(local, rx_ptr, pkt_addr & RX_BUFF_END, rx_len); in rx_data()
2228 rx_ptr += in rx_data()
2229 copy_from_rx_buff(local, rx_ptr, pkt_addr, rx_len); in rx_data()
/Linux-v5.15/drivers/atm/
Dambassador.h496 u32 rx_ptr; member
/Linux-v5.15/drivers/net/ethernet/brocade/bna/
Dbna_tx_rx.c2027 struct bna_rx *rx_ptr; in bna_rx_mod_init() local
2052 rx_ptr = &rx_mod->rx[index]; in bna_rx_mod_init()
2054 INIT_LIST_HEAD(&rx_ptr->rxp_q); in bna_rx_mod_init()
2055 rx_ptr->bna = NULL; in bna_rx_mod_init()
2056 rx_ptr->rid = index; in bna_rx_mod_init()
2057 rx_ptr->stop_cbfn = NULL; in bna_rx_mod_init()
2058 rx_ptr->stop_cbarg = NULL; in bna_rx_mod_init()
2060 list_add_tail(&rx_ptr->qe, &rx_mod->rx_free_q); in bna_rx_mod_init()
/Linux-v5.15/drivers/usb/host/
Dfhci.h177 __be32 rx_ptr; /* Rx internal data pointer */ member
/Linux-v5.15/drivers/hsi/clients/
Dcmt_speech.c591 hi->mmap_cfg->rx_ptr = hi->rx_slot; in cs_hsi_read_on_data_complete()