Lines Matching refs:attr_set
12 struct gov_attr_set attr_set; member
554 static inline struct sugov_tunables *to_sugov_tunables(struct gov_attr_set *attr_set) in to_sugov_tunables() argument
556 return container_of(attr_set, struct sugov_tunables, attr_set); in to_sugov_tunables()
559 static ssize_t rate_limit_us_show(struct gov_attr_set *attr_set, char *buf) in rate_limit_us_show() argument
561 struct sugov_tunables *tunables = to_sugov_tunables(attr_set); in rate_limit_us_show()
567 rate_limit_us_store(struct gov_attr_set *attr_set, const char *buf, size_t count) in rate_limit_us_store() argument
569 struct sugov_tunables *tunables = to_sugov_tunables(attr_set); in rate_limit_us_store()
578 list_for_each_entry(sg_policy, &attr_set->policy_list, tunables_hook) in rate_limit_us_store()
594 struct gov_attr_set *attr_set = to_gov_attr_set(kobj); in sugov_tunables_free() local
596 kfree(to_sugov_tunables(attr_set)); in sugov_tunables_free()
720 gov_attr_set_init(&tunables->attr_set, &sg_policy->tunables_hook); in sugov_tunables_alloc()
765 gov_attr_set_get(&global_tunables->attr_set, &sg_policy->tunables_hook); in sugov_init()
780 ret = kobject_init_and_add(&tunables->attr_set.kobj, &sugov_tunables_ktype, in sugov_init()
793 kobject_put(&tunables->attr_set.kobj); in sugov_init()
819 count = gov_attr_set_put(&tunables->attr_set, &sg_policy->tunables_hook); in sugov_exit()