Lines Matching refs:k
133 static struct cache_index_dir *kobj_to_cache_index_dir(struct kobject *k) in kobj_to_cache_index_dir() argument
135 return container_of(k, struct cache_index_dir, kobj); in kobj_to_cache_index_dir()
521 static ssize_t cache_index_show(struct kobject *k, struct attribute *attr, char *buf) in cache_index_show() argument
527 return kobj_attr->show(k, kobj_attr, buf); in cache_index_show()
530 static struct cache *index_kobj_to_cache(struct kobject *k) in index_kobj_to_cache() argument
534 index = kobj_to_cache_index_dir(k); in index_kobj_to_cache()
539 static ssize_t size_show(struct kobject *k, struct kobj_attribute *attr, char *buf) in size_show() argument
544 cache = index_kobj_to_cache(k); in size_show()
556 static ssize_t line_size_show(struct kobject *k, struct kobj_attribute *attr, char *buf) in line_size_show() argument
561 cache = index_kobj_to_cache(k); in line_size_show()
572 static ssize_t nr_sets_show(struct kobject *k, struct kobj_attribute *attr, char *buf) in nr_sets_show() argument
577 cache = index_kobj_to_cache(k); in nr_sets_show()
588 static ssize_t associativity_show(struct kobject *k, struct kobj_attribute *attr, char *buf) in associativity_show() argument
593 cache = index_kobj_to_cache(k); in associativity_show()
604 static ssize_t type_show(struct kobject *k, struct kobj_attribute *attr, char *buf) in type_show() argument
608 cache = index_kobj_to_cache(k); in type_show()
616 static ssize_t level_show(struct kobject *k, struct kobj_attribute *attr, char *buf) in level_show() argument
621 index = kobj_to_cache_index_dir(k); in level_show()
630 static ssize_t shared_cpu_map_show(struct kobject *k, struct kobj_attribute *attr, char *buf) in shared_cpu_map_show() argument
636 index = kobj_to_cache_index_dir(k); in shared_cpu_map_show()