Lines Matching +full:95 +full:v
197 #define VDD_FROM_REG(val) DIV_ROUND_CLOSEST((val) * 95, 4)
198 #define VDD_CLAMP(val) clamp_val(val, 0, 255 * 95 / 4)
199 #define VDD_TO_REG(val) DIV_ROUND_CLOSEST(VDD_CLAMP(val) * 4, 95)
251 long v; in in_min_store() local
254 err = kstrtol(buf, 10, &v); in in_min_store()
261 r = VDD_TO_REG(v); in in_min_store()
263 r = IN_TO_REG(v); in in_min_store()
285 long v; in in_max_store() local
288 err = kstrtol(buf, 10, &v); in in_max_store()
293 r = VDD_TO_REG(v); in in_max_store()
295 r = IN_TO_REG(v); in in_max_store()
382 unsigned long v; in fan_min_store() local
385 err = kstrtoul(buf, 10, &v); in fan_min_store()
390 r = FAN_TO_REG(v, data->fan_div[n]); in fan_min_store()
422 unsigned long v; in fan_div_store() local
425 err = kstrtoul(buf, 10, &v); in fan_div_store()
429 switch (v) { in fan_div_store()
444 "fan_div value %ld not supported. Choose one of 1, 2, 4 or 8!\n", v); in fan_div_store()
471 unsigned long v; in fan1_off_store() local
474 err = kstrtoul(buf, 10, &v); in fan1_off_store()
478 r = (v ? 1 : 0); in fan1_off_store()
535 long v; in temp_max_store() local
538 err = kstrtol(buf, 10, &v); in temp_max_store()
543 data->temp_max[n] = TEMP_TO_REG(v); in temp_max_store()
556 long v; in temp_max_hyst_store() local
559 err = kstrtol(buf, 10, &v); in temp_max_hyst_store()
564 data->temp_max_hyst[n] = TEMP_TO_REG(v); in temp_max_hyst_store()
606 unsigned long v; in beep_enable_store() local
609 err = kstrtoul(buf, 10, &v); in beep_enable_store()
613 r = (v ? 0 : 1); in beep_enable_store()