Lines Matching defs:cdev
40 #include <linux/cdev.h>
175 struct cdev * cdev; /* char_dev [sysfs: /sys/cdev/major/sg<n>] */
1496 struct cdev * cdev = NULL;
1506 cdev = cdev_alloc();
1507 if (!cdev) {
1511 cdev->owner = THIS_MODULE;
1512 cdev->ops = &sg_fops;
1521 error = cdev_add(cdev, MKDEV(SCSI_GENERIC_MAJOR, sdp->index), 1);
1525 sdp->cdev = cdev;
1560 if (cdev)
1561 cdev_del(cdev);
1620 cdev_del(sdp->cdev);
1621 sdp->cdev = NULL;