Searched refs:midihdr (Results 1 – 3 of 3) sorted by relevance
52 static void init_midi_hdr(struct midi_hdr *midihdr) in init_midi_hdr() argument54 midihdr->bufferlength = MIDIIN_BUFLEN; in init_midi_hdr()55 midihdr->bytesrecorded = 0; in init_midi_hdr()56 midihdr->flags = 0; in init_midi_hdr()61 struct midi_hdr *midihdr; in midiin_add_buffer() local63 if ((midihdr = (struct midi_hdr *) kmalloc(sizeof(struct midi_hdr), GFP_KERNEL)) == NULL) { in midiin_add_buffer()68 init_midi_hdr(midihdr); in midiin_add_buffer()70 if ((midihdr->data = (u8 *) kmalloc(MIDIIN_BUFLEN, GFP_KERNEL)) == NULL) { in midiin_add_buffer()72 kfree(midihdr); in midiin_add_buffer()76 if (emu10k1_mpuin_add_buffer(midi_dev->card->mpuin, midihdr) < 0) { in midiin_add_buffer()[all …]
70 struct midi_hdr *midihdr; in emu10k1_mpuout_close() local81 midihdr = (struct midi_hdr *) midiq->refdata; in emu10k1_mpuout_close()85 kfree(midihdr->data); in emu10k1_mpuout_close()86 kfree(midihdr); in emu10k1_mpuout_close()106 int emu10k1_mpuout_add_buffer(struct emu10k1_card *card, struct midi_hdr *midihdr) in emu10k1_mpuout_add_buffer() argument117 midihdr->flags |= MIDIBUF_INQUEUE; in emu10k1_mpuout_add_buffer()118 midihdr->flags &= ~MIDIBUF_DONE; in emu10k1_mpuout_add_buffer()127 midiq->length = midihdr->bufferlength; in emu10k1_mpuout_add_buffer()128 midiq->sizeLeft = midihdr->bufferlength; in emu10k1_mpuout_add_buffer()129 midiq->midibyte = midihdr->data; in emu10k1_mpuout_add_buffer()[all …]
128 int emu10k1_mpuin_add_buffer(struct emu10k1_mpuin *card_mpuin, struct midi_hdr *midihdr) in emu10k1_mpuin_add_buffer() argument136 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() local296 midihdr = (struct midi_hdr *) midiq->refdata; in emu10k1_mpuin_callback()300 midihdr->flags &= ~MIDIBUF_INQUEUE; in emu10k1_mpuin_callback()[all …]