Lines Matching refs:cdev
40 #include <linux/cdev.h>
175 struct cdev * cdev; /* char_dev [sysfs: /sys/cdev/major/sg<n>] */
1501 struct cdev * cdev = NULL;
1511 cdev = cdev_alloc();
1512 if (!cdev) {
1516 cdev->owner = THIS_MODULE;
1517 cdev->ops = &sg_fops;
1526 error = cdev_add(cdev, MKDEV(SCSI_GENERIC_MAJOR, sdp->index), 1);
1530 sdp->cdev = cdev;
1565 if (cdev)
1566 cdev_del(cdev);
1625 cdev_del(sdp->cdev);
1626 sdp->cdev = NULL;