Lines Matching refs:endpoints

111 	} endpoints[MIDI_MAX_ENDPOINTS];  member
351 struct snd_usb_midi_in_endpoint *in = umidi->endpoints[i].in; in snd_usbmidi_error_timer()
361 if (umidi->endpoints[i].out) in snd_usbmidi_error_timer()
362 snd_usbmidi_do_output(umidi->endpoints[i].out); in snd_usbmidi_error_timer()
1130 if (umidi->endpoints[i].out) in snd_usbmidi_output_open()
1132 if (umidi->endpoints[i].out->ports[j].substream == substream) { in snd_usbmidi_output_open()
1133 port = &umidi->endpoints[i].out->ports[j]; in snd_usbmidi_output_open()
1458 struct snd_usb_midi_endpoint *ep = &umidi->endpoints[i]; in snd_usbmidi_free()
1491 struct snd_usb_midi_endpoint *ep = &umidi->endpoints[i]; in snd_usbmidi_disconnect()
1855 struct snd_usb_midi_endpoint_info *endpoints) in snd_usbmidi_create_endpoints() argument
1861 if (endpoints[i].out_cables) { in snd_usbmidi_create_endpoints()
1863 &endpoints[i], in snd_usbmidi_create_endpoints()
1864 &umidi->endpoints[i]); in snd_usbmidi_create_endpoints()
1868 if (endpoints[i].in_cables) { in snd_usbmidi_create_endpoints()
1870 &endpoints[i], in snd_usbmidi_create_endpoints()
1871 &umidi->endpoints[i]); in snd_usbmidi_create_endpoints()
1877 if (endpoints[i].out_cables & (1 << j)) { in snd_usbmidi_create_endpoints()
1881 endpoints[i].assoc_out_jacks[j], in snd_usbmidi_create_endpoints()
1882 &umidi->endpoints[i].out->ports[j].substream); in snd_usbmidi_create_endpoints()
1885 if (endpoints[i].in_cables & (1 << j)) { in snd_usbmidi_create_endpoints()
1889 endpoints[i].assoc_in_jacks[j], in snd_usbmidi_create_endpoints()
1890 &umidi->endpoints[i].in->ports[j].substream); in snd_usbmidi_create_endpoints()
1926 struct snd_usb_midi_endpoint_info *endpoints) in snd_usbmidi_get_ms_info() argument
1969 if (endpoints[epidx].out_ep) { in snd_usbmidi_get_ms_info()
1976 endpoints[epidx].out_ep = usb_endpoint_num(ep); in snd_usbmidi_get_ms_info()
1978 endpoints[epidx].out_interval = ep->bInterval; in snd_usbmidi_get_ms_info()
1985 endpoints[epidx].out_interval = 1; in snd_usbmidi_get_ms_info()
1986 endpoints[epidx].out_cables = in snd_usbmidi_get_ms_info()
1989 endpoints[epidx].assoc_out_jacks[j] = ms_ep->baAssocJackID[j]; in snd_usbmidi_get_ms_info()
1990 for (; j < ARRAY_SIZE(endpoints[epidx].assoc_out_jacks); ++j) in snd_usbmidi_get_ms_info()
1991 endpoints[epidx].assoc_out_jacks[j] = -1; in snd_usbmidi_get_ms_info()
1995 if (endpoints[epidx].in_ep) { in snd_usbmidi_get_ms_info()
2002 endpoints[epidx].in_ep = usb_endpoint_num(ep); in snd_usbmidi_get_ms_info()
2004 endpoints[epidx].in_interval = ep->bInterval; in snd_usbmidi_get_ms_info()
2006 endpoints[epidx].in_interval = 1; in snd_usbmidi_get_ms_info()
2007 endpoints[epidx].in_cables = in snd_usbmidi_get_ms_info()
2010 endpoints[epidx].assoc_in_jacks[j] = ms_ep->baAssocJackID[j]; in snd_usbmidi_get_ms_info()
2011 for (; j < ARRAY_SIZE(endpoints[epidx].assoc_in_jacks); ++j) in snd_usbmidi_get_ms_info()
2012 endpoints[epidx].assoc_in_jacks[j] = -1; in snd_usbmidi_get_ms_info()
2148 struct snd_usb_midi_endpoint_info *endpoints) in snd_usbmidi_detect_per_port_endpoints() argument
2152 err = snd_usbmidi_detect_endpoints(umidi, endpoints, MIDI_MAX_ENDPOINTS); in snd_usbmidi_detect_per_port_endpoints()
2154 if (endpoints[i].out_ep) in snd_usbmidi_detect_per_port_endpoints()
2155 endpoints[i].out_cables = 0x0001; in snd_usbmidi_detect_per_port_endpoints()
2156 if (endpoints[i].in_ep) in snd_usbmidi_detect_per_port_endpoints()
2157 endpoints[i].in_cables = 0x0001; in snd_usbmidi_detect_per_port_endpoints()
2301 &umidi->endpoints[0]); in snd_usbmidi_create_endpoints_midiman()
2310 &umidi->endpoints[0]); in snd_usbmidi_create_endpoints_midiman()
2319 &umidi->endpoints[1]); in snd_usbmidi_create_endpoints_midiman()
2330 &umidi->endpoints[cable & 1].out->ports[cable].substream); in snd_usbmidi_create_endpoints_midiman()
2336 &umidi->endpoints[0].in->ports[cable].substream); in snd_usbmidi_create_endpoints_midiman()
2384 struct snd_usb_midi_endpoint *ep = &umidi->endpoints[i]; in snd_usbmidi_input_stop()
2424 snd_usbmidi_input_start_ep(umidi, umidi->endpoints[i].in); in snd_usbmidi_input_start()
2467 struct snd_usb_midi_endpoint_info endpoints[MIDI_MAX_ENDPOINTS]; in __snd_usbmidi_create() local
2489 memset(endpoints, 0, sizeof(endpoints)); in __snd_usbmidi_create()
2492 err = snd_usbmidi_get_ms_info(umidi, endpoints); in __snd_usbmidi_create()
2501 memcpy(&endpoints[0], quirk->data, in __snd_usbmidi_create()
2503 err = snd_usbmidi_detect_endpoints(umidi, &endpoints[0], 1); in __snd_usbmidi_create()
2506 err = snd_usbmidi_detect_yamaha(umidi, &endpoints[0]); in __snd_usbmidi_create()
2509 err = snd_usbmidi_detect_roland(umidi, &endpoints[0]); in __snd_usbmidi_create()
2513 memcpy(&endpoints[0], quirk->data, in __snd_usbmidi_create()
2519 err = snd_usbmidi_detect_per_port_endpoints(umidi, endpoints); in __snd_usbmidi_create()
2534 err = snd_usbmidi_detect_per_port_endpoints(umidi, endpoints); in __snd_usbmidi_create()
2538 memcpy(&endpoints[0], quirk->data, in __snd_usbmidi_create()
2540 err = snd_usbmidi_detect_endpoints(umidi, &endpoints[0], 1); in __snd_usbmidi_create()
2544 err = snd_usbmidi_detect_per_port_endpoints(umidi, endpoints); in __snd_usbmidi_create()
2548 err = snd_usbmidi_detect_per_port_endpoints(umidi, endpoints); in __snd_usbmidi_create()
2550 endpoints[1].out_cables = 0; in __snd_usbmidi_create()
2561 err = snd_usbmidi_detect_per_port_endpoints(umidi, endpoints); in __snd_usbmidi_create()
2565 err = snd_usbmidi_detect_per_port_endpoints(umidi, endpoints); in __snd_usbmidi_create()
2580 out_ports += hweight16(endpoints[i].out_cables); in __snd_usbmidi_create()
2581 in_ports += hweight16(endpoints[i].in_cables); in __snd_usbmidi_create()
2589 err = snd_usbmidi_create_endpoints_midiman(umidi, &endpoints[0]); in __snd_usbmidi_create()
2591 err = snd_usbmidi_create_endpoints(umidi, endpoints); in __snd_usbmidi_create()