Lines Matching refs:attr_set
12 struct gov_attr_set attr_set; member
506 static inline struct sugov_tunables *to_sugov_tunables(struct gov_attr_set *attr_set) in to_sugov_tunables() argument
508 return container_of(attr_set, struct sugov_tunables, attr_set); in to_sugov_tunables()
511 static ssize_t rate_limit_us_show(struct gov_attr_set *attr_set, char *buf) in rate_limit_us_show() argument
513 struct sugov_tunables *tunables = to_sugov_tunables(attr_set); in rate_limit_us_show()
519 rate_limit_us_store(struct gov_attr_set *attr_set, const char *buf, size_t count) in rate_limit_us_store() argument
521 struct sugov_tunables *tunables = to_sugov_tunables(attr_set); in rate_limit_us_store()
530 list_for_each_entry(sg_policy, &attr_set->policy_list, tunables_hook) in rate_limit_us_store()
546 struct gov_attr_set *attr_set = to_gov_attr_set(kobj); in sugov_tunables_free() local
548 kfree(to_sugov_tunables(attr_set)); in sugov_tunables_free()
647 gov_attr_set_init(&tunables->attr_set, &sg_policy->tunables_hook); in sugov_tunables_alloc()
692 gov_attr_set_get(&global_tunables->attr_set, &sg_policy->tunables_hook); in sugov_init()
707 ret = kobject_init_and_add(&tunables->attr_set.kobj, &sugov_tunables_ktype, in sugov_init()
718 kobject_put(&tunables->attr_set.kobj); in sugov_init()
744 count = gov_attr_set_put(&tunables->attr_set, &sg_policy->tunables_hook); in sugov_exit()