Lines Matching refs:attrs
25 struct nlattr *attrs[THERMAL_GENL_ATTR_MAX + 1]; in handle_thermal_event() local
29 genlmsg_parse(nlh, 0, attrs, THERMAL_GENL_ATTR_MAX, NULL); in handle_thermal_event()
42 return ops->tz_create(nla_get_string(attrs[THERMAL_GENL_ATTR_TZ_NAME]), in handle_thermal_event()
43 nla_get_u32(attrs[THERMAL_GENL_ATTR_TZ_ID]), arg); in handle_thermal_event()
46 return ops->tz_delete(nla_get_u32(attrs[THERMAL_GENL_ATTR_TZ_ID]), arg); in handle_thermal_event()
49 return ops->tz_enable(nla_get_u32(attrs[THERMAL_GENL_ATTR_TZ_ID]), arg); in handle_thermal_event()
52 return ops->tz_disable(nla_get_u32(attrs[THERMAL_GENL_ATTR_TZ_ID]), arg); in handle_thermal_event()
55 return ops->trip_change(nla_get_u32(attrs[THERMAL_GENL_ATTR_TZ_ID]), in handle_thermal_event()
56 nla_get_u32(attrs[THERMAL_GENL_ATTR_TZ_TRIP_ID]), in handle_thermal_event()
57 nla_get_u32(attrs[THERMAL_GENL_ATTR_TZ_TRIP_TYPE]), in handle_thermal_event()
58 nla_get_u32(attrs[THERMAL_GENL_ATTR_TZ_TRIP_TEMP]), in handle_thermal_event()
59 nla_get_u32(attrs[THERMAL_GENL_ATTR_TZ_TRIP_HYST]), arg); in handle_thermal_event()
62 return ops->trip_add(nla_get_u32(attrs[THERMAL_GENL_ATTR_TZ_ID]), in handle_thermal_event()
63 nla_get_u32(attrs[THERMAL_GENL_ATTR_TZ_TRIP_ID]), in handle_thermal_event()
64 nla_get_u32(attrs[THERMAL_GENL_ATTR_TZ_TRIP_TYPE]), in handle_thermal_event()
65 nla_get_u32(attrs[THERMAL_GENL_ATTR_TZ_TRIP_TEMP]), in handle_thermal_event()
66 nla_get_u32(attrs[THERMAL_GENL_ATTR_TZ_TRIP_HYST]), arg); in handle_thermal_event()
69 return ops->trip_delete(nla_get_u32(attrs[THERMAL_GENL_ATTR_TZ_ID]), in handle_thermal_event()
70 nla_get_u32(attrs[THERMAL_GENL_ATTR_TZ_TRIP_ID]), arg); in handle_thermal_event()
73 return ops->trip_high(nla_get_u32(attrs[THERMAL_GENL_ATTR_TZ_ID]), in handle_thermal_event()
74 nla_get_u32(attrs[THERMAL_GENL_ATTR_TZ_TRIP_ID]), in handle_thermal_event()
75 nla_get_u32(attrs[THERMAL_GENL_ATTR_TZ_TEMP]), arg); in handle_thermal_event()
78 return ops->trip_low(nla_get_u32(attrs[THERMAL_GENL_ATTR_TZ_ID]), in handle_thermal_event()
79 nla_get_u32(attrs[THERMAL_GENL_ATTR_TZ_TRIP_ID]), in handle_thermal_event()
80 nla_get_u32(attrs[THERMAL_GENL_ATTR_TZ_TEMP]), arg); in handle_thermal_event()
83 return ops->cdev_add(nla_get_string(attrs[THERMAL_GENL_ATTR_CDEV_NAME]), in handle_thermal_event()
84 nla_get_u32(attrs[THERMAL_GENL_ATTR_CDEV_ID]), in handle_thermal_event()
85 nla_get_u32(attrs[THERMAL_GENL_ATTR_CDEV_MAX_STATE]), arg); in handle_thermal_event()
88 return ops->cdev_delete(nla_get_u32(attrs[THERMAL_GENL_ATTR_CDEV_ID]), arg); in handle_thermal_event()
91 return ops->cdev_update(nla_get_u32(attrs[THERMAL_GENL_ATTR_CDEV_ID]), in handle_thermal_event()
92 nla_get_u32(attrs[THERMAL_GENL_ATTR_CDEV_CUR_STATE]), arg); in handle_thermal_event()
95 return ops->gov_change(nla_get_u32(attrs[THERMAL_GENL_ATTR_TZ_ID]), in handle_thermal_event()
96 nla_get_string(attrs[THERMAL_GENL_ATTR_GOV_NAME]), arg); in handle_thermal_event()