Home
last modified time | relevance | path

Searched refs:usbd_ctx (Results 1 – 3 of 3) sorted by relevance

/Zephyr-latest/samples/subsys/usb/webusb-next/src/
Dmain.c25 static void msg_cb(struct usbd_context *const usbd_ctx, in msg_cb() argument
30 if (usbd_can_detect_vbus(usbd_ctx)) { in msg_cb()
32 if (usbd_enable(usbd_ctx)) { in msg_cb()
38 if (usbd_disable(usbd_ctx)) { in msg_cb()
/Zephyr-latest/samples/subsys/usb/hid-keyboard/src/
Dmain.c147 static void msg_cb(struct usbd_context *const usbd_ctx, in msg_cb() argument
156 if (usbd_can_detect_vbus(usbd_ctx)) { in msg_cb()
158 if (usbd_enable(usbd_ctx)) { in msg_cb()
164 if (usbd_disable(usbd_ctx)) { in msg_cb()
/Zephyr-latest/drivers/usb/device/
Dusb_dc_nrfx.c273 static struct nrf_usbd_ctx usbd_ctx = { variable
280 return &usbd_ctx; in get_usbd_ctx()
486 if (usbd_ctx.attached) { in submit_dc_power_event()
759 memcpy(&usbd_ctx.setup, usbd_setup, sizeof(struct usb_setup_packet)); in usbd_work_process_setup()
1676 if (data_len && usbd_ctx.setup.wLength > data_len && in usb_dc_ep_write()