Home
last modified time | relevance | path

Searched refs:tempid (Results 1 – 2 of 2) sorted by relevance

/openbmc/qemu/hw/sensor/
H A Dtmp421.c117 int tempid; in tmp421_get_temperature() local
119 if (sscanf(name, "temperature%d", &tempid) != 1) { in tmp421_get_temperature()
124 if (tempid >= 4 || tempid < 0) { in tmp421_get_temperature()
129 value = ((s->temperature[tempid] - offset) * 1000 + 128) / 256; in tmp421_get_temperature()
144 int tempid; in tmp421_set_temperature() local
156 if (sscanf(name, "temperature%d", &tempid) != 1) { in tmp421_set_temperature()
161 if (tempid >= 4 || tempid < 0) { in tmp421_set_temperature()
166 s->temperature[tempid] = (int16_t) ((temp * 256 - 128) / 1000) + offset; in tmp421_set_temperature()
H A Demc141x.c59 unsigned tempid; in OBJECT_DECLARE_TYPE() local
61 if (sscanf(name, "temperature%u", &tempid) != 1) { in OBJECT_DECLARE_TYPE()
66 if (tempid >= sc->sensors_count) { in OBJECT_DECLARE_TYPE()
71 value = s->sensor[tempid].raw_temp_current * 1000; in OBJECT_DECLARE_TYPE()
82 unsigned tempid; in emc141x_set_temperature() local
88 if (sscanf(name, "temperature%u", &tempid) != 1) { in emc141x_set_temperature()
93 if (tempid >= sc->sensors_count) { in emc141x_set_temperature()
98 s->sensor[tempid].raw_temp_current = temp / 1000; in emc141x_set_temperature()