/linux/drivers/usb/musb/ |
H A D | tusb6010_omap.c | 37 struct tusb_dma_data *dma_data; member 195 struct tusb_dma_data *dma_data; in tusb_omap_dma_program() local 238 dma_data = chdat->dma_data; in tusb_omap_dma_program() 244 if (dma_data->dmareq < 0) { in tusb_omap_dma_program() 297 ret = dmaengine_slave_config(dma_data->chan, &dma_cfg); in tusb_omap_dma_program() 303 dma_desc = dmaengine_prep_slave_single(dma_data->chan, dma_addr, in tusb_omap_dma_program() 342 dma_async_issue_pending(dma_data->chan); in tusb_omap_dma_program() 371 if (chdat->dma_data) in tusb_omap_dma_abort() 372 dmaengine_terminate_all(chdat->dma_data->chan); in tusb_omap_dma_abort() 400 chdat->dma_data = &chdat->tusb_dma->dma_pool[dmareq_nr]; in tusb_omap_dma_allocate_dmareq() [all …]
|
/linux/sound/core/ |
H A D | pcm_dmaengine.c | 108 const struct snd_dmaengine_dai_dma_data *dma_data, in snd_dmaengine_pcm_set_config_from_dai_data() argument 112 slave_config->dst_addr = dma_data->addr; in snd_dmaengine_pcm_set_config_from_dai_data() 113 slave_config->dst_maxburst = dma_data->maxburst; in snd_dmaengine_pcm_set_config_from_dai_data() 114 if (dma_data->flags & SND_DMAENGINE_PCM_DAI_FLAG_PACK) in snd_dmaengine_pcm_set_config_from_dai_data() 117 if (dma_data->addr_width != DMA_SLAVE_BUSWIDTH_UNDEFINED) in snd_dmaengine_pcm_set_config_from_dai_data() 118 slave_config->dst_addr_width = dma_data->addr_width; in snd_dmaengine_pcm_set_config_from_dai_data() 120 slave_config->src_addr = dma_data->addr; in snd_dmaengine_pcm_set_config_from_dai_data() 121 slave_config->src_maxburst = dma_data->maxburst; in snd_dmaengine_pcm_set_config_from_dai_data() 122 if (dma_data->flags & SND_DMAENGINE_PCM_DAI_FLAG_PACK) in snd_dmaengine_pcm_set_config_from_dai_data() 125 if (dma_data->addr_width != DMA_SLAVE_BUSWIDTH_UNDEFINED) in snd_dmaengine_pcm_set_config_from_dai_data() [all …]
|
/linux/sound/soc/loongson/ |
H A D | loongson_dma.c | 47 struct loongson_dma_data *dma_data; member 77 void __iomem *order_reg = prtd->dma_data->order_addr; in dma_desc_save() 96 void __iomem *order_reg = prtd->dma_data->order_addr; in loongson_pcm_trigger() 175 desc->daddr = prtd->dma_data->dev_addr; in loongson_pcm_hw_params() 231 struct loongson_dma_data *dma_data; in loongson_pcm_open() local 265 dma_data = snd_soc_dai_get_dma_data(snd_soc_rtd_to_cpu(rtd, 0), substream); in loongson_pcm_open() 266 prtd->dma_data = dma_data; in loongson_pcm_open() 310 struct loongson_dma_data *dma_data; in loongson_pcm_new() local 319 dma_data = snd_soc_dai_get_dma_data(snd_soc_rtd_to_cpu(rtd, 0), in loongson_pcm_new() 321 ret = devm_request_irq(card->dev, dma_data->irq, in loongson_pcm_new()
|
/linux/sound/soc/pxa/ |
H A D | pxa2xx-ac97.c | 96 struct snd_dmaengine_dai_dma_data *dma_data; in pxa2xx_ac97_hifi_startup() local 99 dma_data = &pxa2xx_ac97_pcm_stereo_out; in pxa2xx_ac97_hifi_startup() 101 dma_data = &pxa2xx_ac97_pcm_stereo_in; in pxa2xx_ac97_hifi_startup() 103 snd_soc_dai_set_dma_data(cpu_dai, substream, dma_data); in pxa2xx_ac97_hifi_startup() 111 struct snd_dmaengine_dai_dma_data *dma_data; in pxa2xx_ac97_aux_startup() local 114 dma_data = &pxa2xx_ac97_pcm_aux_mono_out; in pxa2xx_ac97_aux_startup() 116 dma_data = &pxa2xx_ac97_pcm_aux_mono_in; in pxa2xx_ac97_aux_startup() 118 snd_soc_dai_set_dma_data(cpu_dai, substream, dma_data); in pxa2xx_ac97_aux_startup()
|
H A D | pxa2xx-i2s.c | 158 struct snd_dmaengine_dai_dma_data *dma_data; in pxa2xx_i2s_hw_params() local 167 dma_data = &pxa2xx_i2s_pcm_stereo_out; in pxa2xx_i2s_hw_params() 169 dma_data = &pxa2xx_i2s_pcm_stereo_in; in pxa2xx_i2s_hw_params() 171 snd_soc_dai_set_dma_data(dai, substream, dma_data); in pxa2xx_i2s_hw_params()
|
/linux/sound/soc/ |
H A D | soc-generic-dmaengine-pcm.c | 54 struct snd_dmaengine_dai_dma_data *dma_data; in snd_dmaengine_pcm_prepare_slave_config() local 63 dma_data = snd_soc_dai_get_dma_data(snd_soc_rtd_to_cpu(rtd, 0), substream); in snd_dmaengine_pcm_prepare_slave_config() 69 snd_dmaengine_pcm_set_config_from_dai_data(substream, dma_data, in snd_dmaengine_pcm_prepare_slave_config() 105 struct snd_dmaengine_dai_dma_data *dma_data; in dmaengine_pcm_set_runtime_hwparams() local 118 dma_data = snd_soc_dai_get_dma_data(snd_soc_rtd_to_cpu(rtd, 0), substream); in dmaengine_pcm_set_runtime_hwparams() 125 hw.period_bytes_min = dma_data->maxburst * DMA_SLAVE_BUSWIDTH_8_BYTES; in dmaengine_pcm_set_runtime_hwparams() 130 hw.fifo_size = dma_data->fifo_size; in dmaengine_pcm_set_runtime_hwparams() 141 dma_data, in dmaengine_pcm_set_runtime_hwparams() 180 struct snd_dmaengine_dai_dma_data *dma_data; in dmaengine_pcm_compat_request_channel() local 188 dma_data in dmaengine_pcm_compat_request_channel() [all...] |
/linux/drivers/hid/bpf/ |
H A D | hid_bpf_dispatch.c | 403 u8 *dma_data; in hid_bpf_hw_request() local 428 dma_data = kmemdup(buf, size, GFP_KERNEL); in hid_bpf_hw_request() 429 if (!dma_data) in hid_bpf_hw_request() 433 dma_data[0], in hid_bpf_hw_request() 434 dma_data, in hid_bpf_hw_request() 442 memcpy(buf, dma_data, ret); in hid_bpf_hw_request() 444 kfree(dma_data); in hid_bpf_hw_request() 462 u8 *dma_data; in hid_bpf_hw_output_report() local 474 dma_data = kmemdup(buf, size, GFP_KERNEL); in hid_bpf_hw_output_report() 475 if (!dma_data) in hid_bpf_hw_output_report() [all …]
|
/linux/sound/soc/ti/ |
H A D | omap-mcpdm.c | 60 struct snd_dmaengine_dai_dma_data dma_data[2]; member 300 struct snd_dmaengine_dai_dma_data *dma_data; in omap_mcpdm_dai_hw_params() local 333 dma_data = snd_soc_dai_get_dma_data(dai, substream); in omap_mcpdm_dai_hw_params() 344 dma_data->maxburst = in omap_mcpdm_dai_hw_params() 352 dma_data->maxburst = threshold * channels; in omap_mcpdm_dai_hw_params() 434 &mcpdm->dma_data[SNDRV_PCM_STREAM_PLAYBACK], in omap_mcpdm_probe() 435 &mcpdm->dma_data[SNDRV_PCM_STREAM_CAPTURE]); in omap_mcpdm_probe() 560 mcpdm->dma_data[0].addr = res->start + MCPDM_REG_DN_DATA; in asoc_mcpdm_probe() 561 mcpdm->dma_data[1].addr = res->start + MCPDM_REG_UP_DATA; in asoc_mcpdm_probe() 563 mcpdm->dma_data[0].filter_data = "dn_link"; in asoc_mcpdm_probe() [all …]
|
H A D | davinci-i2s.c | 127 struct snd_dmaengine_dai_dma_data dma_data[2]; member 741 snd_soc_dai_dma_data_set(dai, stream, &dev->dma_data[stream]); in davinci_i2s_dai_probe() 782 struct snd_dmaengine_dai_dma_data *dma_data; in davinci_i2s_probe() local 815 dma_data = &dev->dma_data[SNDRV_PCM_STREAM_PLAYBACK]; in davinci_i2s_probe() 816 dma_data->addr = (dma_addr_t)(mem->start + DAVINCI_MCBSP_DXR_REG); in davinci_i2s_probe() 822 dma_data->filter_data = dma; in davinci_i2s_probe() 824 dma_data->filter_data = "tx"; in davinci_i2s_probe() 830 dma_data = &dev->dma_data[SNDRV_PCM_STREAM_CAPTURE]; in davinci_i2s_probe() 831 dma_data->addr = (dma_addr_t)(mem->start + DAVINCI_MCBSP_DRR_REG); in davinci_i2s_probe() 837 dma_data->filter_data = dma; in davinci_i2s_probe() [all …]
|
H A D | omap-hdmi.c | 31 struct snd_dmaengine_dai_dma_data dma_data; member 87 snd_soc_dai_set_dma_data(dai, substream, &ad->dma_data); in hdmi_dai_startup() 116 ad->dma_data.maxburst = 16; in hdmi_dai_hw_params() 119 ad->dma_data.maxburst = 32; in hdmi_dai_hw_params() 329 ad->dma_data.addr = ha->audio_dma_addr; in omap_hdmi_audio_probe() 330 ad->dma_data.filter_data = "audio_tx"; in omap_hdmi_audio_probe() 331 ad->dma_data.addr_width = DMA_SLAVE_BUSWIDTH_4_BYTES; in omap_hdmi_audio_probe()
|
H A D | omap-dmic.c | 48 struct snd_dmaengine_dai_dma_data dma_data; member 191 struct snd_dmaengine_dai_dma_data *dma_data; in omap_dmic_dai_hw_params() local 219 dma_data = snd_soc_dai_get_dma_data(dai, substream); in omap_dmic_dai_hw_params() 220 dma_data->maxburst = dmic->threshold * channels; in omap_dmic_dai_hw_params() 418 snd_soc_dai_init_dma_data(dai, NULL, &dmic->dma_data); in omap_dmic_probe() 487 dmic->dma_data.addr = res->start + OMAP_DMIC_DATA_REG; in asoc_dmic_probe() 489 dmic->dma_data.filter_data = "up_link"; in asoc_dmic_probe()
|
H A D | davinci-mcasp.c | 76 struct snd_dmaengine_dai_dma_data dma_data[2]; member 857 struct snd_dmaengine_dai_dma_data *dma_data = &mcasp->dma_data[stream]; in mcasp_common_hw_param() local 943 dma_data->maxburst = active_serializers; in mcasp_common_hw_param() 945 dma_data->maxburst = 0; in mcasp_common_hw_param() 976 dma_data->maxburst = numevt; in mcasp_common_hw_param() 1699 snd_soc_dai_dma_data_set(dai, stream, &mcasp->dma_data[stream]); in davinci_mcasp_dai_probe() 2032 tmp = mcasp->dma_data[SNDRV_PCM_STREAM_PLAYBACK].filter_data; in davinci_mcasp_get_dma_type() 2248 struct snd_dmaengine_dai_dma_data *dma_data; in davinci_mcasp_probe() local 2360 dma_data = &mcasp->dma_data[SNDRV_PCM_STREAM_PLAYBACK]; in davinci_mcasp_probe() 2361 dma_data->filter_data = "tx"; in davinci_mcasp_probe() [all …]
|
H A D | omap-mcbsp.c | 667 mcbsp->dma_data[0].filter_data = &mcbsp->dma_req[0]; in omap_mcbsp_init() 675 mcbsp->dma_data[1].filter_data = &mcbsp->dma_req[1]; in omap_mcbsp_init() 677 mcbsp->dma_data[0].filter_data = "tx"; in omap_mcbsp_init() 678 mcbsp->dma_data[1].filter_data = "rx"; in omap_mcbsp_init() 681 mcbsp->dma_data[0].addr = omap_mcbsp_dma_reg_params(mcbsp, in omap_mcbsp_init() 683 mcbsp->dma_data[1].addr = omap_mcbsp_dma_reg_params(mcbsp, in omap_mcbsp_init() 920 struct snd_dmaengine_dai_dma_data *dma_data; in omap_mcbsp_dai_hw_params() local 926 dma_data = snd_soc_dai_get_dma_data(cpu_dai, substream); in omap_mcbsp_dai_hw_params() 981 dma_data->maxburst = pkt_size; in omap_mcbsp_dai_hw_params() 1265 &mcbsp->dma_data[SNDRV_PCM_STREAM_PLAYBACK], in omap_mcbsp_probe() [all …]
|
/linux/sound/soc/hisilicon/ |
H A D | hi6210-i2s.c | 42 struct snd_dmaengine_dai_dma_data dma_data[2]; member 260 struct snd_dmaengine_dai_dma_data *dma_data; in hi6210_i2s_hw_params() local 310 dma_data = snd_soc_dai_get_dma_data(cpu_dai, substream); in hi6210_i2s_hw_params() 315 dma_data->addr_width = 3; in hi6210_i2s_hw_params() 319 dma_data->addr_width = 2; in hi6210_i2s_hw_params() 422 dma_data->maxburst = 2; in hi6210_i2s_hw_params() 425 dma_data->addr = i2s->base_phys + HII2S_ST_DL_CHANNEL; in hi6210_i2s_hw_params() 427 dma_data->addr = i2s->base_phys + HII2S_STEREO_UPLINK_CHANNEL; in hi6210_i2s_hw_params() 505 &i2s->dma_data[SNDRV_PCM_STREAM_PLAYBACK], in hi6210_i2s_dai_probe() 506 &i2s->dma_data[SNDRV_PCM_STREAM_CAPTURE]); in hi6210_i2s_dai_probe()
|
/linux/sound/soc/adi/ |
H A D | axi-spdif.c | 42 struct snd_dmaengine_dai_dma_data dma_data; member 112 snd_soc_dai_init_dma_data(dai, &spdif->dma_data, NULL); in axi_spdif_dai_probe() 214 spdif->dma_data.addr = res->start + AXI_SPDIF_REG_TX_FIFO; in axi_spdif_probe() 215 spdif->dma_data.addr_width = 4; in axi_spdif_probe() 216 spdif->dma_data.maxburst = 1; in axi_spdif_probe()
|
/linux/sound/soc/img/ |
H A D | img-i2s-out.c | 55 struct snd_dmaengine_dai_dma_data dma_data; member 383 snd_soc_dai_init_dma_data(dai, &i2s->dma_data, NULL); in img_i2s_out_dai_probe() 405 struct snd_dmaengine_dai_dma_data *dma_data; in img_i2s_out_dma_prepare_slave_config() local 408 dma_data = snd_soc_dai_get_dma_data(snd_soc_rtd_to_cpu(rtd, 0), st); in img_i2s_out_dma_prepare_slave_config() 414 sc->dst_addr = dma_data->addr; in img_i2s_out_dma_prepare_slave_config() 415 sc->dst_addr_width = dma_data->addr_width; in img_i2s_out_dma_prepare_slave_config() 504 i2s->dma_data.addr = res->start + IMG_I2S_OUT_TX_FIFO; in img_i2s_out_probe() 505 i2s->dma_data.addr_width = 4; in img_i2s_out_probe() 506 i2s->dma_data.maxburst = 4; in img_i2s_out_probe()
|
H A D | img-parallel-out.c | 39 struct snd_dmaengine_dai_dma_data dma_data; member 181 snd_soc_dai_init_dma_data(dai, &prl->dma_data, NULL); in img_prl_out_dai_probe() 259 prl->dma_data.addr = res->start + IMG_PRL_OUT_TX_FIFO; in img_prl_out_probe() 260 prl->dma_data.addr_width = 4; in img_prl_out_probe() 261 prl->dma_data.maxburst = 4; in img_prl_out_probe()
|
H A D | img-i2s-in.c | 55 struct snd_dmaengine_dai_dma_data dma_data; member 377 snd_soc_dai_init_dma_data(dai, NULL, &i2s->dma_data); in img_i2s_in_dai_probe() 399 struct snd_dmaengine_dai_dma_data *dma_data; in img_i2s_in_dma_prepare_slave_config() local 402 dma_data = snd_soc_dai_get_dma_data(snd_soc_rtd_to_cpu(rtd, 0), st); in img_i2s_in_dma_prepare_slave_config() 408 sc->src_addr = dma_data->addr; in img_i2s_in_dma_prepare_slave_config() 409 sc->src_addr_width = dma_data->addr_width; in img_i2s_in_dma_prepare_slave_config() 469 i2s->dma_data.addr = res->start + IMG_I2S_IN_RX_FIFO; in img_i2s_in_probe() 470 i2s->dma_data.addr_width = 4; in img_i2s_in_probe()
|
H A D | img-spdif-out.c | 44 struct snd_dmaengine_dai_dma_data dma_data; member 294 snd_soc_dai_init_dma_data(dai, &spdif->dma_data, NULL); in img_spdif_out_dai_probe() 378 spdif->dma_data.addr = res->start + IMG_SPDIF_OUT_TX_FIFO; in img_spdif_out_probe() 379 spdif->dma_data.addr_width = 4; in img_spdif_out_probe() 380 spdif->dma_data.maxburst = 4; in img_spdif_out_probe()
|
/linux/sound/soc/fsl/ |
H A D | fsl_asrc_dma.c | 229 pair->dma_data.dma_request = tmp_data->dma_request; in fsl_asrc_dma_hw_params() 237 pair->dma_data.dma_request2 = tmp_data->dma_request; in fsl_asrc_dma_hw_params() 238 pair->dma_data.peripheral_type = tmp_data->peripheral_type; in fsl_asrc_dma_hw_params() 239 pair->dma_data.priority = tmp_data->priority; in fsl_asrc_dma_hw_params() 244 __dma_request_channel(&mask, filter, &pair->dma_data, in fsl_asrc_dma_hw_params() 335 struct snd_dmaengine_dai_dma_data *dma_data; in fsl_asrc_dma_startup() local 378 dma_data = snd_soc_dai_get_dma_data(snd_soc_rtd_to_cpu(rtd, 0), substream); in fsl_asrc_dma_startup() 382 dma_data, in fsl_asrc_dma_startup()
|
/linux/sound/soc/sti/ |
H A D | sti_uniperif.c | 288 struct snd_dmaengine_dai_dma_data *dma_data; in sti_uniperiph_dai_hw_params() local 297 dma_data = snd_soc_dai_get_dma_data(dai, substream); in sti_uniperiph_dai_hw_params() 298 dma_data->maxburst = transfer_size; in sti_uniperiph_dai_hw_params() 362 snd_soc_dai_init_dma_data(dai, &dai_data->dma_data, NULL); in sti_uniperiph_dai_probe() 364 snd_soc_dai_init_dma_data(dai, NULL, &dai_data->dma_data); in sti_uniperiph_dai_probe() 366 dai_data->dma_data.addr = dai_data->uni->fifo_phys_address; in sti_uniperiph_dai_probe() 367 dai_data->dma_data.addr_width = DMA_SLAVE_BUSWIDTH_4_BYTES; in sti_uniperiph_dai_probe()
|
/linux/include/sound/ |
H A D | dmaengine_pcm.h | 89 const struct snd_dmaengine_dai_dma_data *dma_data, 94 struct snd_dmaengine_dai_dma_data *dma_data,
|
/linux/drivers/mtd/nand/raw/ |
H A D | rockchip-nand-controller.c | 469 dma_addr_t dma_data, dma_addr_t dma_oob) in rk_nfc_xfer_start() argument 487 writel((u32)dma_data, nfc->regs + nfc->cfg->dma_data_buf_off); in rk_nfc_xfer_start() 599 dma_addr_t dma_data, dma_oob; in rk_nfc_write_page_hwecc() local 657 dma_data = dma_map_single(nfc->dev, (void *)nfc->page_buf, in rk_nfc_write_page_hwecc() 666 rk_nfc_xfer_start(nfc, NFC_WRITE, ecc->steps, dma_data, in rk_nfc_write_page_hwecc() 679 dma_unmap_single(nfc->dev, dma_data, mtd->writesize, in rk_nfc_write_page_hwecc() 764 dma_addr_t dma_data, dma_oob; in rk_nfc_read_page_hwecc() local 772 dma_data = dma_map_single(nfc->dev, nfc->page_buf, in rk_nfc_read_page_hwecc() 793 rk_nfc_xfer_start(nfc, NFC_READ, ecc->steps, dma_data, in rk_nfc_read_page_hwecc() 806 dma_unmap_single(nfc->dev, dma_data, mtd->writesize, in rk_nfc_read_page_hwecc()
|
/linux/sound/soc/starfive/ |
H A D | jh7110_tdm.c | 344 struct snd_dmaengine_dai_dma_data *dma_data = NULL; in jh7110_tdm_hw_params() local 388 dma_data = &tdm->play_dma_data; in jh7110_tdm_hw_params() 394 dma_data = &tdm->capture_dma_data; in jh7110_tdm_hw_params() 397 snd_soc_dai_set_dma_data(dai, substream, dma_data); in jh7110_tdm_hw_params()
|
/linux/sound/soc/samsung/ |
H A D | spdif.c | 183 struct snd_dmaengine_dai_dma_data *dma_data; in spdif_hw_params() local 191 dma_data = spdif->dma_playback; in spdif_hw_params() 197 snd_soc_dai_set_dma_data(snd_soc_rtd_to_cpu(rtd, 0), substream, dma_data); in spdif_hw_params()
|