Home
last modified time | relevance | path

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

12

/openbmc/linux/sound/core/
H A Dpcm_memory.c206 if (substream->dma_buffer.bytes == size) 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()
229 substream->dma_buffer = new_dmab; in snd_pcm_lib_preallocate_proc_write()
274 substream->dma_buffer.dev.type = type; in preallocate_pages()
275 substream->dma_buffer.dev.dev = data; in preallocate_pages()
291 if (substream->dma_buffer.bytes > 0) in preallocate_pages()
458 dmab->dev = substream->dma_buffer.dev; in snd_pcm_lib_malloc_pages()
460 substream->dma_buffer.dev.type, in snd_pcm_lib_malloc_pages()
[all …]
/openbmc/linux/drivers/net/wireless/purelifi/plfxlc/
H A 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()
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()
267 memcpy(&firmware_version, dma_buffer, PLF_FW_VER_LEN); in plfxlc_upload_mac_and_serial()
[all …]
H A 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()
/openbmc/linux/drivers/i2c/busses/
H A Di2c-ismt.c345 data->byte = dma_buffer[0]; in ismt_process_desc()
349 data->word = dma_buffer[0] | (dma_buffer[1] << 8); in ismt_process_desc()
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()
503 dma_buffer[0] = command; in ismt_access()
519 dma_buffer[0] = command; in ismt_access()
543 dma_buffer[0] = command; in ismt_access()
562 dma_buffer[0] = command; in ismt_access()
597 dma_buffer, in ismt_access()
[all …]
H A 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()
/openbmc/linux/sound/soc/atmel/
H A 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()
/openbmc/linux/sound/soc/qcom/qdsp6/
H A 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()
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()
778 dstn = prtd->dma_buffer.area + app_pointer; in q6apm_compr_copy()
[all …]
H A Dq6asm-dai.c54 struct snd_dma_buffer dma_buffer; member
435 prtd->phys = substream->dma_buffer.addr; 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()
1127 prtd->dma_buffer.area, prtd->dma_buffer.addr, in q6asm_dai_compr_mmap()
[all …]
/openbmc/linux/sound/soc/google/
H A 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()
/openbmc/linux/drivers/mmc/host/
H A 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()
H A Dwbsd.h157 char* dma_buffer; /* ISA DMA buffer */ member
/openbmc/linux/drivers/mtd/spi-nor/controllers/
H A 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()
/openbmc/linux/sound/soc/samsung/
H A 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()
/openbmc/linux/drivers/net/wireless/ath/ath6kl/
H A 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()
/openbmc/linux/sound/soc/fsl/
H A 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()
/openbmc/linux/sound/soc/intel/avs/
H A Dprobes.c138 cstream->dma_buffer.dev.type = SNDRV_DMA_TYPE_DEV_SG; in avs_probe_compr_set_params()
139 cstream->dma_buffer.dev.dev = adev->dev; in avs_probe_compr_set_params()
/openbmc/linux/sound/soc/loongson/
H A 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()
/openbmc/linux/drivers/gpu/drm/bridge/synopsys/
H A 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()
/openbmc/linux/drivers/mtd/nand/raw/
H A 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()
/openbmc/linux/include/sound/
H A Dcompress_driver.h86 struct snd_dma_buffer dma_buffer; member
/openbmc/linux/drivers/spi/
H A 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()
/openbmc/linux/sound/soc/sof/
H A 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()
/openbmc/linux/drivers/net/ethernet/qlogic/qlcnic/
H A 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()
/openbmc/linux/drivers/net/wireless/microchip/wilc1000/
H A 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()
/openbmc/linux/sound/pci/emu10k1/
H A 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