Lines Matching refs:mpu
31 struct snd_emu10k1_midi *mpu, int idx) in mpu401_read() argument
34 return (unsigned char)snd_emu10k1_ptr_read(emu, mpu->port + idx, 0); in mpu401_read()
36 return inb(emu->port + mpu->port + idx); in mpu401_read()
40 struct snd_emu10k1_midi *mpu, int data, int idx) in mpu401_write() argument
43 snd_emu10k1_ptr_write(emu, mpu->port + idx, 0, data); in mpu401_write()
45 outb(data, emu->port + mpu->port + idx); in mpu401_write()
48 #define mpu401_write_data(emu, mpu, data) mpu401_write(emu, mpu, data, 0) argument
49 #define mpu401_write_cmd(emu, mpu, data) mpu401_write(emu, mpu, data, 1) argument
50 #define mpu401_read_data(emu, mpu) mpu401_read(emu, mpu, 0) argument
51 #define mpu401_read_stat(emu, mpu) mpu401_read(emu, mpu, 1) argument
53 #define mpu401_input_avail(emu,mpu) (!(mpu401_read_stat(emu,mpu) & 0x80)) argument
54 #define mpu401_output_ready(emu,mpu) (!(mpu401_read_stat(emu,mpu) & 0x40)) argument
60 static void mpu401_clear_rx(struct snd_emu10k1 *emu, struct snd_emu10k1_midi *mpu) in mpu401_clear_rx() argument
63 for (; timeout > 0 && mpu401_input_avail(emu, mpu); timeout--) in mpu401_clear_rx()
64 mpu401_read_data(emu, mpu); in mpu401_clear_rx()
69 mpu401_read_stat(emu, mpu)); in mpu401_clear_rx()