Lines Matching refs:sr
272 struct wf_sensor *sr;
279 sr = sens_cpu_temp[cpu];
280 err = sr->ops->get_value(sr, &temp);
294 sr = sens_cpu_power[cpu];
295 err = sr->ops->get_value(sr, &power);
601 static void pm112_new_sensor(struct wf_sensor *sr)
605 if (!strncmp(sr->name, "cpu-temp-", 9)) {
606 i = sr->name[9] - '0';
607 if (sr->name[10] == 0 && i < NR_CORES &&
608 sens_cpu_temp[i] == NULL && wf_get_sensor(sr) == 0)
609 sens_cpu_temp[i] = sr;
611 } else if (!strncmp(sr->name, "cpu-power-", 10)) {
612 i = sr->name[10] - '0';
613 if (sr->name[11] == 0 && i < NR_CORES &&
614 sens_cpu_power[i] == NULL && wf_get_sensor(sr) == 0)
615 sens_cpu_power[i] = sr;
616 } else if (!strcmp(sr->name, "hd-temp")) {
617 if (hd_temp == NULL && wf_get_sensor(sr) == 0)
618 hd_temp = sr;
619 } else if (!strcmp(sr->name, "slots-power")) {
620 if (slots_power == NULL && wf_get_sensor(sr) == 0)
621 slots_power = sr;
622 } else if (!strcmp(sr->name, "backside-temp")) {
623 if (u4_temp == NULL && wf_get_sensor(sr) == 0)
624 u4_temp = sr;