Home
last modified time | relevance | path

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

123

/Linux-v5.4/drivers/media/usb/go7007/
Dsnd-go7007.c78 if (gosnd->w_idx + length > runtime->dma_bytes) { in parse_audio_stream_data()
79 int cpy = runtime->dma_bytes - gosnd->w_idx; in parse_audio_stream_data()
106 if (substream->runtime->dma_bytes > 0) in go7007_snd_hw_params()
108 substream->runtime->dma_bytes = 0; in go7007_snd_hw_params()
112 substream->runtime->dma_bytes = bytes; in go7007_snd_hw_params()
122 if (substream->runtime->dma_bytes > 0) in go7007_snd_hw_free()
124 substream->runtime->dma_bytes = 0; in go7007_snd_hw_free()
/Linux-v5.4/sound/soc/uniphier/
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()
110 substream->runtime->dma_bytes = params_buffer_bytes(params); in uniphier_aiodma_hw_params()
118 substream->runtime->dma_bytes = 0; in uniphier_aiodma_hw_free()
140 runtime->dma_addr + runtime->dma_bytes, in uniphier_aiodma_prepare()
163 aiodma_rb_sync(sub, runtime->dma_addr, runtime->dma_bytes, in uniphier_aiodma_trigger()
196 aiodma_rb_sync(sub, runtime->dma_addr, runtime->dma_bytes, bytes); in uniphier_aiodma_pointer()
/Linux-v5.4/sound/pci/trident/
Dtrident_memory.c182 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()
/Linux-v5.4/sound/core/
Dpcm_memory.c304 runtime->dma_bytes = size; in snd_pcm_lib_malloc_pages()
325 runtime->dma_bytes = size; in snd_pcm_lib_malloc_pages()
366 if (runtime->dma_bytes >= size) in _snd_pcm_lib_alloc_vmalloc_buffer()
373 runtime->dma_bytes = size; in _snd_pcm_lib_alloc_vmalloc_buffer()
Dpcm_native.c2389 if (runtime->dma_bytes) { in snd_pcm_hw_constraints_complete()
2390 …rr = snd_pcm_hw_constraint_minmax(runtime, SNDRV_PCM_HW_PARAM_BUFFER_BYTES, 0, runtime->dma_bytes); in snd_pcm_hw_constraints_complete()
3349 size_t dma_bytes; in snd_pcm_mmap_data_fault() local
3355 dma_bytes = PAGE_ALIGN(runtime->dma_bytes); in snd_pcm_mmap_data_fault()
3356 if (offset > dma_bytes - PAGE_SIZE) in snd_pcm_mmap_data_fault()
3411 substream->runtime->dma_bytes); in snd_pcm_lib_default_mmap()
3438 return vm_iomap_memory(area, runtime->dma_addr, runtime->dma_bytes); in snd_pcm_lib_mmap_iomem()
3452 size_t dma_bytes; in snd_pcm_mmap_data() local
3472 dma_bytes = PAGE_ALIGN(runtime->dma_bytes); in snd_pcm_mmap_data()
3473 if ((size_t)size > dma_bytes) in snd_pcm_mmap_data()
[all …]
/Linux-v5.4/sound/soc/sh/
Ddma-sh7760.c206 (u32)runtime->dma_addr, runtime->dma_bytes); in camelot_prepare()
210 BRGREG(BRGATXTCR) = runtime->dma_bytes; in camelot_prepare()
213 BRGREG(BRGARXTCR) = runtime->dma_bytes; in camelot_prepare()
/Linux-v5.4/sound/soc/atmel/
Datmel-pcm-pdc.c210 runtime->dma_bytes = params_buffer_bytes(params); in atmel_pcm_hw_params()
216 prtd->dma_buffer_end = runtime->dma_addr + runtime->dma_bytes; in atmel_pcm_hw_params()
223 runtime->dma_bytes, in atmel_pcm_hw_params()
264 rtd->buffer_size, rtd->dma_area, rtd->dma_bytes); in atmel_pcm_trigger()
/Linux-v5.4/drivers/media/usb/tm6000/
Dtm6000-alsa.c105 substream->runtime->dma_bytes = 0; in dsp_buffer_free()
115 if (substream->runtime->dma_bytes > size) in dsp_buffer_alloc()
125 substream->runtime->dma_bytes = size; in dsp_buffer_alloc()
/Linux-v5.4/sound/soc/samsung/
Didma.c88 val |= (((runtime->dma_bytes >> 2) & in idma_enqueue()
154 runtime->dma_bytes = params_buffer_bytes(params); in idma_hw_params()
159 prtd->end = runtime->dma_addr + runtime->dma_bytes; in idma_hw_params()
/Linux-v5.4/sound/pci/emu10k1/
Dmemory.c306 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()
/Linux-v5.4/drivers/media/pci/cx18/
Dcx18-alsa-pcm.c224 if (runtime->dma_bytes > size) in snd_pcm_alloc_vmalloc_buffer()
233 runtime->dma_bytes = size; in snd_pcm_alloc_vmalloc_buffer()
/Linux-v5.4/drivers/media/pci/ivtv/
Divtv-alsa-pcm.c229 if (runtime->dma_bytes > size) in snd_pcm_alloc_vmalloc_buffer()
238 runtime->dma_bytes = size; in snd_pcm_alloc_vmalloc_buffer()
/Linux-v5.4/sound/soc/fsl/
Dimx-pcm-fiq.c216 runtime->dma_addr, runtime->dma_bytes); in snd_imx_pcm_mmap()
221 runtime->dma_bytes); in snd_imx_pcm_mmap()
/Linux-v5.4/sound/soc/intel/haswell/
Dsst-haswell-pcm.c605 runtime->dma_bytes, rtd->cpu_dai->id); in hsw_pcm_hw_params()
612 if (runtime->dma_bytes % PAGE_SIZE) in hsw_pcm_hw_params()
613 pages = (runtime->dma_bytes / PAGE_SIZE) + 1; in hsw_pcm_hw_params()
615 pages = runtime->dma_bytes / PAGE_SIZE; in hsw_pcm_hw_params()
619 pages, runtime->dma_bytes, 0, in hsw_pcm_hw_params()
720 bytes_to_frames(runtime, runtime->dma_bytes); in hsw_notify_pointer()
/Linux-v5.4/drivers/usb/gadget/udc/
Domap_udc.h135 unsigned dma_bytes; member
/Linux-v5.4/sound/isa/msnd/
Dmsnd.c476 runtime->dma_bytes = 0x3000; in snd_msnd_playback_open()
580 runtime->dma_bytes = 0x3000; in snd_msnd_capture_open()
581 memset(runtime->dma_area, 0, runtime->dma_bytes); in snd_msnd_capture_open()
/Linux-v5.4/sound/soc/sof/
Dpcm.c139 runtime->dma_bytes); in sof_pcm_hw_params()
145 pcm.params.buffer.pages = PFN_UP(runtime->dma_bytes); in sof_pcm_hw_params()
154 pcm.params.buffer.size = runtime->dma_bytes; in sof_pcm_hw_params()
/Linux-v5.4/drivers/media/pci/cobalt/
Dcobalt-alsa-pcm.c255 if (runtime->dma_bytes > size) in snd_pcm_alloc_vmalloc_buffer()
264 runtime->dma_bytes = size; in snd_pcm_alloc_vmalloc_buffer()
/Linux-v5.4/sound/ppc/
Dsnd_ps3.c599 card->dma_buffer_size = runtime->dma_bytes; in snd_ps3_pcm_prepare()
610 runtime->dma_area + (runtime->dma_bytes / 2); in snd_ps3_pcm_prepare()
612 runtime->dma_addr + (runtime->dma_bytes / 2); in snd_ps3_pcm_prepare()
/Linux-v5.4/sound/arm/
Dpxa2xx-pcm-lib.c139 runtime->dma_addr, runtime->dma_bytes); in pxa2xx_pcm_mmap()
/Linux-v5.4/sound/soc/qcom/
Dlpass-platform.c93 runtime->dma_bytes = lpass_platform_pcm_hardware.buffer_bytes_max; in lpass_platform_pcmops_open()
405 runtime->dma_bytes); in lpass_platform_pcmops_mmap()
/Linux-v5.4/sound/soc/sprd/
Dsprd-pcm-dma.c215 runtime->dma_bytes = totsize; in sprd_pcm_hw_params()
228 runtime->dma_bytes = totsize; in sprd_pcm_hw_params()
/Linux-v5.4/drivers/usb/gadget/function/
Du_audio.c148 pending = runtime->dma_bytes - hw_ptr; in u_audio_iso_complete()
172 prm->hw_ptr = (hw_ptr + req->actual) % runtime->dma_bytes; in u_audio_iso_complete()
/Linux-v5.4/include/sound/
Dpcm.h414 size_t dma_bytes; /* size of DMA area */ member
1144 runtime->dma_bytes = bufp->bytes; in snd_pcm_set_runtime_buffer()
1149 runtime->dma_bytes = 0; in snd_pcm_set_runtime_buffer()
/Linux-v5.4/sound/soc/au1x/
Ddbdma2.c210 (unsigned long)runtime->dma_addr, runtime->dma_bytes, in au1xpsc_pcm_hw_params()

123