/kernel/linux/linux-6.6/sound/drivers/ |
H A D | pcmtest.c | 189 inc_buf_pos(v_iter, 1, runtime->dma_bytes); in check_buf_block_i() 192 inc_buf_pos(v_iter, v_iter->b_rw - i, runtime->dma_bytes); in check_buf_block_i() 212 inc_buf_pos(v_iter, 1, runtime->dma_bytes); in check_buf_block_ni() 214 inc_buf_pos(v_iter, v_iter->b_rw - i, runtime->dma_bytes); in check_buf_block_ni() 249 inc_buf_pos(v_iter, 1, runtime->dma_bytes); in fill_block_pattern_n() 268 inc_buf_pos(v_iter, 1, runtime->dma_bytes); in fill_block_pattern_i() 286 size_t bytes_remain = runtime->dma_bytes - v_iter->buf_pos; in fill_block_rand_n() 302 inc_buf_pos(v_iter, v_iter->b_rw, runtime->dma_bytes); in fill_block_rand_n() 307 size_t in_cur_block = runtime->dma_bytes - v_iter->buf_pos; in fill_block_rand_i() 315 inc_buf_pos(v_iter, v_iter->b_rw, runtime->dma_bytes); in fill_block_rand_i() [all...] |
/kernel/linux/linux-5.10/sound/pci/trident/ |
H A D | trident_memory.c | 182 if (snd_BUG_ON(runtime->dma_bytes <= 0 || in snd_trident_alloc_sg_pages() 183 runtime->dma_bytes > SNDRV_TRIDENT_MAX_PAGES * in snd_trident_alloc_sg_pages() 193 blk = search_empty(hdr, runtime->dma_bytes); in snd_trident_alloc_sg_pages() 231 if (snd_BUG_ON(runtime->dma_bytes <= 0 || in snd_trident_alloc_cont_pages() 232 runtime->dma_bytes > SNDRV_TRIDENT_MAX_PAGES * in snd_trident_alloc_cont_pages() 240 blk = search_empty(hdr, runtime->dma_bytes); in snd_trident_alloc_cont_pages()
|
/kernel/linux/linux-6.6/sound/pci/trident/ |
H A D | trident_memory.c | 165 if (snd_BUG_ON(runtime->dma_bytes <= 0 || in snd_trident_alloc_sg_pages() 166 runtime->dma_bytes > SNDRV_TRIDENT_MAX_PAGES * in snd_trident_alloc_sg_pages() 176 blk = search_empty(hdr, runtime->dma_bytes); in snd_trident_alloc_sg_pages() 211 if (snd_BUG_ON(runtime->dma_bytes <= 0 || in snd_trident_alloc_cont_pages() 212 runtime->dma_bytes > SNDRV_TRIDENT_MAX_PAGES * in snd_trident_alloc_cont_pages() 220 blk = search_empty(hdr, runtime->dma_bytes); in snd_trident_alloc_cont_pages()
|
/kernel/linux/linux-5.10/include/sound/ |
H A D | compress_driver.h | 38 * @dma_bytes: size of DMA area 55 size_t dma_bytes; member 216 runtime->dma_bytes = bufp->bytes; in snd_compr_set_runtime_buffer() 221 runtime->dma_bytes = 0; in snd_compr_set_runtime_buffer()
|
/kernel/linux/linux-6.6/include/sound/ |
H A D | compress_driver.h | 38 * @dma_bytes: size of DMA area 55 size_t dma_bytes; member 230 runtime->dma_bytes = bufp->bytes; in snd_compr_set_runtime_buffer() 235 runtime->dma_bytes = 0; in snd_compr_set_runtime_buffer()
|
/kernel/linux/linux-5.10/sound/soc/uniphier/ |
H A D | aio-dma.c | 36 ret = aiodma_rb_set_threshold(sub, runtime->dma_bytes, in aiodma_pcm_irq() 41 aiodma_rb_sync(sub, runtime->dma_addr, runtime->dma_bytes, bytes); in aiodma_pcm_irq() 125 runtime->dma_addr + runtime->dma_bytes, in uniphier_aiodma_prepare() 149 aiodma_rb_sync(sub, runtime->dma_addr, runtime->dma_bytes, in uniphier_aiodma_trigger() 183 aiodma_rb_sync(sub, runtime->dma_addr, runtime->dma_bytes, bytes); in uniphier_aiodma_pointer()
|
/kernel/linux/linux-6.6/sound/soc/uniphier/ |
H A D | aio-dma.c | 36 ret = aiodma_rb_set_threshold(sub, runtime->dma_bytes, in aiodma_pcm_irq() 41 aiodma_rb_sync(sub, runtime->dma_addr, runtime->dma_bytes, bytes); in aiodma_pcm_irq() 125 runtime->dma_addr + runtime->dma_bytes, in uniphier_aiodma_prepare() 149 aiodma_rb_sync(sub, runtime->dma_addr, runtime->dma_bytes, in uniphier_aiodma_trigger() 183 aiodma_rb_sync(sub, runtime->dma_addr, runtime->dma_bytes, bytes); in uniphier_aiodma_pointer()
|
/kernel/linux/linux-5.10/sound/soc/codecs/ |
H A D | rt5677-spi.c | 219 if (begin > end || runtime->dma_bytes < 2 * bytes_per_frame) { in rt5677_spi_copy_block() 222 begin, end, runtime->dma_bytes); in rt5677_spi_copy_block() 233 if (end - begin > runtime->dma_bytes - bytes_per_frame) in rt5677_spi_copy_block() 234 begin = end - (runtime->dma_bytes - bytes_per_frame); in rt5677_spi_copy_block() 239 if (rt5677_dsp->dma_offset + first_chunk_len > runtime->dma_bytes) { in rt5677_spi_copy_block() 242 first_chunk_len = runtime->dma_bytes - rt5677_dsp->dma_offset; in rt5677_spi_copy_block() 253 if (rt5677_dsp->dma_offset == runtime->dma_bytes) in rt5677_spi_copy_block()
|
/kernel/linux/linux-6.6/sound/soc/codecs/ |
H A D | rt5677-spi.c | 219 if (begin > end || runtime->dma_bytes < 2 * bytes_per_frame) { in rt5677_spi_copy_block() 222 begin, end, runtime->dma_bytes); in rt5677_spi_copy_block() 233 if (end - begin > runtime->dma_bytes - bytes_per_frame) in rt5677_spi_copy_block() 234 begin = end - (runtime->dma_bytes - bytes_per_frame); in rt5677_spi_copy_block() 239 if (rt5677_dsp->dma_offset + first_chunk_len > runtime->dma_bytes) { in rt5677_spi_copy_block() 242 first_chunk_len = runtime->dma_bytes - rt5677_dsp->dma_offset; in rt5677_spi_copy_block() 253 if (rt5677_dsp->dma_offset == runtime->dma_bytes) in rt5677_spi_copy_block()
|
/kernel/linux/linux-5.10/sound/soc/mediatek/common/ |
H A D | mtk-afe-fe-dai.c | 135 dev_dbg(afe->dev, "%s(), %s, ch %d, rate %d, fmt %d, dma_addr %pad, dma_area %p, dma_bytes 0x%zx\n", in mtk_afe_fe_hw_params() 140 substream->runtime->dma_bytes); in mtk_afe_fe_hw_params() 143 substream->runtime->dma_bytes); in mtk_afe_fe_hw_params() 149 substream->runtime->dma_bytes); in mtk_afe_fe_hw_params() 402 size_t dma_bytes) in mtk_memif_set_addr() 411 memif->dma_bytes = dma_bytes; in mtk_memif_set_addr() 420 phys_buf_addr + dma_bytes - 1); in mtk_memif_set_addr() 425 phys_buf_addr + dma_bytes - 1); in mtk_memif_set_addr() 399 mtk_memif_set_addr(struct mtk_base_afe *afe, int id, unsigned char *dma_area, dma_addr_t dma_addr, size_t dma_bytes) mtk_memif_set_addr() argument
|
H A D | mtk-afe-fe-dai.h | 42 size_t dma_bytes);
|
H A D | mtk-base-afe.h | 123 size_t dma_bytes; member
|
/kernel/linux/linux-6.6/sound/soc/mediatek/common/ |
H A D | mtk-afe-fe-dai.c | 135 dev_dbg(afe->dev, "%s(), %s, ch %d, rate %d, fmt %d, dma_addr %pad, dma_area %p, dma_bytes 0x%zx\n", in mtk_afe_fe_hw_params() 140 substream->runtime->dma_bytes); in mtk_afe_fe_hw_params() 143 substream->runtime->dma_bytes); in mtk_afe_fe_hw_params() 149 substream->runtime->dma_bytes); in mtk_afe_fe_hw_params() 404 size_t dma_bytes) in mtk_memif_set_addr() 413 memif->dma_bytes = dma_bytes; in mtk_memif_set_addr() 422 phys_buf_addr + dma_bytes - 1); in mtk_memif_set_addr() 427 phys_buf_addr + dma_bytes - 1); in mtk_memif_set_addr() 401 mtk_memif_set_addr(struct mtk_base_afe *afe, int id, unsigned char *dma_area, dma_addr_t dma_addr, size_t dma_bytes) mtk_memif_set_addr() argument
|
H A D | mtk-afe-fe-dai.h | 42 size_t dma_bytes);
|
/kernel/linux/linux-6.6/sound/soc/sof/amd/ |
H A D | acp-pcm.c | 29 size = runtime->dma_bytes; in acp_pcm_hw_params() 30 stream->num_pages = PFN_UP(runtime->dma_bytes); in acp_pcm_hw_params()
|
/kernel/linux/linux-5.10/sound/soc/sh/ |
H A D | dma-sh7760.c | 200 (u32)runtime->dma_addr, runtime->dma_bytes); in camelot_prepare() 204 BRGREG(BRGATXTCR) = runtime->dma_bytes; in camelot_prepare() 207 BRGREG(BRGARXTCR) = runtime->dma_bytes; in camelot_prepare()
|
/kernel/linux/linux-6.6/sound/soc/atmel/ |
H A D | atmel-pcm-pdc.c | 152 prtd->dma_buffer_end = runtime->dma_addr + runtime->dma_bytes; in atmel_pcm_hw_params() 157 "(dma_bytes=%zu, period_size=%zu)\n", in atmel_pcm_hw_params() 159 runtime->dma_bytes, in atmel_pcm_hw_params() 201 "dma_area = %p, dma_bytes = %zu\n", in atmel_pcm_trigger() 202 rtd->buffer_size, rtd->dma_area, rtd->dma_bytes); in atmel_pcm_trigger()
|
/kernel/linux/linux-6.6/sound/soc/sh/ |
H A D | dma-sh7760.c | 199 (u32)runtime->dma_addr, runtime->dma_bytes); in camelot_prepare() 203 BRGREG(BRGATXTCR) = runtime->dma_bytes; in camelot_prepare() 206 BRGREG(BRGARXTCR) = runtime->dma_bytes; in camelot_prepare()
|
/kernel/linux/linux-5.10/sound/soc/bcm/ |
H A D | bcm63xx-pcm-whistler.c | 52 runtime->dma_bytes = params_buffer_bytes(params); in bcm63xx_pcm_hw_params() 202 runtime->dma_bytes); in bcm63xx_pcm_mmap() 292 runtime->dma_bytes) { in i2s_dma_isr() 342 runtime->dma_bytes) { in i2s_dma_isr()
|
/kernel/linux/linux-5.10/sound/soc/atmel/ |
H A D | atmel-pcm-pdc.c | 214 runtime->dma_bytes = params_buffer_bytes(params); in atmel_pcm_hw_params() 220 prtd->dma_buffer_end = runtime->dma_addr + runtime->dma_bytes; in atmel_pcm_hw_params() 225 "(dma_bytes=%zu, period_size=%zu)\n", in atmel_pcm_hw_params() 227 runtime->dma_bytes, in atmel_pcm_hw_params() 269 "dma_area = %p, dma_bytes = %zu\n", in atmel_pcm_trigger() 270 rtd->buffer_size, rtd->dma_area, rtd->dma_bytes); in atmel_pcm_trigger()
|
/kernel/linux/linux-5.10/sound/core/ |
H A D | pcm_memory.c | 428 runtime->dma_bytes = size; in snd_pcm_lib_malloc_pages() 450 runtime->dma_bytes = size; in snd_pcm_lib_malloc_pages() 493 if (runtime->dma_bytes >= size) in _snd_pcm_lib_alloc_vmalloc_buffer() 500 runtime->dma_bytes = size; in _snd_pcm_lib_alloc_vmalloc_buffer()
|
/kernel/linux/linux-6.6/sound/core/ |
H A D | pcm_memory.c | 443 runtime->dma_bytes = size; in snd_pcm_lib_malloc_pages() 473 runtime->dma_bytes = size; in snd_pcm_lib_malloc_pages() 516 if (runtime->dma_bytes >= size) in _snd_pcm_lib_alloc_vmalloc_buffer() 523 runtime->dma_bytes = size; in _snd_pcm_lib_alloc_vmalloc_buffer()
|
/kernel/linux/linux-5.10/sound/pci/emu10k1/ |
H A D | memory.c | 306 if (snd_BUG_ON(runtime->dma_bytes <= 0 || in snd_emu10k1_alloc_pages() 307 runtime->dma_bytes >= (emu->address_mode ? MAXPAGES1 : MAXPAGES0) * EMUPAGESIZE)) in snd_emu10k1_alloc_pages() 316 blk = search_empty(emu, runtime->dma_bytes + idx); in snd_emu10k1_alloc_pages() 328 if (ofs >= runtime->dma_bytes) in snd_emu10k1_alloc_pages()
|
/kernel/linux/linux-6.6/sound/pci/emu10k1/ |
H A D | memory.c | 311 if (snd_BUG_ON(runtime->dma_bytes <= 0 || in snd_emu10k1_alloc_pages() 312 runtime->dma_bytes >= (emu->address_mode ? MAXPAGES1 : MAXPAGES0) * EMUPAGESIZE)) in snd_emu10k1_alloc_pages() 319 blk = search_empty(emu, runtime->dma_bytes); in snd_emu10k1_alloc_pages() 331 if (ofs >= runtime->dma_bytes) in snd_emu10k1_alloc_pages()
|
/kernel/linux/linux-5.10/sound/soc/samsung/ |
H A D | idma.c | 88 val |= (((runtime->dma_bytes >> 2) & in idma_enqueue() 155 runtime->dma_bytes = params_buffer_bytes(params); in idma_hw_params() 160 prtd->end = runtime->dma_addr + runtime->dma_bytes; in idma_hw_params()
|