Lines Matching refs:probe
167 struct uvc_streaming_control *ctrl, int probe, __u8 query) in uvc_get_video_ctrl() argument
183 probe ? UVC_VS_PROBE_CONTROL : UVC_VS_COMMIT_CONTROL, data, in uvc_get_video_ctrl()
198 } else if (query == UVC_GET_DEF && probe == 1 && ret != size) { in uvc_get_video_ctrl()
210 "%d (exp. %u).\n", query, probe ? "probe" : "commit", in uvc_get_video_ctrl()
255 struct uvc_streaming_control *ctrl, int probe) in uvc_set_video_ctrl() argument
287 probe ? UVC_VS_PROBE_CONTROL : UVC_VS_COMMIT_CONTROL, data, in uvc_set_video_ctrl()
291 "%d (exp. %u).\n", probe ? "probe" : "commit", in uvc_set_video_ctrl()
301 struct uvc_streaming_control *probe) in uvc_probe_video() argument
315 ret = uvc_set_video_ctrl(stream, probe, 1); in uvc_probe_video()
328 probe->wCompQuality = probe_max.wCompQuality; in uvc_probe_video()
332 ret = uvc_set_video_ctrl(stream, probe, 1); in uvc_probe_video()
335 ret = uvc_get_video_ctrl(stream, probe, 1, UVC_GET_CUR); in uvc_probe_video()
342 bandwidth = probe->dwMaxPayloadTransferSize; in uvc_probe_video()
352 probe->wKeyFrameRate = probe_min.wKeyFrameRate; in uvc_probe_video()
353 probe->wPFrameRate = probe_min.wPFrameRate; in uvc_probe_video()
354 probe->wCompQuality = probe_max.wCompQuality; in uvc_probe_video()
355 probe->wCompWindowSize = probe_min.wCompWindowSize; in uvc_probe_video()
363 struct uvc_streaming_control *probe) in uvc_commit_video() argument
365 return uvc_set_video_ctrl(stream, probe, 0); in uvc_commit_video()
1774 struct uvc_streaming_control *probe = &stream->ctrl; in uvc_video_init() local
1799 if (uvc_get_video_ctrl(stream, probe, 1, UVC_GET_DEF) == 0) in uvc_video_init()
1800 uvc_set_video_ctrl(stream, probe, 1); in uvc_video_init()
1807 ret = uvc_get_video_ctrl(stream, probe, 1, UVC_GET_CUR); in uvc_video_init()
1816 if (format->index == probe->bFormatIndex) in uvc_video_init()
1833 if (frame->bFrameIndex == probe->bFrameIndex) in uvc_video_init()
1837 probe->bFormatIndex = format->index; in uvc_video_init()
1838 probe->bFrameIndex = frame->bFrameIndex; in uvc_video_init()