Searched refs:rpmdiv (Results 1 – 2 of 2) sorted by relevance
273 long rpmdiv; in fan_min_store() local282 rpmdiv = val * DIV_FROM_REG(data->fan_div[nr]); in fan_min_store()284 if (983040 > 192 * rpmdiv || 2 * rpmdiv > 983040) { in fan_min_store()289 data->fan_preload[nr] = 192 - ((983040 + rpmdiv / 2) / rpmdiv); in fan_min_store()
82 long rpmdiv; in FAN_TO_REG() local85 rpmdiv = clamp_val(rpm, 1, 960000) * div; in FAN_TO_REG()86 return clamp_val((480000 + rpmdiv / 2) / rpmdiv, 1, 255); in FAN_TO_REG()