Lines Matching refs:epd
462 static inline int usb_endpoint_num(const struct usb_endpoint_descriptor *epd) in usb_endpoint_num() argument
464 return epd->bEndpointAddress & USB_ENDPOINT_NUMBER_MASK; in usb_endpoint_num()
474 static inline int usb_endpoint_type(const struct usb_endpoint_descriptor *epd) in usb_endpoint_type() argument
476 return epd->bmAttributes & USB_ENDPOINT_XFERTYPE_MASK; in usb_endpoint_type()
485 static inline int usb_endpoint_dir_in(const struct usb_endpoint_descriptor *epd) in usb_endpoint_dir_in() argument
487 return ((epd->bEndpointAddress & USB_ENDPOINT_DIR_MASK) == USB_DIR_IN); in usb_endpoint_dir_in()
497 const struct usb_endpoint_descriptor *epd) in usb_endpoint_dir_out() argument
499 return ((epd->bEndpointAddress & USB_ENDPOINT_DIR_MASK) == USB_DIR_OUT); in usb_endpoint_dir_out()
509 const struct usb_endpoint_descriptor *epd) in usb_endpoint_xfer_bulk() argument
511 return ((epd->bmAttributes & USB_ENDPOINT_XFERTYPE_MASK) == in usb_endpoint_xfer_bulk()
522 const struct usb_endpoint_descriptor *epd) in usb_endpoint_xfer_control() argument
524 return ((epd->bmAttributes & USB_ENDPOINT_XFERTYPE_MASK) == in usb_endpoint_xfer_control()
536 const struct usb_endpoint_descriptor *epd) in usb_endpoint_xfer_int() argument
538 return ((epd->bmAttributes & USB_ENDPOINT_XFERTYPE_MASK) == in usb_endpoint_xfer_int()
550 const struct usb_endpoint_descriptor *epd) in usb_endpoint_xfer_isoc() argument
552 return ((epd->bmAttributes & USB_ENDPOINT_XFERTYPE_MASK) == in usb_endpoint_xfer_isoc()
564 const struct usb_endpoint_descriptor *epd) in usb_endpoint_is_bulk_in() argument
566 return usb_endpoint_xfer_bulk(epd) && usb_endpoint_dir_in(epd); in usb_endpoint_is_bulk_in()
577 const struct usb_endpoint_descriptor *epd) in usb_endpoint_is_bulk_out() argument
579 return usb_endpoint_xfer_bulk(epd) && usb_endpoint_dir_out(epd); in usb_endpoint_is_bulk_out()
590 const struct usb_endpoint_descriptor *epd) in usb_endpoint_is_int_in() argument
592 return usb_endpoint_xfer_int(epd) && usb_endpoint_dir_in(epd); in usb_endpoint_is_int_in()
603 const struct usb_endpoint_descriptor *epd) in usb_endpoint_is_int_out() argument
605 return usb_endpoint_xfer_int(epd) && usb_endpoint_dir_out(epd); in usb_endpoint_is_int_out()
616 const struct usb_endpoint_descriptor *epd) in usb_endpoint_is_isoc_in() argument
618 return usb_endpoint_xfer_isoc(epd) && usb_endpoint_dir_in(epd); in usb_endpoint_is_isoc_in()
629 const struct usb_endpoint_descriptor *epd) in usb_endpoint_is_isoc_out() argument
631 return usb_endpoint_xfer_isoc(epd) && usb_endpoint_dir_out(epd); in usb_endpoint_is_isoc_out()
640 static inline int usb_endpoint_maxp(const struct usb_endpoint_descriptor *epd) in usb_endpoint_maxp() argument
642 return __le16_to_cpu(epd->wMaxPacketSize) & USB_ENDPOINT_MAXP_MASK; in usb_endpoint_maxp()
652 usb_endpoint_maxp_mult(const struct usb_endpoint_descriptor *epd) in usb_endpoint_maxp_mult() argument
654 int maxp = __le16_to_cpu(epd->wMaxPacketSize); in usb_endpoint_maxp_mult()
660 const struct usb_endpoint_descriptor *epd) in usb_endpoint_interrupt_type() argument
662 return epd->bmAttributes & USB_ENDPOINT_INTRTYPE; in usb_endpoint_interrupt_type()