/drivers/hwmon/ |
D | lm80.c | 125 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() 301 data->fan_min[nr] = FAN_TO_REG(min, DIV_FROM_REG(data->fan_div[nr])); in set_fan_div() 302 lm80_write_value(client, LM80_REG_FAN_MIN(nr + 1), data->fan_min[nr]); in set_fan_div() 558 data->fan_min[0] = lm80_read_value(client, LM80_REG_FAN_MIN(1)); in lm80_probe() 559 data->fan_min[1] = lm80_read_value(client, LM80_REG_FAN_MIN(2)); in lm80_probe() 656 data->fan_min[0] = rv; in lm80_update_device() [all …]
|
D | adm9240.c | 174 u8 fan_min[2]; /* rw fan1_min */ member 331 return sprintf(buf, "%d\n", FAN_FROM_REG(data->fan_min[attr->index], in show_fan_min() 389 data->fan_min[nr] = 255; in set_fan_min() 397 data->fan_min[nr] = 254; in set_fan_min() 413 data->fan_min[nr] = new_min; in set_fan_min() 424 data->fan_min[nr]); in set_fan_min() 751 if (data->fan_min[i] < 255 && in adm9240_update_device() 752 data->fan_min[i] >= 2) in adm9240_update_device() 753 data->fan_min[i] /= 2; in adm9240_update_device() 770 data->fan_min[i] = i2c_smbus_read_byte_data(client, in adm9240_update_device()
|
D | vt8231.c | 171 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() 584 data->fan_min[nr] = FAN_TO_REG(min, DIV_FROM_REG(data->fan_div[nr])); in set_fan_div() 585 vt8231_write_value(data, VT8231_REG_FAN_MIN(nr), data->fan_min[nr]); in set_fan_div() 902 data->fan_min[i] = vt8231_read_value(data, in vt8231_update_device() 928 if (!data->fan[0] && data->fan_min[0]) in vt8231_update_device() 930 else if (data->fan[0] && !data->fan_min[0]) in vt8231_update_device() [all …]
|
D | w83l786ng.c | 139 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() 684 data->fan_min[i] = w83l786ng_read_value(client, in w83l786ng_probe() 764 data->fan_min[i] = w83l786ng_read_value(client, in w83l786ng_update_device()
|
D | asb100.c | 207 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() 811 data->fan_min[0] = asb100_read_value(client, ASB100_REG_FAN_MIN(0)); in asb100_probe() 812 data->fan_min[1] = asb100_read_value(client, ASB100_REG_FAN_MIN(1)); in asb100_probe() 813 data->fan_min[2] = asb100_read_value(client, ASB100_REG_FAN_MIN(2)); in asb100_probe() [all …]
|
D | pc87360.c | 202 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 …]
|
D | sis5595.c | 196 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() 475 data->fan_min[nr] = in set_fan_div() 477 sis5595_write_value(data, SIS5595_REG_FAN_MIN(nr), data->fan_min[nr]); in set_fan_div() 630 data->fan_min[i] = sis5595_read_value(data, in sis5595_probe() 728 data->fan_min[i] = in sis5595_update_device()
|
D | lm78.c | 140 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() 407 data->fan_min[nr] = in set_fan_div() 409 lm78_write_value(data, LM78_REG_FAN_MIN(nr), data->fan_min[nr]); in set_fan_div() 776 data->fan_min[i] = lm78_read_value(data, in lm78_init_device() 806 data->fan_min[i] = in lm78_update_device()
|
D | adm1031.c | 93 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() 1112 data->fan_min[chan] = in adm1031_update_device()
|
D | gl518sm.c | 128 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() 674 data->fan_min[0] = (val >> 8) & 0xff; in gl518_update_device() 675 data->fan_min[1] = val & 0xff; in gl518_update_device()
|
D | gl520sm.c | 121 u8 fan_min[2]; member 306 return sprintf(buf, "%d\n", FAN_FROM_REG(data->fan_min[n], in get_fan_min() 342 data->fan_min[n] = r; in set_fan_min() 354 if (data->fan_min[n] == 0) in set_fan_min() 850 if (data->fan_min[0] == 0) in gl520_init_client() 852 if (data->fan_min[1] == 0) in gl520_init_client() 923 data->fan_min[0] = (val >> 8) & 0xff; in gl520_update_device() 924 data->fan_min[1] = val & 0xff; in gl520_update_device()
|
D | lm87.c | 177 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()
|
D | nct6775.c | 620 u16 fan_min[5]; member 880 for (i = 0; i < ARRAY_SIZE(data->fan_min); i++) { in nct6775_init_fan_common() 895 u16 fan_min; in nct6775_select_fan_div() local 917 fan_min = data->fan_min[nr]; in nct6775_select_fan_div() 919 if (fan_min != 255 && fan_min > 1) in nct6775_select_fan_div() 920 fan_min >>= 1; in nct6775_select_fan_div() 922 if (fan_min != 255) { in nct6775_select_fan_div() 923 fan_min <<= 1; in nct6775_select_fan_div() 924 if (fan_min > 254) in nct6775_select_fan_div() 925 fan_min = 254; in nct6775_select_fan_div() [all …]
|
D | w83791d.c | 302 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() 1407 data->fan_min[i] = w83791d_read(client, W83791D_REG_FAN_MIN[i]); in w83791d_probe() 1548 data->fan_min[i] = w83791d_read(client, in w83791d_update_device() 1668 dev_dbg(dev, "fan[%d] min is: 0x%02x\n", i, data->fan_min[i]); in w83791d_print_debug()
|
D | w83792d.c | 288 u8 fan_min[7]; /* Register value */ member 422 show_fan_reg(fan_min); 440 data->fan_min[nr] = FAN_TO_REG(val, DIV_FROM_REG(data->fan_div[nr])); in store_fan_min() 442 data->fan_min[nr]); in store_fan_min() 485 min = FAN_FROM_REG(data->fan_min[nr], in store_fan_div() 498 data->fan_min[nr] = FAN_TO_REG(min, DIV_FROM_REG(data->fan_div[nr])); in store_fan_div() 499 w83792d_write_value(client, W83792D_REG_FAN_MIN[nr], data->fan_min[nr]); in store_fan_div() 1391 data->fan_min[i] = w83792d_read_value(client, in w83792d_probe() 1535 data->fan_min[i] = w83792d_read_value(client, in w83792d_update_device() 1644 dev_dbg(dev, "fan[%d] min is: 0x%x\n", i, data->fan_min[i]); in w83792d_print_debug()
|
D | via686a.c | 328 u8 fan_min[2]; /* Register value */ member 521 FAN_FROM_REG(data->fan_min[nr], in show_fan_min() 544 data->fan_min[nr] = FAN_TO_REG(val, DIV_FROM_REG(data->fan_div[nr])); in set_fan_min() 545 via686a_write_value(data, VIA686A_REG_FAN_MIN(nr+1), data->fan_min[nr]); in set_fan_min() 784 data->fan_min[i - 1] = via686a_read_value(data, in via686a_update_device()
|
D | w83627hf.c | 372 u8 fan_min[3]; /* Register value */ member 442 data->fan_min[i]); in w83627hf_resume() 674 return sprintf(buf, "%ld\n", FAN_FROM_REG(data->fan_min[nr], in show_fan_min() 691 data->fan_min[nr] = FAN_TO_REG(val, DIV_FROM_REG(data->fan_div[nr])); in store_fan_min() 693 data->fan_min[nr]); in store_fan_min() 1022 min = FAN_FROM_REG(data->fan_min[nr], in store_fan_div() 1038 data->fan_min[nr] = FAN_TO_REG(min, DIV_FROM_REG(data->fan_div[nr])); in store_fan_div() 1039 w83627hf_write_value(data, W83627HF_REG_FAN_MIN(nr), data->fan_min[nr]); in store_fan_div() 1455 data->fan_min[i] = w83627hf_read_value( in w83627hf_probe() 1851 data->fan_min[i] = in w83627hf_update_device()
|
D | f75375s.c | 111 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);
|
D | w83781d.c | 229 u8 fan_min[3]; /* Register value */ member 323 show_fan_reg(fan_min); 340 data->fan_min[nr] = in store_fan_min() 343 data->fan_min[nr]); in store_fan_min() 667 min = FAN_FROM_REG(data->fan_min[nr], in store_fan_div() 688 data->fan_min[nr] = FAN_TO_REG(min, DIV_FROM_REG(data->fan_div[nr])); in store_fan_div() 689 w83781d_write_value(data, W83781D_REG_FAN_MIN(nr), data->fan_min[nr]); in store_fan_div() 1457 data->fan_min[i] = w83781d_read_value(data, in w83781d_init_device() 1491 data->fan_min[i] = in w83781d_update_device()
|
D | w83627ehf.c | 463 u16 fan_min[5]; member 831 data->fan_min[i] = w83627ehf_read_value(data, in w83627ehf_update_device() 851 && data->fan_min[i] >= 2 in w83627ehf_update_device() 852 && data->fan_min[i] != 255) in w83627ehf_update_device() 855 (data->fan_min[i] /= 2)); in w83627ehf_update_device() 1054 data->fan_from_reg_min(data->fan_min[nr], in show_fan_min() 1098 data->fan_min[nr] = val; in store_fan_min() 1103 data->fan_min[nr] = 255; in store_fan_min() 1111 data->fan_min[nr] = 254; in store_fan_min() 1121 data->fan_min[nr] = 1; in store_fan_min() [all …]
|
D | adm1026.c | 286 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()
|
D | vt1211.c | 132 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()
|
D | sch5627.c | 86 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()
|
/drivers/macintosh/ |
D | therm_pm72.c | 1081 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 …]
|
D | windfarm_rm31.c | 369 int speed, dspeed, fan_min; in backside_fan_tick() local 409 fan_min = (dspeed * 100) / 14000; in backside_fan_tick() 410 fan_min = max(fan_min, backside_param.min); in backside_fan_tick() 411 speed = max(speed, fan_min); in backside_fan_tick()
|