Searched refs:epd (Results 1 – 2 of 2) sorted by relevance
451 static inline int usb_endpoint_num(const struct usb_endpoint_descriptor *epd) in usb_endpoint_num() argument453 return epd->bEndpointAddress & USB_ENDPOINT_NUMBER_MASK; in usb_endpoint_num()463 static inline int usb_endpoint_type(const struct usb_endpoint_descriptor *epd) in usb_endpoint_type() argument465 return epd->bmAttributes & USB_ENDPOINT_XFERTYPE_MASK; in usb_endpoint_type()474 static inline int usb_endpoint_dir_in(const struct usb_endpoint_descriptor *epd) in usb_endpoint_dir_in() argument476 return ((epd->bEndpointAddress & USB_ENDPOINT_DIR_MASK) == USB_DIR_IN); in usb_endpoint_dir_in()486 const struct usb_endpoint_descriptor *epd) in usb_endpoint_dir_out() argument488 return ((epd->bEndpointAddress & USB_ENDPOINT_DIR_MASK) == USB_DIR_OUT); in usb_endpoint_dir_out()498 const struct usb_endpoint_descriptor *epd) in usb_endpoint_xfer_bulk() argument500 return ((epd->bmAttributes & USB_ENDPOINT_XFERTYPE_MASK) == in usb_endpoint_xfer_bulk()[all …]
1923 struct usb_endpoint_descriptor *epd = &hep->desc; local1969 qh->maxpacket = usb_endpoint_maxp(epd);1970 qh->type = usb_endpoint_type(epd);1990 qh->epnum = usb_endpoint_num(epd);2017 interval = max_t(u8, epd->bInterval, 1);2023 interval = min_t(u8, epd->bInterval, 16);2097 epd->bEndpointAddress & USB_ENDPOINT_DIR_MASK);