Home
last modified time | relevance | path

Searched refs:dma_ch (Results 1 – 25 of 30) sorted by relevance

12

/Linux-v5.4/sound/soc/qcom/
Dlpass-platform.c22 int dma_ch; member
61 int ret, dma_ch, dir = substream->stream; in lpass_platform_pcmops_open() local
72 dma_ch = v->alloc_dma_channel(drvdata, dir); in lpass_platform_pcmops_open()
74 dma_ch = 0; in lpass_platform_pcmops_open()
76 if (dma_ch < 0) in lpass_platform_pcmops_open()
77 return dma_ch; in lpass_platform_pcmops_open()
79 drvdata->substream[dma_ch] = substream; in lpass_platform_pcmops_open()
82 LPAIF_DMACTL_REG(v, dma_ch, dir), 0); in lpass_platform_pcmops_open()
89 data->dma_ch = dma_ch; in lpass_platform_pcmops_open()
118 drvdata->substream[data->dma_ch] = NULL; in lpass_platform_pcmops_close()
[all …]
/Linux-v5.4/drivers/media/platform/omap3isp/
Disphist.c196 ret = dmaengine_slave_config(hist->dma_ch, &cfg); in hist_buf_dma()
203 tx = dmaengine_prep_slave_single(hist->dma_ch, dma_addr, in hist_buf_dma()
220 dma_async_issue_pending(hist->dma_ch); in hist_buf_dma()
283 if (hist->dma_ch) in hist_buf_process()
498 hist->dma_ch = dma_request_chan_by_mask(&mask); in omap3isp_hist_init()
499 if (IS_ERR(hist->dma_ch)) { in omap3isp_hist_init()
500 ret = PTR_ERR(hist->dma_ch); in omap3isp_hist_init()
504 hist->dma_ch = NULL; in omap3isp_hist_init()
509 dma_chan_name(hist->dma_ch)); in omap3isp_hist_init()
521 if (!IS_ERR_OR_NULL(hist->dma_ch)) in omap3isp_hist_init()
[all …]
Dispstat.h109 struct dma_chan *dma_ch; member
/Linux-v5.4/arch/unicore32/kernel/
Ddma.c74 void puv3_free_dma(int dma_ch) in puv3_free_dma() argument
78 if (!dma_channels[dma_ch].name) { in puv3_free_dma()
81 __func__, dma_ch); in puv3_free_dma()
86 dma_channels[dma_ch].name = NULL; in puv3_free_dma()
87 dma_channels[dma_ch].err_handler = NULL; in puv3_free_dma()
/Linux-v5.4/sound/ppc/
Dsnd_ps3.c110 int dma_ch, done, retries, stop_forced = 0; in snd_ps3_verify_dma_stop() local
113 for (dma_ch = 0; dma_ch < 8; dma_ch++) { in snd_ps3_verify_dma_stop()
116 status = read_reg(PS3_AUDIO_KICK(dma_ch)) & in snd_ps3_verify_dma_stop()
132 __func__, dma_ch); in snd_ps3_verify_dma_stop()
221 int fill_stages, dma_ch, stage; in snd_ps3_program_dma() local
248 dma_ch = stage * 2 + ch; in snd_ps3_program_dma()
257 write_reg(PS3_AUDIO_SOURCE(dma_ch), in snd_ps3_program_dma()
263 write_reg(PS3_AUDIO_DEST(dma_ch), in snd_ps3_program_dma()
267 write_reg(PS3_AUDIO_DEST(dma_ch), in snd_ps3_program_dma()
272 write_reg(PS3_AUDIO_DMASIZE(dma_ch), 0); in snd_ps3_program_dma()
[all …]
/Linux-v5.4/drivers/misc/mic/card/
Dmic_device.c322 mdrv->dma_ch[mdrv->num_dma_ch++] = chan; in mic_request_dma_chans()
336 dma_release_channel(mdrv->dma_ch[i]); in mic_free_dma_chans()
337 mdrv->dma_ch[i] = NULL; in mic_free_dma_chans()
371 NULL, mdrv->dma_ch[0]); in mic_driver_init()
381 NULL, mdrv->dp, mdrv->dma_ch, in mic_driver_init()
Dmic_device.h80 struct dma_chan *dma_ch[MIC_MAX_DMA_CHAN]; member
/Linux-v5.4/drivers/dma/ti/
Domap-dma.c53 int dma_ch; member
447 c->dma_ch); in omap_dma_drain_chan()
645 omap_dma_callback, c, &c->dma_ch); in omap_dma_alloc_chan_resources()
648 &c->dma_ch); in omap_dma_alloc_chan_resources()
651 dev_dbg(dev, "allocating channel %u for %u\n", c->dma_ch, c->dma_sig); in omap_dma_alloc_chan_resources()
654 omap_dma_assign(od, c, c->dma_ch); in omap_dma_alloc_chan_resources()
660 val = BIT(c->dma_ch); in omap_dma_alloc_chan_resources()
666 val &= ~BIT(c->dma_ch); in omap_dma_alloc_chan_resources()
676 c->ccr |= c->dma_ch + 1; in omap_dma_alloc_chan_resources()
697 od->irq_enable_mask &= ~BIT(c->dma_ch); in omap_dma_free_chan_resources()
[all …]
/Linux-v5.4/drivers/mmc/host/
Domap_hsmmc.c194 int use_dma, dma_ch; member
823 int dma_ch; in omap_hsmmc_request_done() local
828 dma_ch = host->dma_ch; in omap_hsmmc_request_done()
833 if (mrq->data && host->use_dma && dma_ch != -1) in omap_hsmmc_request_done()
910 int dma_ch; in omap_hsmmc_dma_cleanup() local
916 dma_ch = host->dma_ch; in omap_hsmmc_dma_cleanup()
917 host->dma_ch = -1; in omap_hsmmc_dma_cleanup()
920 if (host->use_dma && dma_ch != -1) { in omap_hsmmc_dma_cleanup()
1173 if (host->dma_ch < 0) { in omap_hsmmc_dma_callback()
1186 host->dma_ch = -1; in omap_hsmmc_dma_callback()
[all …]
/Linux-v5.4/drivers/spi/
Dspi-stm32-qspi.c204 struct dma_chan *dma_ch; in stm32_qspi_tx_dma() local
212 dma_ch = qspi->dma_chrx; in stm32_qspi_tx_dma()
215 dma_ch = qspi->dma_chtx; in stm32_qspi_tx_dma()
226 desc = dmaengine_prep_slave_sg(dma_ch, sgt.sgl, sgt.nents, in stm32_qspi_tx_dma()
243 dma_async_issue_pending(dma_ch); in stm32_qspi_tx_dma()
253 dmaengine_terminate_all(dma_ch); in stm32_qspi_tx_dma()
/Linux-v5.4/drivers/misc/mic/host/
Dmic_boot.c420 mdev->dma_ch[mdev->num_dma_ch++] = chan; in mic_request_dma_chans()
440 dma_release_channel(mdev->dma_ch[i]); in mic_free_dma_chans()
441 mdev->dma_ch[i] = NULL; in mic_free_dma_chans()
477 mdev->dma_ch, mdev->num_dma_ch, in _mic_start()
487 mdev->dma_ch[0]); in _mic_start()
Dmic_device.h82 struct dma_chan *dma_ch[MIC_MAX_DMA_CHAN]; member
/Linux-v5.4/arch/arm/mach-s3c24xx/include/mach/
Ddma.h20 enum dma_ch { enum
/Linux-v5.4/arch/unicore32/include/mach/
Ddma.h33 extern void puv3_free_dma(int dma_ch);
/Linux-v5.4/drivers/misc/mic/vop/
Dvop_vringh.c476 struct dma_chan *vop_ch = vi->dma_ch; in vop_sync_dma()
527 if (!VOP_USE_DMA || !vi->dma_ch) { in vop_virtio_copy_to_user()
539 dma_alignment = 1 << vi->dma_ch->device->copy_align; in vop_virtio_copy_to_user()
540 x200 = is_dma_copy_aligned(vi->dma_ch->device, 1, 1, 1); in vop_virtio_copy_to_user()
603 bool dma = VOP_USE_DMA && vi->dma_ch; in vop_virtio_copy_from_user()
607 dma_alignment = 1 << vi->dma_ch->device->copy_align; in vop_virtio_copy_from_user()
608 x200 = is_dma_copy_aligned(vi->dma_ch->device, 1, 1, 1); in vop_virtio_copy_from_user()
1123 vi->dma_ch = vpdev->dma_ch; in vop_host_init()
Dvop_main.h62 struct dma_chan *dma_ch; member
/Linux-v5.4/arch/arm/mach-s3c64xx/include/mach/
Ddma.h51 enum dma_ch { enum
/Linux-v5.4/include/linux/
Domap-dma.h305 void *data, int *dma_ch);
367 void *data, int *dma_ch) in omap_request_dma() argument
/Linux-v5.4/drivers/misc/mic/bus/
Dvop_bus.h49 struct dma_chan *dma_ch; member
Dscif_bus.h54 struct dma_chan **dma_ch; member
Dvop_bus.c156 vdev->dma_ch = chan; in vop_register_device()
Dscif_bus.c162 sdev->dma_ch = chan; in scif_register_device()
/Linux-v5.4/drivers/scsi/
DBusLogic.c1543 adapter->dma_ch = 5; in blogic_rdconfig()
1545 adapter->dma_ch = 6; in blogic_rdconfig()
1547 adapter->dma_ch = 7; in blogic_rdconfig()
1842 if (adapter->dma_ch > 0) in blogic_reportconfig()
1843 blogic_info("%d, ", adapter, adapter->dma_ch); in blogic_reportconfig()
2000 if (adapter->dma_ch > 0) { in blogic_getres()
2001 if (request_dma(adapter->dma_ch, adapter->full_model) < 0) { in blogic_getres()
2002 blogic_err("UNABLE TO ACQUIRE DMA CHANNEL %d - DETACHING\n", adapter, adapter->dma_ch); in blogic_getres()
2005 set_dma_mode(adapter->dma_ch, DMA_MODE_CASCADE); in blogic_getres()
2006 enable_dma(adapter->dma_ch); in blogic_getres()
[all …]
DBusLogic.h557 unsigned char dma_ch:7; /* Byte 11 Bits 0-6 */ member
1000 unsigned char dma_ch; member
/Linux-v5.4/drivers/mtd/nand/raw/
Dstm32_fmc2_nand.c890 struct dma_chan *dma_ch = fmc2->dma_rx_ch; in stm32_fmc2_xfer() local
903 dma_ch = fmc2->dma_tx_ch; in stm32_fmc2_xfer()
916 desc_data = dmaengine_prep_slave_sg(dma_ch, fmc2->dma_data_sg.sgl, in stm32_fmc2_xfer()
932 dma_async_issue_pending(dma_ch); in stm32_fmc2_xfer()
978 dmaengine_terminate_all(dma_ch); in stm32_fmc2_xfer()
989 dmaengine_terminate_all(dma_ch); in stm32_fmc2_xfer()

12