Home
last modified time | relevance | path

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

/Linux-v6.1/drivers/nvme/host/
Dnvme.h435 struct device cdev_device; member
493 struct device cdev_device; member
834 int nvme_cdev_add(struct cdev *cdev, struct device *cdev_device,
836 void nvme_cdev_del(struct cdev *cdev, struct device *cdev_device);
Dmultipath.c453 head->cdev_device.parent = &head->subsys->dev; in nvme_add_ns_head_cdev()
454 ret = dev_set_name(&head->cdev_device, "ng%dn%d", in nvme_add_ns_head_cdev()
458 ret = nvme_cdev_add(&head->cdev, &head->cdev_device, in nvme_add_ns_head_cdev()
850 nvme_cdev_del(&head->cdev, &head->cdev_device); in nvme_mpath_shutdown_disk()
Dcore.c3939 void nvme_cdev_del(struct cdev *cdev, struct device *cdev_device) in nvme_cdev_del() argument
3941 cdev_device_del(cdev, cdev_device); in nvme_cdev_del()
3942 put_device(cdev_device); in nvme_cdev_del()
3945 int nvme_cdev_add(struct cdev *cdev, struct device *cdev_device, in nvme_cdev_add() argument
3953 cdev_device->devt = MKDEV(MAJOR(nvme_ns_chr_devt), minor); in nvme_cdev_add()
3954 cdev_device->class = nvme_ns_chr_class; in nvme_cdev_add()
3955 cdev_device->release = nvme_cdev_rel; in nvme_cdev_add()
3956 device_initialize(cdev_device); in nvme_cdev_add()
3959 ret = cdev_device_add(cdev, cdev_device); in nvme_cdev_add()
3961 put_device(cdev_device); in nvme_cdev_add()
[all …]