Lines Matching refs:step

1071 		    s64 *min, s64 *max, u64 *step, s64 *def, u32 *flags)  in v4l2_ctrl_fill()  argument
1131 *max = *step = 1; in v4l2_ctrl_fill()
1152 *min = *max = *step = *def = 0; in v4l2_ctrl_fill()
1245 *min = *max = *step = *def = 0; in v4l2_ctrl_fill()
1249 *step = 1; in v4l2_ctrl_fill()
1274 *step = 1; in v4l2_ctrl_fill()
1281 *step = 1; in v4l2_ctrl_fill()
1397 ev->u.ctrl.step = 1; in fill_event()
1399 ev->u.ctrl.step = ctrl->step; in fill_event()
1538 val >= (ctrl)->maximum - (s32)((ctrl)->step / 2)) \
1541 val += (s32)((ctrl)->step / 2); \
1545 offset = (ctrl)->step * (offset / (u32)(ctrl)->step); \
1567 if (ctrl->maximum >= 0 && val >= ctrl->maximum - (s64)(ctrl->step / 2)) in std_validate()
1570 val += (s64)(ctrl->step / 2); in std_validate()
1573 do_div(offset, ctrl->step); in std_validate()
1574 ptr.p_s64[idx] = ctrl->minimum + offset * ctrl->step; in std_validate()
1612 if ((len - (u32)ctrl->minimum) % (u32)ctrl->step) in std_validate()
1829 s64 min, s64 max, u64 step, s64 def) in check_range() argument
1833 if (step != 1 || max > 1 || min < 0) in check_range()
1841 if (step == 0 || min > max || def < min || def > max) in check_range()
1845 if (step || min || !max || (def & ~max)) in check_range()
1854 if (step && ((1 << def) & step)) in check_range()
1858 if (min > max || min < 0 || step < 1 || def) in check_range()
2094 s64 min, s64 max, u64 step, s64 def, in v4l2_ctrl_new() argument
2152 err = check_range(type, min, max, step, def); in v4l2_ctrl_new()
2193 ctrl->step = step; in v4l2_ctrl_new()
2246 u64 step = cfg->step; in v4l2_ctrl_new_custom() local
2250 v4l2_ctrl_fill(cfg->id, &name, &type, &min, &max, &step, in v4l2_ctrl_new_custom()
2256 WARN_ON(step); in v4l2_ctrl_new_custom()
2268 is_menu ? cfg->menu_skip_mask : step, def, in v4l2_ctrl_new_custom()
2280 u32 id, s64 min, s64 max, u64 step, s64 def) in v4l2_ctrl_new_std() argument
2286 v4l2_ctrl_fill(id, &name, &type, &min, &max, &step, &def, &flags); in v4l2_ctrl_new_std()
2294 min, max, step, def, NULL, 0, in v4l2_ctrl_new_std()
2312 u64 step; in v4l2_ctrl_new_std_menu() local
2315 v4l2_ctrl_fill(id, &name, &type, &min, &max, &step, &def, &flags); in v4l2_ctrl_new_std_menu()
2340 u64 step; in v4l2_ctrl_new_std_menu_items() local
2353 v4l2_ctrl_fill(id, &name, &type, &min, &max, &step, &def, &flags); in v4l2_ctrl_new_std_menu_items()
2373 u64 step; in v4l2_ctrl_new_int_menu() local
2378 v4l2_ctrl_fill(id, &name, &type, &min, &max, &step, &def, &flags); in v4l2_ctrl_new_int_menu()
2737 qc->step = 1; in v4l2_query_ext_ctrl()
2739 qc->step = ctrl->step; in v4l2_query_ext_ctrl()
2767 qc->step = qec.step; in v4l2_queryctrl()
2773 qc->step = 0; in v4l2_queryctrl()
3467 s64 min, s64 max, u64 step, s64 def) in __v4l2_ctrl_modify_range() argument
3487 ret = check_range(ctrl->type, min, max, step, def); in __v4l2_ctrl_modify_range()
3495 (ctrl->step != step) || ctrl->default_value != def) { in __v4l2_ctrl_modify_range()
3499 ctrl->step = step; in __v4l2_ctrl_modify_range()