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()
68 static umode_t blk_crypto_is_visible(struct kobject *kobj, in blk_crypto_is_visible() argument
71 struct blk_crypto_profile *profile = kobj_to_crypto_profile(kobj); in blk_crypto_is_visible()
104 static umode_t blk_crypto_mode_is_visible(struct kobject *kobj, in blk_crypto_mode_is_visible() argument
107 struct blk_crypto_profile *profile = kobj_to_crypto_profile(kobj); in blk_crypto_mode_is_visible()
136 static ssize_t blk_crypto_attr_show(struct kobject *kobj, in blk_crypto_attr_show() argument
139 struct blk_crypto_profile *profile = kobj_to_crypto_profile(kobj); in blk_crypto_attr_show()
149 static void blk_crypto_release(struct kobject *kobj) in blk_crypto_release() argument
151 kfree(container_of(kobj, struct blk_crypto_kobj, kobj)); in blk_crypto_release()
178 err = kobject_init_and_add(&obj->kobj, &blk_crypto_ktype, in blk_crypto_sysfs_register()
181 kobject_put(&obj->kobj); in blk_crypto_sysfs_register()
184 q->crypto_kobject = &obj->kobj; in blk_crypto_sysfs_register()