Lines Matching refs:step

36 		ev->u.ctrl.step = 1;  in fill_event()
38 ev->u.ctrl.step = ctrl->step; in fill_event()
301 val >= (ctrl)->maximum - (s32)((ctrl)->step / 2)) \
304 val += (s32)((ctrl)->step / 2); \
308 offset = (ctrl)->step * (offset / (u32)(ctrl)->step); \
722 if (ctrl->maximum >= 0 && val >= ctrl->maximum - (s64)(ctrl->step / 2)) in std_validate()
725 val += (s64)(ctrl->step / 2); in std_validate()
728 do_div(offset, ctrl->step); in std_validate()
729 ptr.p_s64[idx] = ctrl->minimum + offset * ctrl->step; in std_validate()
768 if ((len - (u32)ctrl->minimum) % (u32)ctrl->step) in std_validate()
884 s64 min, s64 max, u64 step, s64 def) in check_range() argument
888 if (step != 1 || max > 1 || min < 0) in check_range()
896 if (step == 0 || min > max || def < min || def > max) in check_range()
900 if (step || min || !max || (def & ~max)) in check_range()
909 if (step && ((1 << def) & step)) in check_range()
913 if (min > max || min < 0 || step < 1 || def) in check_range()
1160 s64 min, s64 max, u64 step, s64 def, in v4l2_ctrl_new() argument
1276 err = check_range(type, min, max, step, def); in v4l2_ctrl_new()
1320 ctrl->step = step; in v4l2_ctrl_new()
1379 u64 step = cfg->step; in v4l2_ctrl_new_custom() local
1383 v4l2_ctrl_fill(cfg->id, &name, &type, &min, &max, &step, in v4l2_ctrl_new_custom()
1389 WARN_ON(step); in v4l2_ctrl_new_custom()
1401 is_menu ? cfg->menu_skip_mask : step, def, in v4l2_ctrl_new_custom()
1413 u32 id, s64 min, s64 max, u64 step, s64 def) in v4l2_ctrl_new_std() argument
1419 v4l2_ctrl_fill(id, &name, &type, &min, &max, &step, &def, &flags); in v4l2_ctrl_new_std()
1427 min, max, step, def, NULL, 0, in v4l2_ctrl_new_std()
1445 u64 step; in v4l2_ctrl_new_std_menu() local
1448 v4l2_ctrl_fill(id, &name, &type, &min, &max, &step, &def, &flags); in v4l2_ctrl_new_std_menu()
1473 u64 step; in v4l2_ctrl_new_std_menu_items() local
1486 v4l2_ctrl_fill(id, &name, &type, &min, &max, &step, &def, &flags); in v4l2_ctrl_new_std_menu_items()
1506 s64 min, max, step, def; in v4l2_ctrl_new_std_compound() local
1508 v4l2_ctrl_fill(id, &name, &type, &min, &max, &step, &def, &flags); in v4l2_ctrl_new_std_compound()
1514 min, max, step, def, NULL, 0, in v4l2_ctrl_new_std_compound()
1527 u64 step; in v4l2_ctrl_new_int_menu() local
1532 v4l2_ctrl_fill(id, &name, &type, &min, &max, &step, &def, &flags); in v4l2_ctrl_new_int_menu()