Lines Matching refs:adm1026_read_value
296 static int adm1026_read_value(struct i2c_client *client, u8 reg);
322 static int adm1026_read_value(struct i2c_client *client, u8 reg)
357 data->config1 = adm1026_read_value(client, ADM1026_REG_CONFIG1);
358 data->config2 = adm1026_read_value(client, ADM1026_REG_CONFIG2);
359 data->config3 = adm1026_read_value(client, ADM1026_REG_CONFIG3);
400 value = adm1026_read_value(client,
433 value = adm1026_read_value(client, ADM1026_REG_CONFIG1);
441 value = adm1026_read_value(client, ADM1026_REG_FAN_DIV_0_3) |
442 (adm1026_read_value(client, ADM1026_REG_FAN_DIV_4_7) << 8);
567 adm1026_read_value(client, ADM1026_REG_IN[i]);
572 adm1026_read_value(client, ADM1026_REG_FAN(i));
579 adm1026_read_value(client, ADM1026_REG_TEMP[i]);
582 data->pwm1.pwm = adm1026_read_value(client,
584 data->analog_out = adm1026_read_value(client,
587 alarms = adm1026_read_value(client, ADM1026_REG_STATUS4);
591 alarms |= adm1026_read_value(client, ADM1026_REG_STATUS3);
593 alarms |= adm1026_read_value(client, ADM1026_REG_STATUS2);
595 alarms |= adm1026_read_value(client, ADM1026_REG_STATUS1);
599 gpio |= adm1026_read_value(client,
602 gpio |= adm1026_read_value(client,
614 data->in_min[i] = adm1026_read_value(client,
616 data->in_max[i] = adm1026_read_value(client,
620 value = adm1026_read_value(client, ADM1026_REG_FAN_DIV_0_3)
621 | (adm1026_read_value(client, ADM1026_REG_FAN_DIV_4_7)
624 data->fan_min[i] = adm1026_read_value(client,
634 data->temp_min[i] = adm1026_read_value(client,
636 data->temp_max[i] = adm1026_read_value(client,
638 data->temp_tmin[i] = adm1026_read_value(client,
640 data->temp_crit[i] = adm1026_read_value(client,
642 data->temp_offset[i] = adm1026_read_value(client,
647 alarms = adm1026_read_value(client, ADM1026_REG_MASK4);
650 alarms |= adm1026_read_value(client, ADM1026_REG_MASK3);
652 alarms |= adm1026_read_value(client, ADM1026_REG_MASK2);
654 alarms |= adm1026_read_value(client, ADM1026_REG_MASK1);
658 gpio |= adm1026_read_value(client,
661 gpio |= adm1026_read_value(client, ADM1026_REG_GPIO_MASK_0_7);
665 data->config1 = adm1026_read_value(client,
673 data->config2 = adm1026_read_value(client,
675 data->config3 = adm1026_read_value(client,
682 value = adm1026_read_value(client,
1660 company = adm1026_read_value(client, ADM1026_REG_COMPANY);
1661 verstep = adm1026_read_value(client, ADM1026_REG_VERSTEP);