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