Home
last modified time | relevance | path

Searched refs:midihdr (Results 1 – 3 of 3) sorted by relevance

/linux-2.4.37.9/drivers/sound/emu10k1/
Dmidi.c52 static void init_midi_hdr(struct midi_hdr *midihdr) in init_midi_hdr() argument
54 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() local
63 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 …]
Dcardmo.c70 struct midi_hdr *midihdr; in emu10k1_mpuout_close() local
81 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() argument
117 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 …]
Dcardmi.c128 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()
[all …]