Lines Matching +defs:val +defs:client
124 #define SCALE(val, from, to) (((val) * (to) + ((from) / 2)) / (from)) argument
126 #define INS_TO_REG(n, val) \ argument
130 #define INSEXT_FROM_REG(n, val, ext) \ argument
133 #define INS_FROM_REG(n, val) SCALE((val), 192, lm85_scaling[n]) argument
136 static inline u16 FAN_TO_REG(unsigned long val) in FAN_TO_REG()
142 #define FAN_FROM_REG(val) ((val) == 0 ? -1 : (val) == 0xffff ? 0 : \ argument
146 #define TEMP_TO_REG(val) \ argument
148 #define TEMPEXT_FROM_REG(val, ext) \ argument
150 #define TEMP_FROM_REG(val) ((val) * 1000) argument
152 #define PWM_TO_REG(val) clamp_val(val, 0, 255) argument
153 #define PWM_FROM_REG(val) (val) argument
184 #define RANGE_FROM_REG(val) lm85_range_map[(val) & 0x0f] argument
225 #define ZONE_FROM_REG(val) lm85_zone_map[(val) >> 5] argument
239 #define HYST_TO_REG(val) clamp_val(((val) + 500) / 1000, 0, 15) argument
240 #define HYST_FROM_REG(val) ((val) * 1000) argument
287 struct i2c_client *client; member
321 static int lm85_read_value(struct i2c_client *client, u8 reg) in lm85_read_value()
347 static void lm85_write_value(struct i2c_client *client, u8 reg, int value) in lm85_write_value()
371 struct i2c_client *client = data->client; in lm85_update_device() local
393 int val = (ext1 << 8) + ext2; in lm85_update_device() local
500 int val; in lm85_update_device() local
574 struct i2c_client *client = data->client; in fan_min_store() local
575 unsigned long val; in fan_min_store() local
630 unsigned long val; in vrm_store() local
696 struct i2c_client *client = data->client; in pwm_store() local
697 unsigned long val; in pwm_store() local
739 struct i2c_client *client = data->client; in pwm_enable_store() local
741 unsigned long val; in pwm_enable_store() local
799 struct i2c_client *client = data->client; in pwm_freq_store() local
800 unsigned long val; in pwm_freq_store() local
865 struct i2c_client *client = data->client; in in_min_store() local
866 long val; in in_min_store() local
893 struct i2c_client *client = data->client; in in_max_store() local
894 long val; in in_max_store() local
958 struct i2c_client *client = data->client; in temp_min_store() local
959 long val; in temp_min_store() local
990 struct i2c_client *client = data->client; in temp_max_store() local
991 long val; in temp_max_store() local
1035 struct i2c_client *client = data->client; in pwm_auto_channels_store() local
1036 long val; in pwm_auto_channels_store() local
1066 struct i2c_client *client = data->client; in pwm_auto_pwm_min_store() local
1067 unsigned long val; in pwm_auto_pwm_min_store() local
1097 struct i2c_client *client = data->client; in pwm_auto_pwm_minctl_store() local
1099 long val; in pwm_auto_pwm_minctl_store() local
1145 struct i2c_client *client = data->client; in temp_auto_temp_off_store() local
1147 long val; in temp_auto_temp_off_store() local
1184 struct i2c_client *client = data->client; in temp_auto_temp_min_store() local
1185 long val; in temp_auto_temp_min_store() local
1225 struct i2c_client *client = data->client; in temp_auto_temp_max_store() local
1227 long val; in temp_auto_temp_max_store() local
1261 struct i2c_client *client = data->client; in temp_auto_temp_crit_store() local
1262 long val; in temp_auto_temp_crit_store() local
1427 static void lm85_init_client(struct i2c_client *client) in lm85_init_client()
1445 static int lm85_is_fake(struct i2c_client *client) in lm85_is_fake()
1466 static int lm85_detect(struct i2c_client *client, struct i2c_board_info *info) in lm85_detect()
1547 static int lm85_probe(struct i2c_client *client) in lm85_probe()