Lines Matching refs:attr_set
14 struct gov_attr_set attr_set; member
510 static inline struct sugov_tunables *to_sugov_tunables(struct gov_attr_set *attr_set) in to_sugov_tunables() argument
512 return container_of(attr_set, struct sugov_tunables, attr_set); in to_sugov_tunables()
515 static ssize_t rate_limit_us_show(struct gov_attr_set *attr_set, char *buf) in rate_limit_us_show() argument
517 struct sugov_tunables *tunables = to_sugov_tunables(attr_set); in rate_limit_us_show()
523 rate_limit_us_store(struct gov_attr_set *attr_set, const char *buf, size_t count) in rate_limit_us_store() argument
525 struct sugov_tunables *tunables = to_sugov_tunables(attr_set); in rate_limit_us_store()
534 list_for_each_entry(sg_policy, &attr_set->policy_list, tunables_hook) in rate_limit_us_store()
550 struct gov_attr_set *attr_set = to_gov_attr_set(kobj); in sugov_tunables_free() local
552 kfree(to_sugov_tunables(attr_set)); in sugov_tunables_free()
652 gov_attr_set_init(&tunables->attr_set, &sg_policy->tunables_hook); in sugov_tunables_alloc()
697 gov_attr_set_get(&global_tunables->attr_set, &sg_policy->tunables_hook); in sugov_init()
712 ret = kobject_init_and_add(&tunables->attr_set.kobj, &sugov_tunables_ktype, in sugov_init()
723 kobject_put(&tunables->attr_set.kobj); in sugov_init()
749 count = gov_attr_set_put(&tunables->attr_set, &sg_policy->tunables_hook); in sugov_exit()