Lines Matching refs:step
36 ev->u.ctrl.step = 1; in fill_event()
38 ev->u.ctrl.step = ctrl->step; in fill_event()
387 val >= (ctrl)->maximum - (s32)((ctrl)->step / 2)) \
390 val += (s32)((ctrl)->step / 2); \
394 offset = (ctrl)->step * (offset / (u32)(ctrl)->step); \
1195 if (ctrl->maximum >= 0 && val >= ctrl->maximum - (s64)(ctrl->step / 2)) in std_validate_elem()
1198 val += (s64)(ctrl->step / 2); in std_validate_elem()
1201 do_div(offset, ctrl->step); in std_validate_elem()
1202 ptr.p_s64[idx] = ctrl->minimum + offset * ctrl->step; in std_validate_elem()
1241 if ((len - (u32)ctrl->minimum) % (u32)ctrl->step) in std_validate_elem()
1258 if (ctrl->maximum == 0xff && ctrl->minimum == 0 && ctrl->step == 1) in v4l2_ctrl_type_op_validate()
1262 if (ctrl->maximum == 0xffff && ctrl->minimum == 0 && ctrl->step == 1) in v4l2_ctrl_type_op_validate()
1266 if (ctrl->maximum == 0xffffffff && ctrl->minimum == 0 && ctrl->step == 1) in v4l2_ctrl_type_op_validate()
1486 s64 min, s64 max, u64 step, s64 def) in check_range() argument
1490 if (step != 1 || max > 1 || min < 0) in check_range()
1498 if (step == 0 || min > max || def < min || def > max) in check_range()
1502 if (step || min || !max || (def & ~max)) in check_range()
1511 if (step && ((1 << def) & step)) in check_range()
1515 if (min > max || min < 0 || step < 1 || def) in check_range()
1753 s64 min, s64 max, u64 step, s64 def, in v4l2_ctrl_new() argument
1885 err = check_range(type, min, max, step, def); in v4l2_ctrl_new()
1944 ctrl->step = step; in v4l2_ctrl_new()
2017 u64 step = cfg->step; in v4l2_ctrl_new_custom() local
2021 v4l2_ctrl_fill(cfg->id, &name, &type, &min, &max, &step, in v4l2_ctrl_new_custom()
2027 WARN_ON(step); in v4l2_ctrl_new_custom()
2039 is_menu ? cfg->menu_skip_mask : step, def, in v4l2_ctrl_new_custom()
2051 u32 id, s64 min, s64 max, u64 step, s64 def) in v4l2_ctrl_new_std() argument
2057 v4l2_ctrl_fill(id, &name, &type, &min, &max, &step, &def, &flags); in v4l2_ctrl_new_std()
2065 min, max, step, def, NULL, 0, in v4l2_ctrl_new_std()
2083 u64 step; in v4l2_ctrl_new_std_menu() local
2086 v4l2_ctrl_fill(id, &name, &type, &min, &max, &step, &def, &flags); in v4l2_ctrl_new_std_menu()
2111 u64 step; in v4l2_ctrl_new_std_menu_items() local
2124 v4l2_ctrl_fill(id, &name, &type, &min, &max, &step, &def, &flags); in v4l2_ctrl_new_std_menu_items()
2144 s64 min, max, step, def; in v4l2_ctrl_new_std_compound() local
2146 v4l2_ctrl_fill(id, &name, &type, &min, &max, &step, &def, &flags); in v4l2_ctrl_new_std_compound()
2152 min, max, step, def, NULL, 0, in v4l2_ctrl_new_std_compound()
2165 u64 step; in v4l2_ctrl_new_int_menu() local
2170 v4l2_ctrl_fill(id, &name, &type, &min, &max, &step, &def, &flags); in v4l2_ctrl_new_int_menu()