Home
last modified time | relevance | path

Searched refs:nvme_ctrl_state (Results 1 – 11 of 11) sorted by relevance

/linux/drivers/nvme/host/
H A Dnvme.h305 enum nvme_ctrl_state { enum
338 enum nvme_ctrl_state state;
471 static inline enum nvme_ctrl_state nvme_ctrl_state(struct nvme_ctrl *ctrl) in nvme_ctrl_state() function
828 switch (nvme_ctrl_state(ctrl)) { in nvme_state_terminal()
865 enum nvme_ctrl_state new_state);
912 bool queue_live, enum nvme_ctrl_state state);
917 enum nvme_ctrl_state state = nvme_ctrl_state(ctrl); in nvme_check_ready()
H A Dmultipath.c226 if (nvme_ctrl_state(ns->ctrl) == NVME_CTRL_LIVE) in nvme_kick_requeue_lists()
296 enum nvme_ctrl_state state = nvme_ctrl_state(ns->ctrl); in nvme_path_is_disabled()
449 return nvme_ctrl_state(ns->ctrl) == NVME_CTRL_LIVE && in nvme_path_is_optimized()
489 switch (nvme_ctrl_state(ns->ctrl)) { in nvme_available_path()
881 nvme_ctrl_state(ns->ctrl) == NVME_CTRL_LIVE) in nvme_update_ns_ana_state()
983 if (nvme_ctrl_state(ctrl) != NVME_CTRL_LIVE) in nvme_ana_work()
H A Dcore.c163 if (nvme_ctrl_state(ctrl) == NVME_CTRL_LIVE && ctrl->tagset) in nvme_queue_scan()
175 if (nvme_ctrl_state(ctrl) != NVME_CTRL_RESETTING) in nvme_try_sched_reset()
188 if (nvme_ctrl_state(ctrl) != NVME_CTRL_CONNECTING) in nvme_failfast_work()
232 if (nvme_ctrl_state(ctrl) != NVME_CTRL_LIVE) in nvme_reset_ctrl_sync()
558 enum nvme_ctrl_state new_state) in nvme_change_ctrl_state()
560 enum nvme_ctrl_state old_state; in nvme_change_ctrl_state()
566 old_state = nvme_ctrl_state(ctrl); in nvme_change_ctrl_state()
661 return nvme_ctrl_state(ctrl) == NVME_CTRL_RESETTING; in nvme_wait_reset()
759 enum nvme_ctrl_state state = nvme_ctrl_state(ctrl); in nvme_fail_nonready_command()
776 bool queue_live, enum nvme_ctrl_state state) in __nvme_check_ready()
[all …]
H A Drdma.c988 enum nvme_ctrl_state state = nvme_ctrl_state(&ctrl->ctrl); in nvme_rdma_reconnect_or_remove()
1070 enum nvme_ctrl_state state = nvme_ctrl_state(&ctrl->ctrl); in nvme_rdma_setup_ctrl()
1138 enum nvme_ctrl_state state = nvme_ctrl_state(&ctrl->ctrl); in nvme_rdma_error_recovery_work()
1173 if (nvme_ctrl_state(&ctrl->ctrl) == NVME_CTRL_LIVE) in nvme_rdma_wr_error()
1966 if (nvme_ctrl_state(&ctrl->ctrl) != NVME_CTRL_LIVE) { in nvme_rdma_timeout()
H A Dtcp.c2324 enum nvme_ctrl_state state = nvme_ctrl_state(ctrl); in nvme_tcp_reconnect_or_remove()
2420 enum nvme_ctrl_state state = nvme_ctrl_state(ctrl); in nvme_tcp_setup_ctrl()
2493 enum nvme_ctrl_state state = nvme_ctrl_state(ctrl); in nvme_tcp_error_recovery_work()
2529 enum nvme_ctrl_state state = nvme_ctrl_state(ctrl); in nvme_reset_ctrl_work()
2653 if (nvme_ctrl_state(ctrl) != NVME_CTRL_LIVE) { in nvme_tcp_timeout()
H A Dapple.c838 enum nvme_ctrl_state state = nvme_ctrl_state(&anv->ctrl); in apple_nvme_disable()
923 if (nvme_ctrl_state(&anv->ctrl) != NVME_CTRL_LIVE) { in apple_nvme_timeout()
1029 enum nvme_ctrl_state state = nvme_ctrl_state(&anv->ctrl); in apple_nvme_reset_work()
H A Dpci.c1801 switch (nvme_ctrl_state(&dev->ctrl)) { in nvme_should_reset()
1904 switch (nvme_ctrl_state(&dev->ctrl)) { in nvme_timeout()
2181 if (nvme_ctrl_state(&dev->ctrl) != NVME_CTRL_CONNECTING) { in nvme_setup_io_queues_trylock()
3264 enum nvme_ctrl_state state = nvme_ctrl_state(&dev->ctrl); in nvme_dev_disable()
3357 if (nvme_ctrl_state(&dev->ctrl) != NVME_CTRL_RESETTING) { in nvme_reset_work()
3935 if (nvme_ctrl_state(ctrl) != NVME_CTRL_LIVE) in nvme_suspend()
H A Dfc.c554 switch (nvme_ctrl_state(&ctrl->ctrl)) { in nvme_fc_resume_controller()
2053 nvme_ctrl_state(&ctrl->ctrl) != NVME_CTRL_RESETTING) in nvme_fc_fcpio_done()
2501 enum nvme_ctrl_state state = nvme_ctrl_state(&ctrl->ctrl); in nvme_fc_error_recovery()
3284 if (nvme_ctrl_state(&ctrl->ctrl) != NVME_CTRL_CONNECTING) in nvme_fc_reconnect_or_delete()
H A Dsysfs.c421 unsigned state = (unsigned)nvme_ctrl_state(ctrl); in nvme_sysfs_show_state()
H A Dauth.c1012 if (nvme_ctrl_state(ctrl) != NVME_CTRL_LIVE) in nvme_ctrl_auth_work()
/linux/drivers/nvme/target/
H A Dloop.c427 if (nvme_ctrl_state(&ctrl->ctrl) == NVME_CTRL_LIVE) in nvme_loop_shutdown_ctrl()
461 enum nvme_ctrl_state state = nvme_ctrl_state(&ctrl->ctrl); in nvme_loop_reset_ctrl_work()