Home
last modified time | relevance | path

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

12

/linux-6.6.21/sound/core/
Dpcm_memory.c106 struct snd_dma_buffer *dmab = &substream->dma_buffer; in preallocate_pcm_pages()
136 do_free_pages(substream->pcm->card, &substream->dma_buffer); in snd_pcm_lib_preallocate_free()
165 snd_iprintf(buffer, "%lu\n", (unsigned long) substream->dma_buffer.bytes / 1024); in snd_pcm_lib_preallocate_proc_read()
206 if (substream->dma_buffer.bytes == size) in snd_pcm_lib_preallocate_proc_write()
209 new_dmab.dev = substream->dma_buffer.dev; in snd_pcm_lib_preallocate_proc_write()
212 substream->dma_buffer.dev.type, in snd_pcm_lib_preallocate_proc_write()
213 substream->dma_buffer.dev.dev, in snd_pcm_lib_preallocate_proc_write()
227 if (substream->dma_buffer.area) in snd_pcm_lib_preallocate_proc_write()
228 do_free_pages(card, &substream->dma_buffer); in snd_pcm_lib_preallocate_proc_write()
229 substream->dma_buffer = new_dmab; in snd_pcm_lib_preallocate_proc_write()
[all …]
/linux-6.6.21/drivers/net/wireless/purelifi/plfxlc/
Dfirmware.c240 unsigned char *dma_buffer = NULL; in plfxlc_upload_mac_and_serial() local
242 dma_buffer = kmalloc(PLF_SERIAL_LEN, GFP_KERNEL); in plfxlc_upload_mac_and_serial()
243 if (!dma_buffer) in plfxlc_upload_mac_and_serial()
249 send_vendor_request(udev, PLF_MAC_VENDOR_REQUEST, dma_buffer, in plfxlc_upload_mac_and_serial()
252 memcpy(hw_address, dma_buffer, ETH_ALEN); in plfxlc_upload_mac_and_serial()
255 dma_buffer, PLF_SERIAL_LEN); in plfxlc_upload_mac_and_serial()
258 dma_buffer, PLF_SERIAL_LEN); in plfxlc_upload_mac_and_serial()
260 memcpy(serial_number, dma_buffer, PLF_SERIAL_LEN); in plfxlc_upload_mac_and_serial()
262 memset(dma_buffer, 0x00, PLF_SERIAL_LEN); in plfxlc_upload_mac_and_serial()
265 (unsigned char *)dma_buffer, PLF_FW_VER_LEN); in plfxlc_upload_mac_and_serial()
[all …]
Dusb.c516 unsigned char *dma_buffer = NULL; in plfxlc_usb_wreq() local
526 dma_buffer = kmemdup(&usb_req, usb_bulk_msg_len, GFP_KERNEL); in plfxlc_usb_wreq()
528 if (!dma_buffer) { in plfxlc_usb_wreq()
535 dma_buffer, usb_bulk_msg_len, in plfxlc_usb_wreq()
537 kfree(dma_buffer); in plfxlc_usb_wreq()
/linux-6.6.21/drivers/i2c/busses/
Di2c-ismt.c329 u8 *dma_buffer = PTR_ALIGN(&priv->buffer[0], 16); in ismt_process_desc() local
345 data->byte = dma_buffer[0]; in ismt_process_desc()
349 data->word = dma_buffer[0] | (dma_buffer[1] << 8); in ismt_process_desc()
353 if (desc->rxbytes != dma_buffer[0] + 1) in ismt_process_desc()
356 memcpy(data->block, dma_buffer, desc->rxbytes); in ismt_process_desc()
359 memcpy(&data->block[1], dma_buffer, desc->rxbytes); in ismt_process_desc()
406 u8 *dma_buffer = PTR_ALIGN(&priv->buffer[0], 16); in ismt_access() local
463 dma_buffer[0] = command; in ismt_access()
464 dma_buffer[1] = data->byte; in ismt_access()
483 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()
/linux-6.6.21/sound/soc/atmel/
Datmel-pcm-pdc.c78 dma_addr_t dma_buffer; /* physical address of dma buffer */ member
108 prtd->period_ptr = prtd->dma_buffer; in atmel_pcm_dma_irq()
122 prtd->period_ptr = prtd->dma_buffer; in atmel_pcm_dma_irq()
151 prtd->dma_buffer = runtime->dma_addr; in atmel_pcm_hw_params()
206 prtd->period_ptr = prtd->dma_buffer; in atmel_pcm_trigger()
268 x = bytes_to_frames(runtime, ptr - prtd->dma_buffer); in atmel_pcm_pointer()
/linux-6.6.21/sound/soc/qcom/qdsp6/
Dq6apm-dai.c63 struct snd_dma_buffer dma_buffer; member
398 prtd->phys = substream->dma_buffer.addr; in q6apm_dai_open()
400 prtd->phys = substream->dma_buffer.addr | (pdata->sid << 32); in q6apm_dai_open()
509 ret = snd_dma_alloc_pages(SNDRV_DMA_TYPE_DEV, dev, size, &prtd->dma_buffer); in q6apm_dai_compr_open()
514 prtd->phys = prtd->dma_buffer.addr; in q6apm_dai_compr_open()
516 prtd->phys = prtd->dma_buffer.addr | (pdata->sid << 32); in q6apm_dai_compr_open()
518 snd_compr_set_runtime_buffer(stream, &prtd->dma_buffer); in q6apm_dai_compr_open()
534 snd_dma_free_pages(&prtd->dma_buffer); in q6apm_dai_compr_free()
748 return dma_mmap_coherent(dev, vma, prtd->dma_buffer.area, prtd->dma_buffer.addr, in q6apm_dai_compr_mmap()
749 prtd->dma_buffer.bytes); in q6apm_dai_compr_mmap()
[all …]
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()
639 &prtd->dma_buffer); in q6asm_dai_compr_open()
646 prtd->phys = prtd->dma_buffer.addr; in q6asm_dai_compr_open()
648 prtd->phys = prtd->dma_buffer.addr | (pdata->sid << 32); in q6asm_dai_compr_open()
650 snd_compr_set_runtime_buffer(stream, &prtd->dma_buffer); in q6asm_dai_compr_open()
682 snd_dma_free_pages(&prtd->dma_buffer); in q6asm_dai_compr_free()
1073 dstn = prtd->dma_buffer.area + app_pointer; in q6asm_compr_copy()
1082 if (copy_from_user(prtd->dma_buffer.area, buf + copy, in q6asm_compr_copy()
[all …]
/linux-6.6.21/sound/soc/google/
Dchv3-i2s.c176 I2S_MAX_BUFFER_SIZE, &substream->dma_buffer); in chv3_dma_pcm_construct()
184 I2S_MAX_BUFFER_SIZE, &substream->dma_buffer); in chv3_dma_pcm_construct()
196 snd_pcm_set_runtime_buffer(substream, &substream->dma_buffer); in chv3_dma_hw_params()
213 chv3_i2s_wr(i2s, I2S_RX_BASE_ADDR, substream->dma_buffer.addr); in chv3_dma_prepare()
219 chv3_i2s_wr(i2s, I2S_TX_BASE_ADDR, substream->dma_buffer.addr); in chv3_dma_prepare()
/linux-6.6.21/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()
1371 host->dma_buffer = kmalloc(WBSD_DMA_SIZE, in wbsd_request_dma()
1373 if (!host->dma_buffer) in wbsd_request_dma()
1379 host->dma_addr = dma_map_single(mmc_dev(host->mmc), host->dma_buffer, in wbsd_request_dma()
1410 kfree(host->dma_buffer); in wbsd_request_dma()
1411 host->dma_buffer = NULL; in wbsd_request_dma()
1426 if (host->dma_buffer) { in wbsd_release_dma()
1429 kfree(host->dma_buffer); in wbsd_release_dma()
1435 host->dma_buffer = NULL; in wbsd_release_dma()
Dwbsd.h157 char* dma_buffer; /* ISA DMA buffer */ member
/linux-6.6.21/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()
453 &host->dma_buffer, GFP_KERNEL); in hisi_spi_nor_probe()
/linux-6.6.21/sound/soc/samsung/
Didma.c154 snd_pcm_set_runtime_buffer(substream, &substream->dma_buffer); in idma_hw_params()
337 buf = &substream->dma_buffer; in idma_free()
350 struct snd_dma_buffer *buf = &substream->dma_buffer; in preallocate_idma_buffer()
/linux-6.6.21/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()
/linux-6.6.21/sound/soc/fsl/
Dimx-pcm-fiq.c245 struct snd_dma_buffer *buf = &substream->dma_buffer; in snd_imx_pcm_new()
252 struct snd_dma_buffer *buf = &substream->dma_buffer; in snd_imx_pcm_new()
/linux-6.6.21/sound/soc/intel/avs/
Dprobes.c134 cstream->dma_buffer.dev.type = SNDRV_DMA_TYPE_DEV_SG; in avs_probe_compr_set_params()
135 cstream->dma_buffer.dev.dev = adev->dev; in avs_probe_compr_set_params()
/linux-6.6.21/sound/soc/loongson/
Dloongson_dma.c160 snd_pcm_set_runtime_buffer(substream, &substream->dma_buffer); in loongson_pcm_hw_params()
306 substream->dma_buffer.addr >> PAGE_SHIFT, in loongson_pcm_mmap()
/linux-6.6.21/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()
/linux-6.6.21/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()
/linux-6.6.21/drivers/spi/
Dspi-rockchip-sfc.c180 dma_addr_t dma_buffer; member
458 ret = rockchip_sfc_fifo_transfer_dma(sfc, sfc->dma_buffer, len); in rockchip_sfc_xfer_data_dma()
605 &sfc->dma_buffer, in rockchip_sfc_probe()
/linux-6.6.21/include/sound/
Dcompress_driver.h86 struct snd_dma_buffer dma_buffer; member
/linux-6.6.21/drivers/net/ethernet/qlogic/qlcnic/
Dqlcnic_minidump.c776 void *dma_buffer; in qlcnic_read_memory_pexdma() local
808 dma_buffer = fw_dump->dma_buffer; in qlcnic_read_memory_pexdma()
843 memcpy(buffer, dma_buffer, size); in qlcnic_read_memory_pexdma()
1264 fw_dump->dma_buffer = NULL; in qlcnic_fw_cmd_get_minidump_temp()
1272 fw_dump->dma_buffer = temp_buffer; in qlcnic_fw_cmd_get_minidump_temp()
/linux-6.6.21/drivers/net/wireless/microchip/wilc1000/
Dwlan.c1087 u8 *dma_buffer; in wilc_wlan_firmware_download() local
1093 dma_buffer = kmalloc(blksz, GFP_KERNEL); in wilc_wlan_firmware_download()
1094 if (!dma_buffer) in wilc_wlan_firmware_download()
1121 memcpy(dma_buffer, &buffer[offset], size2); in wilc_wlan_firmware_download()
1123 dma_buffer, size2); in wilc_wlan_firmware_download()
1142 kfree(dma_buffer); in wilc_wlan_firmware_download()
/linux-6.6.21/sound/soc/sof/
Dcompress.c202 cstream->dma_buffer.dev.type = SNDRV_DMA_TYPE_DEV_SG; in sof_compr_set_params()
203 cstream->dma_buffer.dev.dev = sdev->dev; in sof_compr_set_params()
/linux-6.6.21/sound/pci/emu10k1/
Demu10k1x.c235 struct snd_dma_buffer *dma_buffer; member
444 u32 *table_base = (u32 *)(emu->dma_buffer->area+1024*voice); in snd_emu10k1x_pcm_prepare()
453 snd_emu10k1x_ptr_write(emu, PLAYBACK_LIST_ADDR, voice, emu->dma_buffer->addr+1024*voice); in snd_emu10k1x_pcm_prepare()
901 chip->dma_buffer = snd_devm_alloc_pages(&pci->dev, SNDRV_DMA_TYPE_DEV, in snd_emu10k1x_create()
903 if (!chip->dma_buffer) in snd_emu10k1x_create()

12