Lines Matching refs:subsys

16 void nvme_mpath_unfreeze(struct nvme_subsystem *subsys)  in nvme_mpath_unfreeze()  argument
20 lockdep_assert_held(&subsys->lock); in nvme_mpath_unfreeze()
21 list_for_each_entry(h, &subsys->nsheads, entry) in nvme_mpath_unfreeze()
26 void nvme_mpath_wait_freeze(struct nvme_subsystem *subsys) in nvme_mpath_wait_freeze() argument
30 lockdep_assert_held(&subsys->lock); in nvme_mpath_wait_freeze()
31 list_for_each_entry(h, &subsys->nsheads, entry) in nvme_mpath_wait_freeze()
36 void nvme_mpath_start_freeze(struct nvme_subsystem *subsys) in nvme_mpath_start_freeze() argument
40 lockdep_assert_held(&subsys->lock); in nvme_mpath_start_freeze()
41 list_for_each_entry(h, &subsys->nsheads, entry) in nvme_mpath_start_freeze()
58 sprintf(disk_name, "nvme%dn%d", ns->ctrl->subsys->instance, in nvme_mpath_set_disk_name()
62 sprintf(disk_name, "nvme%dc%dn%d", ns->ctrl->subsys->instance, in nvme_mpath_set_disk_name()
197 if (READ_ONCE(head->subsys->iopolicy) == NVME_IOPOLICY_NUMA) in __nvme_find_path()
295 if (READ_ONCE(head->subsys->iopolicy) == NVME_IOPOLICY_RR) in nvme_find_path()
432 head->cdev_device.parent = &head->subsys->dev; in nvme_add_ns_head_cdev()
434 head->subsys->instance, head->instance); in nvme_add_ns_head_cdev()
474 if (!(ctrl->subsys->cmic & NVME_CTRL_CMIC_MULTI_CTRL) || !multipath) in nvme_mpath_alloc_disk()
483 ctrl->subsys->instance, head->instance); in nvme_mpath_alloc_disk()
522 rc = device_add_disk(&head->subsys->dev, head->disk, in nvme_mpath_set_live()
717 struct nvme_subsystem *subsys = in nvme_subsys_iopolicy_show() local
721 nvme_iopolicy_names[READ_ONCE(subsys->iopolicy)]); in nvme_subsys_iopolicy_show()
727 struct nvme_subsystem *subsys = in nvme_subsys_iopolicy_store() local
733 WRITE_ONCE(subsys->iopolicy, i); in nvme_subsys_iopolicy_store()
841 if (!multipath || !ctrl->subsys || in nvme_mpath_init_identify()
842 !(ctrl->subsys->cmic & NVME_CTRL_CMIC_ANA)) in nvme_mpath_init_identify()