/linux-6.1.9/sound/isa/gus/ |
D | gus_main.c | 103 if (!gus->equal_dma && gus->gf1.dma2 >= 0) { in snd_gus_free() 104 disable_dma(gus->gf1.dma2); in snd_gus_free() 105 free_dma(gus->gf1.dma2); in snd_gus_free() 119 int irq, int dma1, int dma2, in snd_gus_create() argument 146 gus->gf1.dma2 = -1; in snd_gus_create() 184 if (dma2 >= 0 && dma1 != dma2) { in snd_gus_create() 185 if (request_dma(dma2, "GUS - 2")) { in snd_gus_create() 186 snd_printk(KERN_ERR "gus: can't grab DMA2 %d\n", dma2); in snd_gus_create() 190 gus->gf1.dma2 = dma2; in snd_gus_create() 192 gus->gf1.dma2 = gus->gf1.dma1; in snd_gus_create() [all …]
|
D | gusclassic.c | 33 static int dma2[SNDRV_CARDS] = SNDRV_DEFAULT_DMA; /* 1,3,5,6,7 */ variable 51 module_param_hw_array(dma2, int, dma, NULL, 0444); 52 MODULE_PARM_DESC(dma2, "DMA2 # for " CRD_NAME " driver."); 89 if (dma2[n] == SNDRV_AUTO_DMA) { in snd_gusclassic_create() 90 dma2[n] = snd_legacy_find_free_dma(possible_dmas); in snd_gusclassic_create() 91 if (dma2[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() 184 if (gus->gf1.dma2 >= 0) in snd_gusclassic_probe() 186 "&%d", gus->gf1.dma2); in snd_gusclassic_probe()
|
D | interwave.c | 47 static int dma2[SNDRV_CARDS] = SNDRV_DEFAULT_DMA; /* 0,1,3,5,6,7 */ variable 84 module_param_hw_array(dma2, int, dma, NULL, 0444); 85 MODULE_PARM_DESC(dma2, "DMA2 # for InterWave driver."); 579 if (dma2[dev] >= 0) in snd_interwave_pnp() 580 dma2[dev] = pnp_dma(pdev, 1); in snd_interwave_pnp() 586 snd_printdd("isapnp IW: dma1=%i, dma2=%i, irq=%i\n", dma1[dev], dma2[dev], irq[dev]); in snd_interwave_pnp() 624 return snd_gus_create(card, port[dev], -irq[dev], dma1[dev], dma2[dev], in snd_interwave_probe_gus() 642 xdma2 = dma2[dev]; in snd_interwave_probe() 794 if (dma2[dev] == SNDRV_AUTO_DMA) { in snd_interwave_isa_probe() 795 dma2[dev] = snd_legacy_find_free_dma(possible_dmas); in snd_interwave_isa_probe() [all …]
|
D | gusmax.c | 31 static int dma2[SNDRV_CARDS] = SNDRV_DEFAULT_DMA; /* 1,3,5,6,7 */ variable 49 module_param_hw_array(dma2, int, dma, NULL, 0444); 50 MODULE_PARM_DESC(dma2, "DMA2 # for GUS MAX driver."); 123 if (gus->gf1.dma2 > 3) in snd_gusmax_init() 221 xdma2 = dma2[dev]; in snd_gusmax_probe()
|
D | gus_pcm.c | 572 if (gus->gf1.dma2 > 3) in snd_gf1_pcm_capture_hw_params() 587 snd_dma_program(gus->gf1.dma2, runtime->dma_addr, gus->c_period_size, DMA_MODE_READ); in snd_gf1_pcm_capture_prepare() 615 int pos = snd_dma_pointer(gus->gf1.dma2, gus->c_period_size); in snd_gf1_pcm_capture_pointer() 728 snd_pcm_limit_isa_dma_size(gus->gf1.dma2, &runtime->hw.buffer_bytes_max); in snd_gf1_pcm_capture_open() 729 snd_pcm_limit_isa_dma_size(gus->gf1.dma2, &runtime->hw.period_bytes_max); in snd_gf1_pcm_capture_open() 878 if (gus->gf1.dma2 == gus->gf1.dma1) in snd_gf1_pcm_new() 882 64*1024, gus->gf1.dma2 > 3 ? 128*1024 : 64*1024); in snd_gf1_pcm_new()
|
/linux-6.1.9/sound/isa/ |
D | cmi8328.c | 43 static int dma2[CMI8328_MAX] = {[0 ... (CMI8328_MAX-1)] = SNDRV_AUTO_DMA}; variable 61 module_param_hw_array(dma2, int, dma, NULL, 0444); 62 MODULE_PARM_DESC(dma2, "DMA2 for CMI8328 driver."); 265 if (dma2[ndev] == SNDRV_AUTO_DMA) { in snd_cmi8328_probe() 266 dma2[ndev] = snd_legacy_find_free_dma(dma2s[dma1[ndev] % 4]); in snd_cmi8328_probe() 267 if (dma2[ndev] < 0) { in snd_cmi8328_probe() 269 dma2[ndev] = -1; in snd_cmi8328_probe() 287 if (dma2[ndev] >= 0 && dma1[ndev] != dma2[ndev]) { in snd_cmi8328_probe() 288 pos = array_find(dma2s[dma1[ndev]], dma2[ndev]); in snd_cmi8328_probe() 290 snd_printk(KERN_ERR "invalid DMA2 %d\n", dma2[ndev]); in snd_cmi8328_probe() [all …]
|
D | es18xx.c | 92 int dma2; /* DMA2 */ member 477 snd_dma_program(chip->dma2, runtime->dma_addr, size, DMA_MODE_WRITE | DMA_AUTOINIT); in snd_es18xx_playback1_prepare() 493 if (chip->dma2 >= 4) in snd_es18xx_playback1_trigger() 792 pos = snd_dma_pointer(chip->dma2, size); in snd_es18xx_playback_pointer() 1398 snd_es18xx_config_write(chip, 0x75, chip->dma2); in snd_es18xx_initialize() 1445 switch (chip->dma2) { in snd_es18xx_initialize() 1459 snd_printk(KERN_ERR "invalid dma2 %d\n", chip->dma2); in snd_es18xx_initialize() 1633 if (chip->dma1 == chip->dma2) in snd_es18xx_probe() 1687 chip->dma1 > 3 || chip->dma2 > 3 ? 128*1024 : 64*1024); in snd_es18xx_pcm() 1724 int irq, int dma1, int dma2) in snd_es18xx_new_device() argument [all …]
|
D | azt2320.c | 49 static int dma2[SNDRV_CARDS] = SNDRV_DEFAULT_DMA; /* PnP setup */ variable 109 dma2[dev] = pnp_dma(pdev, 1); in snd_card_azt2320_pnp() 189 dma1[dev], dma2[dev], in snd_card_azt2320_probe() 197 card->shortname, chip->port, irq[dev], dma1[dev], dma2[dev]); in snd_card_azt2320_probe()
|
D | sscape.c | 43 static int dma2[SNDRV_CARDS] = SNDRV_DEFAULT_DMA; variable 67 module_param_hw_array(dma2, int, dma, NULL, 0444); 68 MODULE_PARM_DESC(dma2, "DMA2 # for SoundScape driver."); 826 int irq, int dma1, int dma2) in create_ad1845() argument 853 err = snd_wss_create(card, port, -1, irq, dma1, dma2, in create_ad1845() 1044 dma[dev], dma2[dev]); in create_sscape() 1056 sscape->chip->dma1, sscape->chip->dma2); in create_sscape() 1230 dma2[idx] = dma[idx]; in sscape_pnp_detect() 1234 dma2[idx] = pnp_dma(dev, 1); in sscape_pnp_detect()
|
/linux-6.1.9/sound/isa/cs423x/ |
D | cs4231.c | 35 static int dma2[SNDRV_CARDS] = SNDRV_DEFAULT_DMA; /* 0,1,3,5,6,7 */ variable 53 module_param_hw_array(dma2, int, dma, NULL, 0444); 54 MODULE_PARM_DESC(dma2, "DMA2 # for " CRD_NAME " driver."); 86 error = snd_wss_create(card, port[n], -1, irq[n], dma1[n], dma2[n], in snd_cs4231_probe() 100 if (dma2[n] < 0) in snd_cs4231_probe() 107 chip->pcm->name, chip->port, irq[n], dma1[n], dma2[n]); in snd_cs4231_probe()
|
D | cs4236.c | 40 static int dma2[SNDRV_CARDS] = SNDRV_DEFAULT_DMA; /* 0,1,3,5,6,7 */ variable 68 module_param_hw_array(dma2, int, dma, NULL, 0444); 69 MODULE_PARM_DESC(dma2, "DMA2 # for " IDENT " driver."); 216 dma2[dev] = pnp_dma(pdev, 1) == 4 ? -1 : (int)pnp_dma(pdev, 1); in snd_cs423x_pnp_init_wss() 220 irq[dev], dma1[dev], dma2[dev]); in snd_cs423x_pnp_init_wss() 343 dma1[dev], dma2[dev], in snd_cs423x_probe() 369 if (dma2[dev] < 0) in snd_cs423x_probe() 377 dma2[dev]); in snd_cs423x_probe()
|
/linux-6.1.9/drivers/gpu/drm/nouveau/nvkm/engine/mpeg/ |
D | nv40.c | 39 u32 dma2 = nvkm_instmem_rd32(imem, inst + 8); in nv40_mpeg_mthd_dma() local 40 u32 base = (dma2 & 0xfffff000) | (dma0 >> 20); in nv40_mpeg_mthd_dma() 46 inst, dma0, dma1, dma2); in nv40_mpeg_mthd_dma()
|
D | nv31.c | 132 u32 dma2 = nvkm_rd32(device, 0x700008 + inst); in nv31_mpeg_mthd_dma() local 133 u32 base = (dma2 & 0xfffff000) | (dma0 >> 20); in nv31_mpeg_mthd_dma() 139 inst, dma0, dma1, dma2); in nv31_mpeg_mthd_dma()
|
/linux-6.1.9/sound/isa/galaxy/ |
D | galaxy.c | 41 static int dma2[SNDRV_CARDS] = SNDRV_DEFAULT_DMA; variable 57 module_param_hw_array(dma2, int, dma, NULL, 0444); 58 MODULE_PARM_DESC(dma2, "Capture DMA # for " CRD_NAME " driver."); 283 if (dma2[n] == SNDRV_AUTO_DMA || dma2[n] == dma1[n]) { in snd_galaxy_match() 284 dma2[n] = -1; in snd_galaxy_match() 289 switch (dma2[n]) { in snd_galaxy_match() 297 dev_err(dev, "invalid capture DMA %d\n", dma2[n]); in snd_galaxy_match() 549 dma2[n]); in __snd_galaxy_probe() 552 dma2[n], WSS_HW_DETECT, 0, &chip); in __snd_galaxy_probe()
|
/linux-6.1.9/sound/isa/wavefront/ |
D | wavefront.c | 39 static int dma2[SNDRV_CARDS] = SNDRV_DEFAULT_DMA; /* 0,1,3,5,6,7 */ variable 58 module_param_hw_array(dma2, int, dma, NULL, 0444); 59 MODULE_PARM_DESC(dma2, "DMA2 # for CS4232 PCM interface."); 150 dma2[dev] = pnp_dma(pdev, 1); in snd_wavefront_pnp() 193 dma2[dev], in snd_wavefront_pnp() 349 cs4232_pcm_irq[dev], dma1[dev], dma2[dev], in snd_wavefront_probe() 500 if (dma2[dev] >= 0 && dma2[dev] < 8) in snd_wavefront_probe() 501 sprintf(card->longname + strlen(card->longname), "&%d", dma2[dev]); in snd_wavefront_probe()
|
/linux-6.1.9/sound/isa/opti9xx/ |
D | opti92x-ad1848.c | 60 static int dma2 = SNDRV_DEFAULT_DMA1; /* 0,1,3 */ variable 86 module_param_hw(dma2, int, dma, 0444); 87 MODULE_PARM_DESC(dma2, "2nd dma # for opti9xx driver."); 324 int irq, int dma1, int dma2, in snd_opti9xx_configure() argument 471 if (dma1 == dma2) { in snd_opti9xx_configure() 476 switch (dma2) { in snd_opti9xx_configure() 481 snd_printk(KERN_WARNING "WSS dma2 # %d not valid\n", dma2); in snd_opti9xx_configure() 776 dma2 = pnp_dma(pdev, 1); 806 xdma2 = dma2; 987 if (dma2 == SNDRV_AUTO_DMA) { [all …]
|
D | miro.c | 45 static int dma2 = SNDRV_DEFAULT_DMA1; /* 0,1,3 */ variable 68 module_param_hw(dma2, int, dma, 0444); 69 MODULE_PARM_DESC(dma2, "2nd dma # for miro driver."); 109 int dma2; member 784 chip->dma2 = -1; in snd_miro_init() 948 snd_iprintf(buffer, " dma : %d,%d\n\n", miro->dma1, miro->dma2); in snd_miro_proc_read() 1090 if (chip->dma1 == chip->dma2) { in snd_miro_configure() 1095 switch (chip->dma2) { in snd_miro_configure() 1100 snd_printk(KERN_ERR "WSS dma2 # %d not valid\n", chip->dma2); in snd_miro_configure() 1287 miro->dma2 = dma2; in snd_miro_probe() [all …]
|
/linux-6.1.9/sound/isa/ad1816a/ |
D | ad1816a.c | 35 static int dma2[SNDRV_CARDS] = SNDRV_DEFAULT_DMA; /* PnP setup */ variable 97 dma2[dev] = pnp_dma(pdev, 1); in snd_card_ad1816a_pnp() 141 dma2[dev], in snd_card_ad1816a_probe() 151 card->shortname, chip->port, irq[dev], dma1[dev], dma2[dev]); in snd_card_ad1816a_probe()
|
D | ad1816a_lib.c | 255 snd_dma_program(chip->dma2, runtime->dma_addr, size, in snd_ad1816a_capture_prepare() 291 ptr = snd_dma_pointer(chip->dma2, chip->c_dma_size); in snd_ad1816a_capture_pointer() 450 snd_pcm_limit_isa_dma_size(chip->dma2, &runtime->hw.buffer_bytes_max); in snd_ad1816a_capture_open() 451 snd_pcm_limit_isa_dma_size(chip->dma2, &runtime->hw.period_bytes_max); in snd_ad1816a_capture_open() 558 unsigned long port, int irq, int dma1, int dma2, in snd_ad1816a_create() argument 565 chip->dma2 = -1; in snd_ad1816a_create() 584 if (snd_devm_request_dma(card->dev, dma2, "AD1816A - 2")) { in snd_ad1816a_create() 585 snd_printk(KERN_ERR "ad1816a: can't grab DMA2 %d\n", dma2); in snd_ad1816a_create() 588 chip->dma2 = dma2; in snd_ad1816a_create() 632 pcm->info_flags = (chip->dma1 == chip->dma2 ) ? SNDRV_PCM_INFO_JOINT_DUPLEX : 0; in snd_ad1816a_pcm() [all …]
|
/linux-6.1.9/include/sound/ |
D | ad1816a.h | 119 int dma2; member 158 int irq, int dma1, int dma2,
|
D | wss.h | 71 int dma2; /* record DMA */ member 138 int irq, int dma1, int dma2, 151 int irq, int dma1, int dma2,
|
/linux-6.1.9/arch/arm/boot/dts/ |
D | stm32f429.dtsi | 456 dmas = <&dma2 2 4 0x400 0x0>, 457 <&dma2 7 4 0x400 0x0>; 488 dmas = <&dma2 0 0 0x400 0x0>; 500 dmas = <&dma2 3 1 0x400 0x0>; 512 dmas = <&dma2 1 2 0x400 0x0>; 619 dmas = <&dma2 3 2 0x400 0x0>, 620 <&dma2 4 2 0x400 0x0>; 683 dma2: dma-controller@40026400 { label 752 dmas = <&dma2 1 1 0x414 0x3>;
|
/linux-6.1.9/sound/isa/wss/ |
D | wss_lib.c | 1039 snd_dma_program(chip->dma2, runtime->dma_addr, size, DMA_MODE_READ | DMA_AUTOINIT); in snd_wss_capture_prepare() 1142 ptr = snd_dma_pointer(chip->dma2, chip->c_dma_size); in snd_wss_capture_pointer() 1533 snd_pcm_limit_isa_dma_size(chip->dma2, &runtime->hw.buffer_bytes_max); in snd_wss_capture_open() 1534 snd_pcm_limit_isa_dma_size(chip->dma2, &runtime->hw.period_bytes_max); in snd_wss_capture_open() 1537 err = chip->claim_dma(chip, chip->dma_private_data, chip->dma2); in snd_wss_capture_open() 1545 chip->release_dma(chip, chip->dma_private_data, chip->dma2); in snd_wss_capture_open() 1742 int irq, int dma1, int dma2, in snd_wss_create() argument 1756 chip->dma2 = -1; in snd_wss_create() 1788 if (!(hwshare & WSS_HWSHARE_DMA2) && dma1 != dma2 && dma2 >= 0 && in snd_wss_create() 1789 snd_devm_request_dma(card->dev, dma2, "WSS - 2")) { in snd_wss_create() [all …]
|
/linux-6.1.9/Documentation/devicetree/bindings/serial/ |
D | st,stm32-uart.yaml | 125 dmas = <&dma2 2 4 0x414 0x0>, 126 <&dma2 7 4 0x414 0x0>;
|
/linux-6.1.9/include/uapi/linux/ |
D | hdlcdrv.h | 20 int dma2; member
|