Lines Matching refs:midiq
69 struct midi_queue *midiq;
80 midiq = card_mpuout->firstmidiq;
81 midihdr = (struct midi_hdr *) midiq->refdata;
83 card_mpuout->firstmidiq = midiq->next;
87 kfree(midiq);
109 struct midi_queue *midiq;
120 if ((midiq = kmalloc(sizeof(struct midi_queue), GFP_KERNEL)) == NULL) {
125 midiq->next = NULL;
126 midiq->qtype = 1;
127 midiq->length = midihdr->bufferlength;
128 midiq->sizeLeft = midihdr->bufferlength;
129 midiq->midibyte = midihdr->data;
131 midiq->refdata = (unsigned long) midihdr;
136 card_mpuout->firstmidiq = midiq;
137 card_mpuout->lastmidiq = midiq;
139 (card_mpuout->lastmidiq)->next = midiq;
140 card_mpuout->lastmidiq = midiq;
157 struct midi_queue *midiq;
164 midiq = card_mpuout->firstmidiq;
166 while (cByteSent < 4 && midiq->sizeLeft) {
167 if (emu10k1_mpu_write_data(card, *midiq->midibyte) < 0) {
171 --midiq->sizeLeft;
172 ++midiq->midibyte;
176 if (midiq->sizeLeft == 0) {
178 doneq = midiq;
179 card_mpuout->firstmidiq = midiq->next;
191 midiq = doneq;
192 doneq = midiq->next;
194 if (midiq->qtype) {
196 callback_msg[1] = midiq->length;
197 callback_msg[2] = midiq->refdata;
200 } else if (((u8) midiq->refdata) < 0xF0 && ((u8) midiq->refdata) > 0x7F)
201 card_mpuout->laststatus = (u8) midiq->refdata;
203 kfree(midiq);