Lines Matching refs:it87_read_value

780 static int it87_read_value(struct it87_data *data, u8 reg)  in it87_read_value()  function
800 data->pwm_ctrl[nr] = it87_read_value(data, IT87_REG_PWM[nr]); in it87_update_pwm_ctrl()
803 data->pwm_duty[nr] = it87_read_value(data, in it87_update_pwm_ctrl()
816 data->auto_temp[nr][i] = it87_read_value(data, in it87_update_pwm_ctrl()
819 data->auto_pwm[nr][i] = it87_read_value(data, in it87_update_pwm_ctrl()
831 it87_read_value(data, IT87_REG_AUTO_TEMP(nr, 5)); in it87_update_pwm_ctrl()
835 it87_read_value(data, in it87_update_pwm_ctrl()
842 it87_read_value(data, IT87_REG_AUTO_TEMP(nr, 3)); in it87_update_pwm_ctrl()
844 it87_read_value(data, IT87_REG_AUTO_TEMP(nr, 4)); in it87_update_pwm_ctrl()
887 it87_read_value(data, IT87_REG_CONFIG) | 0x40); in it87_update_device()
894 it87_read_value(data, IT87_REG_VIN[i]); in it87_update_device()
901 it87_read_value(data, IT87_REG_VIN_MIN(i)); in it87_update_device()
903 it87_read_value(data, IT87_REG_VIN_MAX(i)); in it87_update_device()
912 it87_read_value(data, IT87_REG_FAN_MIN[i]); in it87_update_device()
913 data->fan[i][0] = it87_read_value(data, in it87_update_device()
917 data->fan[i][0] |= it87_read_value(data, in it87_update_device()
919 data->fan[i][1] |= it87_read_value(data, in it87_update_device()
927 it87_read_value(data, IT87_REG_TEMP(i)); in it87_update_device()
931 it87_read_value(data, in it87_update_device()
938 it87_read_value(data, IT87_REG_TEMP_LOW(i)); in it87_update_device()
940 it87_read_value(data, IT87_REG_TEMP_HIGH(i)); in it87_update_device()
945 i = it87_read_value(data, IT87_REG_FAN_DIV); in it87_update_device()
952 it87_read_value(data, IT87_REG_ALARM1) | in it87_update_device()
953 (it87_read_value(data, IT87_REG_ALARM2) << 8) | in it87_update_device()
954 (it87_read_value(data, IT87_REG_ALARM3) << 16); in it87_update_device()
955 data->beeps = it87_read_value(data, IT87_REG_BEEP_ENABLE); in it87_update_device()
957 data->fan_main_ctrl = it87_read_value(data, in it87_update_device()
959 data->fan_ctl = it87_read_value(data, IT87_REG_FAN_CTL); in it87_update_device()
966 data->sensor = it87_read_value(data, IT87_REG_TEMP_ENABLE); in it87_update_device()
967 data->extra = it87_read_value(data, IT87_REG_TEMP_EXTRA); in it87_update_device()
974 data->vid = it87_read_value(data, IT87_REG_VID); in it87_update_device()
1126 regval = it87_read_value(data, IT87_REG_BEEP_ENABLE); in set_temp()
1184 extra = it87_read_value(data, IT87_REG_IFSEL); in get_temp_type()
1189 reg = it87_read_value(data, IT87_REG_TEMP_ENABLE); in get_temp_type()
1204 extra = it87_read_value(data, IT87_REG_TEMP_EXTRA); in get_temp_type()
1247 reg = it87_read_value(data, IT87_REG_TEMP_ENABLE); in set_temp_type()
1252 extra = it87_read_value(data, IT87_REG_TEMP_EXTRA); in set_temp_type()
1415 reg = it87_read_value(data, IT87_REG_FAN_DIV); in set_fan()
1454 old = it87_read_value(data, IT87_REG_FAN_DIV); in set_fan_div()
1541 tmp = it87_read_value(data, IT87_REG_FAN_CTL); in set_pwm_enable()
1663 data->fan_ctl = it87_read_value(data, IT87_REG_FAN_CTL) & 0x8f; in set_pwm_freq()
1667 data->extra = it87_read_value(data, IT87_REG_TEMP_EXTRA) & 0x8f; in set_pwm_freq()
2099 config = it87_read_value(data, IT87_REG_CONFIG); in clear_intrusion()
2159 data->beeps = it87_read_value(data, IT87_REG_BEEP_ENABLE); in set_beep()
3205 reg = it87_read_value(data, IT87_REG_VIN_MIN(i)); in it87_check_limit_regs()
3210 reg = it87_read_value(data, IT87_REG_TEMP_HIGH(i)); in it87_check_limit_regs()
3221 reg = it87_read_value(data, IT87_REG_VIN_ENABLE); in it87_check_voltage_monitors_reset()
3236 fan_main_ctrl = it87_read_value(data, IT87_REG_FAN_MAIN_CTRL); in it87_check_tachometers_reset()
3254 reg = it87_read_value(data, IT87_REG_FAN_16BIT); in it87_check_tachometers_16bit_mode()
3266 (it87_read_value(data, IT87_REG_CONFIG) & 0x3e) in it87_start_monitoring()
3309 data->fan_main_ctrl = it87_read_value(data, IT87_REG_FAN_MAIN_CTRL); in it87_init_device()
3315 tmp = it87_read_value(data, IT87_REG_FAN_16BIT); in it87_init_device()
3330 tmp = it87_read_value(data, IT87_REG_FAN_DIV); in it87_init_device()
3349 int tmp = it87_read_value(data, IT87_REG_FAN_CTL); in it87_check_pwm()
3362 pwm[i] = it87_read_value(data, in it87_check_pwm()
3459 if ((it87_read_value(data, IT87_REG_CONFIG) & 0x80) || in it87_probe()
3460 it87_read_value(data, IT87_REG_CHIPID) != 0x90) { in it87_probe()
3492 !(it87_read_value(data, IT87_REG_TEMP_EXTRA) & 0x80)) in it87_probe()
3503 u8 reg = it87_read_value(data, IT87_REG_TEMP456_ENABLE); in it87_probe()