Lines Matching refs:query
33 static int __uvc_query_ctrl(struct uvc_device *dev, __u8 query, __u8 unit, in __uvc_query_ctrl() argument
40 pipe = (query & 0x80) ? usb_rcvctrlpipe(dev->udev, 0) in __uvc_query_ctrl()
42 type |= (query & 0x80) ? USB_DIR_IN : USB_DIR_OUT; in __uvc_query_ctrl()
44 return usb_control_msg(dev->udev, pipe, query, type, cs << 8, in __uvc_query_ctrl()
48 static const char *uvc_query_name(__u8 query) in uvc_query_name() argument
50 switch (query) { in uvc_query_name()
72 int uvc_query_ctrl(struct uvc_device *dev, __u8 query, __u8 unit, in uvc_query_ctrl() argument
77 ret = __uvc_query_ctrl(dev, query, unit, intfnum, cs, data, size, in uvc_query_ctrl()
81 "unit %u: %d (exp. %u).\n", uvc_query_name(query), cs, in uvc_query_ctrl()
208 struct uvc_streaming_control *ctrl, int probe, __u8 query) in uvc_get_video_ctrl() argument
215 query == UVC_GET_DEF) in uvc_get_video_ctrl()
222 ret = __uvc_query_ctrl(stream->dev, query, 0, stream->intfnum, in uvc_get_video_ctrl()
226 if ((query == UVC_GET_MIN || query == UVC_GET_MAX) && ret == 2) { in uvc_get_video_ctrl()
238 } else if (query == UVC_GET_DEF && probe == 1 && ret != size) { in uvc_get_video_ctrl()
250 "%d (exp. %u).\n", query, probe ? "probe" : "commit", in uvc_get_video_ctrl()