Home
last modified time | relevance | path

Searched refs:cdev_id (Results 1 – 4 of 4) sorted by relevance

/tools/thermal/thermal-engine/
Dthermal-engine.c167 static int cdev_add(const char *name, int cdev_id, int max_state, __maybe_unused void *arg) in cdev_add() argument
169 INFO("Cooling device '%s'/%d (max state=%d) added\n", name, cdev_id, max_state); in cdev_add()
174 static int cdev_delete(int cdev_id, __maybe_unused void *arg) in cdev_delete() argument
176 INFO("Cooling device %d deleted", cdev_id); in cdev_delete()
181 static int cdev_update(int cdev_id, int cur_state, __maybe_unused void *arg) in cdev_update() argument
183 INFO("cdev:%d state:%d\n", cdev_id, cur_state); in cdev_update()
/tools/lib/thermal/include/
Dthermal.h30 int (*cdev_add)(const char *name, int cdev_id, int max_state, void *arg);
31 int (*cdev_delete)(int cdev_id, void *arg);
32 int (*cdev_update)(int cdev_id, int cur_state, void *arg);
/tools/thermal/tmon/
Dsysfs.c205 int cdev_id; in find_tzone_cdev() local
222 cdev_id = get_instance_id(cdev_name_linked, 1, in find_tzone_cdev()
225 cdev_name, cdev_name_linked, cdev_id); in find_tzone_cdev()
226 tzi->cdev_binding |= (1 << cdev_id); in find_tzone_cdev()
240 tzi->trip_binding[cdev_id] |= 1 << trip_instance; in find_tzone_cdev()
243 tzi->trip_binding[cdev_id], in find_tzone_cdev()
244 cdev_id); in find_tzone_cdev()
Dtui.c446 int cdev_id = 0; in handle_input_choice() local
451 cdev_id = ch - base; in handle_input_choice()
452 if (ptdata.nr_cooling_dev == cdev_id) in handle_input_choice()
456 ptdata.cdi[cdev_id].type, in handle_input_choice()
457 ptdata.cdi[cdev_id].instance); in handle_input_choice()
459 handle_input_val(cdev_id); in handle_input_choice()