Home
last modified time | relevance | path

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

/Linux-v5.15/sound/core/
Dsgbuf.c35 struct snd_sg_buf *sgbuf = dmab->private_data; in snd_dma_sg_free() local
39 if (!sgbuf) in snd_dma_sg_free()
48 tmpb.dev.dev = sgbuf->dev; in snd_dma_sg_free()
49 for (i = 0; i < sgbuf->pages; i++) { in snd_dma_sg_free()
50 if (!(sgbuf->table[i].addr & ~PAGE_MASK)) in snd_dma_sg_free()
52 tmpb.area = sgbuf->table[i].buf; in snd_dma_sg_free()
53 tmpb.addr = sgbuf->table[i].addr & PAGE_MASK; in snd_dma_sg_free()
54 tmpb.bytes = (sgbuf->table[i].addr & ~PAGE_MASK) << PAGE_SHIFT; in snd_dma_sg_free()
58 kfree(sgbuf->table); in snd_dma_sg_free()
59 kfree(sgbuf->page_table); in snd_dma_sg_free()
[all …]
DMakefile20 snd-pcm-$(CONFIG_SND_DMA_SGBUF) += sgbuf.o
/Linux-v5.15/drivers/tty/serial/
Damba-pl011.c836 struct pl011_sgbuf *sgbuf; in pl011_dma_rx_trigger_dma() local
842 sgbuf = uap->dmarx.use_buf_b ? in pl011_dma_rx_trigger_dma()
844 desc = dmaengine_prep_slave_sg(rxchan, &sgbuf->sg, 1, in pl011_dma_rx_trigger_dma()
884 struct pl011_sgbuf *sgbuf = use_buf_b ? in pl011_dma_rx_chars() local
894 dmataken = sgbuf->sg.length - dmarx->last_residue; in pl011_dma_rx_chars()
908 dma_count = tty_insert_flip_string(port, sgbuf->buf + dmataken, in pl011_dma_rx_chars()
919 dmarx->last_residue = sgbuf->sg.length; in pl011_dma_rx_chars()
954 struct pl011_sgbuf *sgbuf = dmarx->use_buf_b ? in pl011_dma_rx_irq() local
977 pending = sgbuf->sg.length - state.residue; in pl011_dma_rx_irq()
1004 struct pl011_sgbuf *sgbuf = dmarx->use_buf_b ? in pl011_dma_rx_callback() local
[all …]
/Linux-v5.15/Documentation/sound/kernel-api/
Dwriting-an-alsa-driver.rst3777 struct snd_sg_buf *sgbuf = (struct snd_sg_buf *)substream->dma_private;
3785 ``sgbuf->table``. You can get the physical address at a certain offset