Lines Matching refs:gl520_read_value

93 static int gl520_read_value(struct i2c_client *client, u8 reg)  in gl520_read_value()  function
121 data->alarms = gl520_read_value(client, GL520_REG_ALARMS); in gl520_update_device()
122 data->beep_mask = gl520_read_value(client, GL520_REG_BEEP_MASK); in gl520_update_device()
123 data->vid = gl520_read_value(client, in gl520_update_device()
127 data->in_input[i] = gl520_read_value(client, in gl520_update_device()
129 val = gl520_read_value(client, GL520_REG_IN_LIMIT[i]); in gl520_update_device()
134 val = gl520_read_value(client, GL520_REG_FAN_INPUT); in gl520_update_device()
138 val = gl520_read_value(client, GL520_REG_FAN_MIN); in gl520_update_device()
142 data->temp_input[0] = gl520_read_value(client, in gl520_update_device()
144 data->temp_max[0] = gl520_read_value(client, in gl520_update_device()
146 data->temp_max_hyst[0] = gl520_read_value(client, in gl520_update_device()
149 val = gl520_read_value(client, GL520_REG_FAN_DIV); in gl520_update_device()
156 val = gl520_read_value(client, GL520_REG_CONF); in gl520_update_device()
161 data->temp_input[1] = gl520_read_value(client, in gl520_update_device()
163 data->temp_max[1] = gl520_read_value(client, in gl520_update_device()
165 data->temp_max_hyst[1] = gl520_read_value(client, in gl520_update_device()
168 data->in_input[4] = gl520_read_value(client, in gl520_update_device()
170 data->in_min[4] = gl520_read_value(client, in gl520_update_device()
172 data->in_max[4] = gl520_read_value(client, in gl520_update_device()
269 (gl520_read_value(client, GL520_REG_IN_MIN[n]) in in_min_store()
303 (gl520_read_value(client, GL520_REG_IN_MAX[n]) in in_max_store()
395 (gl520_read_value(client, GL520_REG_FAN_MIN) in fan_min_store()
399 (gl520_read_value(client, GL520_REG_FAN_MIN) in fan_min_store()
402 data->beep_mask = gl520_read_value(client, GL520_REG_BEEP_MASK); in fan_min_store()
453 (gl520_read_value(client, GL520_REG_FAN_DIV) in fan_div_store()
457 (gl520_read_value(client, GL520_REG_FAN_DIV) in fan_div_store()
483 (gl520_read_value(client, GL520_REG_FAN_OFF) in fan1_off_store()
618 (gl520_read_value(client, GL520_REG_BEEP_ENABLE) in beep_enable_store()
694 data->beep_mask = gl520_read_value(client, GL520_REG_BEEP_MASK); in beep_store()
807 if ((gl520_read_value(client, GL520_REG_CHIP_ID) != 0x20) || in gl520_detect()
808 ((gl520_read_value(client, GL520_REG_REVISION) & 0x7f) != 0x00) || in gl520_detect()
809 ((gl520_read_value(client, GL520_REG_CONF) & 0x80) != 0x00)) { in gl520_detect()
825 conf = oldconf = gl520_read_value(client, GL520_REG_CONF); in gl520_init_client()