Home
last modified time | relevance | path

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

123

/Linux-v4.19/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-v4.19/drivers/media/usb/go7007/
Dsnd-go7007.c86 if (gosnd->w_idx + length > runtime->dma_bytes) { in parse_audio_stream_data()
87 int cpy = runtime->dma_bytes - gosnd->w_idx; in parse_audio_stream_data()
114 if (substream->runtime->dma_bytes > 0) in go7007_snd_hw_params()
116 substream->runtime->dma_bytes = 0; in go7007_snd_hw_params()
120 substream->runtime->dma_bytes = bytes; in go7007_snd_hw_params()
130 if (substream->runtime->dma_bytes > 0) in go7007_snd_hw_free()
132 substream->runtime->dma_bytes = 0; in go7007_snd_hw_free()
/Linux-v4.19/sound/pci/trident/
Dtrident_memory.c197 if (snd_BUG_ON(runtime->dma_bytes <= 0 || in snd_trident_alloc_sg_pages()
198 runtime->dma_bytes > SNDRV_TRIDENT_MAX_PAGES * in snd_trident_alloc_sg_pages()
208 blk = search_empty(hdr, runtime->dma_bytes); in snd_trident_alloc_sg_pages()
246 if (snd_BUG_ON(runtime->dma_bytes <= 0 || in snd_trident_alloc_cont_pages()
247 runtime->dma_bytes > SNDRV_TRIDENT_MAX_PAGES * in snd_trident_alloc_cont_pages()
255 blk = search_empty(hdr, runtime->dma_bytes); in snd_trident_alloc_cont_pages()
/Linux-v4.19/sound/core/
Dpcm_memory.c345 runtime->dma_bytes = size; in snd_pcm_lib_malloc_pages()
366 runtime->dma_bytes = size; in snd_pcm_lib_malloc_pages()
407 if (runtime->dma_bytes >= size) in _snd_pcm_lib_alloc_vmalloc_buffer()
414 runtime->dma_bytes = size; in _snd_pcm_lib_alloc_vmalloc_buffer()
Dpcm_native.c2350 if (runtime->dma_bytes) { in snd_pcm_hw_constraints_complete()
2351 …rr = snd_pcm_hw_constraint_minmax(runtime, SNDRV_PCM_HW_PARAM_BUFFER_BYTES, 0, runtime->dma_bytes); in snd_pcm_hw_constraints_complete()
3311 size_t dma_bytes; in snd_pcm_mmap_data_fault() local
3317 dma_bytes = PAGE_ALIGN(runtime->dma_bytes); in snd_pcm_mmap_data_fault()
3318 if (offset > dma_bytes - PAGE_SIZE) in snd_pcm_mmap_data_fault()
3373 substream->runtime->dma_bytes); in snd_pcm_lib_default_mmap()
3400 return vm_iomap_memory(area, runtime->dma_addr, runtime->dma_bytes); in snd_pcm_lib_mmap_iomem()
3414 size_t dma_bytes; in snd_pcm_mmap_data() local
3434 dma_bytes = PAGE_ALIGN(runtime->dma_bytes); in snd_pcm_mmap_data()
3435 if ((size_t)size > dma_bytes) in snd_pcm_mmap_data()
[all …]
/Linux-v4.19/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-v4.19/sound/soc/atmel/
Datmel-pcm-pdc.c223 runtime->dma_bytes = params_buffer_bytes(params); in atmel_pcm_hw_params()
229 prtd->dma_buffer_end = runtime->dma_addr + runtime->dma_bytes; in atmel_pcm_hw_params()
236 runtime->dma_bytes, in atmel_pcm_hw_params()
277 rtd->buffer_size, rtd->dma_area, rtd->dma_bytes); in atmel_pcm_trigger()
/Linux-v4.19/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-v4.19/sound/soc/samsung/
Didma.c94 val |= (((runtime->dma_bytes >> 2) & in idma_enqueue()
160 runtime->dma_bytes = params_buffer_bytes(params); in idma_hw_params()
165 prtd->end = runtime->dma_addr + runtime->dma_bytes; in idma_hw_params()
/Linux-v4.19/sound/pci/emu10k1/
Dmemory.c321 if (snd_BUG_ON(runtime->dma_bytes <= 0 || in snd_emu10k1_alloc_pages()
322 runtime->dma_bytes >= (emu->address_mode ? MAXPAGES1 : MAXPAGES0) * EMUPAGESIZE)) in snd_emu10k1_alloc_pages()
331 blk = search_empty(emu, runtime->dma_bytes + idx); in snd_emu10k1_alloc_pages()
343 if (ofs >= runtime->dma_bytes) in snd_emu10k1_alloc_pages()
/Linux-v4.19/sound/soc/nuc900/
Dnuc900-pcm.c63 AUDIO_WRITE(mmio_len, runtime->dma_bytes); in nuc900_update_dma_register()
271 runtime->dma_addr, runtime->dma_bytes); in nuc900_dma_mmap()
/Linux-v4.19/drivers/media/pci/ivtv/
Divtv-alsa-pcm.c238 if (runtime->dma_bytes > size) in snd_pcm_alloc_vmalloc_buffer()
247 runtime->dma_bytes = size; in snd_pcm_alloc_vmalloc_buffer()
/Linux-v4.19/drivers/media/pci/cx18/
Dcx18-alsa-pcm.c233 if (runtime->dma_bytes > size) in snd_pcm_alloc_vmalloc_buffer()
242 runtime->dma_bytes = size; in snd_pcm_alloc_vmalloc_buffer()
/Linux-v4.19/sound/soc/fsl/
Dimx-pcm-fiq.c221 runtime->dma_addr, runtime->dma_bytes); in snd_imx_pcm_mmap()
226 runtime->dma_bytes); in snd_imx_pcm_mmap()
/Linux-v4.19/sound/soc/intel/haswell/
Dsst-haswell-pcm.c614 runtime->dma_bytes, rtd->cpu_dai->id); in hsw_pcm_hw_params()
621 if (runtime->dma_bytes % PAGE_SIZE) in hsw_pcm_hw_params()
622 pages = (runtime->dma_bytes / PAGE_SIZE) + 1; in hsw_pcm_hw_params()
624 pages = runtime->dma_bytes / PAGE_SIZE; in hsw_pcm_hw_params()
628 pages, runtime->dma_bytes, 0, in hsw_pcm_hw_params()
729 bytes_to_frames(runtime, runtime->dma_bytes); in hsw_notify_pointer()
/Linux-v4.19/drivers/usb/gadget/udc/
Domap_udc.h135 unsigned dma_bytes; member
/Linux-v4.19/sound/isa/msnd/
Dmsnd.c489 runtime->dma_bytes = 0x3000; in snd_msnd_playback_open()
593 runtime->dma_bytes = 0x3000; in snd_msnd_capture_open()
594 memset(runtime->dma_area, 0, runtime->dma_bytes); in snd_msnd_capture_open()
/Linux-v4.19/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-v4.19/sound/ppc/
Dsnd_ps3.c615 card->dma_buffer_size = runtime->dma_bytes; in snd_ps3_pcm_prepare()
626 runtime->dma_area + (runtime->dma_bytes / 2); in snd_ps3_pcm_prepare()
628 runtime->dma_addr + (runtime->dma_bytes / 2); in snd_ps3_pcm_prepare()
/Linux-v4.19/sound/arm/
Dpxa2xx-pcm-lib.c143 runtime->dma_addr, runtime->dma_bytes); in pxa2xx_pcm_mmap()
/Linux-v4.19/sound/soc/qcom/qdsp6/
Dq6asm-dai.c372 runtime->dma_bytes = q6asm_dai_hardware_playback.buffer_bytes_max; in q6asm_dai_open()
429 runtime->dma_bytes); in q6asm_dai_mmap()
/Linux-v4.19/sound/soc/qcom/
Dlpass-platform.c101 runtime->dma_bytes = lpass_platform_pcm_hardware.buffer_bytes_max; in lpass_platform_pcmops_open()
413 runtime->dma_bytes); in lpass_platform_pcmops_mmap()
/Linux-v4.19/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-v4.19/include/sound/
Dpcm.h423 size_t dma_bytes; /* size of DMA area */ member
1169 runtime->dma_bytes = bufp->bytes; in snd_pcm_set_runtime_buffer()
1174 runtime->dma_bytes = 0; in snd_pcm_set_runtime_buffer()
/Linux-v4.19/sound/soc/meson/
Daxg-fifo.c120 end_ptr = runtime->dma_addr + runtime->dma_bytes - AXG_FIFO_BURST; in axg_fifo_pcm_hw_params()

123