Searched refs:dma_buffer (Results 1 - 37 of 37) sorted by relevance

/linux-4.1.27/sound/core/
H A Dpcm_memory.c53 struct snd_dma_buffer *dmab = &substream->dma_buffer; preallocate_pcm_pages()
79 if (substream->dma_buffer.area == NULL) snd_pcm_lib_preallocate_dma_free()
81 snd_dma_free_pages(&substream->dma_buffer); snd_pcm_lib_preallocate_dma_free()
82 substream->dma_buffer.area = NULL; snd_pcm_lib_preallocate_dma_free()
136 snd_iprintf(buffer, "%lu\n", (unsigned long) substream->dma_buffer.bytes / 1024); snd_pcm_lib_preallocate_proc_read()
175 if (substream->dma_buffer.bytes == size) snd_pcm_lib_preallocate_proc_write()
178 new_dmab.dev = substream->dma_buffer.dev; snd_pcm_lib_preallocate_proc_write()
180 if (snd_dma_alloc_pages(substream->dma_buffer.dev.type, snd_pcm_lib_preallocate_proc_write()
181 substream->dma_buffer.dev.dev, snd_pcm_lib_preallocate_proc_write()
190 if (substream->dma_buffer.area) snd_pcm_lib_preallocate_proc_write()
191 snd_dma_free_pages(&substream->dma_buffer); snd_pcm_lib_preallocate_proc_write()
192 substream->dma_buffer = new_dmab; snd_pcm_lib_preallocate_proc_write()
238 if (substream->dma_buffer.bytes > 0) snd_pcm_lib_preallocate_pages1()
239 substream->buffer_bytes_max = substream->dma_buffer.bytes; snd_pcm_lib_preallocate_pages1()
262 substream->dma_buffer.dev.type = type; snd_pcm_lib_preallocate_pages()
263 substream->dma_buffer.dev.dev = data; snd_pcm_lib_preallocate_pages()
339 if (snd_BUG_ON(substream->dma_buffer.dev.type == snd_pcm_lib_malloc_pages()
354 if (substream->dma_buffer.area != NULL && snd_pcm_lib_malloc_pages()
355 substream->dma_buffer.bytes >= size) { snd_pcm_lib_malloc_pages()
356 dmab = &substream->dma_buffer; /* use the pre-allocated buffer */ snd_pcm_lib_malloc_pages()
361 dmab->dev = substream->dma_buffer.dev; snd_pcm_lib_malloc_pages()
362 if (snd_dma_alloc_pages(substream->dma_buffer.dev.type, snd_pcm_lib_malloc_pages()
363 substream->dma_buffer.dev.dev, snd_pcm_lib_malloc_pages()
393 if (runtime->dma_buffer_p != &substream->dma_buffer) { snd_pcm_lib_free_pages()
H A Dpcm_native.c251 substream->dma_buffer.dev.type == SNDRV_DMA_TYPE_DEV) hw_support_mmap()
3399 if (substream->dma_buffer.dev.type == SNDRV_DMA_TYPE_DEV_IRAM) { snd_pcm_lib_default_mmap()
3402 substream->dma_buffer.addr >> PAGE_SHIFT, snd_pcm_lib_default_mmap()
3408 substream->dma_buffer.dev.type == SNDRV_DMA_TYPE_DEV) snd_pcm_lib_default_mmap()
3409 return dma_mmap_coherent(substream->dma_buffer.dev.dev, snd_pcm_lib_default_mmap()
/linux-4.1.27/sound/soc/atmel/
H A Datmel-pcm-pdc.c54 struct snd_dma_buffer *buf = &substream->dma_buffer; atmel_pcm_preallocate_dma_buffer()
76 substream->dma_buffer.addr >> PAGE_SHIFT, atmel_pcm_mmap()
120 buf = &substream->dma_buffer; atmel_pcm_free()
153 dma_addr_t dma_buffer; /* physical address of dma buffer */ member in struct:atmel_runtime_data
183 prtd->period_ptr = prtd->dma_buffer; atmel_pcm_dma_irq()
197 prtd->period_ptr = prtd->dma_buffer; atmel_pcm_dma_irq()
222 snd_pcm_set_runtime_buffer(substream, &substream->dma_buffer); atmel_pcm_hw_params()
228 prtd->dma_buffer = runtime->dma_addr; atmel_pcm_hw_params()
281 prtd->period_ptr = prtd->dma_buffer; atmel_pcm_trigger()
343 x = bytes_to_frames(runtime, ptr - prtd->dma_buffer); atmel_pcm_pointer()
/linux-4.1.27/drivers/i2c/busses/
H A Di2c-ismt.c174 u8 dma_buffer[I2C_SMBUS_BLOCK_MAX + 1]; /* temp R/W data buffer */ member in struct:ismt_priv
322 u8 *dma_buffer = priv->dma_buffer; ismt_process_desc() local
335 data->byte = dma_buffer[0]; ismt_process_desc()
339 data->word = dma_buffer[0] | (dma_buffer[1] << 8); ismt_process_desc()
343 memcpy(&data->block[1], dma_buffer, desc->rxbytes); ismt_process_desc()
394 memset(priv->dma_buffer, 0, sizeof(priv->dma_buffer)); ismt_access()
443 priv->dma_buffer[0] = command; ismt_access()
444 priv->dma_buffer[1] = data->byte; ismt_access()
463 priv->dma_buffer[0] = command; ismt_access()
464 priv->dma_buffer[1] = data->word & 0xff; ismt_access()
465 priv->dma_buffer[2] = data->word >> 8; ismt_access()
483 priv->dma_buffer[0] = command; ismt_access()
484 priv->dma_buffer[1] = data->word & 0xff; ismt_access()
485 priv->dma_buffer[2] = data->word >> 8; ismt_access()
496 priv->dma_buffer[0] = command; ismt_access()
497 memcpy(&priv->dma_buffer[1], &data->block[1], dma_size - 1); ismt_access()
524 priv->dma_buffer[0] = command; ismt_access()
525 memcpy(&priv->dma_buffer[1], &data->block[1], dma_size - 1); ismt_access()
554 dev_dbg(dev, " dma_buffer=%p\n", priv->dma_buffer); ismt_access()
559 priv->dma_buffer, ismt_access()
565 priv->dma_buffer); ismt_access()
/linux-4.1.27/sound/soc/fsl/
H A Dimx-pcm-fiq.c88 snd_pcm_set_runtime_buffer(substream, &substream->dma_buffer); snd_imx_pcm_hw_params()
244 struct snd_dma_buffer *buf = &substream->dma_buffer; imx_pcm_preallocate_dma_buffer()
300 struct snd_dma_buffer *buf = &substream->dma_buffer; imx_pcm_fiq_new()
307 struct snd_dma_buffer *buf = &substream->dma_buffer; imx_pcm_fiq_new()
329 buf = &substream->dma_buffer; imx_pcm_free()
H A Dfsl_asrc_dma.c249 snd_pcm_set_runtime_buffer(substream, &substream->dma_buffer); fsl_asrc_dma_hw_params()
354 FSL_ASRC_DMABUF_SIZE, &substream->dma_buffer); fsl_asrc_dma_pcm_new()
365 snd_dma_free_pages(&pcm->streams[i].substream->dma_buffer); fsl_asrc_dma_pcm_new()
380 snd_dma_free_pages(&substream->dma_buffer); fsl_asrc_dma_pcm_free()
381 substream->dma_buffer.area = NULL; fsl_asrc_dma_pcm_free()
382 substream->dma_buffer.addr = 0; fsl_asrc_dma_pcm_free()
H A Dmpc5200_dma.c285 snd_pcm_set_runtime_buffer(substream, &substream->dma_buffer); psc_dma_hw_params()
318 size, &pcm->streams[SNDRV_PCM_STREAM_PLAYBACK].substream->dma_buffer); psc_dma_new()
325 size, &pcm->streams[SNDRV_PCM_STREAM_CAPTURE].substream->dma_buffer); psc_dma_new()
334 snd_dma_free_pages(&pcm->streams[SNDRV_PCM_STREAM_PLAYBACK].substream->dma_buffer); psc_dma_new()
353 snd_dma_free_pages(&substream->dma_buffer); psc_dma_free()
354 substream->dma_buffer.area = NULL; psc_dma_free()
355 substream->dma_buffer.addr = 0; psc_dma_free()
H A Dfsl_dma.c302 &pcm->streams[SNDRV_PCM_STREAM_PLAYBACK].substream->dma_buffer); fsl_dma_new()
312 &pcm->streams[SNDRV_PCM_STREAM_CAPTURE].substream->dma_buffer); fsl_dma_new()
315 snd_dma_free_pages(&pcm->streams[SNDRV_PCM_STREAM_PLAYBACK].substream->dma_buffer); fsl_dma_new()
436 dma_private->dma_buf_phys = substream->dma_buffer.addr; fsl_dma_open()
450 snd_pcm_set_runtime_buffer(substream, &substream->dma_buffer); fsl_dma_open()
562 dma_addr_t temp_addr = substream->dma_buffer.addr; fsl_dma_hw_params()
833 snd_dma_free_pages(&substream->dma_buffer); fsl_dma_free_dma_buffers()
834 substream->dma_buffer.area = NULL; fsl_dma_free_dma_buffers()
835 substream->dma_buffer.addr = 0; fsl_dma_free_dma_buffers()
/linux-4.1.27/sound/soc/omap/
H A Domap-pcm.c92 snd_pcm_set_runtime_buffer(substream, &substream->dma_buffer); omap_pcm_hw_params()
180 struct snd_dma_buffer *buf = &substream->dma_buffer; omap_pcm_preallocate_dma_buffer()
206 buf = &substream->dma_buffer; omap_pcm_free_dma_buffers()
/linux-4.1.27/sound/soc/pxa/
H A Dmmp-pcm.c78 snd_pcm_set_runtime_buffer(substream, &substream->dma_buffer); mmp_pcm_hw_params()
162 buf = &substream->dma_buffer; mmp_pcm_free_dma_buffers()
175 struct snd_dma_buffer *buf = &substream->dma_buffer; mmp_pcm_preallocate_dma_buffer()
/linux-4.1.27/sound/soc/kirkwood/
H A Dkirkwood-dma.c149 addr = substream->dma_buffer.addr; kirkwood_dma_open()
188 snd_pcm_set_runtime_buffer(substream, &substream->dma_buffer); kirkwood_dma_hw_params()
255 struct snd_dma_buffer *buf = &substream->dma_buffer; kirkwood_dma_preallocate_dma_buffer()
307 buf = &substream->dma_buffer; kirkwood_dma_free_dma_buffers()
/linux-4.1.27/sound/arm/
H A Dpxa2xx-pcm-lib.c78 snd_pcm_set_runtime_buffer(substream, &substream->dma_buffer); __pxa2xx_pcm_hw_params()
283 struct snd_dma_buffer *buf = &substream->dma_buffer; pxa2xx_pcm_preallocate_dma_buffer()
307 buf = &substream->dma_buffer; pxa2xx_pcm_free_dma_buffers()
/linux-4.1.27/sound/soc/samsung/
H A Didma.c160 snd_pcm_set_runtime_buffer(substream, &substream->dma_buffer); idma_hw_params()
350 buf = &substream->dma_buffer; idma_free()
363 struct snd_dma_buffer *buf = &substream->dma_buffer; preallocate_idma_buffer()
/linux-4.1.27/sound/soc/qcom/
H A Dlpass-platform.c78 snd_pcm_set_runtime_buffer(substream, &substream->dma_buffer); lpass_platform_pcmops_open()
416 struct snd_dma_buffer *buf = &substream->dma_buffer; lpass_platform_alloc_buffer()
437 struct snd_dma_buffer *buf = &substream->dma_buffer; lpass_platform_free_buffer()
/linux-4.1.27/drivers/net/wireless/ath/ath6kl/
H A Dsdio.c47 u8 *dma_buffer; member in struct:ath6kl_sdio
49 /* protects access to dma_buffer */
419 if (!ar_sdio->dma_buffer) ath6kl_sdio_read_write_sync()
422 tbuf = ar_sdio->dma_buffer; ath6kl_sdio_read_write_sync()
1311 ar_sdio->dma_buffer = kzalloc(HIF_DMA_BUFFER_SIZE, GFP_KERNEL); ath6kl_sdio_probe()
1312 if (!ar_sdio->dma_buffer) { ath6kl_sdio_probe()
1371 kfree(ar_sdio->dma_buffer); ath6kl_sdio_probe()
1394 kfree(ar_sdio->dma_buffer); ath6kl_sdio_remove()
/linux-4.1.27/drivers/mmc/host/
H A Dwbsd.c280 char *dmabuf = host->dma_buffer; wbsd_sg_to_dma()
297 char *dmabuf = host->dma_buffer; wbsd_dma_to_sg()
1388 host->dma_buffer = kmalloc(WBSD_DMA_SIZE, wbsd_request_dma()
1390 if (!host->dma_buffer) wbsd_request_dma()
1396 host->dma_addr = dma_map_single(mmc_dev(host->mmc), host->dma_buffer, wbsd_request_dma()
1424 kfree(host->dma_buffer); wbsd_request_dma()
1425 host->dma_buffer = NULL; wbsd_request_dma()
1441 kfree(host->dma_buffer); wbsd_release_dma()
1446 host->dma_buffer = NULL; wbsd_release_dma()
H A Dwbsd.h161 char* dma_buffer; /* ISA DMA buffer */ member in struct:wbsd_host
/linux-4.1.27/drivers/mtd/nand/
H A Dhisi504_nand.c149 dma_addr_t dma_buffer; member in struct:hinfc_host
197 hinfc_write(host, host->dma_buffer, HINFC504_DMA_ADDR_DATA); hisi_nfc_dma_transfer()
774 &host->dma_buffer, GFP_KERNEL); hisi_nfc_probe()
780 host->dma_oob = host->dma_buffer + mtd->writesize; hisi_nfc_probe()
/linux-4.1.27/sound/soc/blackfin/
H A Dbf5xx-ac97-pcm.c322 struct snd_dma_buffer *buf = &substream->dma_buffer; bf5xx_pcm_preallocate_dma_buffer()
395 buf = &substream->dma_buffer; bf5xx_pcm_free_dma_buffers()
H A Dbf5xx-i2s-pcm.c180 struct snd_dma_buffer *buf = &substream->dma_buffer; bf5xx_pcm_open()
/linux-4.1.27/drivers/net/ethernet/qlogic/qlcnic/
H A Dqlcnic_minidump.c776 void *dma_buffer; qlcnic_read_memory_pexdma() local
808 dma_buffer = fw_dump->dma_buffer; qlcnic_read_memory_pexdma()
843 memcpy(buffer, dma_buffer, size); qlcnic_read_memory_pexdma()
1264 fw_dump->dma_buffer = NULL; qlcnic_fw_cmd_get_minidump_temp()
1272 fw_dump->dma_buffer = temp_buffer; qlcnic_fw_cmd_get_minidump_temp()
H A Dqlcnic_main.c2115 if (fw_dump->dma_buffer) { qlcnic_free_adapter_resources()
2117 fw_dump->dma_buffer, fw_dump->phys_addr); qlcnic_free_adapter_resources()
2118 fw_dump->dma_buffer = NULL; qlcnic_free_adapter_resources()
H A Dqlcnic.h454 void *dma_buffer; member in struct:qlcnic_fw_dump
/linux-4.1.27/sound/pci/emu10k1/
H A Demu10k1x.c251 struct snd_dma_buffer dma_buffer; member in struct:emu10k1x
459 u32 *table_base = (u32 *)(emu->dma_buffer.area+1024*voice); snd_emu10k1x_pcm_prepare()
468 snd_emu10k1x_ptr_write(emu, PLAYBACK_LIST_ADDR, voice, emu->dma_buffer.addr+1024*voice); snd_emu10k1x_pcm_prepare()
770 if (chip->dma_buffer.area) { snd_emu10k1x_free()
771 snd_dma_free_pages(&chip->dma_buffer); snd_emu10k1x_free()
954 4 * 1024, &chip->dma_buffer) < 0) { snd_emu10k1x_create()
/linux-4.1.27/sound/soc/intel/common/
H A Dsst-firmware.c942 &context->dma_buffer, GFP_DMA | GFP_KERNEL); sst_module_runtime_save()
956 ret = sst_dsp_dma_copyfrom(dsp, context->dma_buffer, sst_module_runtime_save()
1001 context->dma_buffer, module->persistent_size); sst_module_runtime_restore()
1012 context->buffer, context->dma_buffer); sst_module_runtime_restore()
H A Dsst-dsp-priv.h171 dma_addr_t dma_buffer; member in struct:sst_module_runtime_context
/linux-4.1.27/sound/soc/intel/atom/
H A Dsst-mfld-platform-pcm.c138 u32 buffer_addr = virt_to_phys(substream->dma_buffer.area); sst_fill_alloc_params()
244 substream->runtime->dma_area = substream->dma_buffer.area; sst_platform_alloc_stream()
/linux-4.1.27/sound/pci/trident/
H A Dtrident_memory.c286 if (substream->dma_buffer.dev.type == SNDRV_DMA_TYPE_DEV_SG) snd_trident_alloc_pages()
/linux-4.1.27/sound/soc/intel/baytrail/
H A Dsst-baytrail-pcm.c115 substream->dma_buffer.addr, sst_byt_pcm_hw_params()
/linux-4.1.27/drivers/staging/comedi/drivers/
H A Dadl_pci9118.c482 unsigned short *dma_buffer, move_block_from_dma()
495 comedi_buf_write_samples(s, dma_buffer, n_raw_samples); move_block_from_dma()
519 comedi_buf_write_samples(s, dma_buffer, x); move_block_from_dma()
480 move_block_from_dma(struct comedi_device *dev, struct comedi_subdevice *s, unsigned short *dma_buffer, unsigned int n_raw_samples) move_block_from_dma() argument
/linux-4.1.27/sound/isa/sb/
H A Demu8000_pcm.c585 subs->dma_buffer.bytes = params_buffer_bytes(hw_params); emu8k_pcm_hw_params()
/linux-4.1.27/drivers/block/
H A Dfloppy.c2408 char *dma_buffer; copy_buffer() local
2436 dma_buffer = floppy_track_buffer + ((fsector_t - buffer_min) << 9); copy_buffer()
2448 if (dma_buffer + size > rq_for_each_segment()
2450 dma_buffer < floppy_track_buffer) { rq_for_each_segment()
2452 (int)((floppy_track_buffer - dma_buffer) >> 9)); rq_for_each_segment()
2467 memcpy(buffer, dma_buffer, size); rq_for_each_segment()
2469 memcpy(dma_buffer, buffer, size); rq_for_each_segment()
2472 dma_buffer += size; rq_for_each_segment()
/linux-4.1.27/include/sound/
H A Dpcm.h454 struct snd_dma_buffer dma_buffer; member in struct:snd_pcm_substream
1095 * Copy the buffer information to runtime->dma_buffer when @bufp is non-NULL.
/linux-4.1.27/drivers/block/mtip32xx/
H A Dmtip32xx.c2020 dma_addr_t dma_buffer = 0; exec_drive_taskfile() local
2058 dma_buffer = outbuf_dma; exec_drive_taskfile()
2079 dma_buffer = inbuf_dma; exec_drive_taskfile()
2174 dma_buffer, exec_drive_taskfile()
/linux-4.1.27/sound/pci/lx6464es/
H A Dlx6464es.c437 dma_addr_t buf = substream->dma_buffer.addr; lx_trigger_start()
H A Dlx_core.c1051 dma_addr_t buf = substream->dma_buffer.addr + pos * period_bytes; lx_interrupt_request_new_buffer()
/linux-4.1.27/sound/pci/
H A Dintel8x0.c2774 if (! subs || subs->dma_buffer.bytes < INTEL8X0_TESTBUF_SIZE) { intel8x0_measure_ac97_clock()
2780 ichdev->physbuf = subs->dma_buffer.addr; intel8x0_measure_ac97_clock()

Completed in 3593 milliseconds