Lines Matching refs:dev
63 struct device *dev; /* device representing @cdev */ member
116 dev_t devt = inode->i_cdev->dev; in cuse_open()
123 if (pos->dev->devt == devt) { in cuse_open()
297 static void cuse_gendev_release(struct device *dev) in cuse_gendev_release() argument
299 kfree(dev); in cuse_gendev_release()
331 struct device *dev; in cuse_process_init_reply() local
364 dev = kzalloc(sizeof(*dev), GFP_KERNEL); in cuse_process_init_reply()
365 if (!dev) in cuse_process_init_reply()
368 device_initialize(dev); in cuse_process_init_reply()
369 dev_set_uevent_suppress(dev, 1); in cuse_process_init_reply()
370 dev->class = cuse_class; in cuse_process_init_reply()
371 dev->devt = devt; in cuse_process_init_reply()
372 dev->release = cuse_gendev_release; in cuse_process_init_reply()
373 dev_set_drvdata(dev, cc); in cuse_process_init_reply()
374 dev_set_name(dev, "%s", devinfo.name); in cuse_process_init_reply()
381 if (!strcmp(dev_name(pos->dev), dev_name(dev))) in cuse_process_init_reply()
385 rc = device_add(dev); in cuse_process_init_reply()
402 cc->dev = dev; in cuse_process_init_reply()
410 dev_set_uevent_suppress(dev, 0); in cuse_process_init_reply()
411 kobject_uevent(&dev->kobj, KOBJ_ADD); in cuse_process_init_reply()
421 put_device(dev); in cuse_process_init_reply()
559 if (cc->dev) in cuse_channel_release()
560 device_unregister(cc->dev); in cuse_channel_release()
562 unregister_chrdev_region(cc->cdev->dev, 1); in cuse_channel_release()
578 static ssize_t cuse_class_waiting_show(struct device *dev, in cuse_class_waiting_show() argument
581 struct cuse_conn *cc = dev_get_drvdata(dev); in cuse_class_waiting_show()
587 static ssize_t cuse_class_abort_store(struct device *dev, in cuse_class_abort_store() argument
591 struct cuse_conn *cc = dev_get_drvdata(dev); in cuse_class_abort_store()