Lines Matching refs:nvme_ns

88 	struct nvme_ns *ns = req->q->queuedata;  in nvme_failover_req()
131 struct nvme_ns *ns = rq->q->queuedata; in nvme_mpath_start_request()
150 struct nvme_ns *ns = rq->q->queuedata; in nvme_mpath_end_request()
164 struct nvme_ns *ns; in nvme_kick_requeue_lists()
188 bool nvme_mpath_clear_current_path(struct nvme_ns *ns) in nvme_mpath_clear_current_path()
209 struct nvme_ns *ns; in nvme_mpath_clear_ctrl_paths()
221 void nvme_mpath_revalidate_paths(struct nvme_ns *ns) in nvme_mpath_revalidate_paths()
241 static bool nvme_path_is_disabled(struct nvme_ns *ns) in nvme_path_is_disabled()
257 static struct nvme_ns *__nvme_find_path(struct nvme_ns_head *head, int node) in __nvme_find_path()
260 struct nvme_ns *found = NULL, *fallback = NULL, *ns; in __nvme_find_path()
298 static struct nvme_ns *nvme_next_ns(struct nvme_ns_head *head, in nvme_next_ns()
299 struct nvme_ns *ns) in nvme_next_ns()
301 ns = list_next_or_null_rcu(&head->list, &ns->siblings, struct nvme_ns, in nvme_next_ns()
305 return list_first_or_null_rcu(&head->list, struct nvme_ns, siblings); in nvme_next_ns()
308 static struct nvme_ns *nvme_round_robin_path(struct nvme_ns_head *head) in nvme_round_robin_path()
310 struct nvme_ns *ns, *found = NULL; in nvme_round_robin_path()
312 struct nvme_ns *old = srcu_dereference(head->current_path[node], in nvme_round_robin_path()
356 static struct nvme_ns *nvme_queue_depth_path(struct nvme_ns_head *head) in nvme_queue_depth_path()
358 struct nvme_ns *best_opt = NULL, *best_nonopt = NULL, *ns; in nvme_queue_depth_path()
393 static inline bool nvme_path_is_optimized(struct nvme_ns *ns) in nvme_path_is_optimized()
399 static struct nvme_ns *nvme_numa_path(struct nvme_ns_head *head) in nvme_numa_path()
402 struct nvme_ns *ns; in nvme_numa_path()
412 inline struct nvme_ns *nvme_find_path(struct nvme_ns_head *head) in nvme_find_path()
426 struct nvme_ns *ns; in nvme_available_path()
452 struct nvme_ns *ns; in nvme_ns_head_submit_bio()
504 struct nvme_ns *ns; in nvme_ns_head_report_zones()
666 static void nvme_mpath_set_live(struct nvme_ns *ns) in nvme_mpath_set_live()
755 struct nvme_ns *ns) in nvme_update_ns_ana_state()
779 struct nvme_ns *ns; in nvme_update_ana_state()
953 struct nvme_ns *ns = nvme_get_ns_from_dev(dev); in ana_state_show()
971 void nvme_mpath_add_disk(struct nvme_ns *ns, __le32 anagrpid) in nvme_mpath_add_disk()