Lines Matching full:th
264 static thermal_error_t thermal_genl_auto(struct thermal_handler *th, int id, int cmd, in thermal_genl_auto() argument
282 if (nl_send_msg(th->sk_cmd, th->cb_cmd, msg, genl_handle_msg, arg)) in thermal_genl_auto()
290 thermal_error_t thermal_cmd_get_tz(struct thermal_handler *th, struct thermal_zone **tz) in thermal_cmd_get_tz() argument
292 return thermal_genl_auto(th, -1, THERMAL_GENL_CMD_TZ_GET_ID, in thermal_cmd_get_tz()
296 thermal_error_t thermal_cmd_get_cdev(struct thermal_handler *th, struct thermal_cdev **tc) in thermal_cmd_get_cdev() argument
298 return thermal_genl_auto(th, -1, THERMAL_GENL_CMD_CDEV_GET, in thermal_cmd_get_cdev()
302 thermal_error_t thermal_cmd_get_trip(struct thermal_handler *th, struct thermal_zone *tz) in thermal_cmd_get_trip() argument
304 return thermal_genl_auto(th, tz->id, THERMAL_GENL_CMD_TZ_GET_TRIP, in thermal_cmd_get_trip()
308 thermal_error_t thermal_cmd_get_governor(struct thermal_handler *th, struct thermal_zone *tz) in thermal_cmd_get_governor() argument
310 return thermal_genl_auto(th, tz->id, THERMAL_GENL_CMD_TZ_GET_GOV, 0, tz); in thermal_cmd_get_governor()
313 thermal_error_t thermal_cmd_get_temp(struct thermal_handler *th, struct thermal_zone *tz) in thermal_cmd_get_temp() argument
315 return thermal_genl_auto(th, tz->id, THERMAL_GENL_CMD_TZ_GET_TEMP, 0, tz); in thermal_cmd_get_temp()
318 thermal_error_t thermal_cmd_exit(struct thermal_handler *th) in thermal_cmd_exit() argument
323 nl_thermal_disconnect(th->sk_cmd, th->cb_cmd); in thermal_cmd_exit()
328 thermal_error_t thermal_cmd_init(struct thermal_handler *th) in thermal_cmd_init() argument
333 if (nl_thermal_connect(&th->sk_cmd, &th->cb_cmd)) in thermal_cmd_init()
340 ret = genl_ops_resolve(th->sk_cmd, &thermal_cmd_ops); in thermal_cmd_init()
344 family = genl_ctrl_resolve(th->sk_cmd, "nlctrl"); in thermal_cmd_init()