Lines Matching refs:clamp_val
266 return clamp_val((1350000 + (rpm >> 1)) / rpm, 1, 0xffe); in fan_to_reg()
276 return clamp_val((val + 50) / 100, 0, 0xff); in time_to_reg()
286 return clamp_val(val / 1000, min, max); in temp_to_reg()
320 reg1 = clamp_val(DIV_ROUND_CLOSEST(base_clock, val), 1, 128); in pwm_freq_to_reg()
890 val = clamp_val(val, 0, 0xff); in store_pwm()
1127 tmp = clamp_val(tmp, 0, 0xff); in store_temp_pwm_enable()
1178 val = fan_to_reg(clamp_val(val, 0, 0xfff)); in store_fanin()
1184 val = clamp_val(val, 0, 0x3f); in store_fanin()
1228 val = clamp_val(val, 0, 0x7f); in store_temp_pwm()
1232 val = clamp_val(val, 0, 0x7f); in store_temp_pwm()
1236 val = clamp_val(val, 0, 0x0f); in store_temp_pwm()
1243 val = clamp_val(val, 0, 0x0f); in store_temp_pwm()
1542 val = clamp_val(val, 0, 0x3FF); in store_in()
1597 val = clamp_val(val, 0, 0xff); in store_sf_setup()