Lines Matching defs:temp
228 struct temp_sensor_1 *temp;
237 temp = ((struct temp_sensor_1 *)sensors->temp.data) + sattr->index;
241 val = get_unaligned_be16(&temp->sensor_id);
248 if (temp->value == 0xFFFF)
250 val = get_unaligned_be16(&temp->value) * 1000;
264 struct temp_sensor_2 *temp;
273 temp = ((struct temp_sensor_2 *)sensors->temp.data) + sattr->index;
277 val = get_unaligned_be32(&temp->sensor_id);
280 val = temp->value;
289 if (temp->fru_type != OCC_FRU_TYPE_VRM) {
298 val = temp->fru_type;
301 val = temp->value == OCC_TEMP_SENSOR_FAULT;
730 struct temp_sensor_2 *temp;
740 switch (sensors->temp.version) {
742 num_attrs += (sensors->temp.num_sensors * 2);
745 num_attrs += (sensors->temp.num_sensors * 4);
749 sensors->temp.num_sensors = 0;
813 for (i = 0; i < sensors->temp.num_sensors; ++i) {
815 temp = ((struct temp_sensor_2 *)sensors->temp.data) + i;
817 snprintf(attr->name, sizeof(attr->name), "temp%d_label", s);
822 if (sensors->temp.version > 1 &&
823 temp->fru_type == OCC_FRU_TYPE_VRM) {
825 "temp%d_alarm", s);
828 "temp%d_input", s);
835 if (sensors->temp.version > 1) {
837 "temp%d_fru_type", s);
843 "temp%d_fault", s);
1050 sensor = &sensors->temp;