Lines Matching refs:xctrl
1868 struct v4l2_ext_control *xctrl) in uvc_ctrl_get() argument
1873 if (__uvc_query_v4l2_class(chain, xctrl->id, 0) >= 0) in uvc_ctrl_get()
1876 ctrl = uvc_find_control(chain, xctrl->id, &mapping); in uvc_ctrl_get()
1880 return __uvc_ctrl_get(chain, ctrl, mapping, &xctrl->value); in uvc_ctrl_get()
1884 struct v4l2_ext_control *xctrl) in uvc_ctrl_set() argument
1895 if (__uvc_query_v4l2_class(chain, xctrl->id, 0) >= 0) in uvc_ctrl_set()
1898 ctrl = uvc_find_control(chain, xctrl->id, &mapping); in uvc_ctrl_set()
1922 xctrl->value = min + DIV_ROUND_CLOSEST((u32)(xctrl->value - min), in uvc_ctrl_set()
1925 xctrl->value = clamp(xctrl->value, min, max); in uvc_ctrl_set()
1927 xctrl->value = clamp_t(u32, xctrl->value, min, max); in uvc_ctrl_set()
1928 value = xctrl->value; in uvc_ctrl_set()
1938 xctrl->value &= uvc_get_ctrl_bitmap(ctrl, mapping); in uvc_ctrl_set()
1939 value = xctrl->value; in uvc_ctrl_set()
1943 xctrl->value = clamp(xctrl->value, 0, 1); in uvc_ctrl_set()
1944 value = xctrl->value; in uvc_ctrl_set()
1948 if (xctrl->value < (ffs(mapping->menu_mask) - 1) || in uvc_ctrl_set()
1949 xctrl->value > (fls(mapping->menu_mask) - 1)) in uvc_ctrl_set()
1952 if (!test_bit(xctrl->value, &mapping->menu_mask)) in uvc_ctrl_set()
1955 value = uvc_mapping_get_menu_value(mapping, xctrl->value); in uvc_ctrl_set()
1975 value = xctrl->value; in uvc_ctrl_set()