Lines Matching refs:xctrl
1917 struct v4l2_ext_control *xctrl) in uvc_ctrl_get() argument
1922 if (__uvc_query_v4l2_class(chain, xctrl->id, 0) >= 0) in uvc_ctrl_get()
1925 ctrl = uvc_find_control(chain, xctrl->id, &mapping); in uvc_ctrl_get()
1929 return __uvc_ctrl_get(chain, ctrl, mapping, &xctrl->value); in uvc_ctrl_get()
1933 struct v4l2_ext_control *xctrl) in uvc_ctrl_set() argument
1944 if (__uvc_query_v4l2_class(chain, xctrl->id, 0) >= 0) in uvc_ctrl_set()
1947 ctrl = uvc_find_control(chain, xctrl->id, &mapping); in uvc_ctrl_set()
1971 xctrl->value = min + DIV_ROUND_CLOSEST((u32)(xctrl->value - min), in uvc_ctrl_set()
1974 xctrl->value = clamp(xctrl->value, min, max); in uvc_ctrl_set()
1976 xctrl->value = clamp_t(u32, xctrl->value, min, max); in uvc_ctrl_set()
1977 value = xctrl->value; in uvc_ctrl_set()
1987 xctrl->value &= uvc_get_ctrl_bitmap(ctrl, mapping); in uvc_ctrl_set()
1988 value = xctrl->value; in uvc_ctrl_set()
1992 xctrl->value = clamp(xctrl->value, 0, 1); in uvc_ctrl_set()
1993 value = xctrl->value; in uvc_ctrl_set()
1997 if (xctrl->value < (ffs(mapping->menu_mask) - 1) || in uvc_ctrl_set()
1998 xctrl->value > (fls(mapping->menu_mask) - 1)) in uvc_ctrl_set()
2001 if (!test_bit(xctrl->value, &mapping->menu_mask)) in uvc_ctrl_set()
2004 value = uvc_mapping_get_menu_value(mapping, xctrl->value); in uvc_ctrl_set()
2024 value = xctrl->value; in uvc_ctrl_set()