Home
last modified time | relevance | path

Searched refs:sg_num (Results 1 – 2 of 2) sorted by relevance

/sound/soc/sprd/
Dsprd-pcm-dma.c201 int ret, i, j, sg_num; in sprd_pcm_hw_params() local
223 sg_num = totsize / period; in sprd_pcm_hw_params()
226 sg = devm_kcalloc(component->dev, sg_num, sizeof(*sg), GFP_KERNEL); in sprd_pcm_hw_params()
255 sg_init_table(sgt, sg_num); in sprd_pcm_hw_params()
256 for (j = 0; j < sg_num; j++, sgt++) { in sprd_pcm_hw_params()
285 sg_num, dir, in sprd_pcm_hw_params()
Dsprd-pcm-compress.c146 int period, period_cnt, sg_num = 2; 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()
239 sg_num, dir, in sprd_platform_compr_dma_config()