Lines Matching refs:gus

19 	struct snd_gus_card * gus = dev_id;  in snd_gus_interrupt()  local
25 status = inb(gus->gf1.reg_irqstat); in snd_gus_interrupt()
31 STAT_ADD(gus->gf1.interrupt_stat_midi_in); in snd_gus_interrupt()
32 if (gus->gf1.interrupt_handler_midi_in) in snd_gus_interrupt()
33 gus->gf1.interrupt_handler_midi_in(gus); in snd_gus_interrupt()
36 STAT_ADD(gus->gf1.interrupt_stat_midi_out); in snd_gus_interrupt()
37 if (gus->gf1.interrupt_handler_midi_out) in snd_gus_interrupt()
38 gus->gf1.interrupt_handler_midi_out(gus); in snd_gus_interrupt()
46 while (((voice_status = snd_gf1_i_read8(gus, SNDRV_GF1_GB_VOICES_IRQ)) & 0xc0) != 0xc0) { in snd_gus_interrupt()
55 voice, voice_status, inb(GUSP(gus, GF1PAGE))); in snd_gus_interrupt()
57 pvoice = &gus->gf1.voices[voice]; in snd_gus_interrupt()
61 pvoice->handler_wave(gus, pvoice); in snd_gus_interrupt()
65 pvoice->handler_volume(gus, pvoice); in snd_gus_interrupt()
68 STAT_ADD(gus->gf1.interrupt_stat_voice_lost); in snd_gus_interrupt()
69 snd_gf1_i_ctrl_stop(gus, SNDRV_GF1_VB_ADDRESS_CONTROL); in snd_gus_interrupt()
70 snd_gf1_i_ctrl_stop(gus, SNDRV_GF1_VB_VOLUME_CONTROL); in snd_gus_interrupt()
75 STAT_ADD(gus->gf1.interrupt_stat_timer1); in snd_gus_interrupt()
76 if (gus->gf1.interrupt_handler_timer1) in snd_gus_interrupt()
77 gus->gf1.interrupt_handler_timer1(gus); in snd_gus_interrupt()
80 STAT_ADD(gus->gf1.interrupt_stat_timer2); in snd_gus_interrupt()
81 if (gus->gf1.interrupt_handler_timer2) in snd_gus_interrupt()
82 gus->gf1.interrupt_handler_timer2(gus); in snd_gus_interrupt()
85 if (snd_gf1_i_look8(gus, SNDRV_GF1_GB_DRAM_DMA_CONTROL) & 0x40) { in snd_gus_interrupt()
86 STAT_ADD(gus->gf1.interrupt_stat_dma_write); in snd_gus_interrupt()
87 if (gus->gf1.interrupt_handler_dma_write) in snd_gus_interrupt()
88 gus->gf1.interrupt_handler_dma_write(gus); in snd_gus_interrupt()
90 if (snd_gf1_i_look8(gus, SNDRV_GF1_GB_REC_DMA_CONTROL) & 0x40) { in snd_gus_interrupt()
91 STAT_ADD(gus->gf1.interrupt_stat_dma_read); in snd_gus_interrupt()
92 if (gus->gf1.interrupt_handler_dma_read) in snd_gus_interrupt()
93 gus->gf1.interrupt_handler_dma_read(gus); in snd_gus_interrupt()
105 struct snd_gus_card *gus; in snd_gus_irq_info_read() local
109 gus = entry->private_data; in snd_gus_irq_info_read()
110 snd_iprintf(buffer, "midi out = %u\n", gus->gf1.interrupt_stat_midi_out); in snd_gus_irq_info_read()
111 snd_iprintf(buffer, "midi in = %u\n", gus->gf1.interrupt_stat_midi_in); in snd_gus_irq_info_read()
112 snd_iprintf(buffer, "timer1 = %u\n", gus->gf1.interrupt_stat_timer1); in snd_gus_irq_info_read()
113 snd_iprintf(buffer, "timer2 = %u\n", gus->gf1.interrupt_stat_timer2); in snd_gus_irq_info_read()
114 snd_iprintf(buffer, "dma write = %u\n", gus->gf1.interrupt_stat_dma_write); in snd_gus_irq_info_read()
115 snd_iprintf(buffer, "dma read = %u\n", gus->gf1.interrupt_stat_dma_read); in snd_gus_irq_info_read()
116 snd_iprintf(buffer, "voice lost = %u\n", gus->gf1.interrupt_stat_voice_lost); in snd_gus_irq_info_read()
118 pvoice = &gus->gf1.voices[idx]; in snd_gus_irq_info_read()
126 void snd_gus_irq_profile_init(struct snd_gus_card *gus) in snd_gus_irq_profile_init() argument
128 snd_card_ro_proc_new(gus->card, "gusirq", gus, snd_gus_irq_info_read); in snd_gus_irq_profile_init()