• Home
  • Raw
  • Download

Lines Matching refs:epd

451 static inline int usb_endpoint_num(const struct usb_endpoint_descriptor *epd)  in usb_endpoint_num()  argument
453 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() argument
465 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() argument
476 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() argument
488 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() argument
500 return ((epd->bmAttributes & USB_ENDPOINT_XFERTYPE_MASK) == in usb_endpoint_xfer_bulk()
511 const struct usb_endpoint_descriptor *epd) in usb_endpoint_xfer_control() argument
513 return ((epd->bmAttributes & USB_ENDPOINT_XFERTYPE_MASK) == in usb_endpoint_xfer_control()
525 const struct usb_endpoint_descriptor *epd) in usb_endpoint_xfer_int() argument
527 return ((epd->bmAttributes & USB_ENDPOINT_XFERTYPE_MASK) == in usb_endpoint_xfer_int()
539 const struct usb_endpoint_descriptor *epd) in usb_endpoint_xfer_isoc() argument
541 return ((epd->bmAttributes & USB_ENDPOINT_XFERTYPE_MASK) == in usb_endpoint_xfer_isoc()
553 const struct usb_endpoint_descriptor *epd) in usb_endpoint_is_bulk_in() argument
555 return usb_endpoint_xfer_bulk(epd) && usb_endpoint_dir_in(epd); in usb_endpoint_is_bulk_in()
566 const struct usb_endpoint_descriptor *epd) in usb_endpoint_is_bulk_out() argument
568 return usb_endpoint_xfer_bulk(epd) && usb_endpoint_dir_out(epd); in usb_endpoint_is_bulk_out()
579 const struct usb_endpoint_descriptor *epd) in usb_endpoint_is_int_in() argument
581 return usb_endpoint_xfer_int(epd) && usb_endpoint_dir_in(epd); in usb_endpoint_is_int_in()
592 const struct usb_endpoint_descriptor *epd) in usb_endpoint_is_int_out() argument
594 return usb_endpoint_xfer_int(epd) && usb_endpoint_dir_out(epd); in usb_endpoint_is_int_out()
605 const struct usb_endpoint_descriptor *epd) in usb_endpoint_is_isoc_in() argument
607 return usb_endpoint_xfer_isoc(epd) && usb_endpoint_dir_in(epd); in usb_endpoint_is_isoc_in()
618 const struct usb_endpoint_descriptor *epd) in usb_endpoint_is_isoc_out() argument
620 return usb_endpoint_xfer_isoc(epd) && usb_endpoint_dir_out(epd); in usb_endpoint_is_isoc_out()
629 static inline int usb_endpoint_maxp(const struct usb_endpoint_descriptor *epd) in usb_endpoint_maxp() argument
631 return __le16_to_cpu(get_unaligned(&epd->wMaxPacketSize)); in usb_endpoint_maxp()
641 usb_endpoint_maxp_mult(const struct usb_endpoint_descriptor *epd) in usb_endpoint_maxp_mult() argument
643 int maxp = __le16_to_cpu(epd->wMaxPacketSize); in usb_endpoint_maxp_mult()
649 const struct usb_endpoint_descriptor *epd) in usb_endpoint_interrupt_type() argument
651 return epd->bmAttributes & USB_ENDPOINT_INTRTYPE; in usb_endpoint_interrupt_type()