Home
last modified time | relevance | path

Searched refs:sgbuf (Results 1 – 6 of 6) sorted by relevance

/kernel/linux/linux-5.10/sound/core/
Dsgbuf.c21 struct snd_sg_buf *sgbuf = dmab->private_data; in snd_free_sgbuf_pages() local
25 if (! sgbuf) in snd_free_sgbuf_pages()
34 tmpb.dev.dev = sgbuf->dev; in snd_free_sgbuf_pages()
35 for (i = 0; i < sgbuf->pages; i++) { in snd_free_sgbuf_pages()
36 if (!(sgbuf->table[i].addr & ~PAGE_MASK)) in snd_free_sgbuf_pages()
38 tmpb.area = sgbuf->table[i].buf; in snd_free_sgbuf_pages()
39 tmpb.addr = sgbuf->table[i].addr & PAGE_MASK; in snd_free_sgbuf_pages()
40 tmpb.bytes = (sgbuf->table[i].addr & ~PAGE_MASK) << PAGE_SHIFT; in snd_free_sgbuf_pages()
44 kfree(sgbuf->table); in snd_free_sgbuf_pages()
45 kfree(sgbuf->page_table); in snd_free_sgbuf_pages()
[all …]
Dpcm_memory.c361 struct snd_sg_buf *sgbuf = snd_pcm_substream_sgbuf(substream); in snd_pcm_sgbuf_ops_page() local
364 if (idx >= (unsigned int)sgbuf->pages) in snd_pcm_sgbuf_ops_page()
366 return sgbuf->page_table[idx]; in snd_pcm_sgbuf_ops_page()
DMakefile22 snd-pcm-$(CONFIG_SND_DMA_SGBUF) += sgbuf.o
/kernel/linux/linux-5.10/include/sound/
Dmemalloc.h96 struct snd_sg_buf *sgbuf = dmab->private_data; in snd_sgbuf_get_addr() local
99 if (!sgbuf) in snd_sgbuf_get_addr()
101 addr = sgbuf->table[offset >> PAGE_SHIFT].addr; in snd_sgbuf_get_addr()
112 struct snd_sg_buf *sgbuf = dmab->private_data; in snd_sgbuf_get_ptr() local
114 if (!sgbuf) in snd_sgbuf_get_ptr()
116 return sgbuf->table[offset >> PAGE_SHIFT].buf + offset % PAGE_SIZE; in snd_sgbuf_get_ptr()
/kernel/linux/linux-5.10/drivers/tty/serial/
Damba-pl011.c832 struct pl011_sgbuf *sgbuf; in pl011_dma_rx_trigger_dma() local
838 sgbuf = uap->dmarx.use_buf_b ? in pl011_dma_rx_trigger_dma()
840 desc = dmaengine_prep_slave_sg(rxchan, &sgbuf->sg, 1, in pl011_dma_rx_trigger_dma()
880 struct pl011_sgbuf *sgbuf = use_buf_b ? in pl011_dma_rx_chars() local
890 dmataken = sgbuf->sg.length - dmarx->last_residue; in pl011_dma_rx_chars()
904 dma_count = tty_insert_flip_string(port, sgbuf->buf + dmataken, in pl011_dma_rx_chars()
915 dmarx->last_residue = sgbuf->sg.length; in pl011_dma_rx_chars()
952 struct pl011_sgbuf *sgbuf = dmarx->use_buf_b ? in pl011_dma_rx_irq() local
975 pending = sgbuf->sg.length - state.residue; in pl011_dma_rx_irq()
1002 struct pl011_sgbuf *sgbuf = dmarx->use_buf_b ? in pl011_dma_rx_callback() local
[all …]
/kernel/linux/linux-5.10/Documentation/sound/kernel-api/
Dwriting-an-alsa-driver.rst3776 struct snd_sg_buf *sgbuf = (struct snd_sg_buf *)substream->dma_private;
3784 ``sgbuf->table``. You can get the physical address at a certain offset