Lines Matching refs:gl520_read_value
107 static int gl520_read_value(struct i2c_client *client, u8 reg) in gl520_read_value() function
135 data->alarms = gl520_read_value(client, GL520_REG_ALARMS); in gl520_update_device()
136 data->beep_mask = gl520_read_value(client, GL520_REG_BEEP_MASK); in gl520_update_device()
137 data->vid = gl520_read_value(client, in gl520_update_device()
141 data->in_input[i] = gl520_read_value(client, in gl520_update_device()
143 val = gl520_read_value(client, GL520_REG_IN_LIMIT[i]); in gl520_update_device()
148 val = gl520_read_value(client, GL520_REG_FAN_INPUT); in gl520_update_device()
152 val = gl520_read_value(client, GL520_REG_FAN_MIN); in gl520_update_device()
156 data->temp_input[0] = gl520_read_value(client, in gl520_update_device()
158 data->temp_max[0] = gl520_read_value(client, in gl520_update_device()
160 data->temp_max_hyst[0] = gl520_read_value(client, in gl520_update_device()
163 val = gl520_read_value(client, GL520_REG_FAN_DIV); in gl520_update_device()
170 val = gl520_read_value(client, GL520_REG_CONF); in gl520_update_device()
175 data->temp_input[1] = gl520_read_value(client, in gl520_update_device()
177 data->temp_max[1] = gl520_read_value(client, in gl520_update_device()
179 data->temp_max_hyst[1] = gl520_read_value(client, in gl520_update_device()
182 data->in_input[4] = gl520_read_value(client, in gl520_update_device()
184 data->in_min[4] = gl520_read_value(client, in gl520_update_device()
186 data->in_max[4] = gl520_read_value(client, in gl520_update_device()
281 (gl520_read_value(client, GL520_REG_IN_MIN[n]) in set_in_min()
315 (gl520_read_value(client, GL520_REG_IN_MAX[n]) in set_in_max()
411 (gl520_read_value(client, GL520_REG_FAN_MIN) in set_fan_min()
415 (gl520_read_value(client, GL520_REG_FAN_MIN) in set_fan_min()
418 data->beep_mask = gl520_read_value(client, GL520_REG_BEEP_MASK); in set_fan_min()
468 (gl520_read_value(client, GL520_REG_FAN_DIV) in set_fan_div()
472 (gl520_read_value(client, GL520_REG_FAN_DIV) in set_fan_div()
497 (gl520_read_value(client, GL520_REG_FAN_OFF) in set_fan_off()
638 (gl520_read_value(client, GL520_REG_BEEP_ENABLE) in set_beep_enable()
715 data->beep_mask = gl520_read_value(client, GL520_REG_BEEP_MASK); in set_beep()
828 if ((gl520_read_value(client, GL520_REG_CHIP_ID) != 0x20) || in gl520_detect()
829 ((gl520_read_value(client, GL520_REG_REVISION) & 0x7f) != 0x00) || in gl520_detect()
830 ((gl520_read_value(client, GL520_REG_CONF) & 0x80) != 0x00)) { in gl520_detect()
846 conf = oldconf = gl520_read_value(client, GL520_REG_CONF); in gl520_init_client()