Lines Matching refs:epd
413 static inline int usb_endpoint_num(const struct usb_endpoint_descriptor *epd) in usb_endpoint_num() argument
415 return epd->bEndpointAddress & USB_ENDPOINT_NUMBER_MASK; in usb_endpoint_num()
425 static inline int usb_endpoint_type(const struct usb_endpoint_descriptor *epd) in usb_endpoint_type() argument
427 return epd->bmAttributes & USB_ENDPOINT_XFERTYPE_MASK; in usb_endpoint_type()
436 static inline int usb_endpoint_dir_in(const struct usb_endpoint_descriptor *epd) in usb_endpoint_dir_in() argument
438 return ((epd->bEndpointAddress & USB_ENDPOINT_DIR_MASK) == USB_DIR_IN); in usb_endpoint_dir_in()
448 const struct usb_endpoint_descriptor *epd) in usb_endpoint_dir_out() argument
450 return ((epd->bEndpointAddress & USB_ENDPOINT_DIR_MASK) == USB_DIR_OUT); in usb_endpoint_dir_out()
460 const struct usb_endpoint_descriptor *epd) in usb_endpoint_xfer_bulk() argument
462 return ((epd->bmAttributes & USB_ENDPOINT_XFERTYPE_MASK) == in usb_endpoint_xfer_bulk()
473 const struct usb_endpoint_descriptor *epd) in usb_endpoint_xfer_control() argument
475 return ((epd->bmAttributes & USB_ENDPOINT_XFERTYPE_MASK) == in usb_endpoint_xfer_control()
487 const struct usb_endpoint_descriptor *epd) in usb_endpoint_xfer_int() argument
489 return ((epd->bmAttributes & USB_ENDPOINT_XFERTYPE_MASK) == in usb_endpoint_xfer_int()
501 const struct usb_endpoint_descriptor *epd) in usb_endpoint_xfer_isoc() argument
503 return ((epd->bmAttributes & USB_ENDPOINT_XFERTYPE_MASK) == in usb_endpoint_xfer_isoc()
515 const struct usb_endpoint_descriptor *epd) in usb_endpoint_is_bulk_in() argument
517 return usb_endpoint_xfer_bulk(epd) && usb_endpoint_dir_in(epd); in usb_endpoint_is_bulk_in()
528 const struct usb_endpoint_descriptor *epd) in usb_endpoint_is_bulk_out() argument
530 return usb_endpoint_xfer_bulk(epd) && usb_endpoint_dir_out(epd); in usb_endpoint_is_bulk_out()
541 const struct usb_endpoint_descriptor *epd) in usb_endpoint_is_int_in() argument
543 return usb_endpoint_xfer_int(epd) && usb_endpoint_dir_in(epd); in usb_endpoint_is_int_in()
554 const struct usb_endpoint_descriptor *epd) in usb_endpoint_is_int_out() argument
556 return usb_endpoint_xfer_int(epd) && usb_endpoint_dir_out(epd); in usb_endpoint_is_int_out()
567 const struct usb_endpoint_descriptor *epd) in usb_endpoint_is_isoc_in() argument
569 return usb_endpoint_xfer_isoc(epd) && usb_endpoint_dir_in(epd); in usb_endpoint_is_isoc_in()
580 const struct usb_endpoint_descriptor *epd) in usb_endpoint_is_isoc_out() argument
582 return usb_endpoint_xfer_isoc(epd) && usb_endpoint_dir_out(epd); in usb_endpoint_is_isoc_out()
591 static inline int usb_endpoint_maxp(const struct usb_endpoint_descriptor *epd) in usb_endpoint_maxp() argument
593 return __le16_to_cpu(epd->wMaxPacketSize); in usb_endpoint_maxp()