Home
last modified time | relevance | path

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

/linux-4.4.14/drivers/media/usb/go7007/
Dsnd-go7007.c85 if (gosnd->w_idx + length > runtime->dma_bytes) { in parse_audio_stream_data()
86 int cpy = runtime->dma_bytes - gosnd->w_idx; in parse_audio_stream_data()
113 if (substream->runtime->dma_bytes > 0) in go7007_snd_hw_params()
115 substream->runtime->dma_bytes = 0; in go7007_snd_hw_params()
119 substream->runtime->dma_bytes = bytes; in go7007_snd_hw_params()
129 if (substream->runtime->dma_bytes > 0) in go7007_snd_hw_free()
131 substream->runtime->dma_bytes = 0; in go7007_snd_hw_free()
/linux-4.4.14/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-4.4.14/sound/core/
Dpcm_memory.c349 runtime->dma_bytes = size; in snd_pcm_lib_malloc_pages()
370 runtime->dma_bytes = size; in snd_pcm_lib_malloc_pages()
413 if (runtime->dma_bytes >= size) in _snd_pcm_lib_alloc_vmalloc_buffer()
420 runtime->dma_bytes = size; in _snd_pcm_lib_alloc_vmalloc_buffer()
Dpcm_native.c2205 if (runtime->dma_bytes) { in snd_pcm_hw_constraints_complete()
2206 …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()
3438 return vm_iomap_memory(area, runtime->dma_addr, runtime->dma_bytes); in snd_pcm_lib_mmap_iomem()
3453 size_t dma_bytes; in snd_pcm_mmap_data() local
3473 dma_bytes = PAGE_ALIGN(runtime->dma_bytes); in snd_pcm_mmap_data()
3474 if ((size_t)size > dma_bytes) in snd_pcm_mmap_data()
3476 if (offset > dma_bytes - size) in snd_pcm_mmap_data()
Dpcm_lib.c129 size_t dma_csize = runtime->dma_bytes / channels; in snd_pcm_playback_silence()
1799 size_t size = runtime->dma_bytes / runtime->channels; in snd_pcm_lib_ioctl_channel_info()
2172 size_t dma_csize = runtime->dma_bytes / channels; in snd_pcm_lib_writev_transfer()
2376 snd_pcm_uframes_t dma_csize = runtime->dma_bytes / channels; in snd_pcm_lib_readv_transfer()
/linux-4.4.14/sound/soc/sh/
Ddma-sh7760.c208 (u32)runtime->dma_addr, runtime->dma_bytes); in camelot_prepare()
212 BRGREG(BRGATXTCR) = runtime->dma_bytes; in camelot_prepare()
215 BRGREG(BRGARXTCR) = runtime->dma_bytes; in camelot_prepare()
/linux-4.4.14/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-4.4.14/sound/soc/omap/
Domap-pcm.c93 runtime->dma_bytes = params_buffer_bytes(params); in omap_pcm_hw_params()
162 runtime->dma_bytes); in omap_pcm_mmap()
/linux-4.4.14/drivers/media/usb/tm6000/
Dtm6000-alsa.c113 substream->runtime->dma_bytes = 0; in dsp_buffer_free()
123 if (substream->runtime->dma_bytes > size) in dsp_buffer_alloc()
133 substream->runtime->dma_bytes = size; in dsp_buffer_alloc()
/linux-4.4.14/sound/soc/samsung/
Didma.c95 val |= (((runtime->dma_bytes >> 2) & in idma_enqueue()
161 runtime->dma_bytes = params_buffer_bytes(params); in idma_hw_params()
166 prtd->end = runtime->dma_addr + runtime->dma_bytes; in idma_hw_params()
/linux-4.4.14/sound/pci/emu10k1/
Dmemory.c310 if (snd_BUG_ON(runtime->dma_bytes <= 0 || in snd_emu10k1_alloc_pages()
311 runtime->dma_bytes >= (emu->address_mode ? MAXPAGES1 : MAXPAGES0) * EMUPAGESIZE)) in snd_emu10k1_alloc_pages()
320 blk = search_empty(emu, runtime->dma_bytes + idx); in snd_emu10k1_alloc_pages()
332 if (ofs >= runtime->dma_bytes) in snd_emu10k1_alloc_pages()
/linux-4.4.14/drivers/media/pci/cx18/
Dcx18-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-4.4.14/sound/soc/nuc900/
Dnuc900-pcm.c63 AUDIO_WRITE(mmio_len, runtime->dma_bytes); in nuc900_update_dma_register()
273 runtime->dma_bytes); in nuc900_dma_mmap()
/linux-4.4.14/drivers/media/pci/ivtv/
Divtv-alsa-pcm.c245 if (runtime->dma_bytes > size) in snd_pcm_alloc_vmalloc_buffer()
254 runtime->dma_bytes = size; in snd_pcm_alloc_vmalloc_buffer()
/linux-4.4.14/sound/soc/fsl/
Dimx-pcm-fiq.c221 runtime->dma_area, runtime->dma_addr, runtime->dma_bytes); in snd_imx_pcm_mmap()
226 runtime->dma_bytes); in snd_imx_pcm_mmap()
/linux-4.4.14/sound/isa/msnd/
Dmsnd.c488 runtime->dma_bytes = 0x3000; in snd_msnd_playback_open()
592 runtime->dma_bytes = 0x3000; in snd_msnd_capture_open()
593 memset(runtime->dma_area, 0, runtime->dma_bytes); in snd_msnd_capture_open()
/linux-4.4.14/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-4.4.14/drivers/usb/gadget/udc/
Domap_udc.h134 unsigned dma_bytes; member
Domap_udc.c551 req->dma_bytes = length; in next_in_dma()
559 req->req.actual += req->dma_bytes; in finish_in_dma()
565 && req->dma_bytes != 0 in finish_in_dma()
589 req->dma_bytes = packets * ep->ep.maxpacket; in next_out_dma()
623 if (count != req->dma_bytes || status) in finish_out_dma()
/linux-4.4.14/sound/arm/
Dpxa2xx-pcm-lib.c147 runtime->dma_bytes); in pxa2xx_pcm_mmap()
/linux-4.4.14/drivers/usb/gadget/function/
Df_uac2.c68 size_t dma_bytes; member
233 prm->hw_ptr = (prm->hw_ptr + req->actual) % prm->dma_bytes; in agdev_iso_complete()
238 pending = prm->dma_bytes - hw_ptr; in agdev_iso_complete()
336 prm->dma_bytes = substream->runtime->dma_bytes; in uac2_pcm_hw_params()
355 prm->dma_bytes = 0; in uac2_pcm_hw_free()
/linux-4.4.14/drivers/media/pci/cobalt/
Dcobalt-alsa-pcm.c267 if (runtime->dma_bytes > size) in snd_pcm_alloc_vmalloc_buffer()
276 runtime->dma_bytes = size; in snd_pcm_alloc_vmalloc_buffer()
/linux-4.4.14/sound/ppc/
Dsnd_ps3.c617 card->dma_buffer_size = runtime->dma_bytes; in snd_ps3_pcm_prepare()
628 runtime->dma_area + (runtime->dma_bytes / 2); in snd_ps3_pcm_prepare()
630 runtime->dma_addr + (runtime->dma_bytes / 2); in snd_ps3_pcm_prepare()
/linux-4.4.14/sound/soc/qcom/
Dlpass-platform.c67 runtime->dma_bytes = lpass_platform_pcm_hardware.buffer_bytes_max; in lpass_platform_pcmops_open()
345 runtime->dma_bytes); in lpass_platform_pcmops_mmap()
/linux-4.4.14/sound/soc/au1x/
Ddbdma2.c212 (unsigned long)runtime->dma_addr, runtime->dma_bytes, in au1xpsc_pcm_hw_params()
/linux-4.4.14/include/sound/
Dpcm.h412 size_t dma_bytes; /* size of DMA area */ member
1113 runtime->dma_bytes = bufp->bytes; in snd_pcm_set_runtime_buffer()
1118 runtime->dma_bytes = 0; in snd_pcm_set_runtime_buffer()
/linux-4.4.14/drivers/media/usb/cx231xx/
Dcx231xx-audio.c398 if (runtime->dma_bytes > size) in snd_pcm_alloc_vmalloc_buffer()
407 runtime->dma_bytes = size; in snd_pcm_alloc_vmalloc_buffer()
/linux-4.4.14/sound/soc/kirkwood/
Dkirkwood-dma.c193 runtime->dma_bytes = params_buffer_bytes(params); in kirkwood_dma_hw_params()
/linux-4.4.14/drivers/media/usb/em28xx/
Dem28xx-audio.c204 if (runtime->dma_bytes > size) in snd_pcm_alloc_vmalloc_buffer()
213 runtime->dma_bytes = size; in snd_pcm_alloc_vmalloc_buffer()
/linux-4.4.14/sound/soc/txx9/
Dtxx9aclc.c67 (unsigned long)runtime->dma_addr, runtime->dma_bytes, in txx9aclc_pcm_hw_params()
/linux-4.4.14/sound/pci/pcxhr/
Dpcxhr.c650 subs->runtime->dma_bytes, subs->number); in pcxhr_update_r_buffer()
657 snd_BUG_ON(subs->runtime->dma_bytes >= 0x200000); in pcxhr_update_r_buffer()
659 rmh.cmd[1] = subs->runtime->dma_bytes * 8; in pcxhr_update_r_buffer()
/linux-4.4.14/sound/pci/cs46xx/
Dcs46xx_lib.c1139 runtime->dma_bytes = cpcm->hw_buf.bytes; in snd_cs46xx_playback_hw_params()
1162 runtime->dma_bytes = 0; in snd_cs46xx_playback_hw_params()
1213 runtime->dma_bytes = 0; in snd_cs46xx_playback_hw_free()
1304 runtime->dma_bytes = chip->capt.hw_buf.bytes; in snd_cs46xx_capture_hw_params()
1310 runtime->dma_bytes = 0; in snd_cs46xx_capture_hw_params()
1329 runtime->dma_bytes = 0; in snd_cs46xx_capture_hw_free()
/linux-4.4.14/drivers/media/pci/cx23885/
Dcx23885-alsa.c417 substream->runtime->dma_bytes = chip->dma_size; in snd_cx23885_hw_params()
/linux-4.4.14/sound/pci/
Dintel8x0.c950 fill_nocache(runtime->dma_area, runtime->dma_bytes, 0); /* clear */ in snd_intel8x0_hw_params()
958 fill_nocache(runtime->dma_area, runtime->dma_bytes, 1); in snd_intel8x0_hw_params()
989 fill_nocache(substream->runtime->dma_area, substream->runtime->dma_bytes, 0); in snd_intel8x0_hw_free()
2671 fill_nocache(runtime->dma_area, runtime->dma_bytes, 0); in intel8x0_suspend()
2729 fill_nocache(runtime->dma_area, runtime->dma_bytes, 1); in intel8x0_resume()
Drme32.c666 runtime->dma_bytes = RME32_BUFFER_SIZE; in snd_rme32_playback_hw_params()
721 runtime->dma_bytes = RME32_BUFFER_SIZE; in snd_rme32_capture_hw_params()
Drme96.c989 runtime->dma_bytes = RME96_BUFFER_SIZE; in snd_rme96_playback_hw_params()
1051 runtime->dma_bytes = RME96_BUFFER_SIZE; in snd_rme96_capture_hw_params()
Des1968.c1486 runtime->dma_bytes = size; in snd_es1968_hw_params()
/linux-4.4.14/drivers/media/pci/cx25821/
Dcx25821-alsa.c560 substream->runtime->dma_bytes = chip->dma_size; in snd_cx25821_hw_params()
/linux-4.4.14/sound/pci/nm256/
Dnm256.c829 substream->runtime->dma_bytes = params_buffer_bytes(hw_params); in snd_nm256_pcm_hw_params()
848 runtime->dma_bytes = s->bufsize; in snd_nm256_setup_stream()
/linux-4.4.14/drivers/media/pci/cx88/
Dcx88-alsa.c511 substream->runtime->dma_bytes = chip->dma_size; in snd_cx88_hw_params()
/linux-4.4.14/sound/sparc/
Dcs4231.c1150 snd_free_pages(runtime->dma_area, runtime->dma_bytes); in snd_cs4231_playback_open()
1171 snd_free_pages(runtime->dma_area, runtime->dma_bytes); in snd_cs4231_capture_open()
/linux-4.4.14/drivers/media/pci/saa7134/
Dsaa7134-alsa.c742 substream->runtime->dma_bytes = dev->dmasound.bufsize; in snd_card_saa7134_hw_params()
/linux-4.4.14/sound/pci/rme9652/
Drme9652.c2272 runtime->dma_bytes = RME9652_DMA_AREA_BYTES; in snd_rme9652_playback_open()
2332 runtime->dma_bytes = RME9652_DMA_AREA_BYTES; in snd_rme9652_capture_open()
Dhdsp.c4436 runtime->dma_bytes = HDSP_DMA_AREA_BYTES; in snd_hdsp_playback_open()
4513 runtime->dma_bytes = HDSP_DMA_AREA_BYTES; in snd_hdsp_capture_open()
/linux-4.4.14/sound/isa/wss/
Dwss_lib.c1534 snd_free_pages(runtime->dma_area, runtime->dma_bytes); in snd_wss_playback_open()
1575 snd_free_pages(runtime->dma_area, runtime->dma_bytes); in snd_wss_capture_open()
/linux-4.4.14/sound/isa/gus/
Dgus_pcm.c437 runtime->dma_bytes, 1, 32, in snd_gf1_pcm_playback_hw_params()
/linux-4.4.14/sound/soc/mediatek/
Dmtk-afe-pcm.c605 memif->buffer_size = substream->runtime->dma_bytes; in mtk_afe_dais_hw_params()
/linux-4.4.14/sound/drivers/
Ddummy.c546 substream->runtime->dma_bytes = params_buffer_bytes(hw_params); in dummy_pcm_hw_params()
/linux-4.4.14/sound/pci/mixart/
Dmixart.c651 bufferinfo[i].available_length = subs->runtime->dma_bytes; in snd_mixart_hw_params()
/linux-4.4.14/sound/pci/ctxfi/
Dctatc.c147 apcm->vm_block = vm->map(vm, apcm->substream, runtime->dma_bytes); in ct_map_audio_buffer()
/linux-4.4.14/sound/core/oss/
Dpcm_oss.c1074 …mat_set_silence(runtime->format, runtime->dma_area, bytes_to_samples(runtime, runtime->dma_bytes)); in snd_pcm_oss_change_params()