Lines Matching full:tz

44 static int parse_tz_get(struct genl_info *info, struct thermal_zone **tz)
73 *tz = __tz;
118 static int parse_tz_get_trip(struct genl_info *info, struct thermal_zone *tz)
151 tz->trip = __tt;
156 static int parse_tz_get_temp(struct genl_info *info, struct thermal_zone *tz)
163 if (tz->id != id)
167 tz->temp = nla_get_u32(info->attrs[THERMAL_GENL_ATTR_TZ_TEMP]);
172 static int parse_tz_get_gov(struct genl_info *info, struct thermal_zone *tz)
179 if (tz->id != id)
183 nla_strlcpy(tz->governor,
191 static int parse_threshold_get(struct genl_info *info, struct thermal_zone *tz)
228 tz->thresholds = __tt;
404 thermal_error_t thermal_cmd_get_tz(struct thermal_handler *th, struct thermal_zone **tz)
407 NLM_F_DUMP | NLM_F_ACK, tz);
416 thermal_error_t thermal_cmd_get_trip(struct thermal_handler *th, struct thermal_zone *tz)
418 struct cmd_param p = { .tz_id = tz->id };
421 THERMAL_GENL_CMD_TZ_GET_TRIP, 0, tz);
424 thermal_error_t thermal_cmd_get_governor(struct thermal_handler *th, struct thermal_zone *tz)
426 struct cmd_param p = { .tz_id = tz->id };
429 THERMAL_GENL_CMD_TZ_GET_GOV, 0, tz);
432 thermal_error_t thermal_cmd_get_temp(struct thermal_handler *th, struct thermal_zone *tz)
434 struct cmd_param p = { .tz_id = tz->id };
437 THERMAL_GENL_CMD_TZ_GET_TEMP, 0, tz);
441 struct thermal_zone *tz)
443 struct cmd_param p = { .tz_id = tz->id };
446 THERMAL_GENL_CMD_THRESHOLD_GET, 0, tz);
450 struct thermal_zone *tz,
454 struct cmd_param p = { .tz_id = tz->id, .temp = temperature, .direction = direction };
457 THERMAL_GENL_CMD_THRESHOLD_ADD, 0, tz);
461 struct thermal_zone *tz,
465 struct cmd_param p = { .tz_id = tz->id, .temp = temperature, .direction = direction };
468 THERMAL_GENL_CMD_THRESHOLD_DELETE, 0, tz);
472 struct thermal_zone *tz)
474 struct cmd_param p = { .tz_id = tz->id };
477 THERMAL_GENL_CMD_THRESHOLD_FLUSH, 0, tz);