Lines Matching refs:subsys

48 void nvme_mpath_default_iopolicy(struct nvme_subsystem *subsys)  in nvme_mpath_default_iopolicy()  argument
50 subsys->iopolicy = iopolicy; in nvme_mpath_default_iopolicy()
53 void nvme_mpath_unfreeze(struct nvme_subsystem *subsys) in nvme_mpath_unfreeze() argument
57 lockdep_assert_held(&subsys->lock); in nvme_mpath_unfreeze()
58 list_for_each_entry(h, &subsys->nsheads, entry) in nvme_mpath_unfreeze()
63 void nvme_mpath_wait_freeze(struct nvme_subsystem *subsys) in nvme_mpath_wait_freeze() argument
67 lockdep_assert_held(&subsys->lock); in nvme_mpath_wait_freeze()
68 list_for_each_entry(h, &subsys->nsheads, entry) in nvme_mpath_wait_freeze()
73 void nvme_mpath_start_freeze(struct nvme_subsystem *subsys) in nvme_mpath_start_freeze() argument
77 lockdep_assert_held(&subsys->lock); in nvme_mpath_start_freeze()
78 list_for_each_entry(h, &subsys->nsheads, entry) in nvme_mpath_start_freeze()
249 if (READ_ONCE(head->subsys->iopolicy) == NVME_IOPOLICY_NUMA) in __nvme_find_path()
347 if (READ_ONCE(head->subsys->iopolicy) == NVME_IOPOLICY_RR) in nvme_find_path()
488 head->cdev_device.parent = &head->subsys->dev; in nvme_add_ns_head_cdev()
490 head->subsys->instance, head->instance); in nvme_add_ns_head_cdev()
530 if (!(ctrl->subsys->cmic & NVME_CTRL_CMIC_MULTI_CTRL) || in nvme_mpath_alloc_disk()
540 ctrl->subsys->instance, head->instance); in nvme_mpath_alloc_disk()
581 rc = device_add_disk(&head->subsys->dev, head->disk, in nvme_mpath_set_live()
792 struct nvme_subsystem *subsys = in nvme_subsys_iopolicy_show() local
796 nvme_iopolicy_names[READ_ONCE(subsys->iopolicy)]); in nvme_subsys_iopolicy_show()
802 struct nvme_subsystem *subsys = in nvme_subsys_iopolicy_store() local
808 WRITE_ONCE(subsys->iopolicy, i); in nvme_subsys_iopolicy_store()
915 if (!multipath || !ctrl->subsys || in nvme_mpath_init_identify()
916 !(ctrl->subsys->cmic & NVME_CTRL_CMIC_ANA)) in nvme_mpath_init_identify()