Lines Matching refs:event_rec
137 void seq_copy_to_input(unsigned char *event_rec, int len) in seq_copy_to_input() argument
155 memcpy(&iqueue[iqtail * IEV_SZ], event_rec, len); in seq_copy_to_input()
165 unsigned char event_rec[4]; in sequencer_midi_input() local
178 event_rec[0] = SEQ_MIDIPUTC; in sequencer_midi_input()
179 event_rec[1] = data; in sequencer_midi_input()
180 event_rec[2] = dev; in sequencer_midi_input()
181 event_rec[3] = 0; in sequencer_midi_input()
183 seq_copy_to_input(event_rec, 4); in sequencer_midi_input()
186 void seq_input_event(unsigned char *event_rec, int len) in seq_input_event() argument
208 seq_copy_to_input(event_rec, len); in seq_input_event()
213 unsigned char event_rec[EV_SZ], ev_code; in sequencer_write() local
229 copy_from_user((char *) event_rec, &(buf)[p], 4); in sequencer_write()
230 ev_code = event_rec[0]; in sequencer_write()
236 dev = *(unsigned short *) &event_rec[2]; in sequencer_write()
243 fmt = (*(short *) &event_rec[0]) & 0xffff; in sequencer_write()
265 copy_from_user((char *) &event_rec[4], &(buf)[p + 4], 4); in sequencer_write()
277 if (event_rec[0] != SEQ_MIDIPUTC) in sequencer_write()
281 if (event_rec[0] == SEQ_MIDIPUTC) in sequencer_write()
283 if (!midi_opened[event_rec[2]]) in sequencer_write()
286 int dev = event_rec[2]; in sequencer_write()
305 if (!seq_queue(event_rec, (file->f_flags & (O_NONBLOCK) ? 1 : 0))) in sequencer_write()
442 static void seq_chn_voice_event(unsigned char *event_rec) in seq_chn_voice_event() argument
444 #define dev event_rec[1] in seq_chn_voice_event()
445 #define cmd event_rec[2] in seq_chn_voice_event()
446 #define chn event_rec[3] in seq_chn_voice_event()
447 #define note event_rec[4] in seq_chn_voice_event()
448 #define parm event_rec[5] in seq_chn_voice_event()
524 static void seq_chn_common_event(unsigned char *event_rec) in seq_chn_common_event() argument
526 unsigned char dev = event_rec[1]; in seq_chn_common_event()
527 unsigned char cmd = event_rec[2]; in seq_chn_common_event()
528 unsigned char chn = event_rec[3]; in seq_chn_common_event()
529 unsigned char p1 = event_rec[4]; in seq_chn_common_event()
532 unsigned short w14 = *(short *) &event_rec[6]; in seq_chn_common_event()
621 static int seq_timing_event(unsigned char *event_rec) in seq_timing_event() argument
623 unsigned char cmd = event_rec[1]; in seq_timing_event()
624 unsigned int parm = *(int *) &event_rec[4]; in seq_timing_event()
630 if ((ret = tmr->event(tmr_no, event_rec)) == TIMER_ARMED) in seq_timing_event()
679 seq_copy_to_input(event_rec, 8); in seq_timing_event()
693 static void seq_local_event(unsigned char *event_rec) in seq_local_event() argument
695 unsigned char cmd = event_rec[1]; in seq_local_event()
696 unsigned int parm = *((unsigned int *) &event_rec[4]); in seq_local_event()
708 static void seq_sysex_message(unsigned char *event_rec) in seq_sysex_message() argument
710 int dev = event_rec[1]; in seq_sysex_message()
712 unsigned char *buf = &event_rec[2]; in seq_sysex_message()
1342 struct seq_event_rec event_rec; in sequencer_ioctl() local
1495 if (copy_from_user(&event_rec, arg, sizeof(event_rec))) in sequencer_ioctl()
1499 play_event(event_rec.arr); in sequencer_ioctl()