Lines Matching refs:nvme_ctrl
160 struct nvme_ctrl *ctrl;
231 struct nvme_ctrl { struct
440 struct nvme_ctrl *ctrl;
487 int (*reg_read32)(struct nvme_ctrl *ctrl, u32 off, u32 *val);
488 int (*reg_write32)(struct nvme_ctrl *ctrl, u32 off, u32 val);
489 int (*reg_read64)(struct nvme_ctrl *ctrl, u32 off, u64 *val);
490 void (*free_ctrl)(struct nvme_ctrl *ctrl);
491 void (*submit_async_event)(struct nvme_ctrl *ctrl);
492 void (*delete_ctrl)(struct nvme_ctrl *ctrl);
493 int (*get_address)(struct nvme_ctrl *ctrl, char *buf, int size);
555 static inline int nvme_reset_subsystem(struct nvme_ctrl *ctrl) in nvme_reset_subsystem()
624 static inline void nvme_get_ctrl(struct nvme_ctrl *ctrl) in nvme_get_ctrl()
629 static inline void nvme_put_ctrl(struct nvme_ctrl *ctrl) in nvme_put_ctrl()
643 void nvme_cancel_tagset(struct nvme_ctrl *ctrl);
644 void nvme_cancel_admin_tagset(struct nvme_ctrl *ctrl);
645 bool nvme_change_ctrl_state(struct nvme_ctrl *ctrl,
647 bool nvme_wait_reset(struct nvme_ctrl *ctrl);
648 int nvme_disable_ctrl(struct nvme_ctrl *ctrl);
649 int nvme_enable_ctrl(struct nvme_ctrl *ctrl);
650 int nvme_shutdown_ctrl(struct nvme_ctrl *ctrl);
651 int nvme_init_ctrl(struct nvme_ctrl *ctrl, struct device *dev,
653 void nvme_uninit_ctrl(struct nvme_ctrl *ctrl);
654 void nvme_start_ctrl(struct nvme_ctrl *ctrl);
655 void nvme_stop_ctrl(struct nvme_ctrl *ctrl);
656 int nvme_init_ctrl_finish(struct nvme_ctrl *ctrl);
658 void nvme_remove_namespaces(struct nvme_ctrl *ctrl);
663 void nvme_complete_async_event(struct nvme_ctrl *ctrl, __le16 status,
666 void nvme_stop_queues(struct nvme_ctrl *ctrl);
667 void nvme_start_queues(struct nvme_ctrl *ctrl);
668 void nvme_kill_queues(struct nvme_ctrl *ctrl);
669 void nvme_sync_queues(struct nvme_ctrl *ctrl);
670 void nvme_sync_io_queues(struct nvme_ctrl *ctrl);
671 void nvme_unfreeze(struct nvme_ctrl *ctrl);
672 void nvme_wait_freeze(struct nvme_ctrl *ctrl);
673 int nvme_wait_freeze_timeout(struct nvme_ctrl *ctrl, long timeout);
674 void nvme_start_freeze(struct nvme_ctrl *ctrl);
681 blk_status_t nvme_fail_nonready_command(struct nvme_ctrl *ctrl,
683 bool __nvme_check_ready(struct nvme_ctrl *ctrl, struct request *rq,
686 static inline bool nvme_check_ready(struct nvme_ctrl *ctrl, struct request *rq, in nvme_check_ready()
702 int nvme_set_features(struct nvme_ctrl *dev, unsigned int fid,
705 int nvme_get_features(struct nvme_ctrl *dev, unsigned int fid,
708 int nvme_set_queue_count(struct nvme_ctrl *ctrl, int *count);
709 void nvme_stop_keep_alive(struct nvme_ctrl *ctrl);
710 int nvme_reset_ctrl(struct nvme_ctrl *ctrl);
711 int nvme_reset_ctrl_sync(struct nvme_ctrl *ctrl);
712 int nvme_try_sched_reset(struct nvme_ctrl *ctrl);
713 int nvme_delete_ctrl(struct nvme_ctrl *ctrl);
714 void nvme_queue_scan(struct nvme_ctrl *ctrl);
715 int nvme_get_log(struct nvme_ctrl *ctrl, u32 nsid, u8 log_page, u8 lsp, u8 csi,
739 static inline bool nvme_ctrl_use_ana(struct nvme_ctrl *ctrl) in nvme_ctrl_use_ana()
749 void nvme_kick_requeue_lists(struct nvme_ctrl *ctrl);
750 int nvme_mpath_alloc_disk(struct nvme_ctrl *ctrl,struct nvme_ns_head *head);
753 int nvme_mpath_init_identify(struct nvme_ctrl *ctrl, struct nvme_id_ctrl *id);
754 void nvme_mpath_init_ctrl(struct nvme_ctrl *ctrl);
755 void nvme_mpath_uninit(struct nvme_ctrl *ctrl);
756 void nvme_mpath_stop(struct nvme_ctrl *ctrl);
759 void nvme_mpath_clear_ctrl_paths(struct nvme_ctrl *ctrl);
775 static inline bool nvme_ctrl_use_ana(struct nvme_ctrl *ctrl) in nvme_ctrl_use_ana()
787 static inline void nvme_kick_requeue_lists(struct nvme_ctrl *ctrl) in nvme_kick_requeue_lists()
790 static inline int nvme_mpath_alloc_disk(struct nvme_ctrl *ctrl, in nvme_mpath_alloc_disk()
809 static inline void nvme_mpath_clear_ctrl_paths(struct nvme_ctrl *ctrl) in nvme_mpath_clear_ctrl_paths()
818 static inline void nvme_mpath_init_ctrl(struct nvme_ctrl *ctrl) in nvme_mpath_init_ctrl()
821 static inline int nvme_mpath_init_identify(struct nvme_ctrl *ctrl, in nvme_mpath_init_identify()
829 static inline void nvme_mpath_uninit(struct nvme_ctrl *ctrl) in nvme_mpath_uninit()
832 static inline void nvme_mpath_stop(struct nvme_ctrl *ctrl) in nvme_mpath_stop()
876 int nvme_hwmon_init(struct nvme_ctrl *ctrl);
877 void nvme_hwmon_exit(struct nvme_ctrl *ctrl);
879 static inline int nvme_hwmon_init(struct nvme_ctrl *ctrl) in nvme_hwmon_init()
884 static inline void nvme_hwmon_exit(struct nvme_ctrl *ctrl) in nvme_hwmon_exit()
889 static inline bool nvme_ctrl_sgl_supported(struct nvme_ctrl *ctrl) in nvme_ctrl_sgl_supported()
894 u32 nvme_command_effects(struct nvme_ctrl *ctrl, struct nvme_ns *ns,
897 struct nvme_ctrl *nvme_ctrl_from_file(struct file *file);
898 struct nvme_ns *nvme_find_get_ns(struct nvme_ctrl *ctrl, unsigned nsid);
901 static inline bool nvme_multi_css(struct nvme_ctrl *ctrl) in nvme_multi_css()