Lines Matching refs:nvme_ctrl

165 	struct nvme_ctrl	*ctrl;
242 struct nvme_ctrl { struct
462 struct nvme_ctrl *ctrl;
511 int (*reg_read32)(struct nvme_ctrl *ctrl, u32 off, u32 *val);
512 int (*reg_write32)(struct nvme_ctrl *ctrl, u32 off, u32 val);
513 int (*reg_read64)(struct nvme_ctrl *ctrl, u32 off, u64 *val);
514 void (*free_ctrl)(struct nvme_ctrl *ctrl);
515 void (*submit_async_event)(struct nvme_ctrl *ctrl);
516 void (*delete_ctrl)(struct nvme_ctrl *ctrl);
517 void (*stop_ctrl)(struct nvme_ctrl *ctrl);
518 int (*get_address)(struct nvme_ctrl *ctrl, char *buf, int size);
519 void (*print_device_info)(struct nvme_ctrl *ctrl);
520 bool (*supports_pci_p2pdma)(struct nvme_ctrl *ctrl);
576 static inline void nvme_print_device_info(struct nvme_ctrl *ctrl) in nvme_print_device_info()
609 bool nvme_wait_reset(struct nvme_ctrl *ctrl);
610 int nvme_try_sched_reset(struct nvme_ctrl *ctrl);
612 static inline int nvme_reset_subsystem(struct nvme_ctrl *ctrl) in nvme_reset_subsystem()
680 struct nvme_ctrl *ctrl = rq->ctrl; in nvme_try_complete_req()
694 static inline void nvme_get_ctrl(struct nvme_ctrl *ctrl) in nvme_get_ctrl()
699 static inline void nvme_put_ctrl(struct nvme_ctrl *ctrl) in nvme_put_ctrl()
727 void nvme_cancel_tagset(struct nvme_ctrl *ctrl);
728 void nvme_cancel_admin_tagset(struct nvme_ctrl *ctrl);
729 bool nvme_change_ctrl_state(struct nvme_ctrl *ctrl,
731 int nvme_disable_ctrl(struct nvme_ctrl *ctrl);
732 int nvme_enable_ctrl(struct nvme_ctrl *ctrl);
733 int nvme_shutdown_ctrl(struct nvme_ctrl *ctrl);
734 int nvme_init_ctrl(struct nvme_ctrl *ctrl, struct device *dev,
736 void nvme_uninit_ctrl(struct nvme_ctrl *ctrl);
737 void nvme_start_ctrl(struct nvme_ctrl *ctrl);
738 void nvme_stop_ctrl(struct nvme_ctrl *ctrl);
739 int nvme_init_ctrl_finish(struct nvme_ctrl *ctrl);
740 int nvme_alloc_admin_tag_set(struct nvme_ctrl *ctrl, struct blk_mq_tag_set *set,
743 void nvme_remove_admin_tag_set(struct nvme_ctrl *ctrl);
744 int nvme_alloc_io_tag_set(struct nvme_ctrl *ctrl, struct blk_mq_tag_set *set,
747 void nvme_remove_io_tag_set(struct nvme_ctrl *ctrl);
749 void nvme_remove_namespaces(struct nvme_ctrl *ctrl);
754 void nvme_complete_async_event(struct nvme_ctrl *ctrl, __le16 status,
757 void nvme_stop_queues(struct nvme_ctrl *ctrl);
758 void nvme_start_queues(struct nvme_ctrl *ctrl);
759 void nvme_stop_admin_queue(struct nvme_ctrl *ctrl);
760 void nvme_start_admin_queue(struct nvme_ctrl *ctrl);
761 void nvme_kill_queues(struct nvme_ctrl *ctrl);
762 void nvme_sync_queues(struct nvme_ctrl *ctrl);
763 void nvme_sync_io_queues(struct nvme_ctrl *ctrl);
764 void nvme_unfreeze(struct nvme_ctrl *ctrl);
765 void nvme_wait_freeze(struct nvme_ctrl *ctrl);
766 int nvme_wait_freeze_timeout(struct nvme_ctrl *ctrl, long timeout);
767 void nvme_start_freeze(struct nvme_ctrl *ctrl);
778 blk_status_t nvme_fail_nonready_command(struct nvme_ctrl *ctrl,
780 bool __nvme_check_ready(struct nvme_ctrl *ctrl, struct request *rq,
783 static inline bool nvme_check_ready(struct nvme_ctrl *ctrl, struct request *rq, in nvme_check_ready()
803 static inline bool nvme_is_unique_nsid(struct nvme_ctrl *ctrl, in nvme_is_unique_nsid()
818 int nvme_set_features(struct nvme_ctrl *dev, unsigned int fid,
821 int nvme_get_features(struct nvme_ctrl *dev, unsigned int fid,
824 int nvme_set_queue_count(struct nvme_ctrl *ctrl, int *count);
825 void nvme_stop_keep_alive(struct nvme_ctrl *ctrl);
826 int nvme_reset_ctrl(struct nvme_ctrl *ctrl);
827 int nvme_reset_ctrl_sync(struct nvme_ctrl *ctrl);
828 int nvme_delete_ctrl(struct nvme_ctrl *ctrl);
829 void nvme_queue_scan(struct nvme_ctrl *ctrl);
830 int nvme_get_log(struct nvme_ctrl *ctrl, u32 nsid, u8 log_page, u8 lsp, u8 csi,
863 static inline bool nvme_ctrl_use_ana(struct nvme_ctrl *ctrl) in nvme_ctrl_use_ana()
873 void nvme_kick_requeue_lists(struct nvme_ctrl *ctrl);
874 int nvme_mpath_alloc_disk(struct nvme_ctrl *ctrl,struct nvme_ns_head *head);
877 int nvme_mpath_init_identify(struct nvme_ctrl *ctrl, struct nvme_id_ctrl *id);
878 void nvme_mpath_init_ctrl(struct nvme_ctrl *ctrl);
879 void nvme_mpath_update(struct nvme_ctrl *ctrl);
880 void nvme_mpath_uninit(struct nvme_ctrl *ctrl);
881 void nvme_mpath_stop(struct nvme_ctrl *ctrl);
884 void nvme_mpath_clear_ctrl_paths(struct nvme_ctrl *ctrl);
902 static inline bool nvme_ctrl_use_ana(struct nvme_ctrl *ctrl) in nvme_ctrl_use_ana()
909 static inline void nvme_kick_requeue_lists(struct nvme_ctrl *ctrl) in nvme_kick_requeue_lists()
912 static inline int nvme_mpath_alloc_disk(struct nvme_ctrl *ctrl, in nvme_mpath_alloc_disk()
930 static inline void nvme_mpath_clear_ctrl_paths(struct nvme_ctrl *ctrl) in nvme_mpath_clear_ctrl_paths()
939 static inline void nvme_mpath_init_ctrl(struct nvme_ctrl *ctrl) in nvme_mpath_init_ctrl()
942 static inline int nvme_mpath_init_identify(struct nvme_ctrl *ctrl, in nvme_mpath_init_identify()
950 static inline void nvme_mpath_update(struct nvme_ctrl *ctrl) in nvme_mpath_update()
953 static inline void nvme_mpath_uninit(struct nvme_ctrl *ctrl) in nvme_mpath_uninit()
956 static inline void nvme_mpath_stop(struct nvme_ctrl *ctrl) in nvme_mpath_stop()
1003 int nvme_hwmon_init(struct nvme_ctrl *ctrl);
1004 void nvme_hwmon_exit(struct nvme_ctrl *ctrl);
1006 static inline int nvme_hwmon_init(struct nvme_ctrl *ctrl) in nvme_hwmon_init()
1011 static inline void nvme_hwmon_exit(struct nvme_ctrl *ctrl) in nvme_hwmon_exit()
1016 static inline bool nvme_ctrl_sgl_supported(struct nvme_ctrl *ctrl) in nvme_ctrl_sgl_supported()
1022 void nvme_auth_init_ctrl(struct nvme_ctrl *ctrl);
1023 void nvme_auth_stop(struct nvme_ctrl *ctrl);
1024 int nvme_auth_negotiate(struct nvme_ctrl *ctrl, int qid);
1025 int nvme_auth_wait(struct nvme_ctrl *ctrl, int qid);
1026 void nvme_auth_reset(struct nvme_ctrl *ctrl);
1027 void nvme_auth_free(struct nvme_ctrl *ctrl);
1029 static inline void nvme_auth_init_ctrl(struct nvme_ctrl *ctrl) {}; in nvme_auth_init_ctrl()
1030 static inline void nvme_auth_stop(struct nvme_ctrl *ctrl) {}; in nvme_auth_stop()
1031 static inline int nvme_auth_negotiate(struct nvme_ctrl *ctrl, int qid) in nvme_auth_negotiate()
1035 static inline int nvme_auth_wait(struct nvme_ctrl *ctrl, int qid) in nvme_auth_wait()
1039 static inline void nvme_auth_free(struct nvme_ctrl *ctrl) {}; in nvme_auth_free()
1042 u32 nvme_command_effects(struct nvme_ctrl *ctrl, struct nvme_ns *ns,
1045 void nvme_passthru_end(struct nvme_ctrl *ctrl, u32 effects,
1047 struct nvme_ctrl *nvme_ctrl_from_file(struct file *file);
1048 struct nvme_ns *nvme_find_get_ns(struct nvme_ctrl *ctrl, unsigned nsid);
1051 static inline bool nvme_multi_css(struct nvme_ctrl *ctrl) in nvme_multi_css()