Searched refs:sgt (Results 1 – 3 of 3) sorted by relevance
/sound/core/ |
D | memalloc.c | 542 struct sg_table *sgt; in snd_dma_noncontig_alloc() local 549 sgt = dma_alloc_noncontiguous(dmab->dev.dev, size, dmab->dev.dir, in snd_dma_noncontig_alloc() 552 if (!sgt && !get_dma_ops(dmab->dev.dev)) in snd_dma_noncontig_alloc() 555 if (!sgt) in snd_dma_noncontig_alloc() 559 sg_dma_address(sgt->sgl)); in snd_dma_noncontig_alloc() 560 p = dma_vmap_noncontiguous(dmab->dev.dev, size, sgt); in snd_dma_noncontig_alloc() 562 dmab->private_data = sgt; in snd_dma_noncontig_alloc() 566 dma_free_noncontiguous(dmab->dev.dev, size, sgt, dmab->dev.dir); in snd_dma_noncontig_alloc() 607 struct sg_table *sgt = dmab->private_data; in snd_dma_noncontig_iter_set() local 609 __sg_page_iter_start(piter, sgt->sgl, sgt->orig_nents, in snd_dma_noncontig_iter_set() [all …]
|
/sound/soc/sprd/ |
D | sprd-pcm-dma.c | 233 struct scatterlist *sgt = sg; in sprd_pcm_hw_params() local 250 sg_init_table(sgt, sg_num); in sprd_pcm_hw_params() 251 for (j = 0; j < sg_num; j++, sgt++) { in sprd_pcm_hw_params() 254 sg_dma_len(sgt) = sg_len; in sprd_pcm_hw_params() 255 sg_dma_address(sgt) = runtime->dma_addr + in sprd_pcm_hw_params()
|
D | sprd-pcm-compress.c | 144 struct scatterlist *sg, *sgt; in sprd_platform_compr_dma_config() local 163 sgt = sg = devm_kcalloc(dev, sg_num, sizeof(*sg), GFP_KERNEL); in sprd_platform_compr_dma_config() 214 sg_init_table(sgt, sg_num); in sprd_platform_compr_dma_config() 215 for (j = 0; j < sg_num; j++, sgt++) { in sprd_platform_compr_dma_config() 216 sg_dma_len(sgt) = dma->trans_len; in sprd_platform_compr_dma_config() 217 sg_dma_address(sgt) = dst_addr; in sprd_platform_compr_dma_config()
|