Lines Matching refs:adt7475_read

139 #define adt7475_read(reg) i2c_smbus_read_byte_data(client, (reg))  macro
473 data->config5 = adt7475_read(REG_CONFIG5); in temp_store()
494 adt7475_read(TEMP_THERM_REG(sattr->index)) << 2; in temp_store()
678 data->config5 = adt7475_read(REG_CONFIG5); in point2_store()
680 adt7475_read(TEMP_TMIN_REG(sattr->index)) << 2; in point2_store()
682 adt7475_read(TEMP_TRANGE_REG(sattr->index)); in point2_store()
802 adt7475_read(PWM_CONFIG_REG(sattr->index)); in pwm_store()
1014 adt7475_read(TEMP_TRANGE_REG(sattr->index)); in pwmfreq_store()
1347 vendid = adt7475_read(REG_VENDID); in adt7475_detect()
1348 devid2 = adt7475_read(REG_DEVID2); in adt7475_detect()
1353 devid = adt7475_read(REG_DEVID); in adt7475_detect()
1380 ret = adt7475_read(REG_CONFIG4); in adt7475_update_limits()
1385 ret = adt7475_read(REG_CONFIG5); in adt7475_update_limits()
1394 ret = adt7475_read(VOLTAGE_MIN_REG(i)); in adt7475_update_limits()
1399 ret = adt7475_read(VOLTAGE_MAX_REG(i)); in adt7475_update_limits()
1406 ret = adt7475_read(REG_VTT_MIN); in adt7475_update_limits()
1411 ret = adt7475_read(REG_VTT_MAX); in adt7475_update_limits()
1418 ret = adt7475_read(REG_IMON_MIN); in adt7475_update_limits()
1423 ret = adt7475_read(REG_IMON_MAX); in adt7475_update_limits()
1431 ret = adt7475_read(TEMP_MIN_REG(i)); in adt7475_update_limits()
1436 ret = adt7475_read(TEMP_MAX_REG(i)); in adt7475_update_limits()
1441 ret = adt7475_read(TEMP_TMIN_REG(i)); in adt7475_update_limits()
1446 ret = adt7475_read(TEMP_THERM_REG(i)); in adt7475_update_limits()
1451 ret = adt7475_read(TEMP_OFFSET_REG(i)); in adt7475_update_limits()
1470 ret = adt7475_read(PWM_MAX_REG(i)); in adt7475_update_limits()
1475 ret = adt7475_read(PWM_MIN_REG(i)); in adt7475_update_limits()
1483 ret = adt7475_read(TEMP_TRANGE_REG(0)); in adt7475_update_limits()
1488 ret = adt7475_read(TEMP_TRANGE_REG(1)); in adt7475_update_limits()
1493 ret = adt7475_read(TEMP_TRANGE_REG(2)); in adt7475_update_limits()
1509 ret = adt7475_read(REG_CONFIG3); in load_config3()
1535 ret = adt7475_read(REG_CONFIG4); in load_config4()
1650 ret = adt7475_read(PWM_CONFIG_REG(i)); in adt7475_set_pwm_polarity()
1753 ret = adt7475_read(PWM_CONFIG_REG(cfg.index)); in adt7475_fan_pwm_config()
1777 data->range[cfg.index] = adt7475_read(TEMP_TRANGE_REG(cfg.index)); in adt7475_fan_pwm_config()
1819 revision = adt7475_read(REG_DEVID2) & 0x07; in adt7475_probe()
1823 revision = adt7475_read(REG_DEVID2) & 0x03; in adt7475_probe()
1825 revision += adt7475_read(REG_DEVREV2); in adt7475_probe()
1829 revision = adt7475_read(REG_DEVID2) & 0x07; in adt7475_probe()
1836 config3 = adt7475_read(REG_CONFIG3); in adt7475_probe()
1844 data->config4 = adt7475_read(REG_CONFIG4); in adt7475_probe()
1870 u8 vid = adt7475_read(REG_VID); in adt7475_probe()
1874 data->has_vid = !(adt7475_read(REG_CONFIG5) & CONFIG5_VIDGPIO); in adt7475_probe()
1878 data->config2 = adt7475_read(REG_CONFIG2); in adt7475_probe()
1911 adt7475_read(REG_CONFIG1) | 0x01); in adt7475_probe()
1996 data->temp[HYSTERSIS][0] = (u16) adt7475_read(REG_REMOTE1_HYSTERSIS); in adt7475_read_hystersis()
1998 data->temp[HYSTERSIS][2] = (u16) adt7475_read(REG_REMOTE2_HYSTERSIS); in adt7475_read_hystersis()
2006 data->pwm[CONTROL][index] = adt7475_read(PWM_CONFIG_REG(index)); in adt7475_read_pwm()
2066 ret = adt7475_read(REG_STATUS2); in adt7475_update_measure()
2071 ret = adt7475_read(REG_STATUS1); in adt7475_update_measure()
2076 ret = adt7475_read(REG_EXTEND2); in adt7475_update_measure()
2082 ret = adt7475_read(REG_EXTEND1); in adt7475_update_measure()
2091 ret = adt7475_read(VOLTAGE_REG(i)); in adt7475_update_measure()
2100 ret = adt7475_read(TEMP_REG(i)); in adt7475_update_measure()
2109 ret = adt7475_read(REG_STATUS4); in adt7475_update_measure()
2114 ret = adt7475_read(REG_EXTEND3); in adt7475_update_measure()
2119 ret = adt7475_read(REG_VTT); in adt7475_update_measure()
2127 ret = adt7475_read(REG_STATUS4); in adt7475_update_measure()
2132 ret = adt7475_read(REG_EXTEND3); in adt7475_update_measure()
2137 ret = adt7475_read(REG_IMON); in adt7475_update_measure()
2157 ret = adt7475_read(PWM_REG(i)); in adt7475_update_measure()
2164 ret = adt7475_read(REG_VID); in adt7475_update_measure()