Home
last modified time | relevance | path

Searched refs:rpmdiv (Results 1 – 2 of 2) sorted by relevance

/linux-5.19.10/drivers/hwmon/
Dsmsc47m1.c273 long rpmdiv; in fan_min_store() local
282 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()
Dgl518sm.c82 long rpmdiv; in FAN_TO_REG() local
85 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()