Home
last modified time | relevance | path

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

/sound/drivers/mpu401/
Dmpu401_uart.c46 static void snd_mpu401_uart_input_read(struct snd_mpu401 * mpu);
47 static void snd_mpu401_uart_output_write(struct snd_mpu401 * mpu);
53 #define snd_mpu401_input_avail(mpu) \ argument
54 (!(mpu->read(mpu, MPU401C(mpu)) & MPU401_RX_EMPTY))
55 #define snd_mpu401_output_ready(mpu) \ argument
56 (!(mpu->read(mpu, MPU401C(mpu)) & MPU401_TX_FULL))
59 static void mpu401_write_port(struct snd_mpu401 *mpu, unsigned char data, in mpu401_write_port() argument
65 static unsigned char mpu401_read_port(struct snd_mpu401 *mpu, in mpu401_read_port() argument
71 static void mpu401_write_mmio(struct snd_mpu401 *mpu, unsigned char data, in mpu401_write_mmio() argument
77 static unsigned char mpu401_read_mmio(struct snd_mpu401 *mpu, in mpu401_read_mmio() argument
[all …]
/sound/isa/msnd/
Dmsnd_midi.c58 struct snd_msndmidi *mpu; in snd_msndmidi_input_open() local
62 mpu = substream->rmidi->private_data; in snd_msndmidi_input_open()
64 mpu->substream_input = substream; in snd_msndmidi_input_open()
66 snd_msnd_enable_irq(mpu->dev); in snd_msndmidi_input_open()
68 snd_msnd_send_dsp_cmd(mpu->dev, HDEX_MIDI_IN_START); in snd_msndmidi_input_open()
69 set_bit(MSNDMIDI_MODE_BIT_INPUT, &mpu->mode); in snd_msndmidi_input_open()
75 struct snd_msndmidi *mpu; in snd_msndmidi_input_close() local
77 mpu = substream->rmidi->private_data; in snd_msndmidi_input_close()
78 snd_msnd_send_dsp_cmd(mpu->dev, HDEX_MIDI_IN_STOP); in snd_msndmidi_input_close()
79 clear_bit(MSNDMIDI_MODE_BIT_INPUT, &mpu->mode); in snd_msndmidi_input_close()
[all …]
Dmsnd_pinnacle.c525 static int snd_msnd_mpu401_open(struct snd_mpu401 *mpu) in snd_msnd_mpu401_open() argument
527 snd_msnd_enable_irq(mpu->private_data); in snd_msnd_mpu401_open()
528 snd_msnd_send_dsp_cmd(mpu->private_data, HDEX_MIDI_IN_START); in snd_msnd_mpu401_open()
532 static void snd_msnd_mpu401_close(struct snd_mpu401 *mpu) in snd_msnd_mpu401_close() argument
534 snd_msnd_send_dsp_cmd(mpu->private_data, HDEX_MIDI_IN_STOP); in snd_msnd_mpu401_close()
535 snd_msnd_disable_irq(mpu->private_data); in snd_msnd_mpu401_close()
600 struct snd_mpu401 *mpu; in snd_msnd_attach() local
613 mpu = chip->rmidi->private_data; in snd_msnd_attach()
615 mpu->open_input = snd_msnd_mpu401_open; in snd_msnd_attach()
616 mpu->close_input = snd_msnd_mpu401_close; in snd_msnd_attach()
[all …]
Dmsnd.h303 void snd_msndmidi_input_read(void *mpu);
/sound/isa/wavefront/
Dwavefront_midi.c118 snd_wavefront_mpu_id mpu; in snd_wavefront_midi_output_write() local
194 mpu = midi->output_mpu ^ mask; in snd_wavefront_midi_output_write()
196 if ((midi->mode[mpu] & MPU401_MODE_OUTPUT) == 0) { in snd_wavefront_midi_output_write()
200 if (snd_rawmidi_transmit_empty(midi->substream_output[mpu])) in snd_wavefront_midi_output_write()
203 if (mpu != midi->output_mpu) { in snd_wavefront_midi_output_write()
204 write_data(midi, mpu == internal_mpu ? in snd_wavefront_midi_output_write()
207 midi->output_mpu = mpu; in snd_wavefront_midi_output_write()
208 } else if (snd_rawmidi_transmit(midi->substream_output[mpu], &midi_byte, 1) == 1) { in snd_wavefront_midi_output_write()
220 midi->mode[mpu] &= ~MPU401_MODE_OUTPUT_TRIGGER; in snd_wavefront_midi_output_write()
236 snd_wavefront_mpu_id mpu; in snd_wavefront_midi_input_open() local
[all …]
Dwavefront.c128 acard->mpu = pnp_request_card_device(card, id->devs[2].id, NULL); in snd_wavefront_pnp()
129 if (acard->mpu == NULL) in snd_wavefront_pnp()
187 pdev = acard->mpu; in snd_wavefront_pnp()
289 snd_wavefront_mpu_id mpu) in snd_wavefront_new_midi() argument
307 if (mpu == internal_mpu) { in snd_wavefront_new_midi()
/sound/pci/emu10k1/
Demumpu401.c31 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
[all …]
Demu10k1x.c1219 static inline unsigned char mpu401_read(struct emu10k1x *emu, struct emu10k1x_midi *mpu, int idx) in mpu401_read() argument
1221 return (unsigned char)snd_emu10k1x_ptr_read(emu, mpu->port + idx, 0); in mpu401_read()
1224 static inline void mpu401_write(struct emu10k1x *emu, struct emu10k1x_midi *mpu, int data, int idx) in mpu401_write() argument
1226 snd_emu10k1x_ptr_write(emu, mpu->port + idx, 0, data); in mpu401_write()
1229 #define mpu401_write_data(emu, mpu, data) mpu401_write(emu, mpu, data, 0) argument
1230 #define mpu401_write_cmd(emu, mpu, data) mpu401_write(emu, mpu, data, 1) argument
1231 #define mpu401_read_data(emu, mpu) mpu401_read(emu, mpu, 0) argument
1232 #define mpu401_read_stat(emu, mpu) mpu401_read(emu, mpu, 1) argument
1234 #define mpu401_input_avail(emu,mpu) (!(mpu401_read_stat(emu,mpu) & 0x80)) argument
1235 #define mpu401_output_ready(emu,mpu) (!(mpu401_read_stat(emu,mpu) & 0x40)) argument
[all …]
/sound/pci/au88x0/
Dau88x0_mpu401.c48 struct snd_mpu401 *mpu; in snd_vortex_midi() local
104 mpu = rmidi->private_data; in snd_vortex_midi()
105 mpu->cport = (unsigned long)(vortex->mmio + VORTEX_MIDI_CMD); in snd_vortex_midi()
/sound/isa/
Dsscape.c318 static inline int verify_mpu401(const struct snd_mpu401 *mpu) in verify_mpu401() argument
320 return ((inb(MPU401C(mpu)) & 0xc0) == 0x80); in verify_mpu401()
326 static inline void initialise_mpu401(const struct snd_mpu401 *mpu) in initialise_mpu401() argument
328 outb(0, MPU401D(mpu)); in initialise_mpu401()
807 static int mpu401_open(struct snd_mpu401 *mpu) in mpu401_open() argument
809 if (!verify_mpu401(mpu)) { in mpu401_open()
831 struct snd_mpu401 *mpu = rawmidi->private_data; in create_mpu401() local
832 mpu->open_input = mpu401_open; in create_mpu401()
833 mpu->open_output = mpu401_open; in create_mpu401()
834 mpu->private_data = sscape; in create_mpu401()
[all …]
Dcmi8330.c167 struct pnp_dev *mpu; member
350 acard->mpu = pnp_request_card_device(card, id->devs[2].id, NULL); in snd_cmi8330_pnp()
351 if (acard->mpu == NULL) in snd_cmi8330_pnp()
388 pdev = acard->mpu; in snd_cmi8330_pnp()
/sound/oss/
Dtrix.c32 static int mpu; variable
396 sb_dsp_unload(hw_config, mpu); in unload_trix_sb()
483 mpu = probe_trix_mpu(&cfg_mpu); in init_trix()
494 if (mpu) in cleanup_trix()
Dsb_card.c119 scc->mpu = 1; in sb_register_oss()
122 scc->mpu = 0; in sb_register_oss()
131 if(scc->mpu) in sb_unload()
Dsb_card.h16 int mpu; member
/sound/isa/cs423x/
Dcs4236.c132 struct pnp_dev *mpu; member
332 acard->mpu = pnp_request_card_device(card, id->devs[2].id, NULL); in snd_card_cs423x_pnpc()
333 if (acard->mpu == NULL) in snd_card_cs423x_pnpc()
347 if (acard->mpu && mpu_port[dev] > 0) { in snd_card_cs423x_pnpc()
348 if (snd_cs423x_pnp_init_mpu(dev, acard->mpu) < 0) in snd_card_cs423x_pnpc()
/sound/pci/
Dsonicvibes.c1414 static int snd_sonicvibes_midi_input_open(struct snd_mpu401 * mpu) in snd_sonicvibes_midi_input_open() argument
1416 struct sonicvibes *sonic = mpu->private_data; in snd_sonicvibes_midi_input_open()
1421 static void snd_sonicvibes_midi_input_close(struct snd_mpu401 * mpu) in snd_sonicvibes_midi_input_close() argument
1423 struct sonicvibes *sonic = mpu->private_data; in snd_sonicvibes_midi_input_close()
1430 struct snd_mpu401 * mpu = rmidi->private_data; in snd_sonicvibes_midi() local
1436 mpu->private_data = sonic; in snd_sonicvibes_midi()
1437 mpu->open_input = snd_sonicvibes_midi_input_open; in snd_sonicvibes_midi()
1438 mpu->close_input = snd_sonicvibes_midi_input_close; in snd_sonicvibes_midi()
Dals300.c230 u8 general, mpu, dram; in snd_als300plus_interrupt() local
235 mpu = inb(chip->port+MPU_IRQ_STATUS); in snd_als300plus_interrupt()
239 if ((general == 0) && ((mpu & 0x80) == 0) && ((dram & 0x01) == 0)) in snd_als300plus_interrupt()
/sound/isa/galaxy/
Dgalaxy.c297 goto mpu; in snd_galaxy_match()
312 mpu: in snd_galaxy_match()