Home
last modified time | relevance | path

Searched refs:dma1 (Results 1 – 25 of 77) sorted by relevance

1234

/linux/sound/isa/gus/
H A Dgus_main.c99 if (gus->gf1.dma1 >= 0) { in snd_gus_free()
100 disable_dma(gus->gf1.dma1); in snd_gus_free()
101 free_dma(gus->gf1.dma1); in snd_gus_free()
119 int irq, int dma1, int dma2, in snd_gus_create() argument
145 gus->gf1.dma1 = -1; in snd_gus_create()
178 if (request_dma(dma1, "GUS - 1")) { in snd_gus_create()
179 dev_err(card->dev, "gus: can't grab DMA1 %d\n", dma1); in snd_gus_create()
183 gus->gf1.dma1 = dma1; in snd_gus_create()
184 if (dma2 >= 0 && dma1 != dma2) { in snd_gus_create()
192 gus->gf1.dma2 = gus->gf1.dma1; in snd_gus_create()
[all …]
H A Dgusclassic.c32 static int dma1[SNDRV_CARDS] = SNDRV_DEFAULT_DMA; /* 1,3,5,6,7 */ variable
49 module_param_hw_array(dma1, int, dma, NULL, 0444);
50 MODULE_PARM_DESC(dma1, "DMA1 # for " CRD_NAME " driver.");
82 if (dma1[n] == SNDRV_AUTO_DMA) { in snd_gusclassic_create()
83 dma1[n] = snd_legacy_find_free_dma(possible_dmas); in snd_gusclassic_create()
84 if (dma1[n] < 0) { in snd_gusclassic_create()
98 return snd_gus_create(card, port[n], irq[n], dma1[n], dma2[n], in snd_gusclassic_create()
104 error = snd_gus_create(card, port[n], irq[n], dma1[n], dma2[n], in snd_gusclassic_create()
182 gus->gf1.port, gus->gf1.irq, gus->gf1.dma1); in snd_gusclassic_probe()
H A Dgusextreme.c41 static int dma1[SNDRV_CARDS] = SNDRV_DEFAULT_DMA; variable
67 module_param_hw_array(dma1, int, dma, NULL, 0444);
68 MODULE_PARM_DESC(dma1, "GF1 DMA # for " CRD_NAME " driver.");
134 if (dma1[n] == SNDRV_AUTO_DMA) { in snd_gusextreme_gus_card_create()
135 dma1[n] = snd_legacy_find_free_dma(possible_dmas); in snd_gusextreme_gus_card_create()
136 if (dma1[n] < 0) { in snd_gusextreme_gus_card_create()
141 return snd_gus_create(card, gf1_port[n], gf1_irq[n], dma1[n], -1, in snd_gusextreme_gus_card_create()
315 gus->gf1.irq, es1688->irq, gus->gf1.dma1, es1688->dma8); in snd_gusextreme_probe()
H A Dgusmax.c30 static int dma1[SNDRV_CARDS] = SNDRV_DEFAULT_DMA; /* 1,3,5,6,7 */ variable
47 module_param_hw_array(dma1, int, dma, NULL, 0444);
48 MODULE_PARM_DESC(dma1, "DMA1 # for GUS MAX driver.");
119 if (gus->gf1.dma1 > 3) in snd_gusmax_init()
211 xdma1 = dma1[dev]; in snd_gusmax_probe()
H A Dgus_dma.c37 if (gus->gf1.dma1 > 3) { in snd_gf1_dma_program()
61 if (gus->gf1.dma1 > 3) { in snd_gf1_dma_program()
67 …snd_dma_program(gus->gf1.dma1, buf_addr, count, dma_cmd & SNDRV_GF1_DMA_READ ? DMA_MODE_READ : DMA… in snd_gf1_dma_program()
168 snd_dma_disable(gus->gf1.dma1); in snd_gf1_dma_done()
H A Dinterwave.c46 static int dma1[SNDRV_CARDS] = SNDRV_DEFAULT_DMA; /* 0,1,3,5,6,7 */ variable
80 module_param_hw_array(dma1, int, dma, NULL, 0444);
81 MODULE_PARM_DESC(dma1, "DMA1 # for InterWave driver.");
579 dma1[dev] = pnp_dma(pdev, 0); in snd_interwave_pnp()
590 dma1[dev], dma2[dev], irq[dev]); in snd_interwave_pnp()
629 return snd_gus_create(card, port[dev], -irq[dev], dma1[dev], dma2[dev], in snd_interwave_probe_gus()
646 xdma1 = dma1[dev]; in snd_interwave_probe()
792 if (dma1[dev] == SNDRV_AUTO_DMA) { in snd_interwave_isa_probe()
793 dma1[dev] = snd_legacy_find_free_dma(possible_dmas); in snd_interwave_isa_probe()
794 if (dma1[dev] < 0) { in snd_interwave_isa_probe()
/linux/sound/isa/
H A Dcmi8328.c42 static int dma1[CMI8328_MAX] = {[0 ... (CMI8328_MAX-1)] = SNDRV_AUTO_DMA}; variable
59 module_param_hw_array(dma1, int, dma, NULL, 0444);
60 MODULE_PARM_DESC(dma1, "DMA1 for CMI8328 driver.");
258 if (dma1[ndev] == SNDRV_AUTO_DMA) { in snd_cmi8328_probe()
259 dma1[ndev] = snd_legacy_find_free_dma(dma1s); in snd_cmi8328_probe()
260 if (dma1[ndev] < 0) { in snd_cmi8328_probe()
266 dma2[ndev] = snd_legacy_find_free_dma(dma2s[dma1[ndev] % 4]); in snd_cmi8328_probe()
280 pos = array_find(dma1s, dma1[ndev]); in snd_cmi8328_probe()
282 dev_err(pdev, "invalid DMA1 %d\n", dma1[ndev]); in snd_cmi8328_probe()
287 if (dma2[ndev] >= 0 && dma1[ndev] != dma2[ndev]) { in snd_cmi8328_probe()
[all …]
H A Des18xx.c90 int dma1; /* DMA1 */ member
584 snd_dma_program(chip->dma1, runtime->dma_addr, size, DMA_MODE_READ | DMA_AUTOINIT); in snd_es18xx_capture_prepare()
648 snd_dma_program(chip->dma1, runtime->dma_addr, size, DMA_MODE_WRITE | DMA_AUTOINIT); in snd_es18xx_playback2_prepare()
796 pos = snd_dma_pointer(chip->dma1, size); in snd_es18xx_playback_pointer()
809 pos = snd_dma_pointer(chip->dma1, size); in snd_es18xx_capture_pointer()
1395 snd_es18xx_config_write(chip, 0x74, chip->dma1); in snd_es18xx_initialize()
1430 switch (chip->dma1) { in snd_es18xx_initialize()
1441 dev_err(chip->card->dev, "invalid dma1 %d\n", chip->dma1); in snd_es18xx_initialize()
1632 if (chip->dma1 == chip->dma2) in snd_es18xx_probe()
1686 chip->dma1 > 3 || chip->dma2 > 3 ? 128*1024 : 64*1024); in snd_es18xx_pcm()
[all …]
H A Dazt2320.c46 static int dma1[SNDRV_CARDS] = SNDRV_DEFAULT_DMA; /* PnP setup */ variable
106 dma1[dev] = pnp_dma(pdev, 0); in snd_card_azt2320_pnp()
187 dma1[dev], dma2[dev], in snd_card_azt2320_probe()
195 card->shortname, chip->port, irq[dev], dma1[dev], dma2[dev]); in snd_card_azt2320_probe()
/linux/sound/isa/ad1848/
H A Dad1848.c31 static int dma1[SNDRV_CARDS] = SNDRV_DEFAULT_DMA; /* 0,1,3,5,6,7 */ variable
44 module_param_hw_array(dma1, int, dma, NULL, 0444);
45 MODULE_PARM_DESC(dma1, "DMA1 # for " CRD_NAME " driver.");
62 if (dma1[n] == SNDRV_AUTO_DMA) { in snd_ad1848_match()
79 error = snd_wss_create(card, port[n], -1, irq[n], dma1[n], -1, in snd_ad1848_probe()
101 chip->pcm->name, chip->port, irq[n], dma1[n]); in snd_ad1848_probe()
105 chip->pcm->name, chip->port, irq[n], dma1[n]); in snd_ad1848_probe()
/linux/sound/isa/cs423x/
H A Dcs4231.c34 static int dma1[SNDRV_CARDS] = SNDRV_DEFAULT_DMA; /* 0,1,3,5,6,7 */ variable
51 module_param_hw_array(dma1, int, dma, NULL, 0444);
52 MODULE_PARM_DESC(dma1, "DMA1 # for " CRD_NAME " driver.");
69 if (dma1[n] == SNDRV_AUTO_DMA) { in snd_cs4231_match()
86 error = snd_wss_create(card, port[n], -1, irq[n], dma1[n], dma2[n], in snd_cs4231_probe()
103 chip->pcm->name, chip->port, irq[n], dma1[n]); in snd_cs4231_probe()
107 chip->pcm->name, chip->port, irq[n], dma1[n], dma2[n]); in snd_cs4231_probe()
H A Dcs4236.c39 static int dma1[SNDRV_CARDS] = SNDRV_DEFAULT_DMA; /* 0,1,3,5,6,7 */ variable
66 module_param_hw_array(dma1, int, dma, NULL, 0444);
67 MODULE_PARM_DESC(dma1, "DMA1 # for " IDENT " driver.");
215 dma1[dev] = pnp_dma(pdev, 0); in snd_cs423x_pnp_init_wss()
222 irq[dev], dma1[dev], dma2[dev]); in snd_cs423x_pnp_init_wss()
346 dma1[dev], dma2[dev], in snd_cs423x_probe()
375 chip->pcm->name, chip->port, irq[dev], dma1[dev]); in snd_cs423x_probe()
379 chip->pcm->name, chip->port, irq[dev], dma1[dev], in snd_cs423x_probe()
428 if (dma1[dev] == SNDRV_AUTO_DMA) { in snd_cs423x_isa_match()
/linux/sound/isa/opti9xx/
H A Dopti92x-ad1848.c58 static int dma1 = SNDRV_DEFAULT_DMA1; /* 0,1,3 */ variable
83 module_param_hw(dma1, int, dma, 0444);
84 MODULE_PARM_DESC(dma1, "1st dma # for opti9xx driver.");
325 int irq, int dma1, int dma2, in snd_opti9xx_configure() argument
456 switch (dma1) { in snd_opti9xx_configure()
467 dev_warn(chip->card->dev, "WSS dma1 # %d not valid\n", dma1); in snd_opti9xx_configure()
472 if (dma1 == dma2) { in snd_opti9xx_configure()
775 dma1 = pnp_dma(pdev, 0);
819 error = snd_opti9xx_configure(chip, port, irq, dma1, xdma2,
824 error = snd_wss_create(card, chip->wss_base + 4, -1, irq, dma1, xdma2,
[all …]
H A Dmiro.c44 static int dma1 = SNDRV_DEFAULT_DMA1; /* 0,1,3 */ variable
66 module_param_hw(dma1, int, dma, 0444);
67 MODULE_PARM_DESC(dma1, "1st dma # for miro driver.");
108 int dma1; member
790 chip->dma1 = -1; in snd_miro_init()
955 snd_iprintf(buffer, " dma : %d,%d\n\n", miro->dma1, miro->dma2); in snd_miro_proc_read()
1082 switch (chip->dma1) { in snd_miro_configure()
1093 dev_err(chip->card->dev, "WSS dma1 # %d not valid\n", chip->dma1); in snd_miro_configure()
1097 if (chip->dma1 == chip->dma2) { in snd_miro_configure()
1294 miro->dma1 = dma1; in snd_miro_probe()
[all …]
/linux/drivers/gpu/drm/nouveau/nvkm/engine/mpeg/
H A Dnv40.c38 u32 dma1 = nvkm_instmem_rd32(imem, inst + 4); in nv40_mpeg_mthd_dma() local
41 u32 size = dma1 + 1; in nv40_mpeg_mthd_dma()
46 inst, dma0, dma1, dma2); in nv40_mpeg_mthd_dma()
/linux/sound/isa/galaxy/
H A Dgalaxy.c40 static int dma1[SNDRV_CARDS] = SNDRV_DEFAULT_DMA; variable
55 module_param_hw_array(dma1, int, dma, NULL, 0444);
56 MODULE_PARM_DESC(dma1, "Playback DMA # for " CRD_NAME " driver.");
265 switch (dma1[n]) { in snd_galaxy_match()
279 dev_err(dev, "invalid playback DMA %d\n", dma1[n]); in snd_galaxy_match()
283 if (dma2[n] == SNDRV_AUTO_DMA || dma2[n] == dma1[n]) { in snd_galaxy_match()
293 if (dma1[n] == 0) in snd_galaxy_match()
548 card->shortname, port[n], wss_port[n], irq[n], dma1[n], in __snd_galaxy_probe()
551 err = snd_wss_create(card, wss_port[n] + 4, -1, irq[n], dma1[n], in __snd_galaxy_probe()
/linux/Documentation/devicetree/bindings/dma/
H A Datmel-xdma.txt21 dma1: dma-controller@f0004000 {
47 dmas = <&dma1
50 <&dma1
/linux/sound/isa/ad1816a/
H A Dad1816a_lib.c223 snd_dma_program(chip->dma1, runtime->dma_addr, size, in snd_ad1816a_playback_prepare()
281 ptr = snd_dma_pointer(chip->dma1, chip->p_dma_size); in snd_ad1816a_playback_pointer()
434 snd_pcm_limit_isa_dma_size(chip->dma1, &runtime->hw.buffer_bytes_max); in snd_ad1816a_playback_open()
435 snd_pcm_limit_isa_dma_size(chip->dma1, &runtime->hw.period_bytes_max); in snd_ad1816a_playback_open()
558 unsigned long port, int irq, int dma1, int dma2, in snd_ad1816a_create() argument
564 chip->dma1 = -1; in snd_ad1816a_create()
579 if (snd_devm_request_dma(card->dev, dma1, "AD1816A - 1")) { in snd_ad1816a_create()
580 dev_err(card->dev, "ad1816a: can't grab DMA1 %d\n", dma1); in snd_ad1816a_create()
583 chip->dma1 = dma1; in snd_ad1816a_create()
632 pcm->info_flags = (chip->dma1 == chip->dma2 ) ? SNDRV_PCM_INFO_JOINT_DUPLEX : 0; in snd_ad1816a_pcm()
[all …]
H A Dad1816a.c32 static int dma1[SNDRV_CARDS] = SNDRV_DEFAULT_DMA; /* PnP setup */ variable
94 dma1[dev] = pnp_dma(pdev, 0); in snd_card_ad1816a_pnp()
138 dma1[dev], in snd_card_ad1816a_probe()
149 card->shortname, chip->port, irq[dev], dma1[dev], dma2[dev]); in snd_card_ad1816a_probe()
/linux/arch/arm/boot/dts/microchip/
H A Dsama5d3.dtsi270 dmas = <&dma1 2 AT91_DMA_CFG_PER_ID(0)>;
287 dmas = <&dma1 2 AT91_DMA_CFG_PER_ID(15)>,
288 <&dma1 2 AT91_DMA_CFG_PER_ID(16)>;
301 dmas = <&dma1 2 AT91_DMA_CFG_PER_ID(3)>,
302 <&dma1 2 AT91_DMA_CFG_PER_ID(4)>;
346 dmas = <&dma1 2 AT91_DMA_CFG_PER_ID(11)>,
347 <&dma1 2 AT91_DMA_CFG_PER_ID(12)>;
365 dmas = <&dma1 2 AT91_DMA_CFG_PER_ID(7)>,
366 <&dma1 2 (AT91_DMA_CFG_PER_ID(8) | AT91_DMA_CFG_FIFOCFG_ASAP)>;
380 dmas = <&dma1 2 AT91_DMA_CFG_PER_ID(9)>,
[all …]
H A Dsama5d4.dtsi213 dma1: dma-controller@f0004000 { label
266 dmas = <&dma1
304 dmas = <&dma1
307 <&dma1
331 dmas = <&dma1
334 <&dma1
349 dmas = <&dma1
352 <&dma1
416 dmas = <&dma1
419 <&dma1
[all …]
H A Dat91sam9x5_usart3.dtsi52 dmas = <&dma1 1 AT91_DMA_CFG_PER_ID(14)>,
53 <&dma1 1 (AT91_DMA_CFG_PER_ID(15) | AT91_DMA_CFG_FIFOCFG_ASAP)>;
/linux/sound/isa/wavefront/
H A Dwavefront.c38 static int dma1[SNDRV_CARDS] = SNDRV_DEFAULT_DMA; /* 0,1,3,5,6,7 */ variable
56 module_param_hw_array(dma1, int, dma, NULL, 0444);
57 MODULE_PARM_DESC(dma1, "DMA1 # for CS4232 PCM interface.");
149 dma1[dev] = pnp_dma(pdev, 0); in snd_wavefront_pnp()
193 dma1[dev], in snd_wavefront_pnp()
350 cs4232_pcm_irq[dev], dma1[dev], dma2[dev], in snd_wavefront_probe()
499 dma1[dev]); in snd_wavefront_probe()
/linux/include/sound/
H A Dwss.h70 int dma1; /* playback DMA */ member
138 int irq, int dma1, int dma2,
151 int irq, int dma1, int dma2,
H A Dad1816a.h118 int dma1; member
158 int irq, int dma1, int dma2,

1234