Lines Matching refs:head
113 static void interface_config(struct usb_desc_header *head, in interface_config() argument
116 struct usb_if_descriptor *if_desc = (struct usb_if_descriptor *)head; in interface_config()
118 LOG_DBG("head %p iface_num %u", head, iface_num); in interface_config()
160 static void check_endpoint_allocation(struct usb_desc_header *head) in check_endpoint_allocation() argument
166 while (head->bLength != 0) { in check_endpoint_allocation()
167 if (head->bDescriptorType == USB_DESC_INTERFACE) { in check_endpoint_allocation()
168 struct usb_if_descriptor *if_descr = (void *)head; in check_endpoint_allocation()
184 if (head->bDescriptorType == USB_DESC_ENDPOINT) { in check_endpoint_allocation()
186 (struct usb_ep_descriptor *)head; in check_endpoint_allocation()
197 head = (struct usb_desc_header *)((uint8_t *)head + head->bLength); in check_endpoint_allocation()
208 struct usb_desc_header *head; in ZTEST() local
233 head = (struct usb_desc_header *)__usb_descriptor_start; in ZTEST()
234 zassert_not_null(head, NULL); in ZTEST()
245 check_endpoint_allocation(head); in ZTEST()