Lines Matching refs:nvme_ctrl

197 	struct nvme_ctrl	*ctrl;
280 struct nvme_ctrl { struct
415 static inline enum nvme_ctrl_state nvme_ctrl_state(struct nvme_ctrl *ctrl) in nvme_ctrl_state() argument
531 struct nvme_ctrl *ctrl;
570 int (*reg_read32)(struct nvme_ctrl *ctrl, u32 off, u32 *val);
571 int (*reg_write32)(struct nvme_ctrl *ctrl, u32 off, u32 val);
572 int (*reg_read64)(struct nvme_ctrl *ctrl, u32 off, u64 *val);
573 void (*free_ctrl)(struct nvme_ctrl *ctrl);
574 void (*submit_async_event)(struct nvme_ctrl *ctrl);
575 int (*subsystem_reset)(struct nvme_ctrl *ctrl);
576 void (*delete_ctrl)(struct nvme_ctrl *ctrl);
577 void (*stop_ctrl)(struct nvme_ctrl *ctrl);
578 int (*get_address)(struct nvme_ctrl *ctrl, char *buf, int size);
579 void (*print_device_info)(struct nvme_ctrl *ctrl);
580 bool (*supports_pci_p2pdma)(struct nvme_ctrl *ctrl);
636 static inline void nvme_print_device_info(struct nvme_ctrl *ctrl) in nvme_print_device_info()
669 bool nvme_wait_reset(struct nvme_ctrl *ctrl);
670 int nvme_try_sched_reset(struct nvme_ctrl *ctrl);
672 static inline int nvme_reset_subsystem(struct nvme_ctrl *ctrl) in nvme_reset_subsystem()
731 struct nvme_ctrl *ctrl = rq->ctrl; in nvme_try_complete_req()
745 static inline void nvme_get_ctrl(struct nvme_ctrl *ctrl) in nvme_get_ctrl()
750 static inline void nvme_put_ctrl(struct nvme_ctrl *ctrl) in nvme_put_ctrl()
764 static inline bool nvme_state_terminal(struct nvme_ctrl *ctrl) in nvme_state_terminal()
800 void nvme_cancel_tagset(struct nvme_ctrl *ctrl);
801 void nvme_cancel_admin_tagset(struct nvme_ctrl *ctrl);
802 bool nvme_change_ctrl_state(struct nvme_ctrl *ctrl,
804 int nvme_disable_ctrl(struct nvme_ctrl *ctrl, bool shutdown);
805 int nvme_enable_ctrl(struct nvme_ctrl *ctrl);
806 int nvme_init_ctrl(struct nvme_ctrl *ctrl, struct device *dev,
808 int nvme_add_ctrl(struct nvme_ctrl *ctrl);
809 void nvme_uninit_ctrl(struct nvme_ctrl *ctrl);
810 void nvme_start_ctrl(struct nvme_ctrl *ctrl);
811 void nvme_stop_ctrl(struct nvme_ctrl *ctrl);
812 int nvme_init_ctrl_finish(struct nvme_ctrl *ctrl, bool was_suspended);
813 int nvme_alloc_admin_tag_set(struct nvme_ctrl *ctrl, struct blk_mq_tag_set *set,
815 void nvme_remove_admin_tag_set(struct nvme_ctrl *ctrl);
816 int nvme_alloc_io_tag_set(struct nvme_ctrl *ctrl, struct blk_mq_tag_set *set,
819 void nvme_remove_io_tag_set(struct nvme_ctrl *ctrl);
821 void nvme_remove_namespaces(struct nvme_ctrl *ctrl);
823 void nvme_complete_async_event(struct nvme_ctrl *ctrl, __le16 status,
826 void nvme_quiesce_io_queues(struct nvme_ctrl *ctrl);
827 void nvme_unquiesce_io_queues(struct nvme_ctrl *ctrl);
828 void nvme_quiesce_admin_queue(struct nvme_ctrl *ctrl);
829 void nvme_unquiesce_admin_queue(struct nvme_ctrl *ctrl);
830 void nvme_mark_namespaces_dead(struct nvme_ctrl *ctrl);
831 void nvme_sync_queues(struct nvme_ctrl *ctrl);
832 void nvme_sync_io_queues(struct nvme_ctrl *ctrl);
833 void nvme_unfreeze(struct nvme_ctrl *ctrl);
834 void nvme_wait_freeze(struct nvme_ctrl *ctrl);
835 int nvme_wait_freeze_timeout(struct nvme_ctrl *ctrl, long timeout);
836 void nvme_start_freeze(struct nvme_ctrl *ctrl);
847 blk_status_t nvme_fail_nonready_command(struct nvme_ctrl *ctrl,
849 bool __nvme_check_ready(struct nvme_ctrl *ctrl, struct request *rq,
852 static inline bool nvme_check_ready(struct nvme_ctrl *ctrl, struct request *rq, in nvme_check_ready()
873 static inline bool nvme_is_unique_nsid(struct nvme_ctrl *ctrl, in nvme_is_unique_nsid()
903 int nvme_set_features(struct nvme_ctrl *dev, unsigned int fid,
906 int nvme_get_features(struct nvme_ctrl *dev, unsigned int fid,
909 int nvme_set_queue_count(struct nvme_ctrl *ctrl, int *count);
910 void nvme_stop_keep_alive(struct nvme_ctrl *ctrl);
911 int nvme_reset_ctrl(struct nvme_ctrl *ctrl);
912 int nvme_reset_ctrl_sync(struct nvme_ctrl *ctrl);
913 int nvme_delete_ctrl(struct nvme_ctrl *ctrl);
914 void nvme_queue_scan(struct nvme_ctrl *ctrl);
915 int nvme_get_log(struct nvme_ctrl *ctrl, u32 nsid, u8 log_page, u8 lsp, u8 csi,
937 int nvme_identify_ns(struct nvme_ctrl *ctrl, unsigned nsid,
951 void nvme_delete_ctrl_sync(struct nvme_ctrl *ctrl);
954 static inline bool nvme_ctrl_use_ana(struct nvme_ctrl *ctrl) in nvme_ctrl_use_ana()
964 void nvme_kick_requeue_lists(struct nvme_ctrl *ctrl);
965 int nvme_mpath_alloc_disk(struct nvme_ctrl *ctrl,struct nvme_ns_head *head);
970 int nvme_mpath_init_identify(struct nvme_ctrl *ctrl, struct nvme_id_ctrl *id);
971 void nvme_mpath_init_ctrl(struct nvme_ctrl *ctrl);
972 void nvme_mpath_update(struct nvme_ctrl *ctrl);
973 void nvme_mpath_uninit(struct nvme_ctrl *ctrl);
974 void nvme_mpath_stop(struct nvme_ctrl *ctrl);
977 void nvme_mpath_clear_ctrl_paths(struct nvme_ctrl *ctrl);
1010 static inline bool nvme_ctrl_use_ana(struct nvme_ctrl *ctrl) in nvme_ctrl_use_ana()
1017 static inline void nvme_kick_requeue_lists(struct nvme_ctrl *ctrl) in nvme_kick_requeue_lists()
1020 static inline int nvme_mpath_alloc_disk(struct nvme_ctrl *ctrl, in nvme_mpath_alloc_disk()
1044 static inline void nvme_mpath_clear_ctrl_paths(struct nvme_ctrl *ctrl) in nvme_mpath_clear_ctrl_paths()
1053 static inline void nvme_mpath_init_ctrl(struct nvme_ctrl *ctrl) in nvme_mpath_init_ctrl()
1056 static inline int nvme_mpath_init_identify(struct nvme_ctrl *ctrl, in nvme_mpath_init_identify()
1064 static inline void nvme_mpath_update(struct nvme_ctrl *ctrl) in nvme_mpath_update()
1067 static inline void nvme_mpath_uninit(struct nvme_ctrl *ctrl) in nvme_mpath_uninit()
1070 static inline void nvme_mpath_stop(struct nvme_ctrl *ctrl) in nvme_mpath_stop()
1138 int nvme_hwmon_init(struct nvme_ctrl *ctrl);
1139 void nvme_hwmon_exit(struct nvme_ctrl *ctrl);
1141 static inline int nvme_hwmon_init(struct nvme_ctrl *ctrl) in nvme_hwmon_init()
1146 static inline void nvme_hwmon_exit(struct nvme_ctrl *ctrl) in nvme_hwmon_exit()
1158 static inline bool nvme_ctrl_sgl_supported(struct nvme_ctrl *ctrl) in nvme_ctrl_sgl_supported()
1164 static inline bool nvme_ctrl_meta_sgl_supported(struct nvme_ctrl *ctrl) in nvme_ctrl_meta_sgl_supported()
1174 int nvme_auth_init_ctrl(struct nvme_ctrl *ctrl);
1175 void nvme_auth_stop(struct nvme_ctrl *ctrl);
1176 int nvme_auth_negotiate(struct nvme_ctrl *ctrl, int qid);
1177 int nvme_auth_wait(struct nvme_ctrl *ctrl, int qid);
1178 void nvme_auth_free(struct nvme_ctrl *ctrl);
1179 void nvme_auth_revoke_tls_key(struct nvme_ctrl *ctrl);
1181 static inline int nvme_auth_init_ctrl(struct nvme_ctrl *ctrl) in nvme_auth_init_ctrl()
1192 static inline void nvme_auth_stop(struct nvme_ctrl *ctrl) {}; in nvme_auth_stop()
1193 static inline int nvme_auth_negotiate(struct nvme_ctrl *ctrl, int qid) in nvme_auth_negotiate()
1197 static inline int nvme_auth_wait(struct nvme_ctrl *ctrl, int qid) in nvme_auth_wait()
1201 static inline void nvme_auth_free(struct nvme_ctrl *ctrl) {}; in nvme_auth_free()
1202 static inline void nvme_auth_revoke_tls_key(struct nvme_ctrl *ctrl) {}; in nvme_auth_revoke_tls_key()
1205 u32 nvme_command_effects(struct nvme_ctrl *ctrl, struct nvme_ns *ns,
1207 u32 nvme_passthru_start(struct nvme_ctrl *ctrl, struct nvme_ns *ns, u8 opcode);
1209 void nvme_passthru_end(struct nvme_ctrl *ctrl, struct nvme_ns *ns, u32 effects,
1211 struct nvme_ctrl *nvme_ctrl_from_file(struct file *file);
1212 struct nvme_ns *nvme_find_get_ns(struct nvme_ctrl *ctrl, unsigned nsid);
1216 static inline bool nvme_multi_css(struct nvme_ctrl *ctrl) in nvme_multi_css()