Searched refs:epd (Results 1 – 3 of 3) 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 …]
13 101 | CHKmalloc(epd = calloc(sizeof(epolld_t), 1));27 epolld_t *epd = NULL;30 - CHKmalloc(epd = calloc(sizeof(epolld_t), 1));31 + CHKmalloc(epd = calloc(1, sizeof(epolld_t)));32 epd->typ = typ;33 epd->ptr = ptr;34 epd->sock = sock;
1922 struct usb_endpoint_descriptor *epd = &hep->desc; local1968 qh->maxpacket = usb_endpoint_maxp(epd);1969 qh->type = usb_endpoint_type(epd);1989 qh->epnum = usb_endpoint_num(epd);2016 interval = max_t(u8, epd->bInterval, 1);2022 interval = min_t(u8, epd->bInterval, 16);2096 epd->bEndpointAddress & USB_ENDPOINT_DIR_MASK);