Lines Matching refs:step
940 s64 *min, s64 *max, u64 *step, s64 *def, u32 *flags) in v4l2_ctrl_fill() argument
1000 *max = *step = 1; in v4l2_ctrl_fill()
1021 *min = *max = *step = *def = 0; in v4l2_ctrl_fill()
1105 *min = *max = *step = *def = 0; in v4l2_ctrl_fill()
1109 *step = 1; in v4l2_ctrl_fill()
1134 *step = 1; in v4l2_ctrl_fill()
1141 *step = 1; in v4l2_ctrl_fill()
1257 ev->u.ctrl.step = 1; in fill_event()
1259 ev->u.ctrl.step = ctrl->step; in fill_event()
1398 val >= (ctrl)->maximum - (s32)((ctrl)->step / 2)) \
1401 val += (s32)((ctrl)->step / 2); \
1405 offset = (ctrl)->step * (offset / (u32)(ctrl)->step); \
1427 if (ctrl->maximum >= 0 && val >= ctrl->maximum - (s64)(ctrl->step / 2)) in std_validate()
1430 val += (s64)(ctrl->step / 2); in std_validate()
1433 do_div(offset, ctrl->step); in std_validate()
1434 ptr.p_s64[idx] = ctrl->minimum + offset * ctrl->step; in std_validate()
1472 if ((len - (u32)ctrl->minimum) % (u32)ctrl->step) in std_validate()
1689 s64 min, s64 max, u64 step, s64 def) in check_range() argument
1693 if (step != 1 || max > 1 || min < 0) in check_range()
1701 if (step == 0 || min > max || def < min || def > max) in check_range()
1705 if (step || min || !max || (def & ~max)) in check_range()
1714 if (step && ((1 << def) & step)) in check_range()
1718 if (min > max || min < 0 || step < 1 || def) in check_range()
1954 s64 min, s64 max, u64 step, s64 def, in v4l2_ctrl_new() argument
2012 err = check_range(type, min, max, step, def); in v4l2_ctrl_new()
2017 if (type == V4L2_CTRL_TYPE_BITMASK && ((def & ~max) || min || step)) { in v4l2_ctrl_new()
2057 ctrl->step = step; in v4l2_ctrl_new()
2110 u64 step = cfg->step; in v4l2_ctrl_new_custom() local
2114 v4l2_ctrl_fill(cfg->id, &name, &type, &min, &max, &step, in v4l2_ctrl_new_custom()
2120 WARN_ON(step); in v4l2_ctrl_new_custom()
2132 is_menu ? cfg->menu_skip_mask : step, def, in v4l2_ctrl_new_custom()
2144 u32 id, s64 min, s64 max, u64 step, s64 def) in v4l2_ctrl_new_std() argument
2150 v4l2_ctrl_fill(id, &name, &type, &min, &max, &step, &def, &flags); in v4l2_ctrl_new_std()
2158 min, max, step, def, NULL, 0, in v4l2_ctrl_new_std()
2176 u64 step; in v4l2_ctrl_new_std_menu() local
2179 v4l2_ctrl_fill(id, &name, &type, &min, &max, &step, &def, &flags); in v4l2_ctrl_new_std_menu()
2204 u64 step; in v4l2_ctrl_new_std_menu_items() local
2217 v4l2_ctrl_fill(id, &name, &type, &min, &max, &step, &def, &flags); in v4l2_ctrl_new_std_menu_items()
2237 u64 step; in v4l2_ctrl_new_int_menu() local
2242 v4l2_ctrl_fill(id, &name, &type, &min, &max, &step, &def, &flags); in v4l2_ctrl_new_int_menu()
2601 qc->step = 1; in v4l2_query_ext_ctrl()
2603 qc->step = ctrl->step; in v4l2_query_ext_ctrl()
2631 qc->step = qec.step; in v4l2_queryctrl()
2637 qc->step = 0; in v4l2_queryctrl()
3318 s64 min, s64 max, u64 step, s64 def) in __v4l2_ctrl_modify_range() argument
3338 ret = check_range(ctrl->type, min, max, step, def); in __v4l2_ctrl_modify_range()
3346 (ctrl->step != step) || ctrl->default_value != def) { in __v4l2_ctrl_modify_range()
3350 ctrl->step = step; in __v4l2_ctrl_modify_range()