Lines Matching refs:xctrl

2361 					  struct v4l2_ext_control *xctrl)  in uvc_mapping_get_xctrl_compound()  argument
2391 if (xctrl->size < size) { in uvc_mapping_get_xctrl_compound()
2392 xctrl->size = size; in uvc_mapping_get_xctrl_compound()
2417 return copy_to_user(xctrl->ptr, data, size) ? -EFAULT : 0; in uvc_mapping_get_xctrl_compound()
2423 u32 which, struct v4l2_ext_control *xctrl) in uvc_mapping_get_xctrl_std() argument
2430 return __uvc_ctrl_get(chain, ctrl, mapping, &xctrl->value); in uvc_mapping_get_xctrl_std()
2445 xctrl->value = qec.default_value; in uvc_mapping_get_xctrl_std()
2448 xctrl->value = qec.minimum; in uvc_mapping_get_xctrl_std()
2451 xctrl->value = qec.maximum; in uvc_mapping_get_xctrl_std()
2461 u32 which, struct v4l2_ext_control *xctrl) in uvc_mapping_get_xctrl() argument
2465 which, xctrl); in uvc_mapping_get_xctrl()
2466 return uvc_mapping_get_xctrl_std(chain, ctrl, mapping, which, xctrl); in uvc_mapping_get_xctrl()
2470 struct v4l2_ext_control *xctrl) in uvc_ctrl_get() argument
2475 if (__uvc_query_v4l2_class(chain, xctrl->id, 0) >= 0) in uvc_ctrl_get()
2478 ctrl = uvc_find_control(chain, xctrl->id, &mapping); in uvc_ctrl_get()
2482 return uvc_mapping_get_xctrl(chain, ctrl, mapping, which, xctrl); in uvc_ctrl_get()
2585 struct v4l2_ext_control *xctrl) in uvc_mapping_set_xctrl_compound() argument
2590 if (xctrl->size != size) in uvc_mapping_set_xctrl_compound()
2598 data = memdup_user(xctrl->ptr, size); in uvc_mapping_set_xctrl_compound()
2608 struct v4l2_ext_control *xctrl) in uvc_mapping_set_xctrl() argument
2611 return uvc_mapping_set_xctrl_compound(ctrl, mapping, xctrl); in uvc_mapping_set_xctrl()
2613 uvc_mapping_set_s32(mapping, xctrl->value, in uvc_mapping_set_xctrl()
2618 int uvc_ctrl_set(struct uvc_fh *handle, struct v4l2_ext_control *xctrl) in uvc_ctrl_set() argument
2627 if (__uvc_query_v4l2_class(chain, xctrl->id, 0) >= 0) in uvc_ctrl_set()
2630 ctrl = uvc_find_control(chain, xctrl->id, &mapping); in uvc_ctrl_set()
2636 ret = uvc_ctrl_clamp(chain, ctrl, xctrl->id, mapping, &xctrl->value); in uvc_ctrl_set()
2657 ret = uvc_mapping_set_xctrl(ctrl, mapping, xctrl); in uvc_ctrl_set()