Lines Matching refs:w83795_read
417 static u8 w83795_read(struct i2c_client *client, u16 reg) in w83795_read() function
463 w83795_read(client, W83795_REG_IN[i][IN_MAX]); in w83795_update_limits()
465 w83795_read(client, W83795_REG_IN[i][IN_LOW]); in w83795_update_limits()
472 w83795_read(client, IN_LSB_REG(i, IN_MAX)); in w83795_update_limits()
474 w83795_read(client, IN_LSB_REG(i, IN_LOW)); in w83795_update_limits()
485 lsb = w83795_read(client, W83795_REG_FAN_MIN_LSB(i)); in w83795_update_limits()
490 w83795_read(client, W83795_REG_FAN_MIN_HL(i)) << 4; in w83795_update_limits()
501 w83795_read(client, W83795_REG_TEMP[i][limit]); in w83795_update_limits()
508 w83795_read(client, W83795_REG_DTS_EXT(limit)); in w83795_update_limits()
515 w83795_read(client, W83795_REG_BEEP(i)); in w83795_update_limits()
534 data->temp_src[i] = w83795_read(client, W83795_REG_TSS(i)); in w83795_update_pwm_config()
537 data->pwm_fcms[0] = w83795_read(client, W83795_REG_FCMS1); in w83795_update_pwm_config()
538 data->pwm_fcms[1] = w83795_read(client, W83795_REG_FCMS2); in w83795_update_pwm_config()
540 data->pwm_tfmr[i] = w83795_read(client, W83795_REG_TFMR(i)); in w83795_update_pwm_config()
541 data->pwm_fomc = w83795_read(client, W83795_REG_FOMC); in w83795_update_pwm_config()
545 w83795_read(client, W83795_REG_PWM(i, tmp)); in w83795_update_pwm_config()
549 w83795_read(client, W83795_REG_FTSH(i)) << 4; in w83795_update_pwm_config()
551 w83795_read(client, W83795_REG_FTSL(i)) >> 4; in w83795_update_pwm_config()
553 data->tol_speed = w83795_read(client, W83795_REG_TFTS) & 0x3f; in w83795_update_pwm_config()
557 w83795_read(client, W83795_REG_TTTI(i)) & 0x7f; in w83795_update_pwm_config()
559 w83795_read(client, W83795_REG_CTFS(i)); in w83795_update_pwm_config()
560 tmp = w83795_read(client, W83795_REG_HT(i)); in w83795_update_pwm_config()
569 w83795_read(client, in w83795_update_pwm_config()
572 w83795_read(client, W83795_REG_SF4_PWM(i, tmp)); in w83795_update_pwm_config()
579 w83795_read(client, W83795_REG_SETUP_PWM(i)); in w83795_update_pwm_config()
609 tmp = w83795_read(client, W83795_REG_IN[i][IN_READ]) << 2; in w83795_update_device()
610 tmp |= w83795_read(client, W83795_REG_VRLSB) >> 6; in w83795_update_device()
616 u8 lsb_max = w83795_read(client, IN_LSB_REG(0, IN_MAX)); in w83795_update_device()
617 u8 lsb_low = w83795_read(client, IN_LSB_REG(0, IN_LOW)); in w83795_update_device()
623 w83795_read(client, W83795_REG_IN[i][IN_MAX]); in w83795_update_device()
625 w83795_read(client, W83795_REG_IN[i][IN_LOW]); in w83795_update_device()
635 data->fan[i] = w83795_read(client, W83795_REG_FAN(i)) << 4; in w83795_update_device()
636 data->fan[i] |= w83795_read(client, W83795_REG_VRLSB) >> 4; in w83795_update_device()
642 w83795_read(client, W83795_REG_TEMP[i][TEMP_READ]); in w83795_update_device()
644 w83795_read(client, W83795_REG_VRLSB); in w83795_update_device()
653 w83795_read(client, W83795_REG_DTS(i)); in w83795_update_device()
655 w83795_read(client, W83795_REG_VRLSB); in w83795_update_device()
662 w83795_read(client, W83795_REG_PWM(i, PWM_OUTPUT)); in w83795_update_device()
670 tmp = w83795_read(client, W83795_REG_ALARM_CTRL); in w83795_update_device()
675 intrusion = w83795_read(client, W83795_REG_ALARM(5)) & (1 << 6); in w83795_update_device()
679 data->alarms[i] = w83795_read(client, W83795_REG_ALARM(i)); in w83795_update_device()
738 data->beeps[index] = w83795_read(client, W83795_REG_BEEP(index)); in store_beep()
761 val = w83795_read(client, W83795_REG_CLR_CHASSIS); in store_chassis_clear()
766 w83795_read(client, W83795_REG_ALARM(5)); in store_chassis_clear()
813 val |= w83795_read(client, W83795_REG_FAN_MIN_LSB(index)) in store_fan_min()
816 val |= w83795_read(client, W83795_REG_FAN_MIN_LSB(index)) in store_fan_min()
1224 tmp = w83795_read(client, W83795_REG_HT(index)); in store_temp_pwm()
1231 tmp = w83795_read(client, W83795_REG_HT(index)); in store_temp_pwm()
1463 tmp = w83795_read(client, W83795_REG_TEMP_CTRL2); in store_temp_mode()
1533 tmp = w83795_read(client, IN_LSB_REG(lsb_idx, nr)); in store_in()
1868 config = w83795_read(client, W83795_REG_CONFIG); in w83795_init_client()
2089 vid_ctl = w83795_read(client, W83795_REG_VID_CTRL); in w83795_check_dynamic_in_limits()
2160 data->has_in = w83795_read(client, W83795_REG_VOLT_CTRL1) in w83795_probe()
2161 | (w83795_read(client, W83795_REG_VOLT_CTRL2) << 8); in w83795_probe()
2162 data->has_fan = w83795_read(client, W83795_REG_FANIN_CTRL1) in w83795_probe()
2163 | (w83795_read(client, W83795_REG_FANIN_CTRL2) << 8); in w83795_probe()
2166 tmp = w83795_read(client, W83795_REG_TEMP_CTRL1); in w83795_probe()
2171 tmp = w83795_read(client, W83795_REG_TEMP_CTRL2); in w83795_probe()
2179 if (1 & w83795_read(client, W83795_REG_DTSC)) in w83795_probe()
2181 data->has_dts = w83795_read(client, W83795_REG_DTSE); in w83795_probe()
2189 tmp = w83795_read(client, W83795_REG_PECI_TBASE(i)); in w83795_probe()
2196 data->has_gain = w83795_read(client, W83795_REG_VMIGB_CTRL) & 0x0f; in w83795_probe()
2213 tmp = w83795_read(client, W83795_REG_OVT_CFG); in w83795_probe()