Lines Matching refs:kobj

31 static ssize_t mdev_type_attr_show(struct kobject *kobj,  in mdev_type_attr_show()  argument
35 struct mdev_type *type = to_mdev_type(kobj); in mdev_type_attr_show()
43 static ssize_t mdev_type_attr_store(struct kobject *kobj, in mdev_type_attr_store() argument
48 struct mdev_type *type = to_mdev_type(kobj); in mdev_type_attr_store()
135 static umode_t mdev_types_core_is_visible(struct kobject *kobj, in mdev_types_core_is_visible() argument
139 !to_mdev_type(kobj)->parent->mdev_driver->show_description) in mdev_types_core_is_visible()
154 static void mdev_type_release(struct kobject *kobj) in mdev_type_release() argument
156 struct mdev_type *type = to_mdev_type(kobj); in mdev_type_release()
158 pr_debug("Releasing group %s\n", kobj->name); in mdev_type_release()
173 type->kobj.kset = parent->mdev_types_kset; in mdev_type_add()
178 ret = kobject_init_and_add(&type->kobj, &mdev_type_ktype, NULL, in mdev_type_add()
182 kobject_put(&type->kobj); in mdev_type_add()
186 type->devices_kobj = kobject_create_and_add("devices", &type->kobj); in mdev_type_add()
195 kobject_del(&type->kobj); in mdev_type_add()
196 kobject_put(&type->kobj); in mdev_type_add()
203 kobject_del(&type->kobj); in mdev_type_remove()
204 kobject_put(&type->kobj); in mdev_type_remove()
222 NULL, &parent->dev->kobj); in parent_create_sysfs_files()
279 struct kobject *kobj = &mdev->dev.kobj; in mdev_create_sysfs_files() local
282 ret = sysfs_create_link(type->devices_kobj, kobj, dev_name(&mdev->dev)); in mdev_create_sysfs_files()
286 ret = sysfs_create_link(kobj, &type->kobj, "mdev_type"); in mdev_create_sysfs_files()
298 struct kobject *kobj = &mdev->dev.kobj; in mdev_remove_sysfs_files() local
300 sysfs_remove_link(kobj, "mdev_type"); in mdev_remove_sysfs_files()