Lines Matching refs:nvme_ctrl

116 static void nvme_remove_invalid_namespaces(struct nvme_ctrl *ctrl,
118 static void nvme_update_keep_alive(struct nvme_ctrl *ctrl,
140 void nvme_queue_scan(struct nvme_ctrl *ctrl) in nvme_queue_scan()
155 int nvme_try_sched_reset(struct nvme_ctrl *ctrl) in nvme_try_sched_reset()
167 struct nvme_ctrl *ctrl = container_of(to_delayed_work(work), in nvme_failfast_work()
168 struct nvme_ctrl, failfast_work); in nvme_failfast_work()
178 static inline void nvme_start_failfast_work(struct nvme_ctrl *ctrl) in nvme_start_failfast_work()
187 static inline void nvme_stop_failfast_work(struct nvme_ctrl *ctrl) in nvme_stop_failfast_work()
197 int nvme_reset_ctrl(struct nvme_ctrl *ctrl) in nvme_reset_ctrl()
207 int nvme_reset_ctrl_sync(struct nvme_ctrl *ctrl) in nvme_reset_ctrl_sync()
221 static void nvme_do_delete_ctrl(struct nvme_ctrl *ctrl) in nvme_do_delete_ctrl()
235 struct nvme_ctrl *ctrl = in nvme_delete_ctrl_work()
236 container_of(work, struct nvme_ctrl, delete_work); in nvme_delete_ctrl_work()
241 int nvme_delete_ctrl(struct nvme_ctrl *ctrl) in nvme_delete_ctrl()
251 static void nvme_delete_ctrl_sync(struct nvme_ctrl *ctrl) in nvme_delete_ctrl_sync()
400 dev_dbg_ratelimited(((struct nvme_ctrl *) data)->device, in nvme_cancel_request()
414 void nvme_cancel_tagset(struct nvme_ctrl *ctrl) in nvme_cancel_tagset()
424 void nvme_cancel_admin_tagset(struct nvme_ctrl *ctrl) in nvme_cancel_admin_tagset()
434 bool nvme_change_ctrl_state(struct nvme_ctrl *ctrl, in nvme_change_ctrl_state()
534 static bool nvme_state_terminal(struct nvme_ctrl *ctrl) in nvme_state_terminal()
556 bool nvme_wait_reset(struct nvme_ctrl *ctrl) in nvme_wait_reset()
672 blk_status_t nvme_fail_nonready_command(struct nvme_ctrl *ctrl, in nvme_fail_nonready_command()
684 bool __nvme_check_ready(struct nvme_ctrl *ctrl, struct request *rq, in __nvme_check_ready()
723 static int nvme_toggle_streams(struct nvme_ctrl *ctrl, bool enable) in nvme_toggle_streams()
737 static int nvme_disable_streams(struct nvme_ctrl *ctrl) in nvme_disable_streams()
742 static int nvme_enable_streams(struct nvme_ctrl *ctrl) in nvme_enable_streams()
747 static int nvme_get_stream_params(struct nvme_ctrl *ctrl, in nvme_get_stream_params()
763 static int nvme_configure_directives(struct nvme_ctrl *ctrl) in nvme_configure_directives()
801 static void nvme_assign_write_stream(struct nvme_ctrl *ctrl, in nvme_assign_write_stream()
912 struct nvme_ctrl *ctrl = ns->ctrl; in nvme_setup_rw()
968 struct nvme_ctrl *ctrl = nvme_req(req)->ctrl; in nvme_cleanup_cmd()
981 struct nvme_ctrl *ctrl = nvme_req(req)->ctrl; in nvme_setup_cmd()
1116 u32 nvme_command_effects(struct nvme_ctrl *ctrl, struct nvme_ns *ns, u8 opcode) in nvme_command_effects()
1138 static u32 nvme_passthru_start(struct nvme_ctrl *ctrl, struct nvme_ns *ns, in nvme_passthru_start()
1158 static void nvme_passthru_end(struct nvme_ctrl *ctrl, u32 effects, in nvme_passthru_end()
1199 struct nvme_ctrl *ctrl = nvme_req(rq)->ctrl; in nvme_execute_passthru_rq()
1220 static void nvme_queue_keep_alive_work(struct nvme_ctrl *ctrl) in nvme_queue_keep_alive_work()
1227 struct nvme_ctrl *ctrl = rq->end_io_data; in nvme_keep_alive_end_io()
1252 struct nvme_ctrl *ctrl = container_of(to_delayed_work(work), in nvme_keep_alive_work()
1253 struct nvme_ctrl, ka_work); in nvme_keep_alive_work()
1279 static void nvme_start_keep_alive(struct nvme_ctrl *ctrl) in nvme_start_keep_alive()
1287 void nvme_stop_keep_alive(struct nvme_ctrl *ctrl) in nvme_stop_keep_alive()
1296 static void nvme_update_keep_alive(struct nvme_ctrl *ctrl, in nvme_update_keep_alive()
1317 static bool nvme_ctrl_limited_cns(struct nvme_ctrl *ctrl) in nvme_ctrl_limited_cns()
1324 static int nvme_identify_ctrl(struct nvme_ctrl *dev, struct nvme_id_ctrl **id) in nvme_identify_ctrl()
1344 static int nvme_process_ns_desc(struct nvme_ctrl *ctrl, struct nvme_ns_ids *ids, in nvme_process_ns_desc()
1390 static int nvme_identify_ns_descs(struct nvme_ctrl *ctrl, unsigned nsid, in nvme_identify_ns_descs()
1444 static int nvme_identify_ns(struct nvme_ctrl *ctrl, unsigned nsid, in nvme_identify_ns()
1483 static int nvme_features(struct nvme_ctrl *dev, u8 op, unsigned int fid, in nvme_features()
1501 int nvme_set_features(struct nvme_ctrl *dev, unsigned int fid, in nvme_set_features()
1510 int nvme_get_features(struct nvme_ctrl *dev, unsigned int fid, in nvme_get_features()
1519 int nvme_set_queue_count(struct nvme_ctrl *ctrl, int *count) in nvme_set_queue_count()
1551 static void nvme_enable_aen(struct nvme_ctrl *ctrl) in nvme_enable_aen()
1648 struct nvme_ctrl *ctrl = ns->ctrl; in nvme_config_discard()
1692 static int nvme_setup_streams_ns(struct nvme_ctrl *ctrl, struct nvme_ns *ns, in nvme_setup_streams_ns()
1719 struct nvme_ctrl *ctrl = ns->ctrl; in nvme_configure_metadata()
1761 static void nvme_set_queue_limits(struct nvme_ctrl *ctrl, in nvme_set_queue_limits()
1861 struct nvme_ctrl *ctrl = ns->ctrl; in nvme_set_chunk_sectors()
2067 struct nvme_ctrl *ctrl = data; in nvme_sec_submit()
2105 static int nvme_wait_ready(struct nvme_ctrl *ctrl, u64 cap, bool enabled) in nvme_wait_ready()
2138 int nvme_disable_ctrl(struct nvme_ctrl *ctrl) in nvme_disable_ctrl()
2156 int nvme_enable_ctrl(struct nvme_ctrl *ctrl) in nvme_enable_ctrl()
2191 int nvme_shutdown_ctrl(struct nvme_ctrl *ctrl) in nvme_shutdown_ctrl()
2222 static int nvme_configure_timestamp(struct nvme_ctrl *ctrl) in nvme_configure_timestamp()
2239 static int nvme_configure_acre(struct nvme_ctrl *ctrl) in nvme_configure_acre()
2313 static int nvme_configure_apst(struct nvme_ctrl *ctrl) in nvme_configure_apst()
2420 struct nvme_ctrl *ctrl = dev_get_drvdata(dev); in nvme_set_latency_tolerance()
2503 static void nvme_init_subnqn(struct nvme_subsystem *subsys, struct nvme_ctrl *ctrl, in nvme_init_subnqn()
2638 static inline bool nvme_discovery_ctrl(struct nvme_ctrl *ctrl) in nvme_discovery_ctrl()
2644 struct nvme_ctrl *ctrl, struct nvme_id_ctrl *id) in nvme_validate_cntlid()
2646 struct nvme_ctrl *tmp; in nvme_validate_cntlid()
2673 static int nvme_init_subsystem(struct nvme_ctrl *ctrl, struct nvme_id_ctrl *id) in nvme_init_subsystem()
2748 int nvme_get_log(struct nvme_ctrl *ctrl, u32 nsid, u8 log_page, u8 lsp, u8 csi, in nvme_get_log()
2767 static int nvme_get_effects_log(struct nvme_ctrl *ctrl, u8 csi, in nvme_get_effects_log()
2793 static inline u32 nvme_mps_to_sectors(struct nvme_ctrl *ctrl, u32 units) in nvme_mps_to_sectors()
2802 static int nvme_init_non_mdts_limits(struct nvme_ctrl *ctrl) in nvme_init_non_mdts_limits()
2855 static int nvme_init_identify(struct nvme_ctrl *ctrl) in nvme_init_identify()
3009 int nvme_init_ctrl_finish(struct nvme_ctrl *ctrl) in nvme_init_ctrl_finish()
3062 struct nvme_ctrl *ctrl = in nvme_dev_open()
3063 container_of(inode->i_cdev, struct nvme_ctrl, cdev); in nvme_dev_open()
3084 struct nvme_ctrl *ctrl = in nvme_dev_release()
3085 container_of(inode->i_cdev, struct nvme_ctrl, cdev); in nvme_dev_release()
3104 struct nvme_ctrl *ctrl = dev_get_drvdata(dev); in nvme_sysfs_reset()
3118 struct nvme_ctrl *ctrl = dev_get_drvdata(dev); in nvme_sysfs_rescan()
3261 struct nvme_ctrl *ctrl = dev_get_drvdata(dev); \
3275 struct nvme_ctrl *ctrl = dev_get_drvdata(dev); \
3290 struct nvme_ctrl *ctrl = dev_get_drvdata(dev); in nvme_sysfs_delete()
3302 struct nvme_ctrl *ctrl = dev_get_drvdata(dev); in nvme_sysfs_show_transport()
3312 struct nvme_ctrl *ctrl = dev_get_drvdata(dev); in nvme_sysfs_show_state()
3336 struct nvme_ctrl *ctrl = dev_get_drvdata(dev); in nvme_sysfs_show_subsysnqn()
3346 struct nvme_ctrl *ctrl = dev_get_drvdata(dev); in nvme_sysfs_show_hostnqn()
3356 struct nvme_ctrl *ctrl = dev_get_drvdata(dev); in nvme_sysfs_show_hostid()
3366 struct nvme_ctrl *ctrl = dev_get_drvdata(dev); in nvme_sysfs_show_address()
3375 struct nvme_ctrl *ctrl = dev_get_drvdata(dev); in nvme_ctrl_loss_tmo_show()
3387 struct nvme_ctrl *ctrl = dev_get_drvdata(dev); in nvme_ctrl_loss_tmo_store()
3408 struct nvme_ctrl *ctrl = dev_get_drvdata(dev); in nvme_ctrl_reconnect_delay_show()
3418 struct nvme_ctrl *ctrl = dev_get_drvdata(dev); in nvme_ctrl_reconnect_delay_store()
3435 struct nvme_ctrl *ctrl = dev_get_drvdata(dev); in nvme_ctrl_fast_io_fail_tmo_show()
3445 struct nvme_ctrl *ctrl = dev_get_drvdata(dev); in nvme_ctrl_fast_io_fail_tmo_store()
3490 struct nvme_ctrl *ctrl = dev_get_drvdata(dev); in nvme_dev_attrs_are_visible()
3618 static struct nvme_ns_head *nvme_alloc_ns_head(struct nvme_ctrl *ctrl, in nvme_alloc_ns_head()
3683 struct nvme_ctrl *ctrl = ns->ctrl; in nvme_init_ns_head()
3723 struct nvme_ns *nvme_find_get_ns(struct nvme_ctrl *ctrl, unsigned nsid) in nvme_find_get_ns()
3759 static void nvme_alloc_ns(struct nvme_ctrl *ctrl, unsigned nsid, in nvme_alloc_ns()
3885 static void nvme_ns_remove_by_nsid(struct nvme_ctrl *ctrl, u32 nsid) in nvme_ns_remove_by_nsid()
3929 static void nvme_validate_or_alloc_ns(struct nvme_ctrl *ctrl, unsigned nsid) in nvme_validate_or_alloc_ns()
3970 static void nvme_remove_invalid_namespaces(struct nvme_ctrl *ctrl, in nvme_remove_invalid_namespaces()
3988 static int nvme_scan_ns_list(struct nvme_ctrl *ctrl) in nvme_scan_ns_list()
4034 static void nvme_scan_ns_sequential(struct nvme_ctrl *ctrl) in nvme_scan_ns_sequential()
4050 static void nvme_clear_changed_ns_log(struct nvme_ctrl *ctrl) in nvme_clear_changed_ns_log()
4077 struct nvme_ctrl *ctrl = in nvme_scan_work()
4078 container_of(work, struct nvme_ctrl, scan_work); in nvme_scan_work()
4100 void nvme_remove_namespaces(struct nvme_ctrl *ctrl) in nvme_remove_namespaces()
4138 struct nvme_ctrl *ctrl = in nvme_class_uevent()
4139 container_of(dev, struct nvme_ctrl, ctrl_device); in nvme_class_uevent()
4168 static void nvme_aen_uevent(struct nvme_ctrl *ctrl) in nvme_aen_uevent()
4186 struct nvme_ctrl *ctrl = in nvme_async_event_work()
4187 container_of(work, struct nvme_ctrl, async_event_work); in nvme_async_event_work()
4193 static bool nvme_ctrl_pp_status(struct nvme_ctrl *ctrl) in nvme_ctrl_pp_status()
4207 static void nvme_get_fw_slot_info(struct nvme_ctrl *ctrl) in nvme_get_fw_slot_info()
4223 struct nvme_ctrl *ctrl = container_of(work, in nvme_fw_act_work()
4224 struct nvme_ctrl, fw_act_work); in nvme_fw_act_work()
4253 static void nvme_handle_aen_notice(struct nvme_ctrl *ctrl, u32 result) in nvme_handle_aen_notice()
4288 void nvme_complete_async_event(struct nvme_ctrl *ctrl, __le16 status, in nvme_complete_async_event()
4315 void nvme_stop_ctrl(struct nvme_ctrl *ctrl) in nvme_stop_ctrl()
4325 void nvme_start_ctrl(struct nvme_ctrl *ctrl) in nvme_start_ctrl()
4338 void nvme_uninit_ctrl(struct nvme_ctrl *ctrl) in nvme_uninit_ctrl()
4348 static void nvme_free_cels(struct nvme_ctrl *ctrl) in nvme_free_cels()
4363 struct nvme_ctrl *ctrl = in nvme_free_ctrl()
4364 container_of(dev, struct nvme_ctrl, ctrl_device); in nvme_free_ctrl()
4392 int nvme_init_ctrl(struct nvme_ctrl *ctrl, struct device *dev, in nvme_init_ctrl()
4483 void nvme_kill_queues(struct nvme_ctrl *ctrl) in nvme_kill_queues()
4500 void nvme_unfreeze(struct nvme_ctrl *ctrl) in nvme_unfreeze()
4511 int nvme_wait_freeze_timeout(struct nvme_ctrl *ctrl, long timeout) in nvme_wait_freeze_timeout()
4526 void nvme_wait_freeze(struct nvme_ctrl *ctrl) in nvme_wait_freeze()
4537 void nvme_start_freeze(struct nvme_ctrl *ctrl) in nvme_start_freeze()
4548 void nvme_stop_queues(struct nvme_ctrl *ctrl) in nvme_stop_queues()
4559 void nvme_start_queues(struct nvme_ctrl *ctrl) in nvme_start_queues()
4570 void nvme_sync_io_queues(struct nvme_ctrl *ctrl) in nvme_sync_io_queues()
4581 void nvme_sync_queues(struct nvme_ctrl *ctrl) in nvme_sync_queues()
4589 struct nvme_ctrl *nvme_ctrl_from_file(struct file *file) in nvme_ctrl_from_file()