Lines Matching refs:intf
340 const usb_interface_info* intf; in usb_midi_added() local
345 intf = &conf->interface[ifno].alt[alt]; in usb_midi_added()
346 devclass = intf->descr->interface_class; in usb_midi_added()
347 subclass = intf->descr->interface_subclass; in usb_midi_added()
348 protocol = intf->descr->interface_protocol; in usb_midi_added()
377 for (uint16 i = 0; i < intf->generic_count; i++) { in usb_midi_added()
378 usb_generic_descriptor *generic = &intf->generic[i]->generic; in usb_midi_added()
390 midiDevice, intf->endpoint_count)); in usb_midi_added()
393 for (uint16 i = 0; i < intf->endpoint_count && i < 2; i++) { in usb_midi_added()
396 i, &intf->endpoint[i], in usb_midi_added()
397 (intf->endpoint[i].descr->endpoint_address & 0x80) != 0 in usb_midi_added()
398 ? "IN" : "OUT", intf->endpoint[i].descr->max_packet_size)); in usb_midi_added()
399 if ((intf->endpoint[i].descr->endpoint_address & 0x80) != 0) { in usb_midi_added()
401 midiDevice->ept_in = &intf->endpoint[i]; in usb_midi_added()
403 if (intf->endpoint[i].descr->max_packet_size in usb_midi_added()
405 midiDevice->inMaxPkt = intf->endpoint[i].descr->max_packet_size; in usb_midi_added()
409 midiDevice->ept_out = &intf->endpoint[i]; in usb_midi_added()
411 if (intf->endpoint[i].descr->max_packet_size in usb_midi_added()
413 midiDevice->outMaxPkt = intf->endpoint[i].descr->max_packet_size; in usb_midi_added()