Searched refs:in_range (Results 1 – 2 of 2) sorted by relevance
121 int16_t in_range = cal->in_max - cal->in_min; in analog_axis_out_deadzone() local130 in_range -= cal->in_deadzone * 2; in analog_axis_out_deadzone()138 return DIV_ROUND_CLOSEST((raw_val - in_min) * out_range, in_range) + axis_cfg->out_min; in analog_axis_out_deadzone()149 int16_t in_range = cal->in_max - cal->in_min; in analog_axis_out_linear() local152 return DIV_ROUND_CLOSEST((raw_val - cal->in_min) * out_range, in_range) + axis_cfg->out_min; in analog_axis_out_linear()
545 const bool in_range = IN_RANGE(argc, mand, mand + opt); in exec_cmd() local548 ret_val = cmd_precheck(sh, in_range); in exec_cmd()