Lines Matching defs:ed
381 usb_endpoint_descriptor_t *ed;
527 ed = usbd_interface2endpoint_descriptor(sc->sc_iface, i);
528 if (ed == NULL) {
535 if (UE_GET_DIR(ed
536 && (ed->bmAttributes & UE_XFERTYPE) == UE_BULK) {
537 sc->sc_epaddr[UMASS_BULKIN] = ed->bEndpointAddress;
538 } else if (UE_GET_DIR(ed->bEndpointAddress) == UE_DIR_OUT
539 && (ed->bmAttributes & UE_XFERTYPE) == UE_BULK) {
540 sc->sc_epaddr[UMASS_BULKOUT] = ed->bEndpointAddress;
542 && UE_GET_DIR(ed->bEndpointAddress) == UE_DIR_IN
543 && (ed->bmAttributes & UE_XFERTYPE) == UE_INTERRUPT) {
544 sc->sc_epaddr[UMASS_INTRIN] = ed->bEndpointAddress;
546 if (UGETW(ed->wMaxPacketSize) > 2) {
548 (uintptr_t)sc, UGETW(ed->wMaxPacketSize),