Home
last modified time | relevance | path

Searched refs:ctrlreq (Results 1 – 14 of 14) sorted by relevance

/third_party/NuttX/drivers/usbdev/gadget/
Df_dfu.c535 static int dfu_get_status_for_req(struct usbdev_req_s *ctrlreq) in dfu_get_status_for_req() argument
537 struct dfu_getstatus_response_s *status = (struct dfu_getstatus_response_s *)ctrlreq->buf; in dfu_get_status_for_req()
564 static int dfu_get_state_for_req(struct usbdev_req_s *ctrlreq) in dfu_get_state_for_req() argument
566 uint8_t *state = ctrlreq->buf; in dfu_get_state_for_req()
573 static int dfu_dnload(const struct usb_device_request *ctrl, struct usbdev_req_s *ctrlreq) in dfu_dnload() argument
595 ctrlreq->callback = dfu_dnload_complete; in dfu_dnload()
600 static int dfu_upload(const struct usb_device_request *ctrl, struct usbdev_req_s *ctrlreq) in dfu_upload() argument
616 return usb_dfu_read(usb_dfu_get_entity(0), ctrlreq->buf, (int)ctrlreq->len, dev->seq_num); in dfu_upload()
619 static int dfu_app_idle_request(const struct usb_device_request *ctrl, struct usbdev_req_s *ctrlreq) in dfu_app_idle_request() argument
633 ret = dfu_get_status_for_req(ctrlreq); in dfu_app_idle_request()
[all …]
Ddfu.c109 FAR struct usbdev_req_s *ctrlreq; /* Pointer to preallocated control request */ member
241 FAR struct usbdev_req_s *ctrlreq = priv->ctrlreq; in usbclass_setup() local
270 *(FAR uint8_t *)ctrlreq->buf = 0; in usbclass_setup()
276 ret = usbdev_dfu_class_requests(dev, ctrl, ctrlreq); in usbclass_setup()
285 ctrlreq->len = (len < ret) ? len : (uint32_t)ret; in usbclass_setup()
286 ctrlreq->flags = USBDEV_REQFLAGS_NULLPKT; in usbclass_setup()
287 ret = EP_SUBMIT(dev->ep0, ctrlreq); in usbclass_setup()
291 ctrlreq->result = OK; in usbclass_setup()
304 priv->ctrlreq = cdev->ctrlreq; in usbclass_bind()
305 if (priv->ctrlreq == NULL) in usbclass_bind()
[all …]
Drndis.c124 FAR struct usbdev_req_s *ctrlreq; /* Pointer to preallocated control request */ member
1208 static void rndis_handle_control_message(struct usbdev_ep_s *ep, struct usbdev_req_s *ctrlreq) in rndis_handle_control_message() argument
1210 FAR struct rndis_dev_s *priv = (struct rndis_dev_s *)ctrlreq->priv; in rndis_handle_control_message()
1212 (FAR struct rndis_command_header *)ctrlreq->buf; in rndis_handle_control_message()
1258 …ret = memcpy_s(&req, sizeof(struct rndis_query_msg), ctrlreq->buf, sizeof(struct rndis_query_msg)); in rndis_handle_control_message()
1371 (void)memcpy_s(req, USB_DWC_MAX_PACKET_SIZE, ctrlreq->buf, USB_DWC_MAX_PACKET_SIZE); in rndis_handle_control_message()
1697 priv->ctrlreq = cdev->ctrlreq; in usbclass_bind()
1698 if (priv->ctrlreq == NULL) in usbclass_bind()
1872 if (priv->ctrlreq != NULL) in usbclass_unbind()
1874 priv->ctrlreq = NULL; in usbclass_unbind()
[all …]
Dcomposite.c192 composite_freereq(cdev->ctrlreq); in usb_composite_unbind()
193 cdev->ctrlreq = NULL; in usb_composite_unbind()
224 cdev->ctrlreq = composite_allocreq(USB_COMP_EP0_BUFSIZ); in usb_composite_bind()
225 if (cdev->ctrlreq == NULL) in usb_composite_bind()
230 dev->ep0->handle_req = cdev->ctrlreq; in usb_composite_bind()
231 cdev->ctrlreq->callback = composite_request_complete; in usb_composite_bind()
478 usb_req = usb_cdev->ctrlreq; in usb_composite_setup()
Df_dfu.h154 struct usbdev_req_s *ctrlreq);
Dcomposite.h134 struct usbdev_req_s *ctrlreq; /* Allocated control request */ member
Dcdcacm.c112 struct usbdev_req_s *ctrlreq; /* Allocated control request */ member
1084 priv->ctrlreq = cdev->ctrlreq; in cdcacm_bind()
1085 if (priv->ctrlreq == NULL) in cdcacm_bind()
1398 req = priv->ctrlreq; in cdcacm_setup()
Df_mass_storage.h253 struct usbdev_req_s ctrlreq; member
Df_uac.h59 struct usbdev_req_s ctrlreq; /* control request */ member
Df_uvc.h712 struct usbdev_req_s ctrlreq; /* control request */ member
/third_party/NuttX/drivers/usbdev/gadget/fconfig/src/
Df_generic.c536 priv->ctrlreq = cdev->ctrlreq; in usbclass_generic_bind()
537 if (priv->ctrlreq == NULL) in usbclass_generic_bind()
Dusbd_generic_ep0.c500 struct usbdev_req_s *req = dev->ctrlreq; in generic_ep0_submit_sync()
586 struct usbdev_req_s *req = dev->ctrlreq; in generic_ep0_submit_wait()
999 ret = EP_CANCEL(dev->usbdev->ep0, dev->ctrlreq); in generic_ep0_handle_ioctl()
Df_config.c382 struct usbdev_req_s *usb_req = usb_cdev->ctrlreq; in fconfig_composite_setup()
/third_party/NuttX/drivers/usbdev/gadget/fconfig/include/
Df_generic.h184 struct usbdev_req_s *ctrlreq; member