Lines Matching refs:nvme_ns
53 bool nvme_mpath_set_disk_name(struct nvme_ns *ns, char *disk_name, int *flags) in nvme_mpath_set_disk_name()
70 struct nvme_ns *ns = req->q->queuedata; in nvme_failover_req()
99 struct nvme_ns *ns; in nvme_kick_requeue_lists()
118 bool nvme_mpath_clear_current_path(struct nvme_ns *ns) in nvme_mpath_clear_current_path()
139 struct nvme_ns *ns; in nvme_mpath_clear_ctrl_paths()
149 void nvme_mpath_revalidate_paths(struct nvme_ns *ns) in nvme_mpath_revalidate_paths()
168 static bool nvme_path_is_disabled(struct nvme_ns *ns) in nvme_path_is_disabled()
184 static struct nvme_ns *__nvme_find_path(struct nvme_ns_head *head, int node) in __nvme_find_path()
187 struct nvme_ns *found = NULL, *fallback = NULL, *ns; in __nvme_find_path()
223 static struct nvme_ns *nvme_next_ns(struct nvme_ns_head *head, in nvme_next_ns()
224 struct nvme_ns *ns) in nvme_next_ns()
226 ns = list_next_or_null_rcu(&head->list, &ns->siblings, struct nvme_ns, in nvme_next_ns()
230 return list_first_or_null_rcu(&head->list, struct nvme_ns, siblings); in nvme_next_ns()
233 static struct nvme_ns *nvme_round_robin_path(struct nvme_ns_head *head, in nvme_round_robin_path()
234 int node, struct nvme_ns *old) in nvme_round_robin_path()
236 struct nvme_ns *ns, *found = NULL; in nvme_round_robin_path()
276 static inline bool nvme_path_is_optimized(struct nvme_ns *ns) in nvme_path_is_optimized()
282 inline struct nvme_ns *nvme_find_path(struct nvme_ns_head *head) in nvme_find_path()
285 struct nvme_ns *ns; in nvme_find_path()
300 struct nvme_ns *ns; in nvme_available_path()
322 struct nvme_ns *ns; in nvme_ns_head_submit_bio()
377 struct nvme_ns *ns; in nvme_ns_head_report_zones()
501 static void nvme_mpath_set_live(struct nvme_ns *ns) in nvme_mpath_set_live()
579 struct nvme_ns *ns) in nvme_update_ns_ana_state()
603 struct nvme_ns *ns; in nvme_update_ana_state()
757 struct nvme_ns *ns = nvme_get_ns_from_dev(dev); in ana_state_show()
775 void nvme_mpath_add_disk(struct nvme_ns *ns, struct nvme_id_ns *id) in nvme_mpath_add_disk()