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