Lines Matching refs:sr
274 struct wf_sensor *sr; in cpu_fans_tick() local
281 sr = sens_cpu_temp[cpu]; in cpu_fans_tick()
282 err = sr->ops->get_value(sr, &temp); in cpu_fans_tick()
296 sr = sens_cpu_power[cpu]; in cpu_fans_tick()
297 err = sr->ops->get_value(sr, &power); in cpu_fans_tick()
603 static void pm112_new_sensor(struct wf_sensor *sr) in pm112_new_sensor() argument
607 if (!strncmp(sr->name, "cpu-temp-", 9)) { in pm112_new_sensor()
608 i = sr->name[9] - '0'; in pm112_new_sensor()
609 if (sr->name[10] == 0 && i < NR_CORES && in pm112_new_sensor()
610 sens_cpu_temp[i] == NULL && wf_get_sensor(sr) == 0) in pm112_new_sensor()
611 sens_cpu_temp[i] = sr; in pm112_new_sensor()
613 } else if (!strncmp(sr->name, "cpu-power-", 10)) { in pm112_new_sensor()
614 i = sr->name[10] - '0'; in pm112_new_sensor()
615 if (sr->name[11] == 0 && i < NR_CORES && in pm112_new_sensor()
616 sens_cpu_power[i] == NULL && wf_get_sensor(sr) == 0) in pm112_new_sensor()
617 sens_cpu_power[i] = sr; in pm112_new_sensor()
618 } else if (!strcmp(sr->name, "hd-temp")) { in pm112_new_sensor()
619 if (hd_temp == NULL && wf_get_sensor(sr) == 0) in pm112_new_sensor()
620 hd_temp = sr; in pm112_new_sensor()
621 } else if (!strcmp(sr->name, "slots-power")) { in pm112_new_sensor()
622 if (slots_power == NULL && wf_get_sensor(sr) == 0) in pm112_new_sensor()
623 slots_power = sr; in pm112_new_sensor()
624 } else if (!strcmp(sr->name, "backside-temp")) { in pm112_new_sensor()
625 if (u4_temp == NULL && wf_get_sensor(sr) == 0) in pm112_new_sensor()
626 u4_temp = sr; in pm112_new_sensor()