Home
last modified time | relevance | path

Searched refs:char_device (Results 1 – 3 of 3) sorted by relevance

/linux/drivers/s390/char/
H A Dtape_class.c59 tcd->char_device = cdev_alloc(); in register_tape_dev()
60 if (!tcd->char_device) { in register_tape_dev()
65 tcd->char_device->owner = fops->owner; in register_tape_dev()
66 tcd->char_device->ops = fops; in register_tape_dev()
68 rc = cdev_add(tcd->char_device, dev, 1); in register_tape_dev()
73 tcd->char_device->dev, NULL, in register_tape_dev()
89 device_destroy(&tape_class, tcd->char_device->dev); in register_tape_dev()
92 cdev_del(tcd->char_device); in register_tape_dev()
105 device_destroy(&tape_class, tcd->char_device->dev); in unregister_tape_dev()
106 cdev_del(tcd->char_device); in unregister_tape_dev()
H A Dvmur.c883 if (urd->char_device) { in ur_set_online()
892 urd->char_device = cdev_alloc(); in ur_set_online()
893 if (!urd->char_device) { in ur_set_online()
898 urd->char_device->ops = &ur_fops; in ur_set_online()
899 urd->char_device->owner = ur_fops.owner; in ur_set_online()
901 rc = cdev_add(urd->char_device, MKDEV(major, minor), 1); in ur_set_online()
917 urd->char_device->dev, NULL, "%s", node_id); in ur_set_online()
928 cdev_del(urd->char_device); in ur_set_online()
929 urd->char_device = NULL; in ur_set_online()
947 if (!urd->char_device) { in ur_set_offline_force()
[all …]
H A Dvmur.h71 struct cdev *char_device; member