Lines Matching full:th

374 static thermal_error_t thermal_genl_auto(struct thermal_handler *th, cmd_cb_t cmd_cb,  in thermal_genl_auto()  argument
394 if (nl_send_msg(th->sk_cmd, th->cb_cmd, msg, genl_handle_msg, arg)) in thermal_genl_auto()
404 thermal_error_t thermal_cmd_get_tz(struct thermal_handler *th, struct thermal_zone **tz) in thermal_cmd_get_tz() argument
406 return thermal_genl_auto(th, NULL, NULL, THERMAL_GENL_CMD_TZ_GET_ID, in thermal_cmd_get_tz()
410 thermal_error_t thermal_cmd_get_cdev(struct thermal_handler *th, struct thermal_cdev **tc) in thermal_cmd_get_cdev() argument
412 return thermal_genl_auto(th, NULL, NULL, THERMAL_GENL_CMD_CDEV_GET, in thermal_cmd_get_cdev()
416 thermal_error_t thermal_cmd_get_trip(struct thermal_handler *th, struct thermal_zone *tz) in thermal_cmd_get_trip() argument
420 return thermal_genl_auto(th, thermal_genl_tz_id_encode, &p, 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
428 return thermal_genl_auto(th, thermal_genl_tz_id_encode, &p, 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
436 return thermal_genl_auto(th, thermal_genl_tz_id_encode, &p, in thermal_cmd_get_temp()
440 thermal_error_t thermal_cmd_threshold_get(struct thermal_handler *th, in thermal_cmd_threshold_get() argument
445 return thermal_genl_auto(th, thermal_genl_tz_id_encode, &p, in thermal_cmd_threshold_get()
449 thermal_error_t thermal_cmd_threshold_add(struct thermal_handler *th, in thermal_cmd_threshold_add() argument
456 return thermal_genl_auto(th, thermal_genl_threshold_encode, &p, in thermal_cmd_threshold_add()
460 thermal_error_t thermal_cmd_threshold_delete(struct thermal_handler *th, in thermal_cmd_threshold_delete() argument
467 return thermal_genl_auto(th, thermal_genl_threshold_encode, &p, in thermal_cmd_threshold_delete()
471 thermal_error_t thermal_cmd_threshold_flush(struct thermal_handler *th, in thermal_cmd_threshold_flush() argument
476 return thermal_genl_auto(th, thermal_genl_tz_id_encode, &p, in thermal_cmd_threshold_flush()
480 thermal_error_t thermal_cmd_exit(struct thermal_handler *th) in thermal_cmd_exit() argument
485 nl_thermal_disconnect(th->sk_cmd, th->cb_cmd); in thermal_cmd_exit()
490 thermal_error_t thermal_cmd_init(struct thermal_handler *th) in thermal_cmd_init() argument
495 if (nl_thermal_connect(&th->sk_cmd, &th->cb_cmd)) in thermal_cmd_init()
502 ret = genl_ops_resolve(th->sk_cmd, &thermal_cmd_ops); in thermal_cmd_init()
506 family = genl_ctrl_resolve(th->sk_cmd, "nlctrl"); in thermal_cmd_init()