• Home
  • Raw
  • Download

Lines Matching refs:sr

268 	struct wf_sensor *sr;  in cpu_fans_tick()  local
275 sr = sens_cpu_temp[cpu]; in cpu_fans_tick()
276 err = sr->ops->get_value(sr, &temp); in cpu_fans_tick()
290 sr = sens_cpu_power[cpu]; in cpu_fans_tick()
291 err = sr->ops->get_value(sr, &power); in cpu_fans_tick()
597 static void pm112_new_sensor(struct wf_sensor *sr) in pm112_new_sensor() argument
601 if (!strncmp(sr->name, "cpu-temp-", 9)) { in pm112_new_sensor()
602 i = sr->name[9] - '0'; in pm112_new_sensor()
603 if (sr->name[10] == 0 && i < NR_CORES && in pm112_new_sensor()
604 sens_cpu_temp[i] == NULL && wf_get_sensor(sr) == 0) in pm112_new_sensor()
605 sens_cpu_temp[i] = sr; in pm112_new_sensor()
607 } else if (!strncmp(sr->name, "cpu-power-", 10)) { in pm112_new_sensor()
608 i = sr->name[10] - '0'; in pm112_new_sensor()
609 if (sr->name[11] == 0 && i < NR_CORES && in pm112_new_sensor()
610 sens_cpu_power[i] == NULL && wf_get_sensor(sr) == 0) in pm112_new_sensor()
611 sens_cpu_power[i] = sr; in pm112_new_sensor()
612 } else if (!strcmp(sr->name, "hd-temp")) { in pm112_new_sensor()
613 if (hd_temp == NULL && wf_get_sensor(sr) == 0) in pm112_new_sensor()
614 hd_temp = sr; in pm112_new_sensor()
615 } else if (!strcmp(sr->name, "slots-power")) { in pm112_new_sensor()
616 if (slots_power == NULL && wf_get_sensor(sr) == 0) in pm112_new_sensor()
617 slots_power = sr; in pm112_new_sensor()
618 } else if (!strcmp(sr->name, "backside-temp")) { in pm112_new_sensor()
619 if (u4_temp == NULL && wf_get_sensor(sr) == 0) in pm112_new_sensor()
620 u4_temp = sr; in pm112_new_sensor()