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()
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()
374 &cache_ktype_percpu_entry, &sys_dev->kobj, in cache_add_dev()
383 retval = kobject_init_and_add(&(this_object->kobj), in cache_add_dev()
385 &all_cpu_cache_info[cpu].kobj, in cache_add_dev()
389 kobject_put(&(LEAF_KOBJECT_PTR(cpu,j)->kobj)); in cache_add_dev()
391 kobject_put(&all_cpu_cache_info[cpu].kobj); in cache_add_dev()
395 kobject_uevent(&(this_object->kobj), KOBJ_ADD); in cache_add_dev()
397 kobject_uevent(&all_cpu_cache_info[cpu].kobj, KOBJ_ADD); in cache_add_dev()
408 kobject_put(&(LEAF_KOBJECT_PTR(cpu,i)->kobj)); 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()