Lines Matching refs:dir

336 ump_to_endpoint(struct snd_ump_endpoint *ump, int dir)  in ump_to_endpoint()  argument
340 return rmidi->eps[dir]; in ump_to_endpoint()
344 static int snd_usb_midi_v2_open(struct snd_ump_endpoint *ump, int dir) in snd_usb_midi_v2_open() argument
346 struct snd_usb_midi2_endpoint *ep = ump_to_endpoint(ump, dir); in snd_usb_midi_v2_open()
364 static void snd_usb_midi_v2_close(struct snd_ump_endpoint *ump, int dir) in snd_usb_midi_v2_close() argument
366 struct snd_usb_midi2_endpoint *ep = ump_to_endpoint(ump, dir); in snd_usb_midi_v2_close()
376 static void snd_usb_midi_v2_trigger(struct snd_ump_endpoint *ump, int dir, in snd_usb_midi_v2_trigger() argument
379 struct snd_usb_midi2_endpoint *ep = ump_to_endpoint(ump, dir); in snd_usb_midi_v2_trigger()
387 static void snd_usb_midi_v2_drain(struct snd_ump_endpoint *ump, int dir) in snd_usb_midi_v2_drain() argument
389 struct snd_usb_midi2_endpoint *ep = ump_to_endpoint(ump, dir); in snd_usb_midi_v2_drain()
437 int endpoint, dir; in create_midi2_endpoint() local
451 dir = (endpoint & USB_DIR_IN) ? STR_IN : STR_OUT; in create_midi2_endpoint()
454 ep->direction = dir; in create_midi2_endpoint()
460 if (dir == STR_IN) { in create_midi2_endpoint()
823 static int create_gtb_block(struct snd_usb_midi2_ump *rmidi, int dir, int blk) in create_gtb_block() argument
886 int i, blk, err, dir; in create_blocks_from_gtb() local
897 for (dir = 0; dir < 2; dir++) { in create_blocks_from_gtb()
898 if (!rmidi->eps[dir]) in create_blocks_from_gtb()
900 for (i = 0; i < rmidi->eps[dir]->ms_ep->bNumGrpTrmBlock; i++) { in create_blocks_from_gtb()
901 blk = rmidi->eps[dir]->ms_ep->baAssoGrpTrmBlkID[i]; in create_blocks_from_gtb()
902 err = create_gtb_block(rmidi, dir, blk); in create_blocks_from_gtb()