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