Searched refs:char_device (Results 1 - 9 of 9) sorted by relevance
/kernel/linux/linux-5.10/drivers/s390/char/ |
H A D | tape_class.c | 64 tcd->char_device = cdev_alloc(); in register_tape_dev() 65 if (!tcd->char_device) { in register_tape_dev() 70 tcd->char_device->owner = fops->owner; in register_tape_dev() 71 tcd->char_device->ops = fops; in register_tape_dev() 73 rc = cdev_add(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() 111 cdev_del(tcd->char_device); in unregister_tape_dev() [all...] |
H A D | vmur.c | 814 * urd->char_device is used as indication that the online function has 880 if (urd->char_device) { in ur_set_online() 889 urd->char_device = cdev_alloc(); in ur_set_online() 890 if (!urd->char_device) { in ur_set_online() 895 urd->char_device->ops = &ur_fops; in ur_set_online() 896 urd->char_device->owner = ur_fops.owner; in ur_set_online() 898 rc = cdev_add(urd->char_device, MKDEV(major, minor), 1); in ur_set_online() 914 urd->char_device->dev, NULL, "%s", node_id); in ur_set_online() 925 cdev_del(urd->char_device); in ur_set_online() 926 urd->char_device in ur_set_online() [all...] |
H A D | tape_class.h | 25 struct cdev *char_device; member
|
H A D | vmur.h | 70 struct cdev *char_device; member
|
/kernel/linux/linux-6.6/drivers/s390/char/ |
H A D | tape_class.c | 64 tcd->char_device = cdev_alloc(); in register_tape_dev() 65 if (!tcd->char_device) { in register_tape_dev() 70 tcd->char_device->owner = fops->owner; in register_tape_dev() 71 tcd->char_device->ops = fops; in register_tape_dev() 73 rc = cdev_add(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() 111 cdev_del(tcd->char_device); in unregister_tape_dev() [all...] |
H A D | vmur.c | 816 * urd->char_device is used as indication that the online function has 882 if (urd->char_device) { in ur_set_online() 891 urd->char_device = cdev_alloc(); in ur_set_online() 892 if (!urd->char_device) { in ur_set_online() 897 urd->char_device->ops = &ur_fops; in ur_set_online() 898 urd->char_device->owner = ur_fops.owner; in ur_set_online() 900 rc = cdev_add(urd->char_device, MKDEV(major, minor), 1); in ur_set_online() 916 urd->char_device->dev, NULL, "%s", node_id); in ur_set_online() 927 cdev_del(urd->char_device); in ur_set_online() 928 urd->char_device in ur_set_online() [all...] |
H A D | tape_class.h | 25 struct cdev *char_device; member
|
H A D | vmur.h | 71 struct cdev *char_device; member
|
/kernel/linux/linux-5.10/drivers/staging/axis-fifo/ |
H A D | axis-fifo.c | 143 struct device *device; /* device associated with char_device */ 145 struct cdev char_device; /* our char device */ member 688 struct axis_fifo, char_device); in axis_fifo_open() 927 cdev_init(&fifo->char_device, &fops); in axis_fifo_probe() 928 rc = cdev_add(&fifo->char_device, fifo->devt, 1); in axis_fifo_probe() 948 cdev_del(&fifo->char_device); in axis_fifo_probe() 963 cdev_del(&fifo->char_device); in axis_fifo_remove()
|
Completed in 6 milliseconds