Searched refs:desc_nd (Results 1 – 3 of 3) sorted by relevance
/Zephyr-latest/subsys/usb/device_next/ |
D | usbd_desc.c | 86 struct usbd_desc_node *desc_nd; in usbd_get_descriptor() local 88 SYS_DLIST_FOR_EACH_CONTAINER(&uds_ctx->descriptors, desc_nd, node) { in usbd_get_descriptor() 89 if (desc_nd->bDescriptorType == type) { in usbd_get_descriptor() 90 if (desc_nd->bDescriptorType == USB_DESC_STRING) { in usbd_get_descriptor() 91 if (desc_nd->str.idx == idx) { in usbd_get_descriptor() 92 return desc_nd; in usbd_get_descriptor() 96 if (desc_nd->bDescriptorType == USB_DESC_BOS) { in usbd_get_descriptor() 97 return desc_nd; in usbd_get_descriptor() 120 struct usbd_desc_node *const desc_nd) in usbd_add_descriptor() argument 140 if (sys_dnode_is_linked(&desc_nd->node)) { in usbd_add_descriptor() [all …]
|
D | usbd_ch9.c | 707 struct usbd_desc_node *desc_nd; in desc_fill_bos_root() local 714 SYS_DLIST_FOR_EACH_CONTAINER(&uds_ctx->descriptors, desc_nd, node) { in desc_fill_bos_root() 715 if (desc_nd->bDescriptorType == USB_DESC_BOS) { in desc_fill_bos_root() 716 root->wTotalLength += desc_nd->bLength; in desc_fill_bos_root() 728 struct usbd_desc_node *desc_nd; in sreq_get_desc_bos() local 761 SYS_DLIST_FOR_EACH_CONTAINER(&uds_ctx->descriptors, desc_nd, node) { in sreq_get_desc_bos() 762 if (desc_nd->bDescriptorType == USB_DESC_BOS) { in sreq_get_desc_bos() 764 desc_nd->bLength, len, net_buf_tailroom(buf)); in sreq_get_desc_bos() 765 net_buf_add_mem(buf, desc_nd->ptr, MIN(len, desc_nd->bLength)); in sreq_get_desc_bos() 767 len -= MIN(len, desc_nd->bLength); in sreq_get_desc_bos()
|
/Zephyr-latest/include/zephyr/usb/ |
D | usbd.h | 529 #define USBD_CONFIGURATION_DEFINE(name, attrib, power, desc_nd) \ argument 544 .str_desc_nd = desc_nd, \ 785 uint8_t usbd_str_desc_get_idx(const struct usbd_desc_node *const desc_nd); 794 void usbd_remove_descriptor(struct usbd_desc_node *const desc_nd);
|