Lines Matching defs:cdev
643 * device_init_cdev - Initialize cdev and device for habanalabs device
650 * @cdev: pointer to the char device object that will be initialized
653 * Initialize a cdev and a Linux device for habanalabs's device.
657 char *name, struct cdev *cdev,
660 cdev_init(cdev, fops);
661 cdev->owner = THIS_MODULE;
681 rc = cdev_device_add(&hdev->cdev, hdev->dev);
711 cdev_device_del(&hdev->cdev, hdev->dev);
723 cdev_device_del(&hdev->cdev, hdev->dev);
2019 /* Initialize cdev and device structures */
2021 &hdev->cdev, &hdev->dev);
2034 /* Initialize cdev and device structures for control device */
2057 * ASIC specific initialization functions. Finally, create the cdev and the