Lines Matching refs:k
134 static struct cache_index_dir *kobj_to_cache_index_dir(struct kobject *k) in kobj_to_cache_index_dir() argument
136 return container_of(k, struct cache_index_dir, kobj); in kobj_to_cache_index_dir()
571 static ssize_t cache_index_show(struct kobject *k, struct attribute *attr, char *buf) in cache_index_show() argument
577 return kobj_attr->show(k, kobj_attr, buf); in cache_index_show()
580 static struct cache *index_kobj_to_cache(struct kobject *k) in index_kobj_to_cache() argument
584 index = kobj_to_cache_index_dir(k); in index_kobj_to_cache()
589 static ssize_t size_show(struct kobject *k, struct kobj_attribute *attr, char *buf) in size_show() argument
594 cache = index_kobj_to_cache(k); in size_show()
606 static ssize_t line_size_show(struct kobject *k, struct kobj_attribute *attr, char *buf) in line_size_show() argument
611 cache = index_kobj_to_cache(k); in line_size_show()
622 static ssize_t nr_sets_show(struct kobject *k, struct kobj_attribute *attr, char *buf) in nr_sets_show() argument
627 cache = index_kobj_to_cache(k); in nr_sets_show()
638 static ssize_t associativity_show(struct kobject *k, struct kobj_attribute *attr, char *buf) in associativity_show() argument
643 cache = index_kobj_to_cache(k); in associativity_show()
654 static ssize_t type_show(struct kobject *k, struct kobj_attribute *attr, char *buf) in type_show() argument
658 cache = index_kobj_to_cache(k); in type_show()
666 static ssize_t level_show(struct kobject *k, struct kobj_attribute *attr, char *buf) in level_show() argument
671 index = kobj_to_cache_index_dir(k); in level_show()
681 show_shared_cpumap(struct kobject *k, struct kobj_attribute *attr, char *buf, bool list) in show_shared_cpumap() argument
687 index = kobj_to_cache_index_dir(k); in show_shared_cpumap()
695 static ssize_t shared_cpu_map_show(struct kobject *k, struct kobj_attribute *attr, char *buf) in shared_cpu_map_show() argument
697 return show_shared_cpumap(k, attr, buf, false); in shared_cpu_map_show()
700 static ssize_t shared_cpu_list_show(struct kobject *k, struct kobj_attribute *attr, char *buf) in shared_cpu_list_show() argument
702 return show_shared_cpumap(k, attr, buf, true); in shared_cpu_list_show()