Home
last modified time | relevance | path

Searched refs:mpu (Results 1 – 15 of 15) sorted by relevance

/sound/drivers/mpu401/
Dmpu401_uart.c31 static void snd_mpu401_uart_input_read(struct snd_mpu401 * mpu);
32 static void snd_mpu401_uart_output_write(struct snd_mpu401 * mpu);
38 #define snd_mpu401_input_avail(mpu) \ argument
39 (!(mpu->read(mpu, MPU401C(mpu)) & MPU401_RX_EMPTY))
40 #define snd_mpu401_output_ready(mpu) \ argument
41 (!(mpu->read(mpu, MPU401C(mpu)) & MPU401_TX_FULL))
44 static void mpu401_write_port(struct snd_mpu401 *mpu, unsigned char data, in mpu401_write_port() argument
50 static unsigned char mpu401_read_port(struct snd_mpu401 *mpu, in mpu401_read_port() argument
56 static void mpu401_write_mmio(struct snd_mpu401 *mpu, unsigned char data, in mpu401_write_mmio() argument
62 static unsigned char mpu401_read_mmio(struct snd_mpu401 *mpu, in mpu401_read_mmio() argument
[all …]
/sound/isa/msnd/
Dmsnd_midi.c43 struct snd_msndmidi *mpu; in snd_msndmidi_input_open() local
47 mpu = substream->rmidi->private_data; in snd_msndmidi_input_open()
49 mpu->substream_input = substream; in snd_msndmidi_input_open()
51 snd_msnd_enable_irq(mpu->dev); in snd_msndmidi_input_open()
53 snd_msnd_send_dsp_cmd(mpu->dev, HDEX_MIDI_IN_START); in snd_msndmidi_input_open()
54 set_bit(MSNDMIDI_MODE_BIT_INPUT, &mpu->mode); in snd_msndmidi_input_open()
60 struct snd_msndmidi *mpu; in snd_msndmidi_input_close() local
62 mpu = substream->rmidi->private_data; in snd_msndmidi_input_close()
63 snd_msnd_send_dsp_cmd(mpu->dev, HDEX_MIDI_IN_STOP); in snd_msndmidi_input_close()
64 clear_bit(MSNDMIDI_MODE_BIT_INPUT, &mpu->mode); in snd_msndmidi_input_close()
[all …]
Dmsnd_pinnacle.c506 static int snd_msnd_mpu401_open(struct snd_mpu401 *mpu) in snd_msnd_mpu401_open() argument
508 snd_msnd_enable_irq(mpu->private_data); in snd_msnd_mpu401_open()
509 snd_msnd_send_dsp_cmd(mpu->private_data, HDEX_MIDI_IN_START); in snd_msnd_mpu401_open()
513 static void snd_msnd_mpu401_close(struct snd_mpu401 *mpu) in snd_msnd_mpu401_close() argument
515 snd_msnd_send_dsp_cmd(mpu->private_data, HDEX_MIDI_IN_STOP); in snd_msnd_mpu401_close()
516 snd_msnd_disable_irq(mpu->private_data); in snd_msnd_mpu401_close()
571 struct snd_mpu401 *mpu; in snd_msnd_attach() local
584 mpu = chip->rmidi->private_data; in snd_msnd_attach()
586 mpu->open_input = snd_msnd_mpu401_open; in snd_msnd_attach()
587 mpu->close_input = snd_msnd_mpu401_close; in snd_msnd_attach()
[all …]
Dmsnd.h290 void snd_msndmidi_input_read(void *mpu);
/sound/isa/wavefront/
Dwavefront_midi.c115 snd_wavefront_mpu_id mpu; in snd_wavefront_midi_output_write() local
191 mpu = midi->output_mpu ^ mask; in snd_wavefront_midi_output_write()
193 if ((midi->mode[mpu] & MPU401_MODE_OUTPUT) == 0) { in snd_wavefront_midi_output_write()
197 if (snd_rawmidi_transmit_empty(midi->substream_output[mpu])) in snd_wavefront_midi_output_write()
200 if (mpu != midi->output_mpu) { in snd_wavefront_midi_output_write()
201 write_data(midi, mpu == internal_mpu ? in snd_wavefront_midi_output_write()
204 midi->output_mpu = mpu; in snd_wavefront_midi_output_write()
205 } else if (snd_rawmidi_transmit(midi->substream_output[mpu], &midi_byte, 1) == 1) { in snd_wavefront_midi_output_write()
217 midi->mode[mpu] &= ~MPU401_MODE_OUTPUT_TRIGGER; in snd_wavefront_midi_output_write()
233 snd_wavefront_mpu_id mpu; in snd_wavefront_midi_input_open() local
[all …]
Dwavefront.c114 acard->mpu = pnp_request_card_device(card, id->devs[2].id, NULL); in snd_wavefront_pnp()
115 if (acard->mpu == NULL) in snd_wavefront_pnp()
173 pdev = acard->mpu; in snd_wavefront_pnp()
275 snd_wavefront_mpu_id mpu) in snd_wavefront_new_midi() argument
293 if (mpu == internal_mpu) { in snd_wavefront_new_midi()
/sound/pci/emu10k1/
Demumpu401.c16 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
[all …]
Demu10k1x.c1159 static inline unsigned char mpu401_read(struct emu10k1x *emu, struct emu10k1x_midi *mpu, int idx) in mpu401_read() argument
1161 return (unsigned char)snd_emu10k1x_ptr_read(emu, mpu->port + idx, 0); in mpu401_read()
1164 static inline void mpu401_write(struct emu10k1x *emu, struct emu10k1x_midi *mpu, int data, int idx) in mpu401_write() argument
1166 snd_emu10k1x_ptr_write(emu, mpu->port + idx, 0, data); in mpu401_write()
1169 #define mpu401_write_data(emu, mpu, data) mpu401_write(emu, mpu, data, 0) argument
1170 #define mpu401_write_cmd(emu, mpu, data) mpu401_write(emu, mpu, data, 1) argument
1171 #define mpu401_read_data(emu, mpu) mpu401_read(emu, mpu, 0) argument
1172 #define mpu401_read_stat(emu, mpu) mpu401_read(emu, mpu, 1) argument
1174 #define mpu401_input_avail(emu,mpu) (!(mpu401_read_stat(emu,mpu) & 0x80)) argument
1175 #define mpu401_output_ready(emu,mpu) (!(mpu401_read_stat(emu,mpu) & 0x40)) argument
[all …]
/sound/pci/au88x0/
Dau88x0_mpu401.c34 struct snd_mpu401 *mpu; in snd_vortex_midi() local
90 mpu = rmidi->private_data; in snd_vortex_midi()
91 mpu->cport = (unsigned long)(vortex->mmio + VORTEX_MIDI_CMD); in snd_vortex_midi()
/sound/isa/
Dsscape.c305 static inline int verify_mpu401(const struct snd_mpu401 *mpu) in verify_mpu401() argument
307 return ((inb(MPU401C(mpu)) & 0xc0) == 0x80); in verify_mpu401()
313 static inline void initialise_mpu401(const struct snd_mpu401 *mpu) in initialise_mpu401() argument
315 outb(0, MPU401D(mpu)); in initialise_mpu401()
783 static int mpu401_open(struct snd_mpu401 *mpu) in mpu401_open() argument
785 if (!verify_mpu401(mpu)) { in mpu401_open()
807 struct snd_mpu401 *mpu = rawmidi->private_data; in create_mpu401() local
808 mpu->open_input = mpu401_open; in create_mpu401()
809 mpu->open_output = mpu401_open; in create_mpu401()
810 mpu->private_data = sscape; in create_mpu401()
[all …]
Dcmi8330.c152 struct pnp_dev *mpu; member
337 acard->mpu = pnp_request_card_device(card, id->devs[2].id, NULL); in snd_cmi8330_pnp()
338 if (acard->mpu == NULL) in snd_cmi8330_pnp()
375 pdev = acard->mpu; in snd_cmi8330_pnp()
/sound/isa/cs423x/
Dcs4236.c82 struct pnp_dev *mpu; member
282 acard->mpu = pnp_request_card_device(card, id->devs[2].id, NULL); in snd_card_cs423x_pnpc()
283 if (acard->mpu == NULL) in snd_card_cs423x_pnpc()
297 if (acard->mpu && mpu_port[dev] > 0) { in snd_card_cs423x_pnpc()
298 if (snd_cs423x_pnp_init_mpu(dev, acard->mpu) < 0) in snd_card_cs423x_pnpc()
/sound/pci/
Dsonicvibes.c1358 static int snd_sonicvibes_midi_input_open(struct snd_mpu401 * mpu) in snd_sonicvibes_midi_input_open() argument
1360 struct sonicvibes *sonic = mpu->private_data; in snd_sonicvibes_midi_input_open()
1365 static void snd_sonicvibes_midi_input_close(struct snd_mpu401 * mpu) in snd_sonicvibes_midi_input_close() argument
1367 struct sonicvibes *sonic = mpu->private_data; in snd_sonicvibes_midi_input_close()
1374 struct snd_mpu401 * mpu = rmidi->private_data; in snd_sonicvibes_midi() local
1379 mpu->private_data = sonic; in snd_sonicvibes_midi()
1380 mpu->open_input = snd_sonicvibes_midi_input_open; in snd_sonicvibes_midi()
1381 mpu->close_input = snd_sonicvibes_midi_input_close; in snd_sonicvibes_midi()
Dals300.c206 u8 general, mpu, dram; in snd_als300plus_interrupt() local
211 mpu = inb(chip->port+MPU_IRQ_STATUS); in snd_als300plus_interrupt()
215 if ((general == 0) && ((mpu & 0x80) == 0) && ((dram & 0x01) == 0)) in snd_als300plus_interrupt()
/sound/isa/galaxy/
Dgalaxy.c285 goto mpu; in snd_galaxy_match()
301 mpu: in snd_galaxy_match()