taglinefilesource code
devc134drivers/block/hd.cchar devc;
devc136drivers/block/hd.cdevc = CURRENT ? 'a' + DEVICE_NR(CURRENT->dev) : '?';
devc139drivers/block/hd.cprintk("hd%c: %s: status=0x%02x { ", devc, msg, stat & 0xff);
devc153drivers/block/hd.cprintk("hd%c: %s: error=0x%02x { ", devc, msg, hd_error & 0xff);
devc98drivers/sound/ad1848.cad_read (ad1848_info * devc, int reg)
devc104drivers/sound/ad1848.cOUTB ((unsigned char) (reg & 0xff) | devc->MCE_bit, io_Index_Addr (devc));
devc105drivers/sound/ad1848.cx = INB (io_Indexed_Data (devc));
devc113drivers/sound/ad1848.cad_write (ad1848_info * devc, int reg, int data)
devc118drivers/sound/ad1848.cOUTB ((unsigned char) (reg & 0xff) | devc->MCE_bit, io_Index_Addr (devc));
devc119drivers/sound/ad1848.cOUTB ((unsigned char) (data & 0xff), io_Indexed_Data (devc));
devc125drivers/sound/ad1848.cad_set_MCE (ad1848_info * devc, int state)
devc131drivers/sound/ad1848.cdevc->MCE_bit = 0x40;
devc133drivers/sound/ad1848.cdevc->MCE_bit = 0x00;
devc134drivers/sound/ad1848.cOUTB (devc->MCE_bit, io_Index_Addr (devc));
devc139drivers/sound/ad1848.cwait_for_calibration (ad1848_info * devc)
devc151drivers/sound/ad1848.cwhile (timeout > 0 && INB (devc->base) == 0x80)
devc153drivers/sound/ad1848.cif (INB (devc->base) == 0x80)
devc157drivers/sound/ad1848.cwhile (timeout > 0 && !(ad_read (devc, 11) & 0x20))
devc159drivers/sound/ad1848.cif (!(ad_read (devc, 11) & 0x20))
devc163drivers/sound/ad1848.cwhile (timeout > 0 && ad_read (devc, 11) & 0x20)
devc165drivers/sound/ad1848.cif (ad_read (devc, 11) & 0x20)
devc193drivers/sound/ad1848.cad1848_info    *devc = NULL;
devc201drivers/sound/ad1848.cdevc = (ad1848_info *) audio_devs[dev]->devc;
devc204drivers/sound/ad1848.cif (devc->opened)
devc211drivers/sound/ad1848.cif (devc->irq)    /* Not managed by another driver */
devc212drivers/sound/ad1848.cif ((err = snd_set_irq_handler (devc->irq, ad1848_interrupt)) < 0)
devc226drivers/sound/ad1848.cdevc->intr_active = 0;
devc227drivers/sound/ad1848.cdevc->opened = 1;
devc237drivers/sound/ad1848.cad1848_info    *devc = (ad1848_info *) audio_devs[dev]->devc;
devc243drivers/sound/ad1848.cdevc->intr_active = 0;
devc244drivers/sound/ad1848.cif (devc->irq)    /* Not managed by another driver */
devc245drivers/sound/ad1848.csnd_release_irq (devc->irq);
devc248drivers/sound/ad1848.cdevc->opened = 0;
devc254drivers/sound/ad1848.cset_speed (ad1848_info * devc, int arg)
devc321drivers/sound/ad1848.cdevc->speed = speed_table[selected].speed;
devc322drivers/sound/ad1848.cdevc->speed_bits = speed_table[selected].bits;
devc323drivers/sound/ad1848.creturn devc->speed;
devc327drivers/sound/ad1848.cset_channels (ad1848_info * devc, int arg)
devc330drivers/sound/ad1848.creturn devc->channels;
devc332drivers/sound/ad1848.cdevc->channels = arg;
devc337drivers/sound/ad1848.cset_format (ad1848_info * devc, int arg)
devc389drivers/sound/ad1848.cif (!(arg & ad_format_mask[devc->mode]))
devc392drivers/sound/ad1848.cdevc->audio_format = arg;
devc397drivers/sound/ad1848.cif ((devc->format_bits = format2bits[i].bits) == 0)
devc398drivers/sound/ad1848.creturn devc->audio_format = AFMT_U8;  /* Was not supported */
devc404drivers/sound/ad1848.cdevc->format_bits = 0;
devc405drivers/sound/ad1848.creturn devc->audio_format = AFMT_U8;
devc411drivers/sound/ad1848.cad1848_info    *devc = (ad1848_info *) audio_devs[dev]->devc;
devc417drivers/sound/ad1848.creturn set_speed (devc, arg);
devc418drivers/sound/ad1848.creturn IOCTL_OUT (arg, set_speed (devc, IOCTL_IN (arg)));
devc422drivers/sound/ad1848.creturn devc->speed;
devc423drivers/sound/ad1848.creturn IOCTL_OUT (arg, devc->speed);
devc427drivers/sound/ad1848.creturn set_channels (devc, arg + 1) - 1;
devc428drivers/sound/ad1848.creturn IOCTL_OUT (arg, set_channels (devc, IOCTL_IN (arg) + 1) - 1);
devc432drivers/sound/ad1848.creturn set_channels (devc, arg);
devc433drivers/sound/ad1848.creturn IOCTL_OUT (arg, set_channels (devc, IOCTL_IN (arg)));
devc437drivers/sound/ad1848.creturn devc->channels;
devc438drivers/sound/ad1848.creturn IOCTL_OUT (arg, devc->channels);
devc442drivers/sound/ad1848.creturn set_format (devc, arg);
devc443drivers/sound/ad1848.creturn IOCTL_OUT (arg, set_format (devc, IOCTL_IN (arg)));
devc447drivers/sound/ad1848.creturn devc->audio_format;
devc448drivers/sound/ad1848.creturn IOCTL_OUT (arg, devc->audio_format);
devc459drivers/sound/ad1848.cad1848_info    *devc = (ad1848_info *) audio_devs[dev]->devc;
devc463drivers/sound/ad1848.cif (devc->audio_format == AFMT_IMA_ADPCM)
devc469drivers/sound/ad1848.cif (devc->audio_format & (AFMT_S16_LE | AFMT_S16_BE))  /* 16 bit data */
devc472drivers/sound/ad1848.cif (devc->channels > 1)
devc478drivers/sound/ad1848.ccnt == devc->xfer_count)
devc480drivers/sound/ad1848.cdevc->irq_mode = IMODE_OUTPUT;
devc481drivers/sound/ad1848.cdevc->intr_active = 1;
devc494drivers/sound/ad1848.cad_set_MCE (devc, 1);
devc496drivers/sound/ad1848.cad_write (devc, 15, (unsigned char) (cnt & 0xff));
devc497drivers/sound/ad1848.cad_write (devc, 14, (unsigned char) ((cnt >> 8) & 0xff));
devc500drivers/sound/ad1848.cad_write (devc, 9, 0x0d);  /*
devc505drivers/sound/ad1848.cad_set_MCE (devc, 0);    /*
devc509drivers/sound/ad1848.cwait_for_calibration (devc);
devc511drivers/sound/ad1848.cdevc->xfer_count = cnt;
devc512drivers/sound/ad1848.cdevc->irq_mode = IMODE_OUTPUT;
devc513drivers/sound/ad1848.cdevc->intr_active = 1;
devc521drivers/sound/ad1848.cad1848_info    *devc = (ad1848_info *) audio_devs[dev]->devc;
devc526drivers/sound/ad1848.cif (devc->audio_format == AFMT_IMA_ADPCM)
devc532drivers/sound/ad1848.cif (devc->audio_format & (AFMT_S16_LE | AFMT_S16_BE))  /* 16 bit data */
devc535drivers/sound/ad1848.cif (devc->channels > 1)
devc541drivers/sound/ad1848.ccnt == devc->xfer_count)
devc543drivers/sound/ad1848.cdevc->irq_mode = IMODE_INPUT;
devc544drivers/sound/ad1848.cdevc->intr_active = 1;
devc557drivers/sound/ad1848.cad_set_MCE (devc, 1);
devc559drivers/sound/ad1848.cad_write (devc, count_reg + 1, (unsigned char) (cnt & 0xff));
devc560drivers/sound/ad1848.cad_write (devc, count_reg, (unsigned char) ((cnt >> 8) & 0xff));
devc562drivers/sound/ad1848.cad_write (devc, 15, (unsigned char) (cnt & 0xff));
devc563drivers/sound/ad1848.cad_write (devc, 14, (unsigned char) ((cnt >> 8) & 0xff));
devc564drivers/sound/ad1848.cif (devc->mode == 2)
devc566drivers/sound/ad1848.cad_write (devc, 31, (unsigned char) (cnt & 0xff));
devc567drivers/sound/ad1848.cad_write (devc, 32, (unsigned char) ((cnt >> 8) & 0xff));
devc571drivers/sound/ad1848.cad_write (devc, 9, 0x0e);  /*
devc576drivers/sound/ad1848.cad_set_MCE (devc, 0);    /*
devc580drivers/sound/ad1848.cwait_for_calibration (devc);
devc582drivers/sound/ad1848.cdevc->xfer_count = cnt;
devc583drivers/sound/ad1848.cdevc->irq_mode = IMODE_INPUT;
devc584drivers/sound/ad1848.cdevc->intr_active = 1;
devc594drivers/sound/ad1848.cad1848_info    *devc = (ad1848_info *) audio_devs[dev]->devc;
devc597drivers/sound/ad1848.cad_set_MCE (devc, 1);    /* Enables changes to the format select reg */
devc598drivers/sound/ad1848.cfs = devc->speed_bits | (devc->format_bits << 5);
devc600drivers/sound/ad1848.cif (devc->channels > 1)
devc603drivers/sound/ad1848.cad_write (devc, 8, fs);
devc608drivers/sound/ad1848.cwhile (timeout > 0 && INB (devc->base) == 0x80)
devc611drivers/sound/ad1848.cad_set_MCE (devc, 0);    /*
devc615drivers/sound/ad1848.cwait_for_calibration (devc);
devc621drivers/sound/ad1848.cif (devc->mode == 2)
devc623drivers/sound/ad1848.cad_set_MCE (devc, 1);
devc624drivers/sound/ad1848.cad_write (devc, 28, fs);
devc630drivers/sound/ad1848.cwhile (timeout > 0 && INB (devc->base) == 0x80)
devc633drivers/sound/ad1848.cad_set_MCE (devc, 0);  /*
devc637drivers/sound/ad1848.cwait_for_calibration (devc);
devc640drivers/sound/ad1848.cdevc->xfer_count = 0;
devc653drivers/sound/ad1848.cad1848_info    *devc = (ad1848_info *) audio_devs[dev]->devc;
devc655drivers/sound/ad1848.cad_write (devc, 9, 0);  /* Clear the PEN and CEN bits (among others) */
devc656drivers/sound/ad1848.cOUTB (0, io_Status (devc));  /* Clear interrupt status */
devc667drivers/sound/ad1848.cad1848_info    *devc = &dev_info[nr_ad1848_devs];
devc673drivers/sound/ad1848.cdevc->base = io_base;
devc674drivers/sound/ad1848.cdevc->MCE_bit = 0x40;
devc675drivers/sound/ad1848.cdevc->irq = 0;
devc676drivers/sound/ad1848.cdevc->dma_capture = 0;
devc677drivers/sound/ad1848.cdevc->dma_playback = 0;
devc678drivers/sound/ad1848.cdevc->opened = 0;
devc679drivers/sound/ad1848.cdevc->chip_name = "AD1848";
devc680drivers/sound/ad1848.cdevc->mode = 1;    /* MODE1 = original AD1848 */
devc692drivers/sound/ad1848.cif ((INB (devc->base) & 0x80) != 0x00)  /* Not a AD1884 */
devc704drivers/sound/ad1848.cad_write (devc, 0, 0xaa);
devc705drivers/sound/ad1848.cad_write (devc, 1, 0x45);  /* 0x55 with bit 0x10 clear */
devc707drivers/sound/ad1848.cif ((tmp1 = ad_read (devc, 0)) != 0xaa || (tmp2 = ad_read (devc, 1)) != 0x45)
devc713drivers/sound/ad1848.cad_write (devc, 0, 0x45);
devc714drivers/sound/ad1848.cad_write (devc, 1, 0xaa);
devc716drivers/sound/ad1848.cif ((tmp1 = ad_read (devc, 0)) != 0x45 || (tmp2 = ad_read (devc, 1)) != 0xaa)
devc727drivers/sound/ad1848.ctmp = ad_read (devc, 12);
devc728drivers/sound/ad1848.cad_write (devc, 12, (~tmp) & 0x0f);
devc730drivers/sound/ad1848.cif ((tmp & 0x0f) != ((tmp1 = ad_read (devc, 12)) & 0x0f))
devc748drivers/sound/ad1848.cad_write (devc, 12, 0);  /* Mode2=disabled */
devc751drivers/sound/ad1848.cif ((tmp1 = ad_read (devc, i)) != (tmp2 = ad_read (devc, i + 16)))
devc762drivers/sound/ad1848.cad_write (devc, 12, 0x40);  /* Set mode2, clear 0x80 */
devc764drivers/sound/ad1848.ctmp1 = ad_read (devc, 12);
devc766drivers/sound/ad1848.cdevc->chip_name = "CS4248";
devc775drivers/sound/ad1848.cad_write (devc, 16, 0);  /* Set I16 to known value */
devc777drivers/sound/ad1848.cad_write (devc, 0, 0x45);
devc778drivers/sound/ad1848.cif ((tmp1 = ad_read (devc, 16)) != 0x45)  /* No change -> CS4231? */
devc781drivers/sound/ad1848.cad_write (devc, 0, 0xaa);
devc782drivers/sound/ad1848.cif ((tmp1 = ad_read (devc, 16)) == 0xaa)  /* Rotten bits? */
devc792drivers/sound/ad1848.cdevc->chip_name = "CS4231";
devc793drivers/sound/ad1848.cdevc->mode = 2;
devc818drivers/sound/ad1848.cad1848_info    *devc = &dev_info[nr_ad1848_devs];
devc823drivers/sound/ad1848.cdevc->irq = (irq > 0) ? irq : 0;
devc824drivers/sound/ad1848.cdevc->dma_capture = dma_playback;
devc825drivers/sound/ad1848.cdevc->dma_playback = dma_capture;
devc826drivers/sound/ad1848.cdevc->opened = 0;
devc836drivers/sound/ad1848.cad_write (devc, i, init_values[i]);
devc838drivers/sound/ad1848.cOUTB (0, io_Status (devc));  /* Clear pending interrupts */
devc842drivers/sound/ad1848.c"%s (%s)", name, devc->chip_name);
devc859drivers/sound/ad1848.caudio_devs[my_dev]->devc = devc;
devc860drivers/sound/ad1848.caudio_devs[my_dev]->format_mask = ad_format_mask[devc->mode];
devc871drivers/sound/ad1848.cad1848_info    *devc;
devc880drivers/sound/ad1848.cdevc = (ad1848_info *) audio_devs[dev]->devc;
devc881drivers/sound/ad1848.cstatus = INB (io_Status (devc));
devc885drivers/sound/ad1848.cif (devc->opened && devc->irq_mode == IMODE_OUTPUT)
devc890drivers/sound/ad1848.cif (devc->opened && devc->irq_mode == IMODE_INPUT)
devc894drivers/sound/ad1848.cOUTB (0, io_Status (devc));  /* Clear interrupt status */
devc117drivers/sound/dev_table.hvoid *devc;    /* Driver specific info */
devc106drivers/sound/mpu401.cstatic int      reset_mpu401 (struct mpu_config *devc);
devc107drivers/sound/mpu401.cstatic void     set_uart_mode (int dev, struct mpu_config *devc, int arg);
devc110drivers/sound/mpu401.cstatic void     timer_ext_event (struct mpu_config *devc, int event, int parm);
devc145drivers/sound/mpu401.cif (devc->opened & OPEN_READ) \
devc157drivers/sound/mpu401.cdo_midi_msg (struct mpu_config *devc, unsigned char *msg, int mlen)
devc164drivers/sound/mpu401.cSTORE (SEQ_START_NOTE (devc->synthno, msg[0] & 0x0f, msg[1], msg[2]));
devc170drivers/sound/mpu401.cSTORE (SEQ_STOP_NOTE (devc->synthno, msg[0] & 0x0f, msg[1], msg[2]));
devc174drivers/sound/mpu401.cSTORE (SEQ_KEY_PRESSURE (devc->synthno, msg[0] & 0x0f, msg[1], msg[2]));
devc187drivers/sound/mpu401.cdevc->controls[ctrl] = (msg[2] & 0x7f) << 7;
devc192drivers/sound/mpu401.cdevc->controls[ctrl] =
devc193drivers/sound/mpu401.c(devc->controls[ctrl] & ~0x7f) | (msg[2] & 0x7f);
devc195drivers/sound/mpu401.cSTORE (SEQ_CONTROL (devc->synthno, msg[0] & 0x0f,
devc196drivers/sound/mpu401.cmsg[1], devc->controls[ctrl]));
devc199drivers/sound/mpu401.cSTORE (SEQ_CONTROL (devc->synthno, msg[0] & 0x0f, msg[1], msg[2]));
devc203drivers/sound/mpu401.cSTORE (SEQ_SET_PATCH (devc->synthno, msg[0] & 0x0f, msg[1]));
devc207drivers/sound/mpu401.cSTORE (SEQ_CHN_PRESSURE (devc->synthno, msg[0] & 0x0f, msg[1]));
devc211drivers/sound/mpu401.cSTORE (SEQ_BENDER (devc->synthno, msg[0] & 0x0f,
devc221drivers/sound/mpu401.cmpu_input_scanner (struct mpu_config *devc, unsigned char midic)
devc223drivers/sound/mpu401.cswitch (devc->m_state)
devc237drivers/sound/mpu401.cif (devc->timer_flag)
devc261drivers/sound/mpu401.cdevc->m_state = ST_SYSMSG;
devc268drivers/sound/mpu401.cdevc->m_state = ST_TIMED;
devc279drivers/sound/mpu401.cdevc->m_state = ST_DATABYTE;
devc283drivers/sound/mpu401.cmsg = (devc->last_status & 0xf0) >> 4;
devc285drivers/sound/mpu401.cdevc->m_left = len_tab[msg] - 1;
devc287drivers/sound/mpu401.cdevc->m_ptr = 2;
devc288drivers/sound/mpu401.cdevc->m_buf[0] = devc->last_status;
devc289drivers/sound/mpu401.cdevc->m_buf[1] = midic;
devc291drivers/sound/mpu401.cif (devc->m_left <= 0)
devc293drivers/sound/mpu401.cdevc->m_state = ST_INIT;
devc294drivers/sound/mpu401.cdo_midi_msg (devc, devc->m_buf, devc->m_ptr);
devc295drivers/sound/mpu401.cdevc->m_ptr = 0;
devc300drivers/sound/mpu401.cdevc->m_state = ST_INIT;
devc322drivers/sound/mpu401.cdevc->last_status = midic;
devc325drivers/sound/mpu401.cdevc->m_left = len_tab[msg];
devc327drivers/sound/mpu401.cdevc->m_ptr = 1;
devc328drivers/sound/mpu401.cdevc->m_buf[0] = midic;
devc330drivers/sound/mpu401.cif (devc->m_left <= 0)
devc332drivers/sound/mpu401.cdevc->m_state = ST_INIT;
devc333drivers/sound/mpu401.cdo_midi_msg (devc, devc->m_buf, devc->m_ptr);
devc334drivers/sound/mpu401.cdevc->m_ptr = 0;
devc345drivers/sound/mpu401.cdevc->m_state = ST_SYSEX;
devc349drivers/sound/mpu401.cdevc->m_state = ST_MTC;
devc353drivers/sound/mpu401.cdevc->m_state = ST_SONGPOS;
devc354drivers/sound/mpu401.cdevc->m_ptr = 0;
devc358drivers/sound/mpu401.cdevc->m_state = ST_SONGSEL;
devc363drivers/sound/mpu401.cdevc->m_state = ST_INIT;
devc370drivers/sound/mpu401.cdevc->m_state = ST_INIT;
devc371drivers/sound/mpu401.ctimer_ext_event (devc, TMR_CLOCK, 0);
devc375drivers/sound/mpu401.cdevc->m_state = ST_INIT;
devc376drivers/sound/mpu401.ctimer_ext_event (devc, TMR_START, 0);
devc380drivers/sound/mpu401.cdevc->m_state = ST_INIT;
devc381drivers/sound/mpu401.ctimer_ext_event (devc, TMR_CONTINUE, 0);
devc385drivers/sound/mpu401.cdevc->m_state = ST_INIT;
devc386drivers/sound/mpu401.ctimer_ext_event (devc, TMR_STOP, 0);
devc391drivers/sound/mpu401.cdevc->m_state = ST_INIT;
devc396drivers/sound/mpu401.cdevc->m_state = ST_INIT;
devc401drivers/sound/mpu401.cdevc->m_state = ST_INIT;
devc406drivers/sound/mpu401.cdevc->m_state = ST_INIT;
devc414drivers/sound/mpu401.cdevc->m_state = ST_INIT;
devc421drivers/sound/mpu401.cBUFTEST (devc);
devc422drivers/sound/mpu401.cdevc->m_buf[devc->m_ptr++] = midic;
devc423drivers/sound/mpu401.cif (devc->m_ptr == 2)
devc425drivers/sound/mpu401.cdevc->m_state = ST_INIT;
devc426drivers/sound/mpu401.cdevc->m_ptr = 0;
devc427drivers/sound/mpu401.ctimer_ext_event (devc, TMR_SPP,
devc428drivers/sound/mpu401.c((devc->m_buf[1] & 0x7f) << 7) |
devc429drivers/sound/mpu401.c(devc->m_buf[0] & 0x7f));
devc434drivers/sound/mpu401.cBUFTEST (devc);
devc435drivers/sound/mpu401.cdevc->m_buf[devc->m_ptr++] = midic;
devc436drivers/sound/mpu401.cif ((--devc->m_left) <= 0)
devc438drivers/sound/mpu401.cdevc->m_state = ST_INIT;
devc439drivers/sound/mpu401.cdo_midi_msg (devc, devc->m_buf, devc->m_ptr);
devc440drivers/sound/mpu401.cdevc->m_ptr = 0;
devc445drivers/sound/mpu401.cprintk ("Bad state %d ", devc->m_state);
devc446drivers/sound/mpu401.cdevc->m_state = ST_INIT;
devc453drivers/sound/mpu401.cmpu401_input_loop (struct mpu_config *devc)
devc459drivers/sound/mpu401.cbusy = devc->m_busy;
devc460drivers/sound/mpu401.cdevc->m_busy = 1;
devc466drivers/sound/mpu401.cwhile (input_avail (devc->base))
devc468drivers/sound/mpu401.cunsigned char   c = read_data (devc->base);
devc470drivers/sound/mpu401.cif (devc->mode == MODE_SYNTH)
devc472drivers/sound/mpu401.cmpu_input_scanner (devc, c);
devc474drivers/sound/mpu401.celse if (devc->opened & OPEN_READ && devc->inputintr != NULL)
devc475drivers/sound/mpu401.cdevc->inputintr (devc->devno, c);
devc478drivers/sound/mpu401.cdevc->m_busy = 0;
devc484drivers/sound/mpu401.cstruct mpu_config *devc;
devc504drivers/sound/mpu401.cdevc = &dev_conf[dev];
devc506drivers/sound/mpu401.cif (devc->base != 0 && (devc->opened & OPEN_READ || devc->mode == MODE_SYNTH))
devc507drivers/sound/mpu401.cif (input_avail (devc->base))
devc508drivers/sound/mpu401.cmpu401_input_loop (devc);
devc519drivers/sound/mpu401.cstruct mpu_config *devc;
devc524drivers/sound/mpu401.cdevc = &dev_conf[dev];
devc526drivers/sound/mpu401.cif (devc->opened)
devc532drivers/sound/mpu401.cirq2dev[devc->irq] = dev;
devc533drivers/sound/mpu401.cif ((err = snd_set_irq_handler (devc->irq, mpuintr) < 0))
devc536drivers/sound/mpu401.cset_uart_mode (dev, devc, 1);
devc537drivers/sound/mpu401.cdevc->mode = MODE_MIDI;
devc538drivers/sound/mpu401.cdevc->synthno = 0;
devc540drivers/sound/mpu401.cmpu401_input_loop (devc);
devc542drivers/sound/mpu401.cdevc->inputintr = input;
devc543drivers/sound/mpu401.cdevc->opened = mode;
devc551drivers/sound/mpu401.cstruct mpu_config *devc;
devc553drivers/sound/mpu401.cdevc = &dev_conf[dev];
devc555drivers/sound/mpu401.cif (devc->uart_mode)
devc556drivers/sound/mpu401.creset_mpu401 (devc);  /*
devc559drivers/sound/mpu401.cdevc->mode = 0;
devc561drivers/sound/mpu401.csnd_release_irq (devc->irq);
devc562drivers/sound/mpu401.cdevc->inputintr = NULL;
devc563drivers/sound/mpu401.cirq2dev[devc->irq] = -1;
devc564drivers/sound/mpu401.cdevc->opened = 0;
devc573drivers/sound/mpu401.cstruct mpu_config *devc;
devc575drivers/sound/mpu401.cdevc = &dev_conf[dev];
devc582drivers/sound/mpu401.cif (input_avail (devc->base))
devc583drivers/sound/mpu401.cmpu401_input_loop (devc);
devc590drivers/sound/mpu401.cfor (timeout = 30000; timeout > 0 && !output_ready (devc->base); timeout--);  /*
devc595drivers/sound/mpu401.cif (!output_ready (devc->base))
devc602drivers/sound/mpu401.cwrite_data (devc->base, midi_byte);
devc613drivers/sound/mpu401.cstruct mpu_config *devc;
devc615drivers/sound/mpu401.cdevc = &dev_conf[dev];
devc617drivers/sound/mpu401.cif (devc->uart_mode)    /*
devc628drivers/sound/mpu401.cif (input_avail (devc->base))
devc629drivers/sound/mpu401.cmpu401_input_loop (devc);
devc636drivers/sound/mpu401.cfor (timeout = 500000; timeout > 0 && !output_ready (devc->base); timeout--);
devc639drivers/sound/mpu401.cif (!output_ready (devc->base))
devc646drivers/sound/mpu401.cwrite_command (devc->base, cmd->cmd);
devc649drivers/sound/mpu401.cif (input_avail (devc->base))
devc650drivers/sound/mpu401.cif (mpu_input_scanner (devc, read_data (devc->base)) == MPU_ACK)
devc663drivers/sound/mpu401.cfor (timeout = 30000; timeout > 0 && !output_ready (devc->base); timeout--);
devc681drivers/sound/mpu401.cif (input_avail (devc->base))
devc683drivers/sound/mpu401.ccmd->data[i] = read_data (devc->base);
devc720drivers/sound/mpu401.cstruct mpu_config *devc = &dev_conf[dev];
devc722drivers/sound/mpu401.cif (devc->uart_mode)
devc764drivers/sound/mpu401.cstruct mpu_config *devc;
devc766drivers/sound/mpu401.cdevc = &dev_conf[dev];
devc776drivers/sound/mpu401.cif (devc->version == 0)
devc781drivers/sound/mpu401.cset_uart_mode (dev, devc, !IOCTL_IN (arg));
devc823drivers/sound/mpu401.cstruct mpu_config *devc;
devc830drivers/sound/mpu401.cdevc = &dev_conf[midi_dev];
devc855drivers/sound/mpu401.cstruct mpu_config *devc;
devc862drivers/sound/mpu401.cdevc = &dev_conf[midi_dev];
devc864drivers/sound/mpu401.cif (devc->opened)
devc870drivers/sound/mpu401.cdevc->opened = mode;
devc871drivers/sound/mpu401.cdevc->mode = MODE_SYNTH;
devc872drivers/sound/mpu401.cdevc->synthno = dev;
devc874drivers/sound/mpu401.cdevc->inputintr = NULL;
devc875drivers/sound/mpu401.cirq2dev[devc->irq] = midi_dev;
devc876drivers/sound/mpu401.cif ((err = snd_set_irq_handler (devc->irq, mpuintr) < 0))
devc879drivers/sound/mpu401.creset_mpu401 (devc);
devc894drivers/sound/mpu401.cstruct mpu_config *devc;
devc898drivers/sound/mpu401.cdevc = &dev_conf[midi_dev];
devc902drivers/sound/mpu401.cdevc->opened = 0;
devc903drivers/sound/mpu401.cdevc->mode = 0;
devc904drivers/sound/mpu401.csnd_release_irq (devc->irq);
devc905drivers/sound/mpu401.cdevc->inputintr = NULL;
devc906drivers/sound/mpu401.cirq2dev[devc->irq] = -1;
devc957drivers/sound/mpu401.cmpu401_chk_version (struct mpu_config *devc)
devc961drivers/sound/mpu401.cdevc->version = devc->revision = 0;
devc965drivers/sound/mpu401.cdevc->version = tmp;
devc969drivers/sound/mpu401.cdevc->revision = tmp;
devc979drivers/sound/mpu401.cstruct mpu_config *devc;
devc990drivers/sound/mpu401.cdevc = &dev_conf[num_midis];
devc992drivers/sound/mpu401.cdevc->base = hw_config->io_base;
devc993drivers/sound/mpu401.cdevc->irq = hw_config->irq;
devc994drivers/sound/mpu401.cdevc->opened = 0;
devc995drivers/sound/mpu401.cdevc->uart_mode = 0;
devc996drivers/sound/mpu401.cdevc->initialized = 0;
devc997drivers/sound/mpu401.cdevc->version = 0;
devc998drivers/sound/mpu401.cdevc->revision = 0;
devc999drivers/sound/mpu401.cdevc->capabilities = 0;
devc1000drivers/sound/mpu401.cdevc->timer_flag = 0;
devc1001drivers/sound/mpu401.cdevc->m_busy = 0;
devc1002drivers/sound/mpu401.cdevc->m_state = ST_INIT;
devc1005drivers/sound/mpu401.cdevc->controls[i] = 0x2000;
devc1007drivers/sound/mpu401.cif (!reset_mpu401 (devc))
devc1011drivers/sound/mpu401.cmpu401_chk_version (devc);
devc1012drivers/sound/mpu401.cif (devc->version == 0)
devc1013drivers/sound/mpu401.cmpu401_chk_version (devc);
devc1016drivers/sound/mpu401.cif (devc->version == 0)
devc1024drivers/sound/mpu401.cdevc->capabilities |= MPU_CAP_INTLG;  /* Supports intelligent mode */
devc1043drivers/sound/mpu401.cif (devc->version == 0x20 && devc->revision >= 0x07)  /* MusicQuest interface */
devc1045drivers/sound/mpu401.cint             ports = (devc->revision & 0x08) ? 32 : 16;
devc1047drivers/sound/mpu401.cdevc->capabilities |= MPU_CAP_SYNC | MPU_CAP_SMPTE |
devc1050drivers/sound/mpu401.crevision_char = (devc->revision == 0x7f) ? 'M' : ' ';
devc1065drivers/sound/mpu401.crevision_char = devc->revision ? devc->revision + '@' : ' ';
devc1066drivers/sound/mpu401.cif (devc->revision > ('Z' - '@'))
devc1069drivers/sound/mpu401.cdevc->capabilities |= MPU_CAP_SYNC | MPU_CAP_FSK;
devc1072drivers/sound/mpu401.c(devc->version & 0xf0) >> 4,
devc1073drivers/sound/mpu401.cdevc->version & 0x0f,
devc1078drivers/sound/mpu401.c(devc->version & 0xf0) >> 4,
devc1079drivers/sound/mpu401.cdevc->version & 0x0f,
devc1090drivers/sound/mpu401.cmpu401_synth_operations[num_midis].midi_dev = devc->devno = num_midis;
devc1091drivers/sound/mpu401.cmpu401_synth_operations[devc->devno].info =
devc1092drivers/sound/mpu401.c&mpu_synth_info[devc->devno];
devc1094drivers/sound/mpu401.cif (devc->capabilities & MPU_CAP_INTLG)  /* Has timer */
devc1097drivers/sound/mpu401.cmidi_devs[num_midis++] = &mpu401_midi_operations[devc->devno];
devc1102drivers/sound/mpu401.creset_mpu401 (struct mpu_config *devc)
devc1115drivers/sound/mpu401.ctimeout_limit = devc->initialized ? 30000 : 100000;
devc1116drivers/sound/mpu401.cdevc->initialized = 1;
devc1121drivers/sound/mpu401.cok = output_ready (devc->base);
devc1123drivers/sound/mpu401.cwrite_command (devc->base, MPU_RESET);  /*
devc1135drivers/sound/mpu401.cif (input_avail (devc->base))
devc1136drivers/sound/mpu401.cif (read_data (devc->base) == MPU_ACK)
devc1143drivers/sound/mpu401.cdevc->m_state = ST_INIT;
devc1144drivers/sound/mpu401.cdevc->m_ptr = 0;
devc1145drivers/sound/mpu401.cdevc->m_left = 0;
devc1146drivers/sound/mpu401.cdevc->last_status = 0;
devc1147drivers/sound/mpu401.cdevc->uart_mode = 0;
devc1153drivers/sound/mpu401.cset_uart_mode (int dev, struct mpu_config *devc, int arg)
devc1156drivers/sound/mpu401.cif (!arg && devc->version == 0)
devc1159drivers/sound/mpu401.cif ((devc->uart_mode == 0) == (arg == 0))
devc1162drivers/sound/mpu401.creset_mpu401 (devc);    /* This exits the uart mode */
devc1168drivers/sound/mpu401.cprintk ("MPU%d: Can't enter UART mode\n", devc->devno);
devc1169drivers/sound/mpu401.cdevc->uart_mode = 0;
devc1173drivers/sound/mpu401.cdevc->uart_mode = arg;
devc1606drivers/sound/mpu401.ctimer_ext_event (struct mpu_config *devc, int event, int parm)
devc1608drivers/sound/mpu401.cint             midi_dev = devc->devno;
devc1610drivers/sound/mpu401.cif (!devc->timer_flag)
devc1664drivers/sound/mpu401.cstruct mpu_config *devc;
devc1667drivers/sound/mpu401.cdevc = &dev_conf[midi_dev];
devc1687drivers/sound/mpu401.cif (devc->version < 0x20)  /* Original MPU-401 */
devc1699drivers/sound/mpu401.cif (devc->revision)
devc1702drivers/sound/mpu401.cif (devc->revision & 0x02)
devc1706drivers/sound/mpu401.cif (devc->revision & 0x04)
devc1710drivers/sound/mpu401.cif (devc->revision & 0x40)