Lines Matching refs:arg
21 static int handle_thermal_event(struct nl_msg *n, void *arg)
26 struct thermal_handler_param *thp = arg;
31 arg = thp->arg;
43 nla_get_u32(attrs[THERMAL_GENL_ATTR_TZ_ID]), arg);
46 return ops->tz_delete(nla_get_u32(attrs[THERMAL_GENL_ATTR_TZ_ID]), arg);
49 return ops->tz_enable(nla_get_u32(attrs[THERMAL_GENL_ATTR_TZ_ID]), arg);
52 return ops->tz_disable(nla_get_u32(attrs[THERMAL_GENL_ATTR_TZ_ID]), arg);
59 nla_get_u32(attrs[THERMAL_GENL_ATTR_TZ_TRIP_HYST]), arg);
66 nla_get_u32(attrs[THERMAL_GENL_ATTR_TZ_TRIP_HYST]), arg);
70 nla_get_u32(attrs[THERMAL_GENL_ATTR_TZ_TRIP_ID]), arg);
75 nla_get_u32(attrs[THERMAL_GENL_ATTR_TZ_TEMP]), arg);
80 nla_get_u32(attrs[THERMAL_GENL_ATTR_TZ_TEMP]), arg);
85 nla_get_u32(attrs[THERMAL_GENL_ATTR_CDEV_MAX_STATE]), arg);
88 return ops->cdev_delete(nla_get_u32(attrs[THERMAL_GENL_ATTR_CDEV_ID]), arg);
92 nla_get_u32(attrs[THERMAL_GENL_ATTR_CDEV_CUR_STATE]), arg);
96 nla_get_string(attrs[THERMAL_GENL_ATTR_GOV_NAME]), arg);
119 thermal_error_t thermal_events_handle(struct thermal_handler *th, void *arg)
121 struct thermal_handler_param thp = { .th = th, .arg = arg };