Lines Matching defs:tz

304 int thermal_notify_tz_create(const struct thermal_zone_device *tz)
306 struct param p = { .tz_id = tz->id, .name = tz->type };
311 int thermal_notify_tz_delete(const struct thermal_zone_device *tz)
313 struct param p = { .tz_id = tz->id };
318 int thermal_notify_tz_enable(const struct thermal_zone_device *tz)
320 struct param p = { .tz_id = tz->id };
325 int thermal_notify_tz_disable(const struct thermal_zone_device *tz)
327 struct param p = { .tz_id = tz->id };
332 int thermal_notify_tz_trip_down(const struct thermal_zone_device *tz,
335 struct param p = { .tz_id = tz->id,
336 .trip_id = thermal_zone_trip_id(tz, trip),
337 .temp = tz->temperature };
342 int thermal_notify_tz_trip_up(const struct thermal_zone_device *tz,
345 struct param p = { .tz_id = tz->id,
346 .trip_id = thermal_zone_trip_id(tz, trip),
347 .temp = tz->temperature };
352 int thermal_notify_tz_trip_change(const struct thermal_zone_device *tz,
355 struct param p = { .tz_id = tz->id,
356 .trip_id = thermal_zone_trip_id(tz, trip),
387 int thermal_notify_tz_gov_change(const struct thermal_zone_device *tz,
390 struct param p = { .tz_id = tz->id, .name = name };
406 static int __thermal_genl_cmd_tz_get_id(struct thermal_zone_device *tz,
411 if (nla_put_u32(msg, THERMAL_GENL_ATTR_TZ_ID, tz->id) ||
412 nla_put_string(msg, THERMAL_GENL_ATTR_TZ_NAME, tz->type))
446 struct thermal_zone_device *tz;
455 tz = thermal_zone_get_by_id(id);
456 if (!tz)
463 mutex_lock(&tz->lock);
465 for_each_trip_desc(tz, td) {
469 thermal_zone_trip_id(tz, trip)) ||
476 mutex_unlock(&tz->lock);
483 mutex_unlock(&tz->lock);
491 struct thermal_zone_device *tz;
499 tz = thermal_zone_get_by_id(id);
500 if (!tz)
503 ret = thermal_zone_get_temp(tz, &temp);
517 struct thermal_zone_device *tz;
525 tz = thermal_zone_get_by_id(id);
526 if (!tz)
529 mutex_lock(&tz->lock);
533 tz->governor->name))
536 mutex_unlock(&tz->lock);