Lines Matching refs:kobj

187 linux_class_show(struct kobject *kobj, struct attribute *attr, char *buf)  in linux_class_show()  argument
195 error = dattr->show(container_of(kobj, struct class, kobj), in linux_class_show()
201 linux_class_store(struct kobject *kobj, struct attribute *attr, const char *buf, in linux_class_store() argument
210 error = dattr->store(container_of(kobj, struct class, kobj), in linux_class_store()
216 linux_class_release(struct kobject *kobj) in linux_class_release() argument
220 class = container_of(kobj, struct class, kobj); in linux_class_release()
236 linux_dev_release(struct kobject *kobj) in linux_dev_release() argument
240 dev = container_of(kobj, struct device, kobj); in linux_dev_release()
249 linux_dev_show(struct kobject *kobj, struct attribute *attr, char *buf) in linux_dev_show() argument
257 error = dattr->show(container_of(kobj, struct device, kobj), in linux_dev_show()
263 linux_dev_store(struct kobject *kobj, struct attribute *attr, const char *buf, in linux_dev_store() argument
272 error = dattr->store(container_of(kobj, struct device, kobj), in linux_dev_store()
301 kobject_set_name_vargs(&dev->kobj, fmt, args); in device_create()
334 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()
2271 ldev->kobj.ktype == &linux_cdev_ktype) in linux_cdev_deref()
2276 linux_cdev_release(struct kobject *kobj) in linux_cdev_release() argument
2281 cdev = container_of(kobj, struct linux_cdev, kobj); in linux_cdev_release()
2282 parent = kobj->parent; in linux_cdev_release()
2289 linux_cdev_static_release(struct kobject *kobj) in linux_cdev_static_release() argument
2294 ldev = container_of(kobj, struct linux_cdev, kobj); in linux_cdev_static_release()
2300 kobject_put(kobj->parent); in linux_cdev_static_release()
2310 ldev->kobj.parent = &dev->kobj; in linux_cdev_device_add()
2317 if (ldev->kobj.name == NULL) in linux_cdev_device_add()
2347 MPASS(ldev->kobj.ktype == &linux_cdev_ktype); in linux_destroy_dev()
2556 strcmp(kobject_name(&ldev->kobj), name) == 0) { in linux_find_cdev()
2577 kobject_set_name(&cdev->kobj, name); in __register_chrdev()
2599 kobject_set_name(&cdev->kobj, name); in __register_chrdev_p()
2676 sysfs_remove_group(&dev->kobj, group); in devm_device_group_remove()
2690 ret = sysfs_create_group(&dev->kobj, group); in lkpi_devm_device_add_group()
2788 kobject_init(&linux_root_device.kobj, &linux_dev_ktype); in linux_compat_init()
2789 kobject_set_name(&linux_root_device.kobj, "device"); in linux_compat_init()
2790 linux_root_device.kobj.oidp = SYSCTL_ADD_NODE(NULL, in linux_compat_init()
2903 linux_kobject_kfree_name(&linux_root_device.kobj); in linux_compat_uninit()
2904 linux_kobject_kfree_name(&linux_class_misc.kobj); in linux_compat_uninit()