Home
last modified time | relevance | path

Searched refs:dma (Results 1 – 25 of 74) sorted by relevance

123

/sound/core/
Disadma.c27 void snd_dma_program(unsigned long dma, in snd_dma_program() argument
34 disable_dma(dma); in snd_dma_program()
35 clear_dma_ff(dma); in snd_dma_program()
36 set_dma_mode(dma, mode); in snd_dma_program()
37 set_dma_addr(dma, addr); in snd_dma_program()
38 set_dma_count(dma, size); in snd_dma_program()
40 enable_dma(dma); in snd_dma_program()
51 void snd_dma_disable(unsigned long dma) in snd_dma_disable() argument
56 clear_dma_ff(dma); in snd_dma_disable()
57 disable_dma(dma); in snd_dma_disable()
[all …]
/sound/pci/cs5535audio/
Dcs5535audio_pcm.c107 struct cs5535audio_dma *dma, in cs5535audio_build_dma_packets() argument
119 if (dma->desc_buf.area == NULL) { in cs5535audio_build_dma_packets()
123 &dma->desc_buf) < 0) in cs5535audio_build_dma_packets()
125 dma->period_bytes = dma->periods = 0; in cs5535audio_build_dma_packets()
128 if (dma->periods == periods && dma->period_bytes == period_bytes) in cs5535audio_build_dma_packets()
134 desc_addr = (u32) dma->desc_buf.addr; in cs5535audio_build_dma_packets()
137 &((struct cs5535audio_dma_desc *) dma->desc_buf.area)[i]; in cs5535audio_build_dma_packets()
145 lastdesc = &((struct cs5535audio_dma_desc *) dma->desc_buf.area)[periods]; in cs5535audio_build_dma_packets()
146 lastdesc->addr = cpu_to_le32((u32) dma->desc_buf.addr); in cs5535audio_build_dma_packets()
149 jmpprd_addr = (u32)dma->desc_buf.addr + in cs5535audio_build_dma_packets()
[all …]
Dcs5535audio_pm.c53 struct cs5535audio_dma *dma = &cs5535au->dmas[i]; in snd_cs5535audio_suspend() local
54 if (dma && dma->substream) in snd_cs5535audio_suspend()
55 dma->saved_prd = dma->ops->read_prd(cs5535au); in snd_cs5535audio_suspend()
86 struct cs5535audio_dma *dma = &cs5535au->dmas[i]; in snd_cs5535audio_resume() local
87 if (dma && dma->substream) { in snd_cs5535audio_resume()
88 dma->substream->ops->prepare(dma->substream); in snd_cs5535audio_resume()
89 dma->ops->setup_prd(cs5535au, dma->saved_prd); in snd_cs5535audio_resume()
/sound/pci/au88x0/
Dau88x0_core.c1072 stream_t *dma = &vortex->dma_adb[adbdma]; in vortex_adbdma_setfirstbuffer() local
1075 dma->dma_ctrl); in vortex_adbdma_setfirstbuffer()
1080 stream_t *dma = &vortex->dma_adb[adbdma]; in vortex_adbdma_setstartbuffer() local
1084 dma->period_real = dma->period_virt = sb; in vortex_adbdma_setstartbuffer()
1091 stream_t *dma = &vortex->dma_adb[adbdma]; in vortex_adbdma_setbuffers() local
1093 dma->period_bytes = psize; in vortex_adbdma_setbuffers()
1094 dma->nr_periods = count; in vortex_adbdma_setbuffers()
1096 dma->cfg0 = 0; in vortex_adbdma_setbuffers()
1097 dma->cfg1 = 0; in vortex_adbdma_setbuffers()
1102 dma->cfg1 |= 0x88000000 | 0x44000000 | 0x30000000 | (psize - 1); in vortex_adbdma_setbuffers()
[all …]
Dau88x0_pcm.c220 int dma, type = VORTEX_PCM_TYPE(substream->pcm); in snd_vortex_pcm_hw_params() local
223 vortex_adb_allocroute(chip, stream->dma, in snd_vortex_pcm_hw_params()
228 dma = in snd_vortex_pcm_hw_params()
233 if (dma < 0) { in snd_vortex_pcm_hw_params()
235 return dma; in snd_vortex_pcm_hw_params()
237 stream = substream->runtime->private_data = &chip->dma_adb[dma]; in snd_vortex_pcm_hw_params()
240 vortex_adbdma_setbuffers(chip, dma, in snd_vortex_pcm_hw_params()
257 stream->dma = substream->number; in snd_vortex_pcm_hw_params()
284 vortex_adb_allocroute(chip, stream->dma, in snd_vortex_pcm_hw_free()
293 vortex_wt_allocroute(chip, stream->dma, 0); in snd_vortex_pcm_hw_free()
[all …]
/sound/soc/sprd/
Dsprd-pcm-compress.c72 struct sprd_compr_dma dma[SPRD_COMPR_DMA_CHANS]; member
119 struct sprd_compr_dma *dma = &stream->dma[1]; in sprd_platform_compr_dma_complete() local
122 stream->copied_total += dma->trans_len; in sprd_platform_compr_dma_complete()
140 struct sprd_compr_dma *dma = &stream->dma[channel]; in sprd_platform_compr_dma_config() local
156 dma->chan = dma_request_slave_channel(dev, in sprd_platform_compr_dma_config()
158 if (!dma->chan) { in sprd_platform_compr_dma_config()
199 dma->trans_len = period * period_cnt; in sprd_platform_compr_dma_config()
216 sg_dma_len(sgt) = dma->trans_len; in sprd_platform_compr_dma_config()
224 link.virt_addr = (unsigned long)dma->virt; in sprd_platform_compr_dma_config()
225 link.phy_addr = dma->phys; in sprd_platform_compr_dma_config()
[all …]
/sound/soc/au1x/
Ddma.c35 int dma; member
108 disable_dma(stream->dma); in au1000_dma_stop()
116 init_dma(stream->dma); in au1000_dma_start()
117 if (get_dma_active_buffer(stream->dma) == 0) { in au1000_dma_start()
118 clear_dma_done0(stream->dma); in au1000_dma_start()
119 set_dma_addr0(stream->dma, stream->buffer->start); in au1000_dma_start()
120 set_dma_count0(stream->dma, stream->period_size >> 1); in au1000_dma_start()
121 set_dma_addr1(stream->dma, stream->buffer->next->start); in au1000_dma_start()
122 set_dma_count1(stream->dma, stream->period_size >> 1); in au1000_dma_start()
124 clear_dma_done1(stream->dma); in au1000_dma_start()
[all …]
DMakefile8 snd-soc-au1x-dma-objs := dma.o
15 obj-$(CONFIG_SND_SOC_AU1XAUDIO) += snd-soc-au1x-dma.o
/sound/soc/sh/rcar/
Ddma.c43 } dma; member
53 #define rsnd_priv_to_dmac(p) ((struct rsnd_dma_ctrl *)(p)->dma)
55 #define rsnd_dma_to_dmaen(dma) (&(dma)->dma.en) argument
56 #define rsnd_dma_to_dmapp(dma) (&(dma)->dma.pp) argument
101 struct rsnd_dma *dma = rsnd_mod_to_dma(mod); in rsnd_dmaen_stop() local
102 struct rsnd_dmaen *dmaen = rsnd_dma_to_dmaen(dma); in rsnd_dmaen_stop()
114 struct rsnd_dma *dma = rsnd_mod_to_dma(mod); in rsnd_dmaen_cleanup() local
115 struct rsnd_dmaen *dmaen = rsnd_dma_to_dmaen(dma); in rsnd_dmaen_cleanup()
134 struct rsnd_dma *dma = rsnd_mod_to_dma(mod); in rsnd_dmaen_prepare() local
135 struct rsnd_dmaen *dmaen = rsnd_dma_to_dmaen(dma); in rsnd_dmaen_prepare()
[all …]
/sound/pci/
Datiixp.c341 static int atiixp_build_dma_packets(struct atiixp *chip, struct atiixp_dma *dma, in atiixp_build_dma_packets() argument
353 if (dma->desc_buf.area == NULL) { in atiixp_build_dma_packets()
357 &dma->desc_buf) < 0) in atiixp_build_dma_packets()
359 dma->period_bytes = dma->periods = 0; /* clear */ in atiixp_build_dma_packets()
362 if (dma->periods == periods && dma->period_bytes == period_bytes) in atiixp_build_dma_packets()
367 writel(0, chip->remap_addr + dma->ops->llp_offset); in atiixp_build_dma_packets()
368 dma->ops->enable_dma(chip, 0); in atiixp_build_dma_packets()
369 dma->ops->enable_dma(chip, 1); in atiixp_build_dma_packets()
374 desc_addr = (u32)dma->desc_buf.addr; in atiixp_build_dma_packets()
377 desc = &((struct atiixp_dma_desc *)dma->desc_buf.area)[i]; in atiixp_build_dma_packets()
[all …]
Datiixp_modem.c310 struct atiixp_dma *dma, in atiixp_build_dma_packets() argument
322 if (dma->desc_buf.area == NULL) { in atiixp_build_dma_packets()
324 ATI_DESC_LIST_SIZE, &dma->desc_buf) < 0) in atiixp_build_dma_packets()
326 dma->period_bytes = dma->periods = 0; /* clear */ in atiixp_build_dma_packets()
329 if (dma->periods == periods && dma->period_bytes == period_bytes) in atiixp_build_dma_packets()
334 writel(0, chip->remap_addr + dma->ops->llp_offset); in atiixp_build_dma_packets()
335 dma->ops->enable_dma(chip, 0); in atiixp_build_dma_packets()
336 dma->ops->enable_dma(chip, 1); in atiixp_build_dma_packets()
341 desc_addr = (u32)dma->desc_buf.addr; in atiixp_build_dma_packets()
344 desc = &((struct atiixp_dma_desc *)dma->desc_buf.area)[i]; in atiixp_build_dma_packets()
[all …]
Dcs4281.c457 struct cs4281_dma dma[4]; member
654 struct cs4281_dma *dma = substream->runtime->private_data; in snd_cs4281_trigger() local
660 dma->valDCR |= BA0_DCR_MSK; in snd_cs4281_trigger()
661 dma->valFCR |= BA0_FCR_FEN; in snd_cs4281_trigger()
664 dma->valDCR &= ~BA0_DCR_MSK; in snd_cs4281_trigger()
665 dma->valFCR &= ~BA0_FCR_FEN; in snd_cs4281_trigger()
669 snd_cs4281_pokeBA0(chip, dma->regDMR, dma->valDMR & ~BA0_DMR_DMA); in snd_cs4281_trigger()
670 dma->valDMR |= BA0_DMR_DMA; in snd_cs4281_trigger()
671 dma->valDCR &= ~BA0_DCR_MSK; in snd_cs4281_trigger()
672 dma->valFCR |= BA0_FCR_FEN; in snd_cs4281_trigger()
[all …]
/sound/soc/fsl/
Dfsl_dma.c365 struct dma_object *dma = in fsl_dma_open() local
387 if (dma->assigned) { in fsl_dma_open()
399 dma_private->ssi_sxx_phys = dma->ssi_stx_phys; in fsl_dma_open()
401 dma_private->ssi_sxx_phys = dma->ssi_srx_phys; in fsl_dma_open()
403 dma_private->ssi_fifo_depth = dma->ssi_fifo_depth; in fsl_dma_open()
404 dma_private->dma_channel = dma->channel; in fsl_dma_open()
405 dma_private->irq = dma->irq; in fsl_dma_open()
420 dma->assigned = true; in fsl_dma_open()
776 struct dma_object *dma = in fsl_dma_close() local
789 dma->assigned = false; in fsl_dma_close()
[all …]
Dfsl_rpmsg.c176 rpmsg->dma = devm_clk_get_optional(&pdev->dev, "dma"); in fsl_rpmsg_probe()
177 if (IS_ERR(rpmsg->dma)) in fsl_rpmsg_probe()
178 return PTR_ERR(rpmsg->dma); in fsl_rpmsg_probe()
238 ret = clk_prepare_enable(rpmsg->dma); in fsl_rpmsg_runtime_resume()
256 clk_disable_unprepare(rpmsg->dma); in fsl_rpmsg_runtime_suspend()
/sound/soc/sof/
Dprobe.c33 size_t size = struct_size(msg, dma, 1); in sof_ipc_probe_init()
42 msg->dma[0].stream_tag = stream_tag; in sof_ipc_probe_init()
43 msg->dma[0].dma_buffer_size = buffer_size; in sof_ipc_probe_init()
99 bytes = sizeof(reply->dma[0]); in sof_ipc_probe_info()
103 *params = kmemdup(&reply->dma[0], bytes, GFP_KERNEL); in sof_ipc_probe_info()
131 struct sof_probe_dma **dma, size_t *num_dma) in sof_ipc_probe_dma_info() argument
134 (void **)dma, num_dma); in sof_ipc_probe_dma_info()
150 struct sof_probe_dma *dma, size_t num_dma) in sof_ipc_probe_dma_add() argument
154 size_t size = struct_size(msg, dma, num_dma); in sof_ipc_probe_dma_add()
163 memcpy(&msg->dma[0], dma, size - sizeof(*msg)); in sof_ipc_probe_dma_add()
Dprobe.h39 struct sof_probe_dma dma[]; member
46 struct sof_probe_dma dma[0]; member
73 struct sof_probe_dma **dma, size_t *num_dma);
75 struct sof_probe_dma *dma, size_t num_dma);
/sound/isa/sb/
Dsb8_main.c98 int dma; in snd_sb8_playback_prepare() local
137 dma = chip->dma16; in snd_sb8_playback_prepare()
141 dma = chip->dma8; in snd_sb8_playback_prepare()
159 snd_dma_program(dma, runtime->dma_addr, 1, DMA_MODE_WRITE); in snd_sb8_playback_prepare()
187 snd_dma_program(dma, runtime->dma_addr, in snd_sb8_playback_prepare()
236 int dma; in snd_sb8_capture_prepare() local
276 dma = chip->dma16; in snd_sb8_capture_prepare()
280 dma = chip->dma8; in snd_sb8_capture_prepare()
312 snd_dma_program(dma, runtime->dma_addr, in snd_sb8_capture_prepare()
389 int dma; in snd_sb8_playback_pointer() local
[all …]
Dsb16_main.c241 unsigned int size, count, dma; in snd_sb16_playback_prepare() local
252 dma = (chip->mode & SB_MODE_PLAYBACK_8) ? chip->dma8 : chip->dma16; in snd_sb16_playback_prepare()
253 snd_dma_program(dma, runtime->dma_addr, size, DMA_MODE_WRITE | DMA_AUTOINIT); in snd_sb16_playback_prepare()
311 unsigned int size, count, dma; in snd_sb16_capture_prepare() local
321 dma = (chip->mode & SB_MODE_CAPTURE_8) ? chip->dma8 : chip->dma16; in snd_sb16_capture_prepare()
322 snd_dma_program(dma, runtime->dma_addr, size, DMA_MODE_READ | DMA_AUTOINIT); in snd_sb16_capture_prepare()
429 unsigned int dma; in snd_sb16_playback_pointer() local
432 dma = (chip->mode & SB_MODE_PLAYBACK_8) ? chip->dma8 : chip->dma16; in snd_sb16_playback_pointer()
433 ptr = snd_dma_pointer(dma, chip->p_dma_size); in snd_sb16_playback_pointer()
440 unsigned int dma; in snd_sb16_capture_pointer() local
[all …]
/sound/isa/
Dsscape.c42 static int dma[SNDRV_CARDS] = SNDRV_DEFAULT_DMA; variable
64 module_param_hw_array(dma, int, dma, NULL, 0444);
65 MODULE_PARM_DESC(dma, "DMA # for SoundScape driver.");
67 module_param_hw_array(dma2, int, dma, NULL, 0444);
418 struct snd_dma_buffer dma; in upload_dma_data() local
422 if (!get_dmabuf(s, &dma, PAGE_ALIGN(32 * 1024))) in upload_dma_data()
453 len = min(size, dma.bytes); in upload_dma_data()
454 memcpy(dma.area, data, len); in upload_dma_data()
458 snd_dma_program(s->chip->dma1, dma.addr, len, DMA_MODE_WRITE); in upload_dma_data()
504 free_dmabuf(&dma); in upload_dma_data()
[all …]
Dsc6000.c42 static int dma[SNDRV_CARDS] = SNDRV_DEFAULT_DMA; /* 0, 1, 3 */ variable
61 module_param_hw_array(dma, int, dma, NULL, 0444);
62 MODULE_PARM_DESC(dma, "DMA # for sc-6000 driver.");
137 static unsigned char sc6000_dma_to_softcfg(int dma) in sc6000_dma_to_softcfg() argument
141 switch (dma) { in sc6000_dma_to_softcfg()
379 sc6000_dma_to_softcfg(dma[dev]); in sc6000_init_board()
513 if (dma[dev] != SNDRV_AUTO_DMA && !sc6000_dma_to_softcfg(dma[dev])) { in snd_sc6000_match()
514 printk(KERN_ERR PFX "invalid DMA %d\n", dma[dev]); in snd_sc6000_match()
546 int xdma = dma[dev]; in __snd_sc6000_probe()
/sound/sparc/
Ddbri.c306 struct dbri_dma *dma; /* Pointer to our DMA block */ member
669 if (dbri->cmdptr - dbri->dma->cmd + len < DBRI_NO_CMDS - 2) in dbri_cmdlock()
672 return dbri->dma->cmd; in dbri_cmdlock()
699 addr = dvma_addr + (cmd - len - dbri->dma->cmd) * sizeof(s32); in dbri_cmdsend()
716 for (ptr = dbri->dma->cmd; ptr < cmd+2; ptr++) in dbri_cmdsend()
776 dbri->dma->intr[0] = dma_addr; in dbri_initialize()
782 cmd = dbri->cmdptr = dbri->dma->cmd; in dbri_initialize()
849 dbri->dma->desc[desc].ba = 0; in reset_pipe()
850 dbri->dma->desc[desc].nda = 0; in reset_pipe()
1139 dbri->dma->desc[desc].ba = 0; in setup_descs()
[all …]
/sound/soc/amd/vangogh/
DMakefile5 snd-acp5x-pcm-dma-objs := acp5x-pcm-dma.o
9 obj-$(CONFIG_SND_SOC_AMD_ACP5x) += snd-acp5x-pcm-dma.o
/sound/soc/amd/raven/
DMakefile4 snd-acp3x-pcm-dma-objs := acp3x-pcm-dma.o
7 obj-$(CONFIG_SND_SOC_AMD_ACP3x) += snd-acp3x-pcm-dma.o
/sound/soc/amd/renoir/
DMakefile4 snd-acp3x-pdm-dma-objs := acp3x-pdm-dma.o
7 obj-$(CONFIG_SND_SOC_AMD_RENOIR) += snd-acp3x-pdm-dma.o
/sound/soc/sh/
DMakefile3 snd-soc-dma-sh7760-objs := dma-sh7760.o
4 obj-$(CONFIG_SND_SOC_PCM_SH7760) += snd-soc-dma-sh7760.o

123