Lines Matching refs:step

921 		    s64 *min, s64 *max, u64 *step, s64 *def, u32 *flags)  in v4l2_ctrl_fill()  argument
981 *max = *step = 1; in v4l2_ctrl_fill()
996 *min = *max = *step = *def = 0; in v4l2_ctrl_fill()
1077 *min = *max = *step = *def = 0; in v4l2_ctrl_fill()
1081 *step = 1; in v4l2_ctrl_fill()
1106 *step = 1; in v4l2_ctrl_fill()
1113 *step = 1; in v4l2_ctrl_fill()
1217 ev->u.ctrl.step = 1; in fill_event()
1219 ev->u.ctrl.step = ctrl->step; in fill_event()
1358 val >= (ctrl)->maximum - (s32)((ctrl)->step / 2)) \
1361 val += (s32)((ctrl)->step / 2); \
1365 offset = (ctrl)->step * (offset / (u32)(ctrl)->step); \
1387 if (ctrl->maximum >= 0 && val >= ctrl->maximum - (s64)(ctrl->step / 2)) in std_validate()
1390 val += (s64)(ctrl->step / 2); in std_validate()
1393 do_div(offset, ctrl->step); in std_validate()
1394 ptr.p_s64[idx] = ctrl->minimum + offset * ctrl->step; in std_validate()
1432 if ((len - (u32)ctrl->minimum) % (u32)ctrl->step) in std_validate()
1638 s64 min, s64 max, u64 step, s64 def) in check_range() argument
1642 if (step != 1 || max > 1 || min < 0) in check_range()
1650 if (step == 0 || min > max || def < min || def > max) in check_range()
1654 if (step || min || !max || (def & ~max)) in check_range()
1663 if (step && ((1 << def) & step)) in check_range()
1667 if (min > max || min < 0 || step < 1 || def) in check_range()
1916 s64 min, s64 max, u64 step, s64 def, in v4l2_ctrl_new() argument
1974 err = check_range(type, min, max, step, def); in v4l2_ctrl_new()
1979 if (type == V4L2_CTRL_TYPE_BITMASK && ((def & ~max) || min || step)) { in v4l2_ctrl_new()
2019 ctrl->step = step; in v4l2_ctrl_new()
2072 u64 step = cfg->step; in v4l2_ctrl_new_custom() local
2076 v4l2_ctrl_fill(cfg->id, &name, &type, &min, &max, &step, in v4l2_ctrl_new_custom()
2082 WARN_ON(step); in v4l2_ctrl_new_custom()
2095 is_menu ? cfg->menu_skip_mask : step, def, in v4l2_ctrl_new_custom()
2107 u32 id, s64 min, s64 max, u64 step, s64 def) in v4l2_ctrl_new_std() argument
2113 v4l2_ctrl_fill(id, &name, &type, &min, &max, &step, &def, &flags); in v4l2_ctrl_new_std()
2121 min, max, step, def, NULL, 0, in v4l2_ctrl_new_std()
2139 u64 step; in v4l2_ctrl_new_std_menu() local
2142 v4l2_ctrl_fill(id, &name, &type, &min, &max, &step, &def, &flags); in v4l2_ctrl_new_std_menu()
2167 u64 step; in v4l2_ctrl_new_std_menu_items() local
2180 v4l2_ctrl_fill(id, &name, &type, &min, &max, &step, &def, &flags); in v4l2_ctrl_new_std_menu_items()
2200 u64 step; in v4l2_ctrl_new_int_menu() local
2205 v4l2_ctrl_fill(id, &name, &type, &min, &max, &step, &def, &flags); in v4l2_ctrl_new_int_menu()
2565 qc->step = 1; in v4l2_query_ext_ctrl()
2567 qc->step = ctrl->step; in v4l2_query_ext_ctrl()
2595 qc->step = qec.step; in v4l2_queryctrl()
2601 qc->step = 0; in v4l2_queryctrl()
3314 s64 min, s64 max, u64 step, s64 def) in __v4l2_ctrl_modify_range() argument
3333 ret = check_range(ctrl->type, min, max, step, def); in __v4l2_ctrl_modify_range()
3342 ctrl->step = step; in __v4l2_ctrl_modify_range()