Lines Matching refs:ed
217 usb_endpoint_descriptor_t *ed; in uticom_attach_hook() local
272 ed = usbd_interface2endpoint_descriptor(sc->sc_iface, i); in uticom_attach_hook()
273 if (ed == NULL) { in uticom_attach_hook()
280 if (UE_GET_DIR(ed->bEndpointAddress) == UE_DIR_OUT && in uticom_attach_hook()
281 UE_GET_XFERTYPE(ed->bmAttributes) == UE_BULK) { in uticom_attach_hook()
282 uca.bulkout = ed->bEndpointAddress; in uticom_attach_hook()
284 sc->sc_dev.dv_xname, ed->bEndpointAddress)); in uticom_attach_hook()
351 ed = usbd_interface2endpoint_descriptor(sc->sc_iface, i); in uticom_attach_hook()
352 if (ed == NULL) { in uticom_attach_hook()
359 if (UE_GET_DIR(ed->bEndpointAddress) == UE_DIR_IN && in uticom_attach_hook()
360 UE_GET_XFERTYPE(ed->bmAttributes) == UE_INTERRUPT) { in uticom_attach_hook()
361 sc->sc_intr_number = ed->bEndpointAddress; in uticom_attach_hook()
362 sc->sc_isize = UGETW(ed->wMaxPacketSize); in uticom_attach_hook()
381 ed = usbd_interface2endpoint_descriptor(sc->sc_iface, i); in uticom_attach_hook()
382 if (ed == NULL) { in uticom_attach_hook()
389 if (UE_GET_DIR(ed->bEndpointAddress) == UE_DIR_IN && in uticom_attach_hook()
390 UE_GET_XFERTYPE(ed->bmAttributes) == UE_BULK) { in uticom_attach_hook()
391 uca.bulkin = ed->bEndpointAddress; in uticom_attach_hook()
392 } else if (UE_GET_DIR(ed->bEndpointAddress) == UE_DIR_OUT && in uticom_attach_hook()
393 UE_GET_XFERTYPE(ed->bmAttributes) == UE_BULK) { in uticom_attach_hook()
394 uca.bulkout = ed->bEndpointAddress; in uticom_attach_hook()