Lines Matching refs:midihdr
128 int emu10k1_mpuin_add_buffer(struct emu10k1_mpuin *card_mpuin, struct midi_hdr *midihdr) in emu10k1_mpuin_add_buffer() argument
136 midihdr->flags |= MIDIBUF_INQUEUE; /* set */ in emu10k1_mpuin_add_buffer()
137 midihdr->flags &= ~MIDIBUF_DONE; /* clear */ in emu10k1_mpuin_add_buffer()
146 midiq->length = midihdr->bufferlength; in emu10k1_mpuin_add_buffer()
147 midiq->sizeLeft = midihdr->bufferlength; in emu10k1_mpuin_add_buffer()
148 midiq->midibyte = midihdr->data; in emu10k1_mpuin_add_buffer()
149 midiq->refdata = (unsigned long) midihdr; in emu10k1_mpuin_add_buffer()
277 struct midi_hdr *midihdr; in emu10k1_mpuin_callback() local
296 midihdr = (struct midi_hdr *) midiq->refdata; in emu10k1_mpuin_callback()
300 midihdr->flags &= ~MIDIBUF_INQUEUE; in emu10k1_mpuin_callback()
301 midihdr->flags |= MIDIBUF_DONE; in emu10k1_mpuin_callback()
303 midihdr->bytesrecorded = midiq->length - midiq->sizeLeft; in emu10k1_mpuin_callback()