Lines Matching full:mpu

4  *  Routines for control of EMU10K1 MPU-401 in UART mode
16 struct snd_emu10k1_midi *mpu, int idx) in mpu401_read() argument
19 return (unsigned char)snd_emu10k1_ptr_read(emu, mpu->port + idx, 0); in mpu401_read()
21 return inb(emu->port + mpu->port + idx); in mpu401_read()
25 struct snd_emu10k1_midi *mpu, int data, int idx) in mpu401_write() argument
28 snd_emu10k1_ptr_write(emu, mpu->port + idx, 0, data); in mpu401_write()
30 outb(data, emu->port + mpu->port + idx); in mpu401_write()
33 #define mpu401_write_data(emu, mpu, data) mpu401_write(emu, mpu, data, 0) argument
34 #define mpu401_write_cmd(emu, mpu, data) mpu401_write(emu, mpu, data, 1) argument
35 #define mpu401_read_data(emu, mpu) mpu401_read(emu, mpu, 0) argument
36 #define mpu401_read_stat(emu, mpu) mpu401_read(emu, mpu, 1) argument
38 #define mpu401_input_avail(emu,mpu) (!(mpu401_read_stat(emu,mpu) & 0x80)) argument
39 #define mpu401_output_ready(emu,mpu) (!(mpu401_read_stat(emu,mpu) & 0x40)) argument
45 static void mpu401_clear_rx(struct snd_emu10k1 *emu, struct snd_emu10k1_midi *mpu) in mpu401_clear_rx() argument
48 for (; timeout > 0 && mpu401_input_avail(emu, mpu); timeout--) in mpu401_clear_rx()
49 mpu401_read_data(emu, mpu); in mpu401_clear_rx()
54 mpu401_read_stat(emu, mpu)); in mpu401_clear_rx()
346 err = emu10k1_midi_init(emu, midi, 0, "EMU10K1 MPU-401 (UART)"); in snd_emu10k1_midi()
365 err = emu10k1_midi_init(emu, midi, 0, "Audigy MPU-401 (UART)"); in snd_emu10k1_audigy_midi()
377 err = emu10k1_midi_init(emu, midi, 1, "Audigy MPU-401 #2"); in snd_emu10k1_audigy_midi()