Searched refs:sgbuf (Results 1 – 6 of 6) sorted by relevance
21 struct snd_sg_buf *sgbuf = dmab->private_data; in snd_free_sgbuf_pages() local25 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 …]
361 struct snd_sg_buf *sgbuf = snd_pcm_substream_sgbuf(substream); in snd_pcm_sgbuf_ops_page() local364 if (idx >= (unsigned int)sgbuf->pages) in snd_pcm_sgbuf_ops_page()366 return sgbuf->page_table[idx]; in snd_pcm_sgbuf_ops_page()
22 snd-pcm-$(CONFIG_SND_DMA_SGBUF) += sgbuf.o
96 struct snd_sg_buf *sgbuf = dmab->private_data; in snd_sgbuf_get_addr() local99 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() local114 if (!sgbuf) in snd_sgbuf_get_ptr()116 return sgbuf->table[offset >> PAGE_SHIFT].buf + offset % PAGE_SIZE; in snd_sgbuf_get_ptr()
832 struct pl011_sgbuf *sgbuf; in pl011_dma_rx_trigger_dma() local838 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() local890 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() local975 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 …]
3776 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