Lines Matching refs:kobj
237 struct kobject kobj; member
243 struct kobject *kobj; member
1064 #define to_block(k) container_of(k, struct threshold_block, kobj)
1067 static ssize_t show(struct kobject *kobj, struct attribute *attr, char *buf) in show() argument
1069 struct threshold_block *b = to_block(kobj); in show()
1078 static ssize_t store(struct kobject *kobj, struct attribute *attr, in store() argument
1081 struct threshold_block *b = to_block(kobj); in store()
1095 static void threshold_block_release(struct kobject *kobj);
1192 err = kobject_init_and_add(&b->kobj, &threshold_ktype, tb->kobj, get_name(cpu, bank, b)); in allocate_threshold_blocks()
1205 kobject_uevent(&b->kobj, KOBJ_ADD); in allocate_threshold_blocks()
1212 kobject_put(&b->kobj); in allocate_threshold_blocks()
1235 b->kobj = kobject_create_and_add(name, &dev->kobj); in threshold_create_bank()
1236 if (!b->kobj) { in threshold_create_bank()
1249 kobject_put(b->kobj); in threshold_create_bank()
1256 static void threshold_block_release(struct kobject *kobj) in threshold_block_release() argument
1258 kfree(to_block(kobj)); in threshold_block_release()
1267 kobject_put(&pos->kobj); in deallocate_threshold_blocks()
1270 kobject_put(&bank->blocks->kobj); in deallocate_threshold_blocks()
1281 kobject_put(bank->kobj); in threshold_remove_bank()