Home
last modified time | relevance | path

Searched refs:vreq_nd (Results 1 – 4 of 4) sorted by relevance

/Zephyr-latest/subsys/usb/device_next/
Dusbd_device.c341 struct usbd_vreq_node *vreq_nd; in usbd_device_get_vreq() local
343 SYS_DLIST_FOR_EACH_CONTAINER(&uds_ctx->vreqs, vreq_nd, node) { in usbd_device_get_vreq()
344 if (vreq_nd->code == code) { in usbd_device_get_vreq()
345 return vreq_nd; in usbd_device_get_vreq()
353 struct usbd_vreq_node *const vreq_nd) in usbd_device_register_vreq() argument
364 if (vreq_nd->to_dev == NULL && vreq_nd->to_host == NULL) { in usbd_device_register_vreq()
374 if (sys_dnode_is_linked(&vreq_nd->node)) { in usbd_device_register_vreq()
379 sys_dlist_append(&uds_ctx->vreqs, &vreq_nd->node); in usbd_device_register_vreq()
380 LOG_DBG("Registered vendor request 0x%02x", vreq_nd->code); in usbd_device_register_vreq()
Dusbd_ch9.c931 struct usbd_vreq_node *vreq_nd; in vendor_device_request() local
933 vreq_nd = usbd_device_get_vreq(uds_ctx, setup->bRequest); in vendor_device_request()
934 if (vreq_nd == NULL) { in vendor_device_request()
939 if (reqtype_is_to_device(setup) && vreq_nd->to_dev != NULL) { in vendor_device_request()
941 errno = vreq_nd->to_dev(uds_ctx, setup, buf); in vendor_device_request()
945 if (reqtype_is_to_host(setup) && vreq_nd->to_host != NULL) { in vendor_device_request()
947 errno = vreq_nd->to_host(uds_ctx, setup, buf); in vendor_device_request()
Dusbd_desc.c147 ret = usbd_device_register_vreq(uds_ctx, desc_nd->bos.vreq_nd); in usbd_add_descriptor()
/Zephyr-latest/include/zephyr/usb/
Dusbd.h153 struct usbd_vreq_node *const vreq_nd; member
711 .vreq_nd = &vreq_nd_##name, \
1200 struct usbd_vreq_node *const vreq_nd);