Lines Matching refs:all_cpu_cache_info
138 static struct cpu_cache_info all_cpu_cache_info[NR_CPUS]; variable
139 #define LEAF_KOBJECT_PTR(x,y) (&all_cpu_cache_info[x].cache_leaves[y])
301 kfree(all_cpu_cache_info[cpu].cache_leaves); in cpu_cache_sysfs_exit()
302 all_cpu_cache_info[cpu].cache_leaves = NULL; in cpu_cache_sysfs_exit()
303 all_cpu_cache_info[cpu].num_cache_leaves = 0; in cpu_cache_sysfs_exit()
304 memset(&all_cpu_cache_info[cpu].kobj, 0, sizeof(struct kobject)); in cpu_cache_sysfs_exit()
343 all_cpu_cache_info[cpu].cache_leaves = this_cache; in cpu_cache_sysfs_init()
344 all_cpu_cache_info[cpu].num_cache_leaves = num_cache_leaves; in cpu_cache_sysfs_init()
346 memset(&all_cpu_cache_info[cpu].kobj, 0, sizeof(struct kobject)); in cpu_cache_sysfs_init()
360 if (all_cpu_cache_info[cpu].kobj.parent) in cache_add_dev()
373 retval = kobject_init_and_add(&all_cpu_cache_info[cpu].kobj, in cache_add_dev()
381 for (i = 0; i < all_cpu_cache_info[cpu].num_cache_leaves; i++) { in cache_add_dev()
385 &all_cpu_cache_info[cpu].kobj, in cache_add_dev()
391 kobject_put(&all_cpu_cache_info[cpu].kobj); in cache_add_dev()
397 kobject_uevent(&all_cpu_cache_info[cpu].kobj, KOBJ_ADD); in cache_add_dev()
407 for (i = 0; i < all_cpu_cache_info[cpu].num_cache_leaves; i++) in cache_remove_dev()
410 if (all_cpu_cache_info[cpu].kobj.parent) { in cache_remove_dev()
411 kobject_put(&all_cpu_cache_info[cpu].kobj); in cache_remove_dev()
412 memset(&all_cpu_cache_info[cpu].kobj, in cache_remove_dev()