Lines Matching refs:kobj
282 kobject_set_name(&cdev->kobj, "%s", name); in __register_chrdev()
292 kobject_put(&cdev->kobj); in __register_chrdev()
347 struct kobject *kobj; in cdev_get() local
351 kobj = kobject_get(&p->kobj); in cdev_get()
352 if (!kobj) in cdev_get()
354 return kobj; in cdev_get()
361 kobject_put(&p->kobj); in cdev_put()
378 struct kobject *kobj; in chrdev_open() local
381 kobj = kobj_lookup(cdev_map, inode->i_rdev, &idx); in chrdev_open()
382 if (!kobj) in chrdev_open()
384 new = container_of(kobj, struct cdev, kobj); in chrdev_open()
453 return &p->kobj; in exact_match()
494 kobject_put(&p->kobj); in cdev_del()
498 static void cdev_default_release(struct kobject *kobj) in cdev_default_release() argument
500 struct cdev *p = container_of(kobj, struct cdev, kobj); in cdev_default_release()
504 static void cdev_dynamic_release(struct kobject *kobj) in cdev_dynamic_release() argument
506 struct cdev *p = container_of(kobj, struct cdev, kobj); in cdev_dynamic_release()
529 kobject_init(&p->kobj, &ktype_cdev_dynamic); in cdev_alloc()
546 kobject_init(&cdev->kobj, &ktype_cdev_default); in cdev_init()