Lines Matching refs:kobj

186 linux_class_show(struct kobject *kobj, struct attribute *attr, char *buf)  in linux_class_show()  argument
194 error = dattr->show(container_of(kobj, struct class, kobj), in linux_class_show()
200 linux_class_store(struct kobject *kobj, struct attribute *attr, const char *buf, in linux_class_store() argument
209 error = dattr->store(container_of(kobj, struct class, kobj), in linux_class_store()
215 linux_class_release(struct kobject *kobj) in linux_class_release() argument
219 class = container_of(kobj, struct class, kobj); in linux_class_release()
235 linux_dev_release(struct kobject *kobj) in linux_dev_release() argument
239 dev = container_of(kobj, struct device, kobj); in linux_dev_release()
248 linux_dev_show(struct kobject *kobj, struct attribute *attr, char *buf) in linux_dev_show() argument
256 error = dattr->show(container_of(kobj, struct device, kobj), in linux_dev_show()
262 linux_dev_store(struct kobject *kobj, struct attribute *attr, const char *buf, in linux_dev_store() argument
271 error = dattr->store(container_of(kobj, struct device, kobj), in linux_dev_store()
300 kobject_set_name_vargs(&dev->kobj, fmt, args); in device_create()
333 retval = kobject_set_name_vargs(&dev->kobj, fmt, args); in device_create_groups_vargs()
440 kobject_init(&cdev->kobj, &linux_cdev_ktype); in cdev_alloc()
696 if (ldev->kobj.ktype == &linux_cdev_static_ktype) { in linux_get_fop()
721 if (ldev->kobj.ktype == &linux_cdev_static_ktype) { in linux_drop_fop()
724 MPASS(ldev->kobj.ktype == &linux_cdev_ktype); in linux_drop_fop()
2223 ldev->kobj.ktype == &linux_cdev_ktype) in linux_cdev_deref()
2228 linux_cdev_release(struct kobject *kobj) in linux_cdev_release() argument
2233 cdev = container_of(kobj, struct linux_cdev, kobj); in linux_cdev_release()
2234 parent = kobj->parent; in linux_cdev_release()
2241 linux_cdev_static_release(struct kobject *kobj) in linux_cdev_static_release() argument
2246 ldev = container_of(kobj, struct linux_cdev, kobj); in linux_cdev_static_release()
2252 kobject_put(kobj->parent); in linux_cdev_static_release()
2262 ldev->kobj.parent = &dev->kobj; in linux_cdev_device_add()
2269 if (ldev->kobj.name == NULL) in linux_cdev_device_add()
2299 MPASS(ldev->kobj.ktype == &linux_cdev_ktype); in linux_destroy_dev()
2508 strcmp(kobject_name(&ldev->kobj), name) == 0) { in linux_find_cdev()
2529 kobject_set_name(&cdev->kobj, name); in __register_chrdev()
2551 kobject_set_name(&cdev->kobj, name); in __register_chrdev_p()
2628 sysfs_remove_group(&dev->kobj, group); in devm_device_group_remove()
2642 ret = sysfs_create_group(&dev->kobj, group); in lkpi_devm_device_add_group()
2740 kobject_init(&linux_root_device.kobj, &linux_dev_ktype); in linux_compat_init()
2741 kobject_set_name(&linux_root_device.kobj, "device"); in linux_compat_init()
2742 linux_root_device.kobj.oidp = SYSCTL_ADD_NODE(NULL, in linux_compat_init()
2855 linux_kobject_kfree_name(&linux_root_device.kobj); in linux_compat_uninit()
2856 linux_kobject_kfree_name(&linux_class_misc.kobj); in linux_compat_uninit()