Lines Matching refs:step
922 s64 *min, s64 *max, u64 *step, s64 *def, u32 *flags) in v4l2_ctrl_fill() argument
982 *max = *step = 1; in v4l2_ctrl_fill()
997 *min = *max = *step = *def = 0; in v4l2_ctrl_fill()
1078 *min = *max = *step = *def = 0; in v4l2_ctrl_fill()
1082 *step = 1; in v4l2_ctrl_fill()
1107 *step = 1; in v4l2_ctrl_fill()
1114 *step = 1; in v4l2_ctrl_fill()
1219 ev->u.ctrl.step = 1; in fill_event()
1221 ev->u.ctrl.step = ctrl->step; in fill_event()
1360 val >= (ctrl)->maximum - (s32)((ctrl)->step / 2)) \
1363 val += (s32)((ctrl)->step / 2); \
1367 offset = (ctrl)->step * (offset / (u32)(ctrl)->step); \
1389 if (ctrl->maximum >= 0 && val >= ctrl->maximum - (s64)(ctrl->step / 2)) in std_validate()
1392 val += (s64)(ctrl->step / 2); in std_validate()
1395 do_div(offset, ctrl->step); in std_validate()
1396 ptr.p_s64[idx] = ctrl->minimum + offset * ctrl->step; in std_validate()
1434 if ((len - (u32)ctrl->minimum) % (u32)ctrl->step) in std_validate()
1640 s64 min, s64 max, u64 step, s64 def) in check_range() argument
1644 if (step != 1 || max > 1 || min < 0) in check_range()
1652 if (step == 0 || min > max || def < min || def > max) in check_range()
1656 if (step || min || !max || (def & ~max)) in check_range()
1665 if (step && ((1 << def) & step)) in check_range()
1669 if (min > max || min < 0 || step < 1 || def) in check_range()
1903 s64 min, s64 max, u64 step, s64 def, in v4l2_ctrl_new() argument
1961 err = check_range(type, min, max, step, def); in v4l2_ctrl_new()
1966 if (type == V4L2_CTRL_TYPE_BITMASK && ((def & ~max) || min || step)) { in v4l2_ctrl_new()
2006 ctrl->step = step; in v4l2_ctrl_new()
2059 u64 step = cfg->step; in v4l2_ctrl_new_custom() local
2063 v4l2_ctrl_fill(cfg->id, &name, &type, &min, &max, &step, in v4l2_ctrl_new_custom()
2069 WARN_ON(step); in v4l2_ctrl_new_custom()
2082 is_menu ? cfg->menu_skip_mask : step, def, in v4l2_ctrl_new_custom()
2094 u32 id, s64 min, s64 max, u64 step, s64 def) in v4l2_ctrl_new_std() argument
2100 v4l2_ctrl_fill(id, &name, &type, &min, &max, &step, &def, &flags); in v4l2_ctrl_new_std()
2108 min, max, step, def, NULL, 0, in v4l2_ctrl_new_std()
2126 u64 step; in v4l2_ctrl_new_std_menu() local
2129 v4l2_ctrl_fill(id, &name, &type, &min, &max, &step, &def, &flags); in v4l2_ctrl_new_std_menu()
2154 u64 step; in v4l2_ctrl_new_std_menu_items() local
2167 v4l2_ctrl_fill(id, &name, &type, &min, &max, &step, &def, &flags); in v4l2_ctrl_new_std_menu_items()
2187 u64 step; in v4l2_ctrl_new_int_menu() local
2192 v4l2_ctrl_fill(id, &name, &type, &min, &max, &step, &def, &flags); in v4l2_ctrl_new_int_menu()
2552 qc->step = 1; in v4l2_query_ext_ctrl()
2554 qc->step = ctrl->step; in v4l2_query_ext_ctrl()
2582 qc->step = qec.step; in v4l2_queryctrl()
2588 qc->step = 0; in v4l2_queryctrl()
3301 s64 min, s64 max, u64 step, s64 def) in __v4l2_ctrl_modify_range() argument
3320 ret = check_range(ctrl->type, min, max, step, def); in __v4l2_ctrl_modify_range()
3329 ctrl->step = step; in __v4l2_ctrl_modify_range()