Lines Matching refs:ctrl
91 const struct usb_device_request *ctrl, uint8_t *dataout, size_t outlen);
1477 const struct usb_device_request *ctrl)
1487 (void)ctrl;
1771 struct uvc_probe_commit_control1_1 *ctrl,
1809 (void)memset_s(ctrl, sizeof(struct uvc_probe_commit_control1_1),
1812 ctrl->bmHint = 1;
1813 ctrl->bFormatIndex = iformat + 1; /* 1 is yuv, 2 is mjpeg */
1814 ctrl->bFrameIndex = iframe + 1; /* 360 1 720 2 */
1815 ctrl->dwFrameInterval = frame->intervals[0];
1820 ctrl->dwMaxVideoFrameSize = frame->width * frame->height * 2;
1825 ctrl->dwMaxVideoFrameSize = 1843200;
1832 ctrl->dwMaxPayloadTransferSize = STREAM_BUF_SIZE;
1833 ctrl->bmFramingInfo = 3;
1834 ctrl->bPreferedVersion = 1;
1835 ctrl->bMaxVersion = 1;
1839 struct uvc_probe_commit_control1_1 *ctrl, uint32_t fint)
1841 fuvc_fill_streaming_control(fuvc, ctrl, 0, 0);
1862 const struct usb_device_request *ctrl)
1869 w_value = UGETW(ctrl->wValue);
1875 switch (ctrl->bRequest)
1884 ret = run_cmd_func(req->buf, req->xfrd, w_value >> 8, ctrl->bRequest, UNIT_ID_CAMERA);
1896 struct usbdev_req_s *req, const struct usb_device_request *ctrl)
1903 w_value = UGETW(ctrl->wValue);
1905 switch (ctrl->bRequest)
1914 ret = run_cmd_func(req->buf, req->xfrd, w_value >> 8, ctrl->bRequest, UNIT_ID_PROCESSING);
1935 const struct usb_device_request *ctrl)
1940 w_value = UGETW(ctrl->wValue);
1942 switch (ctrl->bRequest)
1951 ret = run_cmd_func(req->buf, req->xfrd, w_value >> 8, ctrl->bRequest, UNIT_ID_H264_EXTENSION);
1964 const struct usb_device_request *ctrl)
1966 uint16_t w_value = UGETW(ctrl->wValue);
1969 switch (ctrl->bRequest)
1978 ret = run_cmd_func(req->buf, req->xfrd, w_value >> 8, ctrl->bRequest, UNIT_ID_HICAMERA_EXTENSION);
1990 const struct usb_device_request *ctrl)
1995 uint16_t w_length = UGETW(ctrl->wLength);
1996 uint16_t w_index = UGETW(ctrl->wIndex);
1997 uint16_t w_value = UGETW(ctrl->wValue);
2019 retval = fuvc_handle_camera_control(fuvc, req, ctrl);
2023 retval = fuvc_handle_process_control(fuvc, req, ctrl);
2028 retval = fuvc_handle_ext_control(fuvc, req, ctrl);
2033 retval = fuvc_handle_xu_hicamera_control(fuvc, req, ctrl);
2052 const struct usb_device_request *ctrl)
2061 breq = ctrl->bRequest;
2078 if ((UGETW(ctrl->wValue) >> 8) == USB_UVC_VS_PROBE_CONTROL)
2129 struct usbdev_req_s *req, const struct usb_device_request *ctrl)
2139 w_value = UGETW(ctrl->wValue);
2140 w_length = UGETW(ctrl->wLength);
2146 ret = fuvc_handle_streaming_probe(fuvc, req, ctrl);
2162 (void)fuvc_handle_streaming_probe(fuvc, req, ctrl);
2579 const struct usb_device_request *ctrl, uint8_t *dataout, size_t outlen)
2592 if (driver == NULL || dev == NULL || ctrl == NULL)
2596 w_index = UGETW(ctrl->wIndex);
2597 w_value = UGETW(ctrl->wValue);
2610 req_type = ctrl->bmRequestType;
2613 switch (ctrl->bRequest)
2648 if ((ctrl->bmRequestType & USB_RECIP_MASK) == USB_RECIP_INTERFACE)
2650 set_probe_status(fuvc, (UGETW(ctrl->wValue) >> 8), ctrl->bRequest);
2653 w_index = UGETW(ctrl->wIndex);
2657 fuvc_handle_class_setup_control(fuvc, req, ctrl);
2662 if (fuvc_handle_class_setup_streaming(fuvc, req, ctrl))