Home
last modified time | relevance | path

Searched refs:dma_bytes (Results 1 – 25 of 61) sorted by relevance

123

/linux/sound/pci/trident/
H A Dtrident_memory.c165 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()
/linux/sound/drivers/
H A Dpcmtest.c189 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 …]
/linux/sound/soc/uniphier/
H A Daio-dma.c36 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()
/linux/include/sound/
H A Dcompress_driver.h55 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()
/linux/sound/soc/codecs/
H A Drt5677-spi.c219 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()
/linux/sound/soc/mediatek/common/
H A Dmtk-afe-fe-dai.c140 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() argument
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()
H A Dmtk-afe-fe-dai.h42 size_t dma_bytes);
H A Dmtk-base-afe.h149 size_t dma_bytes; member
/linux/sound/soc/sof/amd/
H A Dacp-pcm.c29 size = runtime->dma_bytes; in acp_pcm_hw_params()
30 stream->num_pages = PFN_UP(runtime->dma_bytes); in acp_pcm_hw_params()
H A Dacp-probes.c80 stream->num_pages = PFN_UP(cstream->runtime->dma_bytes); in acp_probes_compr_set_params()
/linux/sound/soc/sh/
H A Ddma-sh7760.c199 runtime->dma_bytes); in camelot_prepare()
203 BRGREG(BRGATXTCR) = runtime->dma_bytes; in camelot_prepare()
206 BRGREG(BRGARXTCR) = runtime->dma_bytes; in camelot_prepare()
/linux/sound/core/
H A Dpcm_memory.c437 runtime->dma_bytes = size; in snd_pcm_lib_malloc_pages()
467 runtime->dma_bytes = size; in snd_pcm_lib_malloc_pages()
510 if (runtime->dma_bytes >= size) in _snd_pcm_lib_alloc_vmalloc_buffer()
517 runtime->dma_bytes = size; in _snd_pcm_lib_alloc_vmalloc_buffer()
H A Dpcm_native.c827 size_t size = runtime->dma_bytes; in snd_pcm_hw_params()
2671 if (runtime->dma_bytes) { in snd_pcm_hw_constraints_complete()
2672 …rr = snd_pcm_hw_constraint_minmax(runtime, SNDRV_PCM_HW_PARAM_BUFFER_BYTES, 0, runtime->dma_bytes); in snd_pcm_hw_constraints_complete()
3773 size_t dma_bytes; in snd_pcm_mmap_data_fault() local
3779 dma_bytes = PAGE_ALIGN(runtime->dma_bytes); in snd_pcm_mmap_data_fault()
3780 if (offset > dma_bytes - PAGE_SIZE) in snd_pcm_mmap_data_fault()
3854 return vm_iomap_memory(area, runtime->dma_addr, runtime->dma_bytes); in snd_pcm_lib_mmap_iomem()
3868 size_t dma_bytes; in snd_pcm_mmap_data() local
3888 dma_bytes = PAGE_ALIGN(runtime->dma_bytes); in snd_pcm_mmap_data()
3889 if ((size_t)size > dma_bytes) in snd_pcm_mmap_data()
[all …]
/linux/sound/soc/atmel/
H A Datmel-pcm-pdc.c152 prtd->dma_buffer_end = runtime->dma_addr + runtime->dma_bytes; in atmel_pcm_hw_params()
159 runtime->dma_bytes, in atmel_pcm_hw_params()
202 rtd->buffer_size, rtd->dma_area, rtd->dma_bytes); in atmel_pcm_trigger()
/linux/sound/soc/samsung/
H A Didma.c88 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()
/linux/sound/soc/sof/
H A Dcompress.c208 ret = create_page_table(component, cstream, crtd->dma_area, crtd->dma_bytes); in sof_compr_set_params()
212 pcm->params.buffer.pages = PFN_UP(crtd->dma_bytes); in sof_compr_set_params()
219 pcm->params.buffer.size = crtd->dma_bytes; in sof_compr_set_params()
H A Dipc3-pcm.c60 pcm.params.buffer.pages = PFN_UP(runtime->dma_bytes); in sof_ipc3_pcm_hw_params()
68 pcm.params.buffer.size = runtime->dma_bytes; in sof_ipc3_pcm_hw_params()
/linux/sound/pci/emu10k1/
H A Dmemory.c311 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()
/linux/drivers/media/usb/go7007/
H A Dsnd-go7007.c77 if (gosnd->w_idx + length > runtime->dma_bytes) { in parse_audio_stream_data()
78 int cpy = runtime->dma_bytes - gosnd->w_idx; in parse_audio_stream_data()
/linux/sound/soc/bcm/
H A Dbcm63xx-pcm-whistler.c275 runtime->dma_bytes) { in i2s_dma_isr()
325 runtime->dma_bytes) { in i2s_dma_isr()
/linux/drivers/usb/gadget/udc/
H A Domap_udc.h135 unsigned dma_bytes; member
/linux/sound/isa/msnd/
H A Dmsnd.c477 runtime->dma_bytes = 0x3000; in snd_msnd_playback_open()
582 runtime->dma_bytes = 0x3000; in snd_msnd_capture_open()
583 memset(runtime->dma_area, 0, runtime->dma_bytes); in snd_msnd_capture_open()
/linux/sound/ppc/
H A Dsnd_ps3.c583 card->dma_buffer_size = runtime->dma_bytes; in snd_ps3_pcm_prepare()
594 runtime->dma_area + (runtime->dma_bytes / 2); in snd_ps3_pcm_prepare()
596 runtime->dma_addr + (runtime->dma_bytes / 2); in snd_ps3_pcm_prepare()
/linux/sound/soc/meson/
H A Daiu-fifo.c105 end = runtime->dma_addr + runtime->dma_bytes - fifo->fifo_block; in aiu_fifo_hw_params()
/linux/sound/soc/qcom/
H A Dlpass-platform.c256 runtime->dma_bytes = lpass_platform_pcm_hardware.buffer_bytes_max; in lpass_platform_pcmops_open()
261 runtime->dma_bytes = lpass_platform_rxtx_hardware.buffer_bytes_max; in lpass_platform_pcmops_open()
266 runtime->dma_bytes = lpass_platform_va_hardware.buffer_bytes_max; in lpass_platform_pcmops_open()
1231 channel * (rt->dma_bytes / rt->channels)); in lpass_platform_copy()

123