Lines Matching refs:ed
195 usb_endpoint_descriptor_t *ed; in uhmodem_attach() local
282 ed = usbd_interface2endpoint_descriptor( in uhmodem_attach()
284 if (ed == NULL) { in uhmodem_attach()
291 if (UE_GET_DIR(ed->bEndpointAddress) == UE_DIR_IN && in uhmodem_attach()
292 UE_GET_XFERTYPE(ed->bmAttributes) == UE_INTERRUPT) { in uhmodem_attach()
293 sc->sc_intr_number = ed->bEndpointAddress; in uhmodem_attach()
294 sc->sc_isize = UGETW(ed->wMaxPacketSize); in uhmodem_attach()
295 } else if (UE_GET_DIR(ed->bEndpointAddress) == UE_DIR_IN && in uhmodem_attach()
296 UE_GET_XFERTYPE(ed->bmAttributes) == UE_BULK) { in uhmodem_attach()
297 ucaa.ucaa_bulkin = ed->bEndpointAddress; in uhmodem_attach()
298 } else if (UE_GET_DIR(ed->bEndpointAddress) == UE_DIR_OUT && in uhmodem_attach()
299 UE_GET_XFERTYPE(ed->bmAttributes) == UE_BULK) { in uhmodem_attach()
300 ucaa.ucaa_bulkout = ed->bEndpointAddress; in uhmodem_attach()
509 usb_endpoint_descriptor_t *ed; in uhmodem_endpointhalt() local
518 ed = usbd_interface2endpoint_descriptor(sc->sc_iface[iface], i); in uhmodem_endpointhalt()
519 if (ed == NULL) in uhmodem_endpointhalt()
522 if (UE_GET_XFERTYPE(ed->bmAttributes) == UE_BULK) { in uhmodem_endpointhalt()
524 ed->bEndpointAddress, UF_ENDPOINT_HALT); in uhmodem_endpointhalt()
527 __func__, ed->bEndpointAddress)); in uhmodem_endpointhalt()