Lines Matching defs:kobj
14 struct kobject kobj;
24 static struct blk_crypto_profile *kobj_to_crypto_profile(struct kobject *kobj)
26 return container_of(kobj, struct blk_crypto_kobj, kobj)->profile;
69 static umode_t blk_crypto_mode_is_visible(struct kobject *kobj,
72 struct blk_crypto_profile *profile = kobj_to_crypto_profile(kobj);
101 static ssize_t blk_crypto_attr_show(struct kobject *kobj,
104 struct blk_crypto_profile *profile = kobj_to_crypto_profile(kobj);
114 static void blk_crypto_release(struct kobject *kobj)
116 kfree(container_of(kobj, struct blk_crypto_kobj, kobj));
143 err = kobject_init_and_add(&obj->kobj, &blk_crypto_ktype,
146 kobject_put(&obj->kobj);
149 q->crypto_kobject = &obj->kobj;