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