Searched refs:strm (Results 1 – 1 of 1) sorted by relevance
/Zephyr-latest/drivers/i2s/ |
D | i2s_mcux_sai.c | 118 static inline void i2s_purge_stream_buffers(struct stream *strm, struct k_mem_slab *mem_slab, in i2s_purge_stream_buffers() argument 124 while (k_msgq_get(&strm->in_queue, &buffer, K_NO_WAIT) == 0) { in i2s_purge_stream_buffers() 130 while (k_msgq_get(&strm->out_queue, &buffer, K_NO_WAIT) == 0) { in i2s_purge_stream_buffers() 139 struct stream *strm = &dev_data->tx; in i2s_tx_stream_disable() local 143 LOG_DBG("Stopping DMA channel %u for TX stream", strm->dma_channel); in i2s_tx_stream_disable() 148 dma_stop(dev_dma, strm->dma_channel); in i2s_tx_stream_disable() 169 i2s_purge_stream_buffers(strm, dev_data->tx.cfg.mem_slab, true, true); in i2s_tx_stream_disable() 176 struct stream *strm = &dev_data->rx; in i2s_rx_stream_disable() local 180 LOG_DBG("Stopping RX stream & DMA channel %u", strm->dma_channel); in i2s_rx_stream_disable() 181 dma_stop(dev_dma, strm->dma_channel); in i2s_rx_stream_disable() [all …]
|