Lines Matching refs:kobj
129 struct kobject kobj; member
135 struct kobject kobj; member
273 #define to_object(k) container_of(k, struct cache_info, kobj)
276 static ssize_t ia64_cache_show(struct kobject * kobj, struct attribute * attr, char * buf) in ia64_cache_show() argument
279 struct cache_info *this_leaf = to_object(kobj); in ia64_cache_show()
304 memset(&all_cpu_cache_info[cpu].kobj, 0, sizeof(struct kobject)); in cpu_cache_sysfs_exit()
346 memset(&all_cpu_cache_info[cpu].kobj, 0, sizeof(struct kobject)); in cpu_cache_sysfs_init()
359 if (all_cpu_cache_info[cpu].kobj.parent) in cache_add_dev()
367 retval = kobject_init_and_add(&all_cpu_cache_info[cpu].kobj, in cache_add_dev()
368 &cache_ktype_percpu_entry, &sys_dev->kobj, in cache_add_dev()
377 retval = kobject_init_and_add(&(this_object->kobj), in cache_add_dev()
379 &all_cpu_cache_info[cpu].kobj, in cache_add_dev()
383 kobject_put(&(LEAF_KOBJECT_PTR(cpu,j)->kobj)); in cache_add_dev()
385 kobject_put(&all_cpu_cache_info[cpu].kobj); in cache_add_dev()
389 kobject_uevent(&(this_object->kobj), KOBJ_ADD); in cache_add_dev()
391 kobject_uevent(&all_cpu_cache_info[cpu].kobj, KOBJ_ADD); in cache_add_dev()
401 kobject_put(&(LEAF_KOBJECT_PTR(cpu,i)->kobj)); in cache_remove_dev()
403 if (all_cpu_cache_info[cpu].kobj.parent) { in cache_remove_dev()
404 kobject_put(&all_cpu_cache_info[cpu].kobj); in cache_remove_dev()
405 memset(&all_cpu_cache_info[cpu].kobj, in cache_remove_dev()