Lines Matching full:tz
351 int thermal_notify_tz_create(const struct thermal_zone_device *tz) in thermal_notify_tz_create() argument
353 struct param p = { .tz_id = tz->id, .name = tz->type }; in thermal_notify_tz_create()
358 int thermal_notify_tz_delete(const struct thermal_zone_device *tz) in thermal_notify_tz_delete() argument
360 struct param p = { .tz_id = tz->id }; in thermal_notify_tz_delete()
365 int thermal_notify_tz_enable(const struct thermal_zone_device *tz) in thermal_notify_tz_enable() argument
367 struct param p = { .tz_id = tz->id }; in thermal_notify_tz_enable()
372 int thermal_notify_tz_disable(const struct thermal_zone_device *tz) in thermal_notify_tz_disable() argument
374 struct param p = { .tz_id = tz->id }; in thermal_notify_tz_disable()
379 int thermal_notify_tz_trip_down(const struct thermal_zone_device *tz, in thermal_notify_tz_trip_down() argument
382 struct param p = { .tz_id = tz->id, in thermal_notify_tz_trip_down()
383 .trip_id = thermal_zone_trip_id(tz, trip), in thermal_notify_tz_trip_down()
384 .temp = tz->temperature }; in thermal_notify_tz_trip_down()
389 int thermal_notify_tz_trip_up(const struct thermal_zone_device *tz, in thermal_notify_tz_trip_up() argument
392 struct param p = { .tz_id = tz->id, in thermal_notify_tz_trip_up()
393 .trip_id = thermal_zone_trip_id(tz, trip), in thermal_notify_tz_trip_up()
394 .temp = tz->temperature }; in thermal_notify_tz_trip_up()
399 int thermal_notify_tz_trip_change(const struct thermal_zone_device *tz, in thermal_notify_tz_trip_change() argument
402 struct param p = { .tz_id = tz->id, in thermal_notify_tz_trip_change()
403 .trip_id = thermal_zone_trip_id(tz, trip), in thermal_notify_tz_trip_change()
434 int thermal_notify_tz_gov_change(const struct thermal_zone_device *tz, in thermal_notify_tz_gov_change() argument
437 struct param p = { .tz_id = tz->id, .name = name }; in thermal_notify_tz_gov_change()
451 int thermal_notify_threshold_add(const struct thermal_zone_device *tz, in thermal_notify_threshold_add() argument
454 struct param p = { .tz_id = tz->id, .temp = temperature, .direction = direction }; in thermal_notify_threshold_add()
459 int thermal_notify_threshold_delete(const struct thermal_zone_device *tz, in thermal_notify_threshold_delete() argument
462 struct param p = { .tz_id = tz->id, .temp = temperature, .direction = direction }; in thermal_notify_threshold_delete()
467 int thermal_notify_threshold_flush(const struct thermal_zone_device *tz) in thermal_notify_threshold_flush() argument
469 struct param p = { .tz_id = tz->id }; in thermal_notify_threshold_flush()
474 int thermal_notify_threshold_down(const struct thermal_zone_device *tz) in thermal_notify_threshold_down() argument
476 struct param p = { .tz_id = tz->id, .temp = tz->temperature, .prev_temp = tz->last_temperature }; in thermal_notify_threshold_down()
481 int thermal_notify_threshold_up(const struct thermal_zone_device *tz) in thermal_notify_threshold_up() argument
483 struct param p = { .tz_id = tz->id, .temp = tz->temperature, .prev_temp = tz->last_temperature }; in thermal_notify_threshold_up()
490 static int __thermal_genl_cmd_tz_get_id(struct thermal_zone_device *tz, in __thermal_genl_cmd_tz_get_id() argument
495 if (nla_put_u32(msg, THERMAL_GENL_ATTR_TZ_ID, tz->id) || in __thermal_genl_cmd_tz_get_id()
496 nla_put_string(msg, THERMAL_GENL_ATTR_TZ_NAME, tz->type)) in __thermal_genl_cmd_tz_get_id()
538 CLASS(thermal_zone_get_by_id, tz)(id); in thermal_genl_cmd_tz_get_trip()
539 if (!tz) in thermal_genl_cmd_tz_get_trip()
546 guard(thermal_zone)(tz); in thermal_genl_cmd_tz_get_trip()
548 for_each_trip_desc(tz, td) { in thermal_genl_cmd_tz_get_trip()
552 thermal_zone_trip_id(tz, trip)) || in thermal_genl_cmd_tz_get_trip()
574 CLASS(thermal_zone_get_by_id, tz)(id); in thermal_genl_cmd_tz_get_temp()
575 if (!tz) in thermal_genl_cmd_tz_get_temp()
578 ret = thermal_zone_get_temp(tz, &temp); in thermal_genl_cmd_tz_get_temp()
599 CLASS(thermal_zone_get_by_id, tz)(id); in thermal_genl_cmd_tz_get_gov()
600 if (!tz) in thermal_genl_cmd_tz_get_gov()
603 guard(thermal_zone)(tz); in thermal_genl_cmd_tz_get_gov()
607 tz->governor->name)) in thermal_genl_cmd_tz_get_gov()
672 CLASS(thermal_zone_get_by_id, tz)(id); in thermal_genl_cmd_threshold_get()
673 if (!tz) in thermal_genl_cmd_threshold_get()
680 ret = thermal_thresholds_for_each(tz, __thermal_genl_cmd_threshold_get, msg); in thermal_genl_cmd_threshold_get()
705 CLASS(thermal_zone_get_by_id, tz)(id); in thermal_genl_cmd_threshold_add()
706 if (!tz) in thermal_genl_cmd_threshold_add()
709 guard(thermal_zone)(tz); in thermal_genl_cmd_threshold_add()
711 return thermal_thresholds_add(tz, temp, direction); in thermal_genl_cmd_threshold_add()
730 CLASS(thermal_zone_get_by_id, tz)(id); in thermal_genl_cmd_threshold_delete()
731 if (!tz) in thermal_genl_cmd_threshold_delete()
734 guard(thermal_zone)(tz); in thermal_genl_cmd_threshold_delete()
736 return thermal_thresholds_delete(tz, temp, direction); in thermal_genl_cmd_threshold_delete()
751 CLASS(thermal_zone_get_by_id, tz)(id); in thermal_genl_cmd_threshold_flush()
752 if (!tz) in thermal_genl_cmd_threshold_flush()
755 guard(thermal_zone)(tz); in thermal_genl_cmd_threshold_flush()
757 thermal_thresholds_flush(tz); in thermal_genl_cmd_threshold_flush()