Home
last modified time | relevance | path

Searched refs:fan_min (Results 1 – 25 of 32) sorted by relevance

12

/drivers/hwmon/
Dlm80.c125 u8 fan_min[2]; /* Register value */ member
221 show_fan(min, fan_min)
246 data->fan_min[nr] = FAN_TO_REG(val, DIV_FROM_REG(data->fan_div[nr])); in set_fan_min()
247 lm80_write_value(client, LM80_REG_FAN_MIN(nr + 1), data->fan_min[nr]); in set_fan_min()
272 min = FAN_FROM_REG(data->fan_min[nr], in set_fan_div()
300 data->fan_min[nr] = FAN_TO_REG(min, DIV_FROM_REG(data->fan_div[nr])); in set_fan_div()
301 lm80_write_value(client, LM80_REG_FAN_MIN(nr + 1), data->fan_min[nr]); in set_fan_div()
559 data->fan_min[0] = lm80_read_value(client, LM80_REG_FAN_MIN(1)); in lm80_probe()
560 data->fan_min[1] = lm80_read_value(client, LM80_REG_FAN_MIN(2)); in lm80_probe()
661 data->fan_min[0] = rv; in lm80_update_device()
[all …]
Dadm9240.c173 u8 fan_min[2]; /* rw fan1_min */ member
330 return sprintf(buf, "%d\n", FAN_FROM_REG(data->fan_min[attr->index], in show_fan_min()
387 data->fan_min[nr] = 255; in set_fan_min()
395 data->fan_min[nr] = 254; in set_fan_min()
411 data->fan_min[nr] = new_min; in set_fan_min()
422 data->fan_min[nr]); in set_fan_min()
781 if (data->fan_min[i] < 255 && in adm9240_update_device()
782 data->fan_min[i] >= 2) in adm9240_update_device()
783 data->fan_min[i] /= 2; in adm9240_update_device()
800 data->fan_min[i] = i2c_smbus_read_byte_data(client, in adm9240_update_device()
Dw83l786ng.c139 u8 fan_min[2]; member
256 show_fan_reg(fan_min);
273 data->fan_min[nr] = FAN_TO_REG(val, DIV_FROM_REG(data->fan_div[nr])); in store_fan_min()
275 data->fan_min[nr]); in store_fan_min()
319 min = FAN_FROM_REG(data->fan_min[nr], DIV_FROM_REG(data->fan_div[nr])); in store_fan_div()
343 data->fan_min[nr] = FAN_TO_REG(min, DIV_FROM_REG(data->fan_div[nr])); in store_fan_div()
345 data->fan_min[nr]); in store_fan_div()
685 data->fan_min[i] = w83l786ng_read_value(client, in w83l786ng_probe()
769 data->fan_min[i] = w83l786ng_read_value(client, in w83l786ng_update_device()
Dasb100.c207 u8 fan_min[3]; /* Register value */ member
314 return sprintf(buf, "%d\n", FAN_FROM_REG(data->fan_min[nr], in show_fan_min()
340 data->fan_min[nr] = FAN_TO_REG(val, DIV_FROM_REG(data->fan_div[nr])); in set_fan_min()
341 asb100_write_value(client, ASB100_REG_FAN_MIN(nr), data->fan_min[nr]); in set_fan_min()
369 min = FAN_FROM_REG(data->fan_min[nr], in set_fan_div()
393 data->fan_min[nr] = in set_fan_div()
395 asb100_write_value(client, ASB100_REG_FAN_MIN(nr), data->fan_min[nr]); in set_fan_div()
810 data->fan_min[0] = asb100_read_value(client, ASB100_REG_FAN_MIN(0)); in asb100_probe()
811 data->fan_min[1] = asb100_read_value(client, ASB100_REG_FAN_MIN(1)); in asb100_probe()
812 data->fan_min[2] = asb100_read_value(client, ASB100_REG_FAN_MIN(2)); in asb100_probe()
[all …]
Dpc87360.c202 u8 fan_min[3]; /* Register value */ member
271 return sprintf(buf, "%u\n", FAN_FROM_REG(data->fan_min[attr->index], in show_fan_min()
296 long fan_min; in set_fan_min() local
299 err = kstrtol(buf, 10, &fan_min); in set_fan_min()
304 fan_min = FAN_TO_REG(fan_min, in set_fan_min()
308 while (fan_min > 255 in set_fan_min()
310 fan_min >>= 1; in set_fan_min()
314 data->fan_min[attr->index] = fan_min > 255 ? 255 : fan_min; in set_fan_min()
317 data->fan_min[attr->index]); in set_fan_min()
343 static struct sensor_device_attribute fan_min[] = { variable
[all …]
Dvt8231.c171 u8 fan_min[2]; /* Register value */ member
512 return sprintf(buf, "%d\n", FAN_FROM_REG(data->fan_min[nr], in show_fan_min()
539 data->fan_min[nr] = FAN_TO_REG(val, DIV_FROM_REG(data->fan_div[nr])); in set_fan_min()
540 vt8231_write_value(data, VT8231_REG_FAN_MIN(nr), data->fan_min[nr]); in set_fan_min()
553 long min = FAN_FROM_REG(data->fan_min[nr], in set_fan_div()
583 data->fan_min[nr] = FAN_TO_REG(min, DIV_FROM_REG(data->fan_div[nr])); in set_fan_div()
584 vt8231_write_value(data, VT8231_REG_FAN_MIN(nr), data->fan_min[nr]); in set_fan_div()
913 data->fan_min[i] = vt8231_read_value(data, in vt8231_update_device()
939 if (!data->fan[0] && data->fan_min[0]) in vt8231_update_device()
941 else if (data->fan[0] && !data->fan_min[0]) in vt8231_update_device()
[all …]
Dsis5595.c196 u8 fan_min[2]; /* Register value */ member
386 return sprintf(buf, "%d\n", FAN_FROM_REG(data->fan_min[nr], in show_fan_min()
404 data->fan_min[nr] = FAN_TO_REG(val, DIV_FROM_REG(data->fan_div[nr])); in set_fan_min()
405 sis5595_write_value(data, SIS5595_REG_FAN_MIN(nr), data->fan_min[nr]); in set_fan_min()
441 min = FAN_FROM_REG(data->fan_min[nr], in set_fan_div()
474 data->fan_min[nr] = in set_fan_div()
476 sis5595_write_value(data, SIS5595_REG_FAN_MIN(nr), data->fan_min[nr]); in set_fan_div()
632 data->fan_min[i] = sis5595_read_value(data, in sis5595_probe()
739 data->fan_min[i] = in sis5595_update_device()
Dlm78.c140 u8 fan_min[3]; /* Register value */ member
318 return sprintf(buf, "%d\n", FAN_FROM_REG(data->fan_min[nr], in show_fan_min()
336 data->fan_min[nr] = FAN_TO_REG(val, DIV_FROM_REG(data->fan_div[nr])); in set_fan_min()
337 lm78_write_value(data, LM78_REG_FAN_MIN(nr), data->fan_min[nr]); in set_fan_min()
372 min = FAN_FROM_REG(data->fan_min[nr], in set_fan_div()
406 data->fan_min[nr] = in set_fan_div()
408 lm78_write_value(data, LM78_REG_FAN_MIN(nr), data->fan_min[nr]); in set_fan_div()
777 data->fan_min[i] = lm78_read_value(data, in lm78_init_device()
807 data->fan_min[i] = in lm78_update_device()
Dadm1031.c93 u8 fan_min[2]; member
536 FAN_FROM_REG(data->fan_min[nr], in show_fan_min()
554 data->fan_min[nr] = in set_fan_min()
557 data->fan_min[nr] = 0xff; in set_fan_min()
559 adm1031_write_value(client, ADM1031_REG_FAN_MIN(nr), data->fan_min[nr]); in set_fan_min()
591 data->fan_min[nr] = adm1031_read_value(client, in set_fan_div()
597 new_min = data->fan_min[nr] * old_div / val; in set_fan_div()
598 data->fan_min[nr] = new_min > 0xff ? 0xff : new_min; in set_fan_div()
603 data->fan_min[nr]); in set_fan_div()
1117 data->fan_min[chan] = in adm1031_update_device()
Dgl518sm.c128 u8 fan_min[2]; member
214 return sprintf(buf, "%d\n", FAN_FROM_REG(data->fan_min[nr], in show_fan_min()
302 data->fan_min[nr] = FAN_TO_REG(val, DIV_FROM_REG(data->fan_div[nr])); in set_fan_min()
304 | (data->fan_min[nr] << (8 * (1 - nr))); in set_fan_min()
308 if (data->fan_min[nr] == 0) in set_fan_min()
678 data->fan_min[0] = (val >> 8) & 0xff; in gl518_update_device()
679 data->fan_min[1] = val & 0xff; in gl518_update_device()
Dlm87.c177 u8 fan_min[2]; /* register value */ member
231 data->fan_min[i] = lm87_read_value(client, in lm87_update_device()
481 return sprintf(buf, "%d\n", FAN_FROM_REG(data->fan_min[nr], in show_fan_min()
509 data->fan_min[nr] = FAN_TO_REG(val, in set_fan_min()
511 lm87_write_value(client, LM87_REG_FAN_MIN(nr), data->fan_min[nr]); in set_fan_min()
538 min = FAN_FROM_REG(data->fan_min[nr], in set_fan_div()
570 data->fan_min[nr] = FAN_TO_REG(min, val); in set_fan_div()
572 data->fan_min[nr]); in set_fan_div()
Dgl520sm.c121 u8 fan_min[2]; member
307 return sprintf(buf, "%d\n", FAN_FROM_REG(data->fan_min[n], in get_fan_min()
343 data->fan_min[n] = r; in set_fan_min()
355 if (data->fan_min[n] == 0) in set_fan_min()
855 if (data->fan_min[0] == 0) in gl520_init_client()
857 if (data->fan_min[1] == 0) in gl520_init_client()
929 data->fan_min[0] = (val >> 8) & 0xff; in gl520_update_device()
930 data->fan_min[1] = val & 0xff; in gl520_update_device()
Dw83791d.c302 u8 fan_min[NUMBER_OF_FANIN]; /* Register value */ member
548 show_fan_reg(fan_min);
565 data->fan_min[nr] = fan_to_reg(val, DIV_FROM_REG(data->fan_div[nr])); in store_fan_min()
566 w83791d_write(client, W83791D_REG_FAN_MIN[nr], data->fan_min[nr]); in store_fan_min()
609 min = FAN_FROM_REG(data->fan_min[nr], DIV_FROM_REG(data->fan_div[nr])); in store_fan_div()
666 data->fan_min[nr] = fan_to_reg(min, DIV_FROM_REG(data->fan_div[nr])); in store_fan_div()
667 w83791d_write(client, W83791D_REG_FAN_MIN[nr], data->fan_min[nr]); in store_fan_div()
1408 data->fan_min[i] = w83791d_read(client, W83791D_REG_FAN_MIN[i]); in w83791d_probe()
1553 data->fan_min[i] = w83791d_read(client, in w83791d_update_device()
1673 dev_dbg(dev, "fan[%d] min is: 0x%02x\n", i, data->fan_min[i]); in w83791d_print_debug()
Dit87.c255 u16 fan_min[5]; /* Register values, possibly combined */ member
705 return sprintf(buf, "%d\n", FAN_FROM_REG(data->fan_min[nr], in show_fan_min()
771 data->fan_min[nr] = FAN_TO_REG(val, DIV_FROM_REG(data->fan_div[nr])); in set_fan_min()
772 it87_write_value(data, IT87_REG_FAN_MIN[nr], data->fan_min[nr]); in set_fan_min()
794 min = FAN_FROM_REG(data->fan_min[nr], DIV_FROM_REG(data->fan_div[nr])); in set_fan_div()
815 data->fan_min[nr] = FAN_TO_REG(min, DIV_FROM_REG(data->fan_div[nr])); in set_fan_div()
816 it87_write_value(data, IT87_REG_FAN_MIN[nr], data->fan_min[nr]); in set_fan_div()
1159 return sprintf(buf, "%d\n", FAN16_FROM_REG(data->fan_min[nr])); in show_fan16_min()
1174 data->fan_min[nr] = FAN16_TO_REG(val); in set_fan16_min()
1176 data->fan_min[nr] & 0xff); in set_fan16_min()
[all …]
Dvia686a.c331 u8 fan_min[2]; /* Register value */ member
524 FAN_FROM_REG(data->fan_min[nr], in show_fan_min()
547 data->fan_min[nr] = FAN_TO_REG(val, DIV_FROM_REG(data->fan_div[nr])); in set_fan_min()
548 via686a_write_value(data, VIA686A_REG_FAN_MIN(nr+1), data->fan_min[nr]); in set_fan_min()
796 data->fan_min[i - 1] = via686a_read_value(data, in via686a_update_device()
Dw83792d.c288 u8 fan_min[7]; /* Register value */ member
423 show_fan_reg(fan_min);
441 data->fan_min[nr] = FAN_TO_REG(val, DIV_FROM_REG(data->fan_div[nr])); in store_fan_min()
443 data->fan_min[nr]); in store_fan_min()
486 min = FAN_FROM_REG(data->fan_min[nr], in store_fan_div()
499 data->fan_min[nr] = FAN_TO_REG(min, DIV_FROM_REG(data->fan_div[nr])); in store_fan_div()
500 w83792d_write_value(client, W83792D_REG_FAN_MIN[nr], data->fan_min[nr]); in store_fan_div()
1444 data->fan_min[i] = w83792d_read_value(client, in w83792d_probe()
1592 data->fan_min[i] = w83792d_read_value(client, in w83792d_update_device()
1703 dev_dbg(dev, "fan[%d] min is: 0x%x\n", i, data->fan_min[i]); in w83792d_print_debug()
Df75375s.c111 u16 fan_min[2]; member
209 data->fan_min[nr] = in f75375_update_device()
313 data->fan_min[nr] = rpm_to_reg(val); in set_fan_min()
314 f75375_write16(client, F75375_REG_FAN_MIN(nr), data->fan_min[nr]); in set_fan_min()
668 show_fan(fan_min);
Dw83781d.c230 u8 fan_min[3]; /* Register value */ member
324 show_fan_reg(fan_min);
341 data->fan_min[nr] = in store_fan_min()
344 data->fan_min[nr]); in store_fan_min()
668 min = FAN_FROM_REG(data->fan_min[nr], in store_fan_div()
689 data->fan_min[nr] = FAN_TO_REG(min, DIV_FROM_REG(data->fan_div[nr])); in store_fan_div()
690 w83781d_write_value(data, W83781D_REG_FAN_MIN(nr), data->fan_min[nr]); in store_fan_div()
1463 data->fan_min[i] = w83781d_read_value(data, in w83781d_init_device()
1497 data->fan_min[i] = in w83781d_update_device()
Dw83627hf.c373 u8 fan_min[3]; /* Register value */ member
604 return sprintf(buf, "%ld\n", FAN_FROM_REG(data->fan_min[nr], in show_fan_min()
621 data->fan_min[nr] = FAN_TO_REG(val, DIV_FROM_REG(data->fan_div[nr])); in store_fan_min()
623 data->fan_min[nr]); in store_fan_min()
952 min = FAN_FROM_REG(data->fan_min[nr], in store_fan_div()
968 data->fan_min[nr] = FAN_TO_REG(min, DIV_FROM_REG(data->fan_div[nr])); in store_fan_div()
969 w83627hf_write_value(data, W83627HF_REG_FAN_MIN(nr), data->fan_min[nr]); in store_fan_div()
1387 data->fan_min[i] = w83627hf_read_value( in w83627hf_probe()
1793 data->fan_min[i] = in w83627hf_update_device()
Dw83627ehf.c464 u16 fan_min[5]; member
824 data->fan_min[i] = w83627ehf_read_value(data, in w83627ehf_update_device()
844 && data->fan_min[i] >= 2 in w83627ehf_update_device()
845 && data->fan_min[i] != 255) in w83627ehf_update_device()
848 (data->fan_min[i] /= 2)); in w83627ehf_update_device()
1045 data->fan_from_reg_min(data->fan_min[nr], in show_fan_min()
1089 data->fan_min[nr] = val; in store_fan_min()
1094 data->fan_min[nr] = 255; in store_fan_min()
1102 data->fan_min[nr] = 254; in store_fan_min()
1112 data->fan_min[nr] = 1; in store_fan_min()
[all …]
Dadm1026.c286 u8 fan_min[8]; /* Register value */ member
636 data->fan_min[i] = adm1026_read_value(client, in adm1026_update_device()
883 return sprintf(buf, "%d\n", FAN_FROM_REG(data->fan_min[nr], in show_fan_min()
901 data->fan_min[nr] = FAN_TO_REG(val, data->fan_div[nr]); in set_fan_min()
903 data->fan_min[nr]); in set_fan_min()
932 if (data->fan_min[fan] == 0 || data->fan_min[fan] == 0xff) in fixup_fan_min()
935 new_min = data->fan_min[fan] * old_div / new_div; in fixup_fan_min()
937 data->fan_min[fan] = new_min; in fixup_fan_min()
Dvt1211.c132 u8 fan_min[2]; member
294 data->fan_min[ix] = vt1211_read8(data, in vt1211_update_device()
512 res = RPM_FROM_REG(data->fan_min[ix], data->fan_div[ix]); in show_fan()
554 data->fan_min[ix] = RPM_TO_REG(val, data->fan_div[ix]); in set_fan()
556 data->fan_min[ix]); in set_fan()
Dsch5627.c86 u16 fan_min[SCH5627_NO_FANS]; member
182 data->fan_min[i] = val; in sch5627_read_limits()
297 int val = reg_to_rpm(data->fan_min[attr->index]); in show_fan_min()
Dpc87427.c63 u16 fan_min[8]; /* register values */ member
190 data->fan_min[nr] = inw(iobase + PC87427_REG_FAN_MIN); in pc87427_readall_fan()
402 return sprintf(buf, "%lu\n", fan_from_reg(data->fan_min[nr])); in show_fan_min()
444 data->fan_min[nr] = fan_to_reg(val); in set_fan_min()
445 outw(data->fan_min[nr], iobase + PC87427_REG_FAN_MIN); in set_fan_min()
/drivers/macintosh/
Dtherm_pm72.c1081 s32 temp, power, fan_min; in do_monitor_cpu_rack() local
1119 fan_min = dimm_output_clamp; in do_monitor_cpu_rack()
1120 fan_min = max(fan_min, (int)state->mpu.rminn_intake_fan); in do_monitor_cpu_rack()
1125 state->rpm = max(state->rpm, (int)fan_min); in do_monitor_cpu_rack()
1234 s32 temp, integral, derivative, fan_min; in do_monitor_backside() local
1311 fan_min = (dimm_output_clamp * 100) / 14000; in do_monitor_backside()
1312 fan_min = max(fan_min, backside_params.output_min); in do_monitor_backside()
1314 state->pwm = max(state->pwm, fan_min); in do_monitor_backside()
1532 s32 temp, integral, derivative, fan_min; in do_monitor_dimms() local
1606 fan_min = (dimm_output_clamp * 100) / 14000; in do_monitor_dimms()
[all …]

12