Lines Matching refs:it87_read_value
779 static int it87_read_value(struct it87_data *data, u8 reg) in it87_read_value() function
799 data->pwm_ctrl[nr] = it87_read_value(data, IT87_REG_PWM[nr]); in it87_update_pwm_ctrl()
802 data->pwm_duty[nr] = it87_read_value(data, in it87_update_pwm_ctrl()
815 data->auto_temp[nr][i] = it87_read_value(data, in it87_update_pwm_ctrl()
818 data->auto_pwm[nr][i] = it87_read_value(data, in it87_update_pwm_ctrl()
830 it87_read_value(data, IT87_REG_AUTO_TEMP(nr, 5)); in it87_update_pwm_ctrl()
834 it87_read_value(data, in it87_update_pwm_ctrl()
841 it87_read_value(data, IT87_REG_AUTO_TEMP(nr, 3)); in it87_update_pwm_ctrl()
843 it87_read_value(data, IT87_REG_AUTO_TEMP(nr, 4)); in it87_update_pwm_ctrl()
886 it87_read_value(data, IT87_REG_CONFIG) | 0x40); in it87_update_device()
893 it87_read_value(data, IT87_REG_VIN[i]); in it87_update_device()
900 it87_read_value(data, IT87_REG_VIN_MIN(i)); in it87_update_device()
902 it87_read_value(data, IT87_REG_VIN_MAX(i)); in it87_update_device()
911 it87_read_value(data, IT87_REG_FAN_MIN[i]); in it87_update_device()
912 data->fan[i][0] = it87_read_value(data, in it87_update_device()
916 data->fan[i][0] |= it87_read_value(data, in it87_update_device()
918 data->fan[i][1] |= it87_read_value(data, in it87_update_device()
926 it87_read_value(data, IT87_REG_TEMP(i)); in it87_update_device()
930 it87_read_value(data, in it87_update_device()
937 it87_read_value(data, IT87_REG_TEMP_LOW(i)); in it87_update_device()
939 it87_read_value(data, IT87_REG_TEMP_HIGH(i)); in it87_update_device()
944 i = it87_read_value(data, IT87_REG_FAN_DIV); in it87_update_device()
951 it87_read_value(data, IT87_REG_ALARM1) | in it87_update_device()
952 (it87_read_value(data, IT87_REG_ALARM2) << 8) | in it87_update_device()
953 (it87_read_value(data, IT87_REG_ALARM3) << 16); in it87_update_device()
954 data->beeps = it87_read_value(data, IT87_REG_BEEP_ENABLE); in it87_update_device()
956 data->fan_main_ctrl = it87_read_value(data, in it87_update_device()
958 data->fan_ctl = it87_read_value(data, IT87_REG_FAN_CTL); in it87_update_device()
965 data->sensor = it87_read_value(data, IT87_REG_TEMP_ENABLE); in it87_update_device()
966 data->extra = it87_read_value(data, IT87_REG_TEMP_EXTRA); in it87_update_device()
973 data->vid = it87_read_value(data, IT87_REG_VID); in it87_update_device()
1125 regval = it87_read_value(data, IT87_REG_BEEP_ENABLE); in set_temp()
1183 extra = it87_read_value(data, IT87_REG_IFSEL); in get_temp_type()
1188 reg = it87_read_value(data, IT87_REG_TEMP_ENABLE); in get_temp_type()
1203 extra = it87_read_value(data, IT87_REG_TEMP_EXTRA); in get_temp_type()
1246 reg = it87_read_value(data, IT87_REG_TEMP_ENABLE); in set_temp_type()
1251 extra = it87_read_value(data, IT87_REG_TEMP_EXTRA); in set_temp_type()
1414 reg = it87_read_value(data, IT87_REG_FAN_DIV); in set_fan()
1453 old = it87_read_value(data, IT87_REG_FAN_DIV); in set_fan_div()
1540 tmp = it87_read_value(data, IT87_REG_FAN_CTL); in set_pwm_enable()
1662 data->fan_ctl = it87_read_value(data, IT87_REG_FAN_CTL) & 0x8f; in set_pwm_freq()
1666 data->extra = it87_read_value(data, IT87_REG_TEMP_EXTRA) & 0x8f; in set_pwm_freq()
2098 config = it87_read_value(data, IT87_REG_CONFIG); in clear_intrusion()
2158 data->beeps = it87_read_value(data, IT87_REG_BEEP_ENABLE); in set_beep()
3162 reg = it87_read_value(data, IT87_REG_VIN_MIN(i)); in it87_check_limit_regs()
3167 reg = it87_read_value(data, IT87_REG_TEMP_HIGH(i)); in it87_check_limit_regs()
3178 reg = it87_read_value(data, IT87_REG_VIN_ENABLE); in it87_check_voltage_monitors_reset()
3193 fan_main_ctrl = it87_read_value(data, IT87_REG_FAN_MAIN_CTRL); in it87_check_tachometers_reset()
3211 reg = it87_read_value(data, IT87_REG_FAN_16BIT); in it87_check_tachometers_16bit_mode()
3223 (it87_read_value(data, IT87_REG_CONFIG) & 0x3e) in it87_start_monitoring()
3266 data->fan_main_ctrl = it87_read_value(data, IT87_REG_FAN_MAIN_CTRL); in it87_init_device()
3272 tmp = it87_read_value(data, IT87_REG_FAN_16BIT); in it87_init_device()
3287 tmp = it87_read_value(data, IT87_REG_FAN_DIV); in it87_init_device()
3306 int tmp = it87_read_value(data, IT87_REG_FAN_CTL); in it87_check_pwm()
3319 pwm[i] = it87_read_value(data, in it87_check_pwm()
3416 if ((it87_read_value(data, IT87_REG_CONFIG) & 0x80) || in it87_probe()
3417 it87_read_value(data, IT87_REG_CHIPID) != 0x90) { in it87_probe()
3449 !(it87_read_value(data, IT87_REG_TEMP_EXTRA) & 0x80)) in it87_probe()
3460 u8 reg = it87_read_value(data, IT87_REG_TEMP456_ENABLE); in it87_probe()