Home
last modified time | relevance | path

Searched refs:thermal_handler (Results 1 – 8 of 8) sorted by relevance

/linux-6.12.1/tools/lib/thermal/include/
Dthermal.h69 struct thermal_handler;
88 LIBTHERMAL_API struct thermal_zone *thermal_zone_discover(struct thermal_handler *th);
90 LIBTHERMAL_API struct thermal_handler *thermal_init(struct thermal_ops *ops);
92 LIBTHERMAL_API void thermal_exit(struct thermal_handler *th);
97 LIBTHERMAL_API thermal_error_t thermal_events_exit(struct thermal_handler *th);
99 LIBTHERMAL_API thermal_error_t thermal_events_init(struct thermal_handler *th);
101 LIBTHERMAL_API thermal_error_t thermal_events_handle(struct thermal_handler *th, void *arg);
103 LIBTHERMAL_API int thermal_events_fd(struct thermal_handler *th);
108 LIBTHERMAL_API thermal_error_t thermal_cmd_exit(struct thermal_handler *th);
110 LIBTHERMAL_API thermal_error_t thermal_cmd_init(struct thermal_handler *th);
[all …]
/linux-6.12.1/drivers/platform/x86/dell/
Ddell-pc.c108 static struct platform_profile_handler *thermal_handler; variable
247 thermal_handler = kzalloc(sizeof(*thermal_handler), GFP_KERNEL); in thermal_init()
248 if (!thermal_handler) in thermal_init()
250 thermal_handler->profile_get = thermal_platform_profile_get; in thermal_init()
251 thermal_handler->profile_set = thermal_platform_profile_set; in thermal_init()
254 set_bit(PLATFORM_PROFILE_QUIET, thermal_handler->choices); in thermal_init()
256 set_bit(PLATFORM_PROFILE_COOL, thermal_handler->choices); in thermal_init()
258 set_bit(PLATFORM_PROFILE_BALANCED, thermal_handler->choices); in thermal_init()
260 set_bit(PLATFORM_PROFILE_PERFORMANCE, thermal_handler->choices); in thermal_init()
263 ret = platform_profile_register(thermal_handler); in thermal_init()
[all …]
/linux-6.12.1/tools/lib/thermal/
Dsampling.c17 struct thermal_handler *th = thp->th; in handle_thermal_sample()
34 thermal_error_t thermal_sampling_handle(struct thermal_handler *th, void *arg) in thermal_sampling_handle()
48 int thermal_sampling_fd(struct thermal_handler *th) in thermal_sampling_fd()
56 thermal_error_t thermal_sampling_exit(struct thermal_handler *th) in thermal_sampling_exit()
67 thermal_error_t thermal_sampling_init(struct thermal_handler *th) in thermal_sampling_init()
Dcommands.c264 static thermal_error_t thermal_genl_auto(struct thermal_handler *th, int id, int cmd, in thermal_genl_auto()
290 thermal_error_t thermal_cmd_get_tz(struct thermal_handler *th, struct thermal_zone **tz) in thermal_cmd_get_tz()
296 thermal_error_t thermal_cmd_get_cdev(struct thermal_handler *th, struct thermal_cdev **tc) in thermal_cmd_get_cdev()
302 thermal_error_t thermal_cmd_get_trip(struct thermal_handler *th, struct thermal_zone *tz) in thermal_cmd_get_trip()
308 thermal_error_t thermal_cmd_get_governor(struct thermal_handler *th, struct thermal_zone *tz) in thermal_cmd_get_governor()
313 thermal_error_t thermal_cmd_get_temp(struct thermal_handler *th, struct thermal_zone *tz) in thermal_cmd_get_temp()
318 thermal_error_t thermal_cmd_exit(struct thermal_handler *th) in thermal_cmd_exit()
328 thermal_error_t thermal_cmd_init(struct thermal_handler *th) in thermal_cmd_init()
Dthermal.c89 struct thermal_zone *thermal_zone_discover(struct thermal_handler *th) in thermal_zone_discover()
102 void thermal_exit(struct thermal_handler *th) in thermal_exit()
111 struct thermal_handler *thermal_init(struct thermal_ops *ops) in thermal_init()
113 struct thermal_handler *th; in thermal_init()
Devents.c119 thermal_error_t thermal_events_handle(struct thermal_handler *th, void *arg) in thermal_events_handle()
133 int thermal_events_fd(struct thermal_handler *th) in thermal_events_fd()
141 thermal_error_t thermal_events_exit(struct thermal_handler *th) in thermal_events_exit()
152 thermal_error_t thermal_events_init(struct thermal_handler *th) in thermal_events_init()
Dthermal_nl.h11 struct thermal_handler { struct
25 struct thermal_handler *th; argument
/linux-6.12.1/tools/thermal/thermal-engine/
Dthermal-engine.c38 struct thermal_handler *th;