Home
last modified time | relevance | path

Searched refs:ep_descr (Results 1 – 2 of 2) sorted by relevance

/Zephyr-latest/subsys/usb/device/
Dusb_descriptor.c250 static int usb_validate_ep_cfg_data(struct usb_ep_descriptor * const ep_descr, in usb_validate_ep_cfg_data() argument
260 if (ep_descr->bEndpointAddress != ep_data[i].ep_addr) { in usb_validate_ep_cfg_data()
267 ep_cfg.ep_type = (ep_descr->bmAttributes & in usb_validate_ep_cfg_data()
269 ep_cfg.ep_mps = sys_le16_to_cpu(ep_descr->wMaxPacketSize); in usb_validate_ep_cfg_data()
270 ep_cfg.ep_addr = ep_descr->bEndpointAddress; in usb_validate_ep_cfg_data()
286 ep_descr->bEndpointAddress, in usb_validate_ep_cfg_data()
288 ep_descr->bEndpointAddress = ep_cfg.ep_addr; in usb_validate_ep_cfg_data()
421 struct usb_ep_descriptor *ep_descr = NULL; in usb_fix_descriptor() local
471 ep_descr = (struct usb_ep_descriptor *)head; in usb_fix_descriptor()
472 if (usb_validate_ep_cfg_data(ep_descr, in usb_fix_descriptor()
/Zephyr-latest/tests/subsys/usb/desc_sections/src/
Ddesc_sections.c138 static bool find_cfg_data_ep(const struct usb_ep_descriptor * const ep_descr, in find_cfg_data_ep() argument
144 ep_descr->bEndpointAddress) { in find_cfg_data_ep()
146 ep_descr->bEndpointAddress); in find_cfg_data_ep()
185 struct usb_ep_descriptor *ep_descr = in check_endpoint_allocation() local
191 zassert_true(find_cfg_data_ep(ep_descr, cfg_data, in check_endpoint_allocation()