Lines Matching refs:irq
136 uart401intr(devc->irq, devc->midi_irq_cookie); in sb_intr()
204 static irqreturn_t sbintr(int irq, void *dev_id) in sbintr() argument
401 if (hw_config->irq < 1 || hw_config->irq > 15 || jazz_irq_bits[hw_config->irq] == 0) in init_Jazz16()
403 printk(KERN_ERR "Jazz16: Invalid interrupt (IRQ%d)\n", hw_config->irq); in init_Jazz16()
430 if (!sb_dsp_command(devc, jazz_irq_bits[hw_config->irq])) in init_Jazz16()
528 devc->irq = hw_config->irq; in sb_dsp_detect()
672 if (!((devc->caps & SB_NO_AUDIO) && (devc->caps & SB_NO_MIDI)) && hw_config->irq > 0) in sb_dsp_init()
682 if (request_irq(hw_config->irq, sbintr, i, "soundblaster", devc) < 0) in sb_dsp_init()
684 printk(KERN_ERR "SB: Can't allocate IRQ%d\n", hw_config->irq); in sb_dsp_init()
691 if (!sb16_set_irq_hw(devc, devc->irq)) /* Unsupported IRQ */ in sb_dsp_init()
693 free_irq(devc->irq, devc); in sb_dsp_init()
726 printk(KERN_WARNING "sb: Interrupt test on IRQ%d failed - Probable IRQ conflict\n", devc->irq); in sb_dsp_init()
729 DDB(printk("IRQ test OK (IRQ%d)\n", devc->irq)); in sb_dsp_init()
809 free_irq(devc->irq, devc); in sb_dsp_init()
902 if (devc->irq > 0) in sb_dsp_unload()
903 free_irq(devc->irq, devc); in sb_dsp_unload()
1117 int irq = hw_config->irq; in init_Jazz16_midi() local
1122 if (irq < 0) in init_Jazz16_midi()
1123 irq *= -1; in init_Jazz16_midi()
1125 if (irq < 1 || irq > 15 || in init_Jazz16_midi()
1126 jazz_irq_bits[irq] == 0) in init_Jazz16_midi()
1128 printk(KERN_ERR "Jazz16: Invalid MIDI interrupt (IRQ%d)\n", irq); in init_Jazz16_midi()
1180 if (!sb_dsp_command(devc, jazz_irq_bits[devc->irq] | in init_Jazz16_midi()
1181 (jazz_irq_bits[irq] << 4))) in init_Jazz16_midi()
1230 if (last_sb->irq == -hw_config->irq) in probe_sbmpu()
1246 if (hw_config->irq < 3 || hw_config->irq == devc->irq) in probe_sbmpu()
1247 hw_config->irq = -devc->irq; in probe_sbmpu()
1253 if (hw_config->irq < 3 || hw_config->irq == devc->irq) in probe_sbmpu()
1254 hw_config->irq = -devc->irq; in probe_sbmpu()