Lines Matching full:tz
307 int thermal_notify_tz_create(const struct thermal_zone_device *tz) in thermal_notify_tz_create() argument
309 struct param p = { .tz_id = tz->id, .name = tz->type }; in thermal_notify_tz_create()
314 int thermal_notify_tz_delete(const struct thermal_zone_device *tz) in thermal_notify_tz_delete() argument
316 struct param p = { .tz_id = tz->id }; in thermal_notify_tz_delete()
321 int thermal_notify_tz_enable(const struct thermal_zone_device *tz) in thermal_notify_tz_enable() argument
323 struct param p = { .tz_id = tz->id }; in thermal_notify_tz_enable()
328 int thermal_notify_tz_disable(const struct thermal_zone_device *tz) in thermal_notify_tz_disable() argument
330 struct param p = { .tz_id = tz->id }; in thermal_notify_tz_disable()
335 int thermal_notify_tz_trip_down(const struct thermal_zone_device *tz, in thermal_notify_tz_trip_down() argument
338 struct param p = { .tz_id = tz->id, in thermal_notify_tz_trip_down()
339 .trip_id = thermal_zone_trip_id(tz, trip), in thermal_notify_tz_trip_down()
340 .temp = tz->temperature }; in thermal_notify_tz_trip_down()
345 int thermal_notify_tz_trip_up(const struct thermal_zone_device *tz, in thermal_notify_tz_trip_up() argument
348 struct param p = { .tz_id = tz->id, in thermal_notify_tz_trip_up()
349 .trip_id = thermal_zone_trip_id(tz, trip), in thermal_notify_tz_trip_up()
350 .temp = tz->temperature }; in thermal_notify_tz_trip_up()
355 int thermal_notify_tz_trip_change(const struct thermal_zone_device *tz, in thermal_notify_tz_trip_change() argument
358 struct param p = { .tz_id = tz->id, in thermal_notify_tz_trip_change()
359 .trip_id = thermal_zone_trip_id(tz, trip), in thermal_notify_tz_trip_change()
390 int thermal_notify_tz_gov_change(const struct thermal_zone_device *tz, in thermal_notify_tz_gov_change() argument
393 struct param p = { .tz_id = tz->id, .name = name }; in thermal_notify_tz_gov_change()
409 static int __thermal_genl_cmd_tz_get_id(struct thermal_zone_device *tz, in __thermal_genl_cmd_tz_get_id() argument
414 if (nla_put_u32(msg, THERMAL_GENL_ATTR_TZ_ID, tz->id) || in __thermal_genl_cmd_tz_get_id()
415 nla_put_string(msg, THERMAL_GENL_ATTR_TZ_NAME, tz->type)) in __thermal_genl_cmd_tz_get_id()
449 struct thermal_zone_device *tz; in thermal_genl_cmd_tz_get_trip() local
458 tz = thermal_zone_get_by_id(id); in thermal_genl_cmd_tz_get_trip()
459 if (!tz) in thermal_genl_cmd_tz_get_trip()
466 mutex_lock(&tz->lock); in thermal_genl_cmd_tz_get_trip()
468 for_each_trip(tz, trip) { in thermal_genl_cmd_tz_get_trip()
470 thermal_zone_trip_id(tz, trip)) || in thermal_genl_cmd_tz_get_trip()
477 mutex_unlock(&tz->lock); in thermal_genl_cmd_tz_get_trip()
484 mutex_unlock(&tz->lock); in thermal_genl_cmd_tz_get_trip()
492 struct thermal_zone_device *tz; in thermal_genl_cmd_tz_get_temp() local
500 tz = thermal_zone_get_by_id(id); in thermal_genl_cmd_tz_get_temp()
501 if (!tz) in thermal_genl_cmd_tz_get_temp()
504 ret = thermal_zone_get_temp(tz, &temp); in thermal_genl_cmd_tz_get_temp()
518 struct thermal_zone_device *tz; in thermal_genl_cmd_tz_get_gov() local
526 tz = thermal_zone_get_by_id(id); in thermal_genl_cmd_tz_get_gov()
527 if (!tz) in thermal_genl_cmd_tz_get_gov()
530 mutex_lock(&tz->lock); in thermal_genl_cmd_tz_get_gov()
534 tz->governor->name)) in thermal_genl_cmd_tz_get_gov()
537 mutex_unlock(&tz->lock); in thermal_genl_cmd_tz_get_gov()