Home
last modified time | relevance | path

Searched refs:cdev_device (Results 1 – 2 of 2) sorted by relevance

/linux/drivers/nvme/host/
H A Dmultipath.c641 head->cdev_device.parent = &head->subsys->dev; in nvme_add_ns_head_cdev()
642 ret = dev_set_name(&head->cdev_device, "ng%dn%d", in nvme_add_ns_head_cdev()
646 ret = nvme_cdev_add(&head->cdev, &head->cdev_device, in nvme_add_ns_head_cdev()
692 nvme_cdev_del(&head->cdev, &head->cdev_device); in nvme_remove_head()
H A Dcore.c3823 void nvme_cdev_del(struct cdev *cdev, struct device *cdev_device) in nvme_cdev_del() argument
3825 cdev_device_del(cdev, cdev_device); in nvme_cdev_del()
3826 put_device(cdev_device); in nvme_cdev_del()
3829 int nvme_cdev_add(struct cdev *cdev, struct device *cdev_device, in nvme_cdev_add() argument
3837 cdev_device->devt = MKDEV(MAJOR(nvme_ns_chr_devt), minor); in nvme_cdev_add()
3838 cdev_device->class = &nvme_ns_chr_class; in nvme_cdev_add()
3839 cdev_device->release = nvme_cdev_rel; in nvme_cdev_add()
3840 device_initialize(cdev_device); in nvme_cdev_add()
3843 ret = cdev_device_add(cdev, cdev_device); in nvme_cdev_add()
3845 put_device(cdev_device); in nvme_cdev_add()
[all …]