mpu 367 arch/arm/mach-omap2/cm2xxx.c void omap2xxx_cm_set_mod_dividers(u32 mpu, u32 dsp, u32 gfx, u32 core, u32 mdm) mpu 371 arch/arm/mach-omap2/cm2xxx.c omap2_cm_write_mod_reg(mpu, MPU_MOD, CM_CLKSEL); mpu 60 arch/arm/mach-omap2/cm2xxx.h extern void omap2xxx_cm_set_mod_dividers(u32 mpu, u32 dsp, u32 gfx, u32 core, mpu 31 drivers/macintosh/windfarm_ad7417_sensor.c const struct mpu_data *mpu; mpu 84 drivers/macintosh/windfarm_ad7417_sensor.c *value = (raw * (s32)pv->mpu->mdiode + mpu 85 drivers/macintosh/windfarm_ad7417_sensor.c ((s32)pv->mpu->bdiode << 12)) >> 2; mpu 236 drivers/macintosh/windfarm_ad7417_sensor.c const struct mpu_data *mpu; mpu 258 drivers/macintosh/windfarm_ad7417_sensor.c mpu = wf_get_mpu(cpu_nr); mpu 259 drivers/macintosh/windfarm_ad7417_sensor.c if (!mpu) { mpu 272 drivers/macintosh/windfarm_ad7417_sensor.c pv->mpu = mpu; mpu 286 drivers/macintosh/windfarm_fcu_controls.c const struct mpu_data *mpu = wf_get_mpu(0); mpu 291 drivers/macintosh/windfarm_fcu_controls.c if (mpu) { mpu 292 drivers/macintosh/windfarm_fcu_controls.c memcpy(&tmp, mpu->processor_part_num, 8); mpu 395 drivers/macintosh/windfarm_pm72.c const struct mpu_data *mpu = cpu_mpu_data[cpu]; mpu 400 drivers/macintosh/windfarm_pm72.c tmax = mpu->tmax << 16; mpu 401 drivers/macintosh/windfarm_pm72.c ttarget = mpu->ttarget << 16; mpu 402 drivers/macintosh/windfarm_pm72.c ptarget = ((s32)(mpu->pmaxh - mpu->padjmax)) << 16; mpu 417 drivers/macintosh/windfarm_pm72.c hsize = min_t(int, mpu->tguardband, WF_PID_MAX_HISTORY); mpu 423 drivers/macintosh/windfarm_pm72.c pid.gd = mpu->pid_gd; mpu 424 drivers/macintosh/windfarm_pm72.c pid.gp = mpu->pid_gp; mpu 425 drivers/macintosh/windfarm_pm72.c pid.gr = mpu->pid_gr; mpu 296 drivers/macintosh/windfarm_rm31.c const struct mpu_data *mpu = cpu_mpu_data[cpu]; mpu 301 drivers/macintosh/windfarm_rm31.c tmax = mpu->tmax << 16; mpu 302 drivers/macintosh/windfarm_rm31.c ttarget = mpu->ttarget << 16; mpu 303 drivers/macintosh/windfarm_rm31.c ptarget = ((s32)(mpu->pmaxh - mpu->padjmax)) << 16; mpu 318 drivers/macintosh/windfarm_rm31.c hsize = min_t(int, mpu->tguardband, WF_PID_MAX_HISTORY); mpu 324 drivers/macintosh/windfarm_rm31.c pid.gd = mpu->pid_gd; mpu 325 drivers/macintosh/windfarm_rm31.c pid.gp = mpu->pid_gp; mpu 326 drivers/macintosh/windfarm_rm31.c pid.gr = mpu->pid_gr; mpu 69 include/sound/mpu401.h int (*open_input) (struct snd_mpu401 * mpu); mpu 70 include/sound/mpu401.h void (*close_input) (struct snd_mpu401 * mpu); mpu 71 include/sound/mpu401.h int (*open_output) (struct snd_mpu401 * mpu); mpu 72 include/sound/mpu401.h void (*close_output) (struct snd_mpu401 * mpu); mpu 84 include/sound/mpu401.h void (*write) (struct snd_mpu401 * mpu, unsigned char data, unsigned long addr); mpu 85 include/sound/mpu401.h unsigned char (*read) (struct snd_mpu401 *mpu, unsigned long addr); mpu 90 include/sound/mpu401.h #define MPU401C(mpu) (mpu)->cport mpu 91 include/sound/mpu401.h #define MPU401D(mpu) (mpu)->port mpu 107 include/sound/snd_wavefront.h struct pnp_dev *mpu; mpu 96 include/uapi/linux/pkt_sched.h unsigned short mpu; mpu 108 include/uapi/linux/pkt_sched.h unsigned int mpu; mpu 384 net/sched/sch_api.c int low = roundup(r->mpu, 48); mpu 31 sound/drivers/mpu401/mpu401_uart.c static void snd_mpu401_uart_input_read(struct snd_mpu401 * mpu); mpu 32 sound/drivers/mpu401/mpu401_uart.c static void snd_mpu401_uart_output_write(struct snd_mpu401 * mpu); mpu 38 sound/drivers/mpu401/mpu401_uart.c #define snd_mpu401_input_avail(mpu) \ mpu 39 sound/drivers/mpu401/mpu401_uart.c (!(mpu->read(mpu, MPU401C(mpu)) & MPU401_RX_EMPTY)) mpu 40 sound/drivers/mpu401/mpu401_uart.c #define snd_mpu401_output_ready(mpu) \ mpu 41 sound/drivers/mpu401/mpu401_uart.c (!(mpu->read(mpu, MPU401C(mpu)) & MPU401_TX_FULL)) mpu 44 sound/drivers/mpu401/mpu401_uart.c static void mpu401_write_port(struct snd_mpu401 *mpu, unsigned char data, mpu 50 sound/drivers/mpu401/mpu401_uart.c static unsigned char mpu401_read_port(struct snd_mpu401 *mpu, mpu 56 sound/drivers/mpu401/mpu401_uart.c static void mpu401_write_mmio(struct snd_mpu401 *mpu, unsigned char data, mpu 62 sound/drivers/mpu401/mpu401_uart.c static unsigned char mpu401_read_mmio(struct snd_mpu401 *mpu, mpu 69 sound/drivers/mpu401/mpu401_uart.c static void snd_mpu401_uart_clear_rx(struct snd_mpu401 *mpu) mpu 72 sound/drivers/mpu401/mpu401_uart.c for (; timeout > 0 && snd_mpu401_input_avail(mpu); timeout--) mpu 73 sound/drivers/mpu401/mpu401_uart.c mpu->read(mpu, MPU401D(mpu)); mpu 77 sound/drivers/mpu401/mpu401_uart.c mpu->read(mpu, MPU401C(mpu))); mpu 81 sound/drivers/mpu401/mpu401_uart.c static void uart_interrupt_tx(struct snd_mpu401 *mpu) mpu 85 sound/drivers/mpu401/mpu401_uart.c if (test_bit(MPU401_MODE_BIT_OUTPUT, &mpu->mode) && mpu 86 sound/drivers/mpu401/mpu401_uart.c test_bit(MPU401_MODE_BIT_OUTPUT_TRIGGER, &mpu->mode)) { mpu 87 sound/drivers/mpu401/mpu401_uart.c spin_lock_irqsave(&mpu->output_lock, flags); mpu 88 sound/drivers/mpu401/mpu401_uart.c snd_mpu401_uart_output_write(mpu); mpu 89 sound/drivers/mpu401/mpu401_uart.c spin_unlock_irqrestore(&mpu->output_lock, flags); mpu 93 sound/drivers/mpu401/mpu401_uart.c static void _snd_mpu401_uart_interrupt(struct snd_mpu401 *mpu) mpu 97 sound/drivers/mpu401/mpu401_uart.c if (mpu->info_flags & MPU401_INFO_INPUT) { mpu 98 sound/drivers/mpu401/mpu401_uart.c spin_lock_irqsave(&mpu->input_lock, flags); mpu 99 sound/drivers/mpu401/mpu401_uart.c if (test_bit(MPU401_MODE_BIT_INPUT, &mpu->mode)) mpu 100 sound/drivers/mpu401/mpu401_uart.c snd_mpu401_uart_input_read(mpu); mpu 102 sound/drivers/mpu401/mpu401_uart.c snd_mpu401_uart_clear_rx(mpu); mpu 103 sound/drivers/mpu401/mpu401_uart.c spin_unlock_irqrestore(&mpu->input_lock, flags); mpu 105 sound/drivers/mpu401/mpu401_uart.c if (! (mpu->info_flags & MPU401_INFO_TX_IRQ)) mpu 108 sound/drivers/mpu401/mpu401_uart.c uart_interrupt_tx(mpu); mpu 122 sound/drivers/mpu401/mpu401_uart.c struct snd_mpu401 *mpu = dev_id; mpu 124 sound/drivers/mpu401/mpu401_uart.c if (!mpu) mpu 126 sound/drivers/mpu401/mpu401_uart.c _snd_mpu401_uart_interrupt(mpu); mpu 143 sound/drivers/mpu401/mpu401_uart.c struct snd_mpu401 *mpu = dev_id; mpu 145 sound/drivers/mpu401/mpu401_uart.c if (!mpu) mpu 147 sound/drivers/mpu401/mpu401_uart.c uart_interrupt_tx(mpu); mpu 159 sound/drivers/mpu401/mpu401_uart.c struct snd_mpu401 *mpu = from_timer(mpu, t, timer); mpu 162 sound/drivers/mpu401/mpu401_uart.c spin_lock_irqsave(&mpu->timer_lock, flags); mpu 164 sound/drivers/mpu401/mpu401_uart.c mod_timer(&mpu->timer, 1 + jiffies); mpu 165 sound/drivers/mpu401/mpu401_uart.c spin_unlock_irqrestore(&mpu->timer_lock, flags); mpu 166 sound/drivers/mpu401/mpu401_uart.c if (mpu->rmidi) mpu 167 sound/drivers/mpu401/mpu401_uart.c _snd_mpu401_uart_interrupt(mpu); mpu 173 sound/drivers/mpu401/mpu401_uart.c static void snd_mpu401_uart_add_timer (struct snd_mpu401 *mpu, int input) mpu 177 sound/drivers/mpu401/mpu401_uart.c spin_lock_irqsave (&mpu->timer_lock, flags); mpu 178 sound/drivers/mpu401/mpu401_uart.c if (mpu->timer_invoked == 0) { mpu 179 sound/drivers/mpu401/mpu401_uart.c timer_setup(&mpu->timer, snd_mpu401_uart_timer, 0); mpu 180 sound/drivers/mpu401/mpu401_uart.c mod_timer(&mpu->timer, 1 + jiffies); mpu 182 sound/drivers/mpu401/mpu401_uart.c mpu->timer_invoked |= input ? MPU401_MODE_INPUT_TIMER : mpu 184 sound/drivers/mpu401/mpu401_uart.c spin_unlock_irqrestore (&mpu->timer_lock, flags); mpu 190 sound/drivers/mpu401/mpu401_uart.c static void snd_mpu401_uart_remove_timer (struct snd_mpu401 *mpu, int input) mpu 194 sound/drivers/mpu401/mpu401_uart.c spin_lock_irqsave (&mpu->timer_lock, flags); mpu 195 sound/drivers/mpu401/mpu401_uart.c if (mpu->timer_invoked) { mpu 196 sound/drivers/mpu401/mpu401_uart.c mpu->timer_invoked &= input ? ~MPU401_MODE_INPUT_TIMER : mpu 198 sound/drivers/mpu401/mpu401_uart.c if (! mpu->timer_invoked) mpu 199 sound/drivers/mpu401/mpu401_uart.c del_timer(&mpu->timer); mpu 201 sound/drivers/mpu401/mpu401_uart.c spin_unlock_irqrestore (&mpu->timer_lock, flags); mpu 209 sound/drivers/mpu401/mpu401_uart.c static int snd_mpu401_uart_cmd(struct snd_mpu401 * mpu, unsigned char cmd, mpu 215 sound/drivers/mpu401/mpu401_uart.c spin_lock_irqsave(&mpu->input_lock, flags); mpu 216 sound/drivers/mpu401/mpu401_uart.c if (mpu->hardware != MPU401_HW_TRID4DWAVE) { mpu 217 sound/drivers/mpu401/mpu401_uart.c mpu->write(mpu, 0x00, MPU401D(mpu)); mpu 221 sound/drivers/mpu401/mpu401_uart.c if (mpu->hardware != MPU401_HW_SB) { mpu 223 sound/drivers/mpu401/mpu401_uart.c !snd_mpu401_output_ready(mpu); timeout--) mpu 228 sound/drivers/mpu401/mpu401_uart.c mpu->read(mpu, MPU401C(mpu))); mpu 231 sound/drivers/mpu401/mpu401_uart.c mpu->write(mpu, cmd, MPU401C(mpu)); mpu 232 sound/drivers/mpu401/mpu401_uart.c if (ack && !(mpu->info_flags & MPU401_INFO_NO_ACK)) { mpu 236 sound/drivers/mpu401/mpu401_uart.c if (snd_mpu401_input_avail(mpu)) { mpu 237 sound/drivers/mpu401/mpu401_uart.c if (mpu->read(mpu, MPU401D(mpu)) == MPU401_ACK) mpu 241 sound/drivers/mpu401/mpu401_uart.c if (!ok && mpu->read(mpu, MPU401D(mpu)) == MPU401_ACK) mpu 245 sound/drivers/mpu401/mpu401_uart.c spin_unlock_irqrestore(&mpu->input_lock, flags); mpu 248 sound/drivers/mpu401/mpu401_uart.c "(status = 0x%x, data = 0x%x)\n", cmd, mpu->port, mpu 249 sound/drivers/mpu401/mpu401_uart.c mpu->read(mpu, MPU401C(mpu)), mpu 250 sound/drivers/mpu401/mpu401_uart.c mpu->read(mpu, MPU401D(mpu))); mpu 256 sound/drivers/mpu401/mpu401_uart.c static int snd_mpu401_do_reset(struct snd_mpu401 *mpu) mpu 258 sound/drivers/mpu401/mpu401_uart.c if (snd_mpu401_uart_cmd(mpu, MPU401_RESET, 1)) mpu 260 sound/drivers/mpu401/mpu401_uart.c if (snd_mpu401_uart_cmd(mpu, MPU401_ENTER_UART, 0)) mpu 270 sound/drivers/mpu401/mpu401_uart.c struct snd_mpu401 *mpu; mpu 273 sound/drivers/mpu401/mpu401_uart.c mpu = substream->rmidi->private_data; mpu 274 sound/drivers/mpu401/mpu401_uart.c if (mpu->open_input && (err = mpu->open_input(mpu)) < 0) mpu 276 sound/drivers/mpu401/mpu401_uart.c if (! test_bit(MPU401_MODE_BIT_OUTPUT, &mpu->mode)) { mpu 277 sound/drivers/mpu401/mpu401_uart.c if (snd_mpu401_do_reset(mpu) < 0) mpu 280 sound/drivers/mpu401/mpu401_uart.c mpu->substream_input = substream; mpu 281 sound/drivers/mpu401/mpu401_uart.c set_bit(MPU401_MODE_BIT_INPUT, &mpu->mode); mpu 285 sound/drivers/mpu401/mpu401_uart.c if (mpu->open_input && mpu->close_input) mpu 286 sound/drivers/mpu401/mpu401_uart.c mpu->close_input(mpu); mpu 292 sound/drivers/mpu401/mpu401_uart.c struct snd_mpu401 *mpu; mpu 295 sound/drivers/mpu401/mpu401_uart.c mpu = substream->rmidi->private_data; mpu 296 sound/drivers/mpu401/mpu401_uart.c if (mpu->open_output && (err = mpu->open_output(mpu)) < 0) mpu 298 sound/drivers/mpu401/mpu401_uart.c if (! test_bit(MPU401_MODE_BIT_INPUT, &mpu->mode)) { mpu 299 sound/drivers/mpu401/mpu401_uart.c if (snd_mpu401_do_reset(mpu) < 0) mpu 302 sound/drivers/mpu401/mpu401_uart.c mpu->substream_output = substream; mpu 303 sound/drivers/mpu401/mpu401_uart.c set_bit(MPU401_MODE_BIT_OUTPUT, &mpu->mode); mpu 307 sound/drivers/mpu401/mpu401_uart.c if (mpu->open_output && mpu->close_output) mpu 308 sound/drivers/mpu401/mpu401_uart.c mpu->close_output(mpu); mpu 314 sound/drivers/mpu401/mpu401_uart.c struct snd_mpu401 *mpu; mpu 317 sound/drivers/mpu401/mpu401_uart.c mpu = substream->rmidi->private_data; mpu 318 sound/drivers/mpu401/mpu401_uart.c clear_bit(MPU401_MODE_BIT_INPUT, &mpu->mode); mpu 319 sound/drivers/mpu401/mpu401_uart.c mpu->substream_input = NULL; mpu 320 sound/drivers/mpu401/mpu401_uart.c if (! test_bit(MPU401_MODE_BIT_OUTPUT, &mpu->mode)) mpu 321 sound/drivers/mpu401/mpu401_uart.c err = snd_mpu401_uart_cmd(mpu, MPU401_RESET, 0); mpu 322 sound/drivers/mpu401/mpu401_uart.c if (mpu->close_input) mpu 323 sound/drivers/mpu401/mpu401_uart.c mpu->close_input(mpu); mpu 331 sound/drivers/mpu401/mpu401_uart.c struct snd_mpu401 *mpu; mpu 334 sound/drivers/mpu401/mpu401_uart.c mpu = substream->rmidi->private_data; mpu 335 sound/drivers/mpu401/mpu401_uart.c clear_bit(MPU401_MODE_BIT_OUTPUT, &mpu->mode); mpu 336 sound/drivers/mpu401/mpu401_uart.c mpu->substream_output = NULL; mpu 337 sound/drivers/mpu401/mpu401_uart.c if (! test_bit(MPU401_MODE_BIT_INPUT, &mpu->mode)) mpu 338 sound/drivers/mpu401/mpu401_uart.c err = snd_mpu401_uart_cmd(mpu, MPU401_RESET, 0); mpu 339 sound/drivers/mpu401/mpu401_uart.c if (mpu->close_output) mpu 340 sound/drivers/mpu401/mpu401_uart.c mpu->close_output(mpu); mpu 353 sound/drivers/mpu401/mpu401_uart.c struct snd_mpu401 *mpu; mpu 356 sound/drivers/mpu401/mpu401_uart.c mpu = substream->rmidi->private_data; mpu 359 sound/drivers/mpu401/mpu401_uart.c &mpu->mode)) { mpu 362 sound/drivers/mpu401/mpu401_uart.c mpu->read(mpu, MPU401D(mpu)); mpu 363 sound/drivers/mpu401/mpu401_uart.c if (mpu->info_flags & MPU401_INFO_USE_TIMER) mpu 364 sound/drivers/mpu401/mpu401_uart.c snd_mpu401_uart_add_timer(mpu, 1); mpu 368 sound/drivers/mpu401/mpu401_uart.c spin_lock_irqsave(&mpu->input_lock, flags); mpu 369 sound/drivers/mpu401/mpu401_uart.c snd_mpu401_uart_input_read(mpu); mpu 370 sound/drivers/mpu401/mpu401_uart.c spin_unlock_irqrestore(&mpu->input_lock, flags); mpu 372 sound/drivers/mpu401/mpu401_uart.c if (mpu->info_flags & MPU401_INFO_USE_TIMER) mpu 373 sound/drivers/mpu401/mpu401_uart.c snd_mpu401_uart_remove_timer(mpu, 1); mpu 374 sound/drivers/mpu401/mpu401_uart.c clear_bit(MPU401_MODE_BIT_INPUT_TRIGGER, &mpu->mode); mpu 383 sound/drivers/mpu401/mpu401_uart.c static void snd_mpu401_uart_input_read(struct snd_mpu401 * mpu) mpu 389 sound/drivers/mpu401/mpu401_uart.c if (! snd_mpu401_input_avail(mpu)) mpu 391 sound/drivers/mpu401/mpu401_uart.c byte = mpu->read(mpu, MPU401D(mpu)); mpu 392 sound/drivers/mpu401/mpu401_uart.c if (test_bit(MPU401_MODE_BIT_INPUT_TRIGGER, &mpu->mode)) mpu 393 sound/drivers/mpu401/mpu401_uart.c snd_rawmidi_receive(mpu->substream_input, &byte, 1); mpu 409 sound/drivers/mpu401/mpu401_uart.c static void snd_mpu401_uart_output_write(struct snd_mpu401 * mpu) mpu 415 sound/drivers/mpu401/mpu401_uart.c if (snd_rawmidi_transmit_peek(mpu->substream_output, mpu 421 sound/drivers/mpu401/mpu401_uart.c if (!snd_mpu401_output_ready(mpu) && mpu 422 sound/drivers/mpu401/mpu401_uart.c !snd_mpu401_output_ready(mpu)) mpu 424 sound/drivers/mpu401/mpu401_uart.c mpu->write(mpu, byte, MPU401D(mpu)); mpu 425 sound/drivers/mpu401/mpu401_uart.c snd_rawmidi_transmit_ack(mpu->substream_output, 1); mpu 427 sound/drivers/mpu401/mpu401_uart.c snd_mpu401_uart_remove_timer (mpu, 0); mpu 440 sound/drivers/mpu401/mpu401_uart.c struct snd_mpu401 *mpu; mpu 442 sound/drivers/mpu401/mpu401_uart.c mpu = substream->rmidi->private_data; mpu 444 sound/drivers/mpu401/mpu401_uart.c set_bit(MPU401_MODE_BIT_OUTPUT_TRIGGER, &mpu->mode); mpu 450 sound/drivers/mpu401/mpu401_uart.c if (! (mpu->info_flags & MPU401_INFO_TX_IRQ)) mpu 451 sound/drivers/mpu401/mpu401_uart.c snd_mpu401_uart_add_timer(mpu, 0); mpu 454 sound/drivers/mpu401/mpu401_uart.c spin_lock_irqsave(&mpu->output_lock, flags); mpu 455 sound/drivers/mpu401/mpu401_uart.c snd_mpu401_uart_output_write(mpu); mpu 456 sound/drivers/mpu401/mpu401_uart.c spin_unlock_irqrestore(&mpu->output_lock, flags); mpu 458 sound/drivers/mpu401/mpu401_uart.c if (! (mpu->info_flags & MPU401_INFO_TX_IRQ)) mpu 459 sound/drivers/mpu401/mpu401_uart.c snd_mpu401_uart_remove_timer(mpu, 0); mpu 460 sound/drivers/mpu401/mpu401_uart.c clear_bit(MPU401_MODE_BIT_OUTPUT_TRIGGER, &mpu->mode); mpu 484 sound/drivers/mpu401/mpu401_uart.c struct snd_mpu401 *mpu = rmidi->private_data; mpu 485 sound/drivers/mpu401/mpu401_uart.c if (mpu->irq >= 0) mpu 486 sound/drivers/mpu401/mpu401_uart.c free_irq(mpu->irq, (void *) mpu); mpu 487 sound/drivers/mpu401/mpu401_uart.c release_and_free_resource(mpu->res); mpu 488 sound/drivers/mpu401/mpu401_uart.c kfree(mpu); mpu 516 sound/drivers/mpu401/mpu401_uart.c struct snd_mpu401 *mpu; mpu 530 sound/drivers/mpu401/mpu401_uart.c mpu = kzalloc(sizeof(*mpu), GFP_KERNEL); mpu 531 sound/drivers/mpu401/mpu401_uart.c if (!mpu) { mpu 535 sound/drivers/mpu401/mpu401_uart.c rmidi->private_data = mpu; mpu 537 sound/drivers/mpu401/mpu401_uart.c spin_lock_init(&mpu->input_lock); mpu 538 sound/drivers/mpu401/mpu401_uart.c spin_lock_init(&mpu->output_lock); mpu 539 sound/drivers/mpu401/mpu401_uart.c spin_lock_init(&mpu->timer_lock); mpu 540 sound/drivers/mpu401/mpu401_uart.c mpu->hardware = hardware; mpu 541 sound/drivers/mpu401/mpu401_uart.c mpu->irq = -1; mpu 544 sound/drivers/mpu401/mpu401_uart.c mpu->res = request_region(port, res_size, "MPU401 UART"); mpu 545 sound/drivers/mpu401/mpu401_uart.c if (!mpu->res) { mpu 554 sound/drivers/mpu401/mpu401_uart.c mpu->write = mpu401_write_mmio; mpu 555 sound/drivers/mpu401/mpu401_uart.c mpu->read = mpu401_read_mmio; mpu 557 sound/drivers/mpu401/mpu401_uart.c mpu->write = mpu401_write_port; mpu 558 sound/drivers/mpu401/mpu401_uart.c mpu->read = mpu401_read_port; mpu 560 sound/drivers/mpu401/mpu401_uart.c mpu->port = port; mpu 562 sound/drivers/mpu401/mpu401_uart.c mpu->cport = port + 2; mpu 564 sound/drivers/mpu401/mpu401_uart.c mpu->cport = port + 1; mpu 567 sound/drivers/mpu401/mpu401_uart.c "MPU401 UART", (void *) mpu)) { mpu 576 sound/drivers/mpu401/mpu401_uart.c mpu->info_flags = info_flags; mpu 577 sound/drivers/mpu401/mpu401_uart.c mpu->irq = irq; mpu 595 sound/drivers/mpu401/mpu401_uart.c mpu->rmidi = rmidi; mpu 153 sound/isa/cmi8330.c struct pnp_dev *mpu; mpu 336 sound/isa/cmi8330.c acard->mpu = pnp_request_card_device(card, id->devs[2].id, NULL); mpu 337 sound/isa/cmi8330.c if (acard->mpu == NULL) mpu 374 sound/isa/cmi8330.c pdev = acard->mpu; mpu 117 sound/isa/cs423x/cs4236.c struct pnp_dev *mpu; mpu 317 sound/isa/cs423x/cs4236.c acard->mpu = pnp_request_card_device(card, id->devs[2].id, NULL); mpu 318 sound/isa/cs423x/cs4236.c if (acard->mpu == NULL) mpu 332 sound/isa/cs423x/cs4236.c if (acard->mpu && mpu_port[dev] > 0) { mpu 333 sound/isa/cs423x/cs4236.c if (snd_cs423x_pnp_init_mpu(dev, acard->mpu) < 0) mpu 285 sound/isa/galaxy/galaxy.c goto mpu; mpu 301 sound/isa/galaxy/galaxy.c mpu: mpu 290 sound/isa/msnd/msnd.h void snd_msndmidi_input_read(void *mpu); mpu 43 sound/isa/msnd/msnd_midi.c struct snd_msndmidi *mpu; mpu 47 sound/isa/msnd/msnd_midi.c mpu = substream->rmidi->private_data; mpu 49 sound/isa/msnd/msnd_midi.c mpu->substream_input = substream; mpu 51 sound/isa/msnd/msnd_midi.c snd_msnd_enable_irq(mpu->dev); mpu 53 sound/isa/msnd/msnd_midi.c snd_msnd_send_dsp_cmd(mpu->dev, HDEX_MIDI_IN_START); mpu 54 sound/isa/msnd/msnd_midi.c set_bit(MSNDMIDI_MODE_BIT_INPUT, &mpu->mode); mpu 60 sound/isa/msnd/msnd_midi.c struct snd_msndmidi *mpu; mpu 62 sound/isa/msnd/msnd_midi.c mpu = substream->rmidi->private_data; mpu 63 sound/isa/msnd/msnd_midi.c snd_msnd_send_dsp_cmd(mpu->dev, HDEX_MIDI_IN_STOP); mpu 64 sound/isa/msnd/msnd_midi.c clear_bit(MSNDMIDI_MODE_BIT_INPUT, &mpu->mode); mpu 65 sound/isa/msnd/msnd_midi.c mpu->substream_input = NULL; mpu 66 sound/isa/msnd/msnd_midi.c snd_msnd_disable_irq(mpu->dev); mpu 70 sound/isa/msnd/msnd_midi.c static void snd_msndmidi_input_drop(struct snd_msndmidi *mpu) mpu 74 sound/isa/msnd/msnd_midi.c tail = readw(mpu->dev->MIDQ + JQS_wTail); mpu 75 sound/isa/msnd/msnd_midi.c writew(tail, mpu->dev->MIDQ + JQS_wHead); mpu 85 sound/isa/msnd/msnd_midi.c struct snd_msndmidi *mpu; mpu 89 sound/isa/msnd/msnd_midi.c mpu = substream->rmidi->private_data; mpu 90 sound/isa/msnd/msnd_midi.c spin_lock_irqsave(&mpu->input_lock, flags); mpu 93 sound/isa/msnd/msnd_midi.c &mpu->mode)) mpu 94 sound/isa/msnd/msnd_midi.c snd_msndmidi_input_drop(mpu); mpu 96 sound/isa/msnd/msnd_midi.c clear_bit(MSNDMIDI_MODE_BIT_INPUT_TRIGGER, &mpu->mode); mpu 98 sound/isa/msnd/msnd_midi.c spin_unlock_irqrestore(&mpu->input_lock, flags); mpu 100 sound/isa/msnd/msnd_midi.c snd_msndmidi_input_read(mpu); mpu 106 sound/isa/msnd/msnd_midi.c struct snd_msndmidi *mpu = mpuv; mpu 107 sound/isa/msnd/msnd_midi.c void __iomem *pwMIDQData = mpu->dev->mappedbase + MIDQ_DATA_BUFF; mpu 110 sound/isa/msnd/msnd_midi.c spin_lock_irqsave(&mpu->input_lock, flags); mpu 111 sound/isa/msnd/msnd_midi.c head = readw(mpu->dev->MIDQ + JQS_wHead); mpu 112 sound/isa/msnd/msnd_midi.c tail = readw(mpu->dev->MIDQ + JQS_wTail); mpu 113 sound/isa/msnd/msnd_midi.c size = readw(mpu->dev->MIDQ + JQS_wSize); mpu 119 sound/isa/msnd/msnd_midi.c if (test_bit(MSNDMIDI_MODE_BIT_INPUT_TRIGGER, &mpu->mode)) mpu 120 sound/isa/msnd/msnd_midi.c snd_rawmidi_receive(mpu->substream_input, &val, 1); mpu 123 sound/isa/msnd/msnd_midi.c writew(head, mpu->dev->MIDQ + JQS_wHead); mpu 126 sound/isa/msnd/msnd_midi.c spin_unlock_irqrestore(&mpu->input_lock, flags); mpu 138 sound/isa/msnd/msnd_midi.c struct snd_msndmidi *mpu = rmidi->private_data; mpu 139 sound/isa/msnd/msnd_midi.c kfree(mpu); mpu 145 sound/isa/msnd/msnd_midi.c struct snd_msndmidi *mpu; mpu 152 sound/isa/msnd/msnd_midi.c mpu = kzalloc(sizeof(*mpu), GFP_KERNEL); mpu 153 sound/isa/msnd/msnd_midi.c if (mpu == NULL) { mpu 157 sound/isa/msnd/msnd_midi.c mpu->dev = chip; mpu 158 sound/isa/msnd/msnd_midi.c chip->msndmidi_mpu = mpu; mpu 159 sound/isa/msnd/msnd_midi.c rmidi->private_data = mpu; mpu 161 sound/isa/msnd/msnd_midi.c spin_lock_init(&mpu->input_lock); mpu 511 sound/isa/msnd/msnd_pinnacle.c static int snd_msnd_mpu401_open(struct snd_mpu401 *mpu) mpu 513 sound/isa/msnd/msnd_pinnacle.c snd_msnd_enable_irq(mpu->private_data); mpu 514 sound/isa/msnd/msnd_pinnacle.c snd_msnd_send_dsp_cmd(mpu->private_data, HDEX_MIDI_IN_START); mpu 518 sound/isa/msnd/msnd_pinnacle.c static void snd_msnd_mpu401_close(struct snd_mpu401 *mpu) mpu 520 sound/isa/msnd/msnd_pinnacle.c snd_msnd_send_dsp_cmd(mpu->private_data, HDEX_MIDI_IN_STOP); mpu 521 sound/isa/msnd/msnd_pinnacle.c snd_msnd_disable_irq(mpu->private_data); mpu 586 sound/isa/msnd/msnd_pinnacle.c struct snd_mpu401 *mpu; mpu 599 sound/isa/msnd/msnd_pinnacle.c mpu = chip->rmidi->private_data; mpu 601 sound/isa/msnd/msnd_pinnacle.c mpu->open_input = snd_msnd_mpu401_open; mpu 602 sound/isa/msnd/msnd_pinnacle.c mpu->close_input = snd_msnd_mpu401_close; mpu 603 sound/isa/msnd/msnd_pinnacle.c mpu->private_data = chip; mpu 305 sound/isa/sscape.c static inline int verify_mpu401(const struct snd_mpu401 *mpu) mpu 307 sound/isa/sscape.c return ((inb(MPU401C(mpu)) & 0xc0) == 0x80); mpu 313 sound/isa/sscape.c static inline void initialise_mpu401(const struct snd_mpu401 *mpu) mpu 315 sound/isa/sscape.c outb(0, MPU401D(mpu)); mpu 794 sound/isa/sscape.c static int mpu401_open(struct snd_mpu401 *mpu) mpu 796 sound/isa/sscape.c if (!verify_mpu401(mpu)) { mpu 818 sound/isa/sscape.c struct snd_mpu401 *mpu = rawmidi->private_data; mpu 819 sound/isa/sscape.c mpu->open_input = mpu401_open; mpu 820 sound/isa/sscape.c mpu->open_output = mpu401_open; mpu 821 sound/isa/sscape.c mpu->private_data = sscape; mpu 823 sound/isa/sscape.c initialise_mpu401(mpu); mpu 115 sound/isa/wavefront/wavefront.c acard->mpu = pnp_request_card_device(card, id->devs[2].id, NULL); mpu 116 sound/isa/wavefront/wavefront.c if (acard->mpu == NULL) mpu 174 sound/isa/wavefront/wavefront.c pdev = acard->mpu; mpu 276 sound/isa/wavefront/wavefront.c snd_wavefront_mpu_id mpu) mpu 294 sound/isa/wavefront/wavefront.c if (mpu == internal_mpu) { mpu 115 sound/isa/wavefront/wavefront_midi.c snd_wavefront_mpu_id mpu; mpu 191 sound/isa/wavefront/wavefront_midi.c mpu = midi->output_mpu ^ mask; mpu 193 sound/isa/wavefront/wavefront_midi.c if ((midi->mode[mpu] & MPU401_MODE_OUTPUT) == 0) { mpu 197 sound/isa/wavefront/wavefront_midi.c if (snd_rawmidi_transmit_empty(midi->substream_output[mpu])) mpu 200 sound/isa/wavefront/wavefront_midi.c if (mpu != midi->output_mpu) { mpu 201 sound/isa/wavefront/wavefront_midi.c write_data(midi, mpu == internal_mpu ? mpu 204 sound/isa/wavefront/wavefront_midi.c midi->output_mpu = mpu; mpu 205 sound/isa/wavefront/wavefront_midi.c } else if (snd_rawmidi_transmit(midi->substream_output[mpu], &midi_byte, 1) == 1) { mpu 217 sound/isa/wavefront/wavefront_midi.c midi->mode[mpu] &= ~MPU401_MODE_OUTPUT_TRIGGER; mpu 233 sound/isa/wavefront/wavefront_midi.c snd_wavefront_mpu_id mpu; mpu 240 sound/isa/wavefront/wavefront_midi.c mpu = *((snd_wavefront_mpu_id *) substream->rmidi->private_data); mpu 246 sound/isa/wavefront/wavefront_midi.c midi->mode[mpu] |= MPU401_MODE_INPUT; mpu 247 sound/isa/wavefront/wavefront_midi.c midi->substream_input[mpu] = substream; mpu 257 sound/isa/wavefront/wavefront_midi.c snd_wavefront_mpu_id mpu; mpu 264 sound/isa/wavefront/wavefront_midi.c mpu = *((snd_wavefront_mpu_id *) substream->rmidi->private_data); mpu 270 sound/isa/wavefront/wavefront_midi.c midi->mode[mpu] |= MPU401_MODE_OUTPUT; mpu 271 sound/isa/wavefront/wavefront_midi.c midi->substream_output[mpu] = substream; mpu 281 sound/isa/wavefront/wavefront_midi.c snd_wavefront_mpu_id mpu; mpu 288 sound/isa/wavefront/wavefront_midi.c mpu = *((snd_wavefront_mpu_id *) substream->rmidi->private_data); mpu 294 sound/isa/wavefront/wavefront_midi.c midi->mode[mpu] &= ~MPU401_MODE_INPUT; mpu 304 sound/isa/wavefront/wavefront_midi.c snd_wavefront_mpu_id mpu; mpu 311 sound/isa/wavefront/wavefront_midi.c mpu = *((snd_wavefront_mpu_id *) substream->rmidi->private_data); mpu 317 sound/isa/wavefront/wavefront_midi.c midi->mode[mpu] &= ~MPU401_MODE_OUTPUT; mpu 326 sound/isa/wavefront/wavefront_midi.c snd_wavefront_mpu_id mpu; mpu 334 sound/isa/wavefront/wavefront_midi.c mpu = *((snd_wavefront_mpu_id *) substream->rmidi->private_data); mpu 342 sound/isa/wavefront/wavefront_midi.c midi->mode[mpu] |= MPU401_MODE_INPUT_TRIGGER; mpu 344 sound/isa/wavefront/wavefront_midi.c midi->mode[mpu] &= ~MPU401_MODE_INPUT_TRIGGER; mpu 365 sound/isa/wavefront/wavefront_midi.c snd_wavefront_mpu_id mpu; mpu 373 sound/isa/wavefront/wavefront_midi.c mpu = *((snd_wavefront_mpu_id *) substream->rmidi->private_data); mpu 381 sound/isa/wavefront/wavefront_midi.c if ((midi->mode[mpu] & MPU401_MODE_OUTPUT_TRIGGER) == 0) { mpu 389 sound/isa/wavefront/wavefront_midi.c midi->mode[mpu] |= MPU401_MODE_OUTPUT_TRIGGER; mpu 392 sound/isa/wavefront/wavefront_midi.c midi->mode[mpu] &= ~MPU401_MODE_OUTPUT_TRIGGER; mpu 407 sound/isa/wavefront/wavefront_midi.c static int mpu = external_mpu; mpu 427 sound/isa/wavefront/wavefront_midi.c mpu = external_mpu; mpu 430 sound/isa/wavefront/wavefront_midi.c mpu = internal_mpu; mpu 434 sound/isa/wavefront/wavefront_midi.c mpu = internal_mpu; mpu 441 sound/isa/wavefront/wavefront_midi.c if (midi->mode[mpu] & MPU401_MODE_INPUT_TRIGGER) { mpu 217 sound/pci/als300.c u8 general, mpu, dram; mpu 222 sound/pci/als300.c mpu = inb(chip->port+MPU_IRQ_STATUS); mpu 226 sound/pci/als300.c if ((general == 0) && ((mpu & 0x80) == 0) && ((dram & 0x01) == 0)) mpu 34 sound/pci/au88x0/au88x0_mpu401.c struct snd_mpu401 *mpu; mpu 90 sound/pci/au88x0/au88x0_mpu401.c mpu = rmidi->private_data; mpu 91 sound/pci/au88x0/au88x0_mpu401.c mpu->cport = (unsigned long)(vortex->mmio + VORTEX_MIDI_CMD); mpu 1198 sound/pci/emu10k1/emu10k1x.c static inline unsigned char mpu401_read(struct emu10k1x *emu, struct emu10k1x_midi *mpu, int idx) mpu 1200 sound/pci/emu10k1/emu10k1x.c return (unsigned char)snd_emu10k1x_ptr_read(emu, mpu->port + idx, 0); mpu 1203 sound/pci/emu10k1/emu10k1x.c static inline void mpu401_write(struct emu10k1x *emu, struct emu10k1x_midi *mpu, int data, int idx) mpu 1205 sound/pci/emu10k1/emu10k1x.c snd_emu10k1x_ptr_write(emu, mpu->port + idx, 0, data); mpu 1208 sound/pci/emu10k1/emu10k1x.c #define mpu401_write_data(emu, mpu, data) mpu401_write(emu, mpu, data, 0) mpu 1209 sound/pci/emu10k1/emu10k1x.c #define mpu401_write_cmd(emu, mpu, data) mpu401_write(emu, mpu, data, 1) mpu 1210 sound/pci/emu10k1/emu10k1x.c #define mpu401_read_data(emu, mpu) mpu401_read(emu, mpu, 0) mpu 1211 sound/pci/emu10k1/emu10k1x.c #define mpu401_read_stat(emu, mpu) mpu401_read(emu, mpu, 1) mpu 1213 sound/pci/emu10k1/emu10k1x.c #define mpu401_input_avail(emu,mpu) (!(mpu401_read_stat(emu,mpu) & 0x80)) mpu 1214 sound/pci/emu10k1/emu10k1x.c #define mpu401_output_ready(emu,mpu) (!(mpu401_read_stat(emu,mpu) & 0x40)) mpu 1220 sound/pci/emu10k1/emu10k1x.c static void mpu401_clear_rx(struct emu10k1x *emu, struct emu10k1x_midi *mpu) mpu 1223 sound/pci/emu10k1/emu10k1x.c for (; timeout > 0 && mpu401_input_avail(emu, mpu); timeout--) mpu 1224 sound/pci/emu10k1/emu10k1x.c mpu401_read_data(emu, mpu); mpu 1229 sound/pci/emu10k1/emu10k1x.c mpu401_read_stat(emu, mpu)); mpu 16 sound/pci/emu10k1/emumpu401.c struct snd_emu10k1_midi *mpu, int idx) mpu 19 sound/pci/emu10k1/emumpu401.c return (unsigned char)snd_emu10k1_ptr_read(emu, mpu->port + idx, 0); mpu 21 sound/pci/emu10k1/emumpu401.c return inb(emu->port + mpu->port + idx); mpu 25 sound/pci/emu10k1/emumpu401.c struct snd_emu10k1_midi *mpu, int data, int idx) mpu 28 sound/pci/emu10k1/emumpu401.c snd_emu10k1_ptr_write(emu, mpu->port + idx, 0, data); mpu 30 sound/pci/emu10k1/emumpu401.c outb(data, emu->port + mpu->port + idx); mpu 33 sound/pci/emu10k1/emumpu401.c #define mpu401_write_data(emu, mpu, data) mpu401_write(emu, mpu, data, 0) mpu 34 sound/pci/emu10k1/emumpu401.c #define mpu401_write_cmd(emu, mpu, data) mpu401_write(emu, mpu, data, 1) mpu 35 sound/pci/emu10k1/emumpu401.c #define mpu401_read_data(emu, mpu) mpu401_read(emu, mpu, 0) mpu 36 sound/pci/emu10k1/emumpu401.c #define mpu401_read_stat(emu, mpu) mpu401_read(emu, mpu, 1) mpu 38 sound/pci/emu10k1/emumpu401.c #define mpu401_input_avail(emu,mpu) (!(mpu401_read_stat(emu,mpu) & 0x80)) mpu 39 sound/pci/emu10k1/emumpu401.c #define mpu401_output_ready(emu,mpu) (!(mpu401_read_stat(emu,mpu) & 0x40)) mpu 45 sound/pci/emu10k1/emumpu401.c static void mpu401_clear_rx(struct snd_emu10k1 *emu, struct snd_emu10k1_midi *mpu) mpu 48 sound/pci/emu10k1/emumpu401.c for (; timeout > 0 && mpu401_input_avail(emu, mpu); timeout--) mpu 49 sound/pci/emu10k1/emumpu401.c mpu401_read_data(emu, mpu); mpu 54 sound/pci/emu10k1/emumpu401.c mpu401_read_stat(emu, mpu)); mpu 1402 sound/pci/sonicvibes.c static int snd_sonicvibes_midi_input_open(struct snd_mpu401 * mpu) mpu 1404 sound/pci/sonicvibes.c struct sonicvibes *sonic = mpu->private_data; mpu 1409 sound/pci/sonicvibes.c static void snd_sonicvibes_midi_input_close(struct snd_mpu401 * mpu) mpu 1411 sound/pci/sonicvibes.c struct sonicvibes *sonic = mpu->private_data; mpu 1418 sound/pci/sonicvibes.c struct snd_mpu401 * mpu = rmidi->private_data; mpu 1423 sound/pci/sonicvibes.c mpu->private_data = sonic; mpu 1424 sound/pci/sonicvibes.c mpu->open_input = snd_sonicvibes_midi_input_open; mpu 1425 sound/pci/sonicvibes.c mpu->close_input = snd_sonicvibes_midi_input_close; mpu 95 tools/include/uapi/linux/pkt_sched.h unsigned short mpu; mpu 107 tools/include/uapi/linux/pkt_sched.h unsigned int mpu;