Home
last modified time | relevance | path

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

/openbmc/linux/drivers/hwmon/
H A 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()
H A 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()