Home
last modified time | relevance | path

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

/linux-4.1.27/drivers/s390/char/
Dtape_class.c63 tcd->char_device = cdev_alloc(); in register_tape_dev()
64 if (!tcd->char_device) { in register_tape_dev()
69 tcd->char_device->owner = fops->owner; in register_tape_dev()
70 tcd->char_device->ops = fops; in register_tape_dev()
71 tcd->char_device->dev = dev; in register_tape_dev()
73 rc = cdev_add(tcd->char_device, tcd->char_device->dev, 1); in register_tape_dev()
78 tcd->char_device->dev, NULL, in register_tape_dev()
94 device_destroy(tape_class, tcd->char_device->dev); in register_tape_dev()
97 cdev_del(tcd->char_device); in register_tape_dev()
110 device_destroy(tape_class, tcd->char_device->dev); in unregister_tape_dev()
[all …]
Dvmur.c891 if (urd->char_device) { in ur_set_online()
900 urd->char_device = cdev_alloc(); in ur_set_online()
901 if (!urd->char_device) { in ur_set_online()
906 urd->char_device->ops = &ur_fops; in ur_set_online()
907 urd->char_device->dev = MKDEV(major, minor); in ur_set_online()
908 urd->char_device->owner = ur_fops.owner; in ur_set_online()
910 rc = cdev_add(urd->char_device, urd->char_device->dev, 1); in ur_set_online()
926 urd->char_device->dev, NULL, "%s", node_id); in ur_set_online()
937 cdev_del(urd->char_device); in ur_set_online()
938 urd->char_device = NULL; in ur_set_online()
[all …]
Dtape_class.h24 struct cdev *char_device; member
Dvmur.h67 struct cdev *char_device; member