Lines Matching refs:th
38 struct thermal_handler *th; member
41 static int show_threshold(struct thermal_threshold *th, __maybe_unused void *arg) in show_threshold() argument
44 th->temperature, th->direction); in show_threshold()
92 struct thermal_handler *th = arg; in set_threshold() local
98 if (thermal_cmd_threshold_flush(th, tz)) { in set_threshold()
104 if (thermal_cmd_threshold_add(th, tz, thresholds[i], in set_threshold()
296 return thermal_events_handle(td->th, td); in thermal_event()
386 td.th = thermal_init(&ops); in main()
387 if (!td.th) { in main()
392 td.tz = thermal_zone_discover(td.th); in main()
398 for_each_thermal_zone(td.tz, set_threshold, td.th); in main()
400 for_each_thermal_zone(td.tz, show_tz, td.th); in main()
407 if (mainloop_add(thermal_events_fd(td.th), thermal_event, &td)) { in main()