Home
last modified time | relevance | path

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

/drivers/hwmon/
Dmax6650.c277 int kscale, ktach, rpm; in get_target() local
288 ktach = data->speed; in get_target()
289 rpm = 60 * kscale * clock / (256 * (ktach + 1)); in get_target()
295 int kscale, ktach; in max6650_set_target() local
310 ktach = ((clock * kscale) / (256 * rpm / 60)) - 1; in max6650_set_target()
311 if (ktach < 0) in max6650_set_target()
312 ktach = 0; in max6650_set_target()
313 if (ktach > 255) in max6650_set_target()
314 ktach = 255; in max6650_set_target()
315 data->speed = ktach; in max6650_set_target()