Home
last modified time | relevance | path

Searched refs:dma_buffer (Results 1 – 25 of 47) sorted by relevance

12

/kernel/linux/linux-5.10/sound/core/
Dpcm_memory.c72 struct snd_dma_buffer *dmab = &substream->dma_buffer; in preallocate_pcm_pages()
97 do_free_pages(substream->pcm->card, &substream->dma_buffer); in snd_pcm_lib_preallocate_dma_free()
138 snd_iprintf(buffer, "%lu\n", (unsigned long) substream->dma_buffer.bytes / 1024); in snd_pcm_lib_preallocate_proc_read()
179 if (substream->dma_buffer.bytes == size) in snd_pcm_lib_preallocate_proc_write()
182 new_dmab.dev = substream->dma_buffer.dev; in snd_pcm_lib_preallocate_proc_write()
185 substream->dma_buffer.dev.type, in snd_pcm_lib_preallocate_proc_write()
186 substream->dma_buffer.dev.dev, in snd_pcm_lib_preallocate_proc_write()
195 if (substream->dma_buffer.area) in snd_pcm_lib_preallocate_proc_write()
196 do_free_pages(card, &substream->dma_buffer); in snd_pcm_lib_preallocate_proc_write()
197 substream->dma_buffer = new_dmab; in snd_pcm_lib_preallocate_proc_write()
[all …]
/kernel/linux/linux-5.10/drivers/i2c/busses/
Di2c-ismt.c329 u8 *dma_buffer = PTR_ALIGN(&priv->buffer[0], 16); in ismt_process_desc() local
344 data->byte = dma_buffer[0]; in ismt_process_desc()
348 data->word = dma_buffer[0] | (dma_buffer[1] << 8); in ismt_process_desc()
351 if (desc->rxbytes != dma_buffer[0] + 1) in ismt_process_desc()
354 memcpy(data->block, dma_buffer, desc->rxbytes); in ismt_process_desc()
357 memcpy(&data->block[1], dma_buffer, desc->rxbytes); in ismt_process_desc()
404 u8 *dma_buffer = PTR_ALIGN(&priv->buffer[0], 16); in ismt_access() local
461 dma_buffer[0] = command; in ismt_access()
462 dma_buffer[1] = data->byte; in ismt_access()
481 dma_buffer[0] = command; in ismt_access()
[all …]
Di2c-xgene-slimpro.c110 u8 dma_buffer[I2C_SMBUS_BLOCK_MAX + 1]; /* dma_buffer[0] is used for length */ member
279 paddr = dma_map_single(ctx->dev, ctx->dma_buffer, readlen, DMA_FROM_DEVICE); in slimpro_i2c_blkrd()
282 ctx->dma_buffer); in slimpro_i2c_blkrd()
297 memcpy(data, ctx->dma_buffer, readlen); in slimpro_i2c_blkrd()
314 memcpy(ctx->dma_buffer, data, writelen); in slimpro_i2c_blkwr()
315 paddr = dma_map_single(ctx->dev, ctx->dma_buffer, writelen, in slimpro_i2c_blkwr()
319 ctx->dma_buffer); in slimpro_i2c_blkwr()
/kernel/linux/linux-5.10/sound/soc/atmel/
Datmel-pcm-pdc.c41 struct snd_dma_buffer *buf = &substream->dma_buffer; in atmel_pcm_preallocate_dma_buffer()
64 substream->dma_buffer.addr >> PAGE_SHIFT, in atmel_pcm_mmap()
110 buf = &substream->dma_buffer; in atmel_pcm_free()
143 dma_addr_t dma_buffer; /* physical address of dma buffer */ member
173 prtd->period_ptr = prtd->dma_buffer; in atmel_pcm_dma_irq()
187 prtd->period_ptr = prtd->dma_buffer; in atmel_pcm_dma_irq()
213 snd_pcm_set_runtime_buffer(substream, &substream->dma_buffer); in atmel_pcm_hw_params()
219 prtd->dma_buffer = runtime->dma_addr; in atmel_pcm_hw_params()
274 prtd->period_ptr = prtd->dma_buffer; in atmel_pcm_trigger()
336 x = bytes_to_frames(runtime, ptr - prtd->dma_buffer); in atmel_pcm_pointer()
/kernel/linux/linux-5.10/sound/soc/qcom/qdsp6/
Dq6asm-dai.c54 struct snd_dma_buffer dma_buffer; member
435 prtd->phys = substream->dma_buffer.addr; in q6asm_dai_open()
437 prtd->phys = substream->dma_buffer.addr | (pdata->sid << 32); in q6asm_dai_open()
439 snd_pcm_set_runtime_buffer(substream, &substream->dma_buffer); in q6asm_dai_open()
653 &prtd->dma_buffer); in q6asm_dai_compr_open()
660 prtd->phys = prtd->dma_buffer.addr; in q6asm_dai_compr_open()
662 prtd->phys = prtd->dma_buffer.addr | (pdata->sid << 32); in q6asm_dai_compr_open()
664 snd_compr_set_runtime_buffer(stream, &prtd->dma_buffer); in q6asm_dai_compr_open()
696 snd_dma_free_pages(&prtd->dma_buffer); in q6asm_dai_compr_free()
1087 dstn = prtd->dma_buffer.area + app_pointer; in q6asm_compr_copy()
[all …]
/kernel/linux/linux-5.10/sound/soc/fsl/
Dfsl_dma.c300 &pcm->streams[SNDRV_PCM_STREAM_PLAYBACK].substream->dma_buffer); in fsl_dma_new()
310 &pcm->streams[SNDRV_PCM_STREAM_CAPTURE].substream->dma_buffer); in fsl_dma_new()
313 snd_dma_free_pages(&pcm->streams[SNDRV_PCM_STREAM_PLAYBACK].substream->dma_buffer); in fsl_dma_new()
434 dma_private->dma_buf_phys = substream->dma_buffer.addr; in fsl_dma_open()
448 snd_pcm_set_runtime_buffer(substream, &substream->dma_buffer); in fsl_dma_open()
560 dma_addr_t temp_addr = substream->dma_buffer.addr; in fsl_dma_hw_params()
833 snd_dma_free_pages(&substream->dma_buffer); in fsl_dma_free_dma_buffers()
834 substream->dma_buffer.area = NULL; in fsl_dma_free_dma_buffers()
835 substream->dma_buffer.addr = 0; in fsl_dma_free_dma_buffers()
Dimx-pcm-fiq.c84 snd_pcm_set_runtime_buffer(substream, &substream->dma_buffer); in snd_imx_pcm_hw_params()
236 struct snd_dma_buffer *buf = &substream->dma_buffer; in imx_pcm_preallocate_dma_buffer()
292 struct snd_dma_buffer *buf = &substream->dma_buffer; in snd_imx_pcm_new()
299 struct snd_dma_buffer *buf = &substream->dma_buffer; in snd_imx_pcm_new()
321 buf = &substream->dma_buffer; in imx_pcm_free()
Dmpc5200_dma.c292 snd_pcm_set_runtime_buffer(substream, &substream->dma_buffer); in psc_dma_hw_params()
315 size, &pcm->streams[SNDRV_PCM_STREAM_PLAYBACK].substream->dma_buffer); in psc_dma_new()
322 size, &pcm->streams[SNDRV_PCM_STREAM_CAPTURE].substream->dma_buffer); in psc_dma_new()
331 snd_dma_free_pages(&pcm->streams[SNDRV_PCM_STREAM_PLAYBACK].substream->dma_buffer); in psc_dma_new()
350 snd_dma_free_pages(&substream->dma_buffer); in psc_dma_free()
351 substream->dma_buffer.area = NULL; in psc_dma_free()
352 substream->dma_buffer.addr = 0; in psc_dma_free()
Dfsl_asrc_dma.c289 snd_pcm_set_runtime_buffer(substream, &substream->dma_buffer); in fsl_asrc_dma_hw_params()
444 FSL_ASRC_DMABUF_SIZE, &substream->dma_buffer); in fsl_asrc_dma_pcm_new()
455 snd_dma_free_pages(&pcm->streams[i].substream->dma_buffer); in fsl_asrc_dma_pcm_new()
471 snd_dma_free_pages(&substream->dma_buffer); in fsl_asrc_dma_pcm_free()
472 substream->dma_buffer.area = NULL; in fsl_asrc_dma_pcm_free()
473 substream->dma_buffer.addr = 0; in fsl_asrc_dma_pcm_free()
/kernel/linux/linux-5.10/sound/soc/sprd/
Dsprd-pcm-dma.c207 snd_pcm_set_runtime_buffer(substream, &substream->dma_buffer); in sprd_pcm_hw_params()
220 snd_pcm_set_runtime_buffer(substream, &substream->dma_buffer); in sprd_pcm_hw_params()
467 &substream->dma_buffer); in sprd_pcm_new()
479 &substream->dma_buffer); in sprd_pcm_new()
483 snd_dma_free_pages(&pcm->streams[SNDRV_PCM_STREAM_PLAYBACK].substream->dma_buffer); in sprd_pcm_new()
500 snd_dma_free_pages(&substream->dma_buffer); in sprd_pcm_free()
501 substream->dma_buffer.area = NULL; in sprd_pcm_free()
502 substream->dma_buffer.addr = 0; in sprd_pcm_free()
/kernel/linux/linux-5.10/sound/soc/kirkwood/
Dkirkwood-dma.c146 addr = substream->dma_buffer.addr; in kirkwood_dma_open()
191 snd_pcm_set_runtime_buffer(substream, &substream->dma_buffer); in kirkwood_dma_hw_params()
251 struct snd_dma_buffer *buf = &substream->dma_buffer; in kirkwood_dma_preallocate_dma_buffer()
305 buf = &substream->dma_buffer; in kirkwood_dma_free_dma_buffers()
/kernel/linux/linux-5.10/sound/arm/
Dpxa2xx-pcm-lib.c57 snd_pcm_set_runtime_buffer(substream, &substream->dma_buffer); in pxa2xx_pcm_hw_params()
146 struct snd_dma_buffer *buf = &substream->dma_buffer; in pxa2xx_pcm_preallocate_dma_buffer()
169 buf = &substream->dma_buffer; in pxa2xx_pcm_free_dma_buffers()
/kernel/linux/linux-5.10/sound/soc/pxa/
Dmmp-pcm.c76 snd_pcm_set_runtime_buffer(substream, &substream->dma_buffer); in mmp_pcm_hw_params()
171 buf = &substream->dma_buffer; in mmp_pcm_free_dma_buffers()
183 struct snd_dma_buffer *buf = &substream->dma_buffer; in mmp_pcm_preallocate_dma_buffer()
/kernel/linux/linux-5.10/sound/soc/tegra/
Dtegra_pcm.c174 snd_pcm_set_runtime_buffer(substream, &substream->dma_buffer); in tegra_pcm_hw_params()
220 struct snd_dma_buffer *buf = &substream->dma_buffer; in tegra_pcm_preallocate_dma_buffer()
243 buf = &substream->dma_buffer; in tegra_pcm_deallocate_dma_buffer()
/kernel/linux/linux-5.10/drivers/mmc/host/
Dwbsd.c280 sg_copy_to_buffer(data->sg, data->sg_len, host->dma_buffer, len); in wbsd_sg_to_dma()
290 sg_copy_from_buffer(data->sg, data->sg_len, host->dma_buffer, len); in wbsd_dma_to_sg()
1373 host->dma_buffer = kmalloc(WBSD_DMA_SIZE, in wbsd_request_dma()
1375 if (!host->dma_buffer) in wbsd_request_dma()
1381 host->dma_addr = dma_map_single(mmc_dev(host->mmc), host->dma_buffer, in wbsd_request_dma()
1412 kfree(host->dma_buffer); in wbsd_request_dma()
1413 host->dma_buffer = NULL; in wbsd_request_dma()
1428 if (host->dma_buffer) { in wbsd_release_dma()
1431 kfree(host->dma_buffer); in wbsd_release_dma()
1437 host->dma_buffer = NULL; in wbsd_release_dma()
Dwbsd.h157 char* dma_buffer; /* ISA DMA buffer */ member
/kernel/linux/linux-5.10/sound/soc/sof/
Dcompress.c79 cstream->dma_buffer.dev.type = SNDRV_DMA_TYPE_DEV_SG; in sof_probe_compr_set_params()
80 cstream->dma_buffer.dev.dev = sdev->dev; in sof_probe_compr_set_params()
/kernel/linux/linux-5.10/sound/soc/qcom/
Dlpass-platform.c159 snd_pcm_set_runtime_buffer(substream, &substream->dma_buffer); in lpass_platform_pcmops_open()
798 size, &psubstream->dma_buffer); in lpass_platform_pcm_new()
809 size, &csubstream->dma_buffer); in lpass_platform_pcm_new()
813 snd_dma_free_pages(&psubstream->dma_buffer); in lpass_platform_pcm_new()
831 snd_dma_free_pages(&substream->dma_buffer); in lpass_platform_pcm_free()
832 substream->dma_buffer.area = NULL; in lpass_platform_pcm_free()
833 substream->dma_buffer.addr = 0; in lpass_platform_pcm_free()
/kernel/linux/linux-5.10/drivers/mtd/spi-nor/controllers/
Dhisi-sfc.c97 dma_addr_t dma_buffer; member
280 from + offset, host->dma_buffer, trans, FMC_OP_READ); in hisi_spi_nor_read()
304 to + offset, host->dma_buffer, trans, FMC_OP_WRITE); in hisi_spi_nor_write()
456 &host->dma_buffer, GFP_KERNEL); in hisi_spi_nor_probe()
/kernel/linux/linux-5.10/sound/soc/samsung/
Didma.c154 snd_pcm_set_runtime_buffer(substream, &substream->dma_buffer); in idma_hw_params()
340 buf = &substream->dma_buffer; in idma_free()
353 struct snd_dma_buffer *buf = &substream->dma_buffer; in preallocate_idma_buffer()
/kernel/linux/linux-5.10/drivers/net/wireless/ath/ath6kl/
Dsdio.c47 u8 *dma_buffer; member
421 if (!ar_sdio->dma_buffer) in ath6kl_sdio_read_write_sync()
424 tbuf = ar_sdio->dma_buffer; in ath6kl_sdio_read_write_sync()
1323 ar_sdio->dma_buffer = kzalloc(HIF_DMA_BUFFER_SIZE, GFP_KERNEL); in ath6kl_sdio_probe()
1324 if (!ar_sdio->dma_buffer) { in ath6kl_sdio_probe()
1383 kfree(ar_sdio->dma_buffer); in ath6kl_sdio_probe()
1406 kfree(ar_sdio->dma_buffer); in ath6kl_sdio_remove()
/kernel/linux/linux-5.10/sound/soc/bcm/
Dbcm63xx-pcm-whistler.c51 snd_pcm_set_runtime_buffer(substream, &substream->dma_buffer); in bcm63xx_pcm_hw_params()
368 struct snd_dma_buffer *buf = &substream->dma_buffer; in bcm63xx_pcm_preallocate_dma_buffer()
433 buf = &substream->dma_buffer; in bcm63xx_pcm_free_dma_buffers()
Dcygnus-pcm.c650 snd_pcm_set_runtime_buffer(substream, &substream->dma_buffer); in cygnus_pcm_hw_params()
737 struct snd_dma_buffer *buf = &substream->dma_buffer; in cygnus_pcm_preallocate_dma_buffer()
768 buf = &substream->dma_buffer; in cygnus_dma_free_dma_buffers()
778 buf = &substream->dma_buffer; in cygnus_dma_free_dma_buffers()
/kernel/linux/linux-5.10/drivers/gpu/drm/bridge/synopsys/
Ddw-hdmi-ahb-audio.c347 0, substream->dma_buffer.bytes); in dw_hdmi_open()
456 dw->buf_dst = substream->dma_buffer.area; in dw_hdmi_prepare()
457 dw->buf_addr = substream->dma_buffer.addr; in dw_hdmi_prepare()
/kernel/linux/linux-5.10/drivers/mtd/nand/raw/
Dhisi504_nand.c138 dma_addr_t dma_buffer; member
186 hinfc_write(host, host->dma_buffer, HINFC504_DMA_ADDR_DATA); in hisi_nfc_dma_transfer()
701 &host->dma_buffer, GFP_KERNEL); in hisi_nfc_attach_chip()
705 host->dma_oob = host->dma_buffer + mtd->writesize; in hisi_nfc_attach_chip()

12