Lines Matching refs:nvme_ctrl

124 static void nvme_remove_invalid_namespaces(struct nvme_ctrl *ctrl,
126 static void nvme_update_keep_alive(struct nvme_ctrl *ctrl,
129 void nvme_queue_scan(struct nvme_ctrl *ctrl) in nvme_queue_scan()
144 int nvme_try_sched_reset(struct nvme_ctrl *ctrl) in nvme_try_sched_reset()
156 struct nvme_ctrl *ctrl = container_of(to_delayed_work(work), in nvme_failfast_work()
157 struct nvme_ctrl, failfast_work); in nvme_failfast_work()
167 static inline void nvme_start_failfast_work(struct nvme_ctrl *ctrl) in nvme_start_failfast_work()
176 static inline void nvme_stop_failfast_work(struct nvme_ctrl *ctrl) in nvme_stop_failfast_work()
186 int nvme_reset_ctrl(struct nvme_ctrl *ctrl) in nvme_reset_ctrl()
196 int nvme_reset_ctrl_sync(struct nvme_ctrl *ctrl) in nvme_reset_ctrl_sync()
210 static void nvme_do_delete_ctrl(struct nvme_ctrl *ctrl) in nvme_do_delete_ctrl()
224 struct nvme_ctrl *ctrl = in nvme_delete_ctrl_work()
225 container_of(work, struct nvme_ctrl, delete_work); in nvme_delete_ctrl_work()
230 int nvme_delete_ctrl(struct nvme_ctrl *ctrl) in nvme_delete_ctrl()
240 void nvme_delete_ctrl_sync(struct nvme_ctrl *ctrl) in nvme_delete_ctrl_sync()
395 struct nvme_ctrl *ctrl = nvme_req(req)->ctrl; in nvme_complete_rq()
459 dev_dbg_ratelimited(((struct nvme_ctrl *) data)->device, in nvme_cancel_request()
473 void nvme_cancel_tagset(struct nvme_ctrl *ctrl) in nvme_cancel_tagset()
483 void nvme_cancel_admin_tagset(struct nvme_ctrl *ctrl) in nvme_cancel_admin_tagset()
493 bool nvme_change_ctrl_state(struct nvme_ctrl *ctrl, in nvme_change_ctrl_state()
593 static bool nvme_state_terminal(struct nvme_ctrl *ctrl) in nvme_state_terminal()
615 bool nvme_wait_reset(struct nvme_ctrl *ctrl) in nvme_wait_reset()
704 blk_status_t nvme_fail_nonready_command(struct nvme_ctrl *ctrl, in nvme_fail_nonready_command()
717 bool __nvme_check_ready(struct nvme_ctrl *ctrl, struct request *rq, in __nvme_check_ready()
954 struct nvme_ctrl *ctrl = nvme_req(req)->ctrl; in nvme_cleanup_cmd()
1082 u32 nvme_command_effects(struct nvme_ctrl *ctrl, struct nvme_ns *ns, u8 opcode) in nvme_command_effects()
1107 u32 nvme_passthru_start(struct nvme_ctrl *ctrl, struct nvme_ns *ns, u8 opcode) in nvme_passthru_start()
1127 void nvme_passthru_end(struct nvme_ctrl *ctrl, struct nvme_ns *ns, u32 effects, in nvme_passthru_end()
1178 static unsigned long nvme_keep_alive_work_period(struct nvme_ctrl *ctrl) in nvme_keep_alive_work_period()
1193 static void nvme_queue_keep_alive_work(struct nvme_ctrl *ctrl) in nvme_queue_keep_alive_work()
1202 struct nvme_ctrl *ctrl = rq->end_io_data; in nvme_keep_alive_end_io()
1243 struct nvme_ctrl *ctrl = container_of(to_delayed_work(work), in nvme_keep_alive_work()
1244 struct nvme_ctrl, ka_work); in nvme_keep_alive_work()
1274 static void nvme_start_keep_alive(struct nvme_ctrl *ctrl) in nvme_start_keep_alive()
1282 void nvme_stop_keep_alive(struct nvme_ctrl *ctrl) in nvme_stop_keep_alive()
1291 static void nvme_update_keep_alive(struct nvme_ctrl *ctrl, in nvme_update_keep_alive()
1312 static bool nvme_ctrl_limited_cns(struct nvme_ctrl *ctrl) in nvme_ctrl_limited_cns()
1319 static int nvme_identify_ctrl(struct nvme_ctrl *dev, struct nvme_id_ctrl **id) in nvme_identify_ctrl()
1339 static int nvme_process_ns_desc(struct nvme_ctrl *ctrl, struct nvme_ns_ids *ids, in nvme_process_ns_desc()
1391 static int nvme_identify_ns_descs(struct nvme_ctrl *ctrl, in nvme_identify_ns_descs()
1445 static int nvme_identify_ns(struct nvme_ctrl *ctrl, unsigned nsid, in nvme_identify_ns()
1468 static int nvme_ns_info_from_identify(struct nvme_ctrl *ctrl, in nvme_ns_info_from_identify()
1504 static int nvme_ns_info_from_id_cs_indep(struct nvme_ctrl *ctrl, in nvme_ns_info_from_id_cs_indep()
1530 static int nvme_features(struct nvme_ctrl *dev, u8 op, unsigned int fid, in nvme_features()
1548 int nvme_set_features(struct nvme_ctrl *dev, unsigned int fid, in nvme_set_features()
1557 int nvme_get_features(struct nvme_ctrl *dev, unsigned int fid, in nvme_get_features()
1566 int nvme_set_queue_count(struct nvme_ctrl *ctrl, int *count) in nvme_set_queue_count()
1598 static void nvme_enable_aen(struct nvme_ctrl *ctrl) in nvme_enable_aen()
1720 struct nvme_ctrl *ctrl = ns->ctrl; in nvme_config_discard()
1760 struct nvme_ctrl *ctrl = ns->ctrl; in nvme_init_ms()
1818 struct nvme_ctrl *ctrl = ns->ctrl; in nvme_configure_metadata()
1863 static void nvme_set_queue_limits(struct nvme_ctrl *ctrl, in nvme_set_queue_limits()
1964 struct nvme_ctrl *ctrl = ns->ctrl; in nvme_set_chunk_sectors()
2115 struct nvme_ctrl *ctrl = data; in nvme_sec_submit()
2130 static void nvme_configure_opal(struct nvme_ctrl *ctrl, bool was_suspended) in nvme_configure_opal()
2143 static void nvme_configure_opal(struct nvme_ctrl *ctrl, bool was_suspended) in nvme_configure_opal()
2170 static int nvme_wait_ready(struct nvme_ctrl *ctrl, u32 mask, u32 val, in nvme_wait_ready()
2197 int nvme_disable_ctrl(struct nvme_ctrl *ctrl, bool shutdown) in nvme_disable_ctrl()
2223 int nvme_enable_ctrl(struct nvme_ctrl *ctrl) in nvme_enable_ctrl()
2305 static int nvme_configure_timestamp(struct nvme_ctrl *ctrl) in nvme_configure_timestamp()
2322 static int nvme_configure_host_options(struct nvme_ctrl *ctrl) in nvme_configure_host_options()
2403 static int nvme_configure_apst(struct nvme_ctrl *ctrl) in nvme_configure_apst()
2510 struct nvme_ctrl *ctrl = dev_get_drvdata(dev); in nvme_set_latency_tolerance()
2621 static void nvme_init_subnqn(struct nvme_subsystem *subsys, struct nvme_ctrl *ctrl, in nvme_init_subnqn()
2710 static inline bool nvme_discovery_ctrl(struct nvme_ctrl *ctrl) in nvme_discovery_ctrl()
2716 struct nvme_ctrl *ctrl, struct nvme_id_ctrl *id) in nvme_validate_cntlid()
2718 struct nvme_ctrl *tmp; in nvme_validate_cntlid()
2746 static int nvme_init_subsystem(struct nvme_ctrl *ctrl, struct nvme_id_ctrl *id) in nvme_init_subsystem()
2833 int nvme_get_log(struct nvme_ctrl *ctrl, u32 nsid, u8 log_page, u8 lsp, u8 csi, in nvme_get_log()
2852 static int nvme_get_effects_log(struct nvme_ctrl *ctrl, u8 csi, in nvme_get_effects_log()
2878 static inline u32 nvme_mps_to_sectors(struct nvme_ctrl *ctrl, u32 units) in nvme_mps_to_sectors()
2887 static int nvme_init_non_mdts_limits(struct nvme_ctrl *ctrl) in nvme_init_non_mdts_limits()
2943 static void nvme_init_known_nvm_effects(struct nvme_ctrl *ctrl) in nvme_init_known_nvm_effects()
2975 static int nvme_init_effects(struct nvme_ctrl *ctrl, struct nvme_id_ctrl *id) in nvme_init_effects()
2999 static int nvme_init_identify(struct nvme_ctrl *ctrl) in nvme_init_identify()
3156 int nvme_init_ctrl_finish(struct nvme_ctrl *ctrl, bool was_suspended) in nvme_init_ctrl_finish()
3208 struct nvme_ctrl *ctrl = in nvme_dev_open()
3209 container_of(inode->i_cdev, struct nvme_ctrl, cdev); in nvme_dev_open()
3230 struct nvme_ctrl *ctrl = in nvme_dev_release()
3231 container_of(inode->i_cdev, struct nvme_ctrl, cdev); in nvme_dev_release()
3247 static struct nvme_ns_head *nvme_find_ns_head(struct nvme_ctrl *ctrl, in nvme_find_ns_head()
3360 static struct nvme_ns_head *nvme_alloc_ns_head(struct nvme_ctrl *ctrl, in nvme_alloc_ns_head()
3444 struct nvme_ctrl *ctrl = ns->ctrl; in nvme_init_ns_head()
3537 struct nvme_ns *nvme_find_get_ns(struct nvme_ctrl *ctrl, unsigned nsid) in nvme_find_get_ns()
3573 static void nvme_alloc_ns(struct nvme_ctrl *ctrl, struct nvme_ns_info *info) in nvme_alloc_ns()
3711 static void nvme_ns_remove_by_nsid(struct nvme_ctrl *ctrl, u32 nsid) in nvme_ns_remove_by_nsid()
3743 static void nvme_scan_ns(struct nvme_ctrl *ctrl, unsigned nsid) in nvme_scan_ns()
3788 static void nvme_remove_invalid_namespaces(struct nvme_ctrl *ctrl, in nvme_remove_invalid_namespaces()
3806 static int nvme_scan_ns_list(struct nvme_ctrl *ctrl) in nvme_scan_ns_list()
3849 static void nvme_scan_ns_sequential(struct nvme_ctrl *ctrl) in nvme_scan_ns_sequential()
3865 static void nvme_clear_changed_ns_log(struct nvme_ctrl *ctrl) in nvme_clear_changed_ns_log()
3892 struct nvme_ctrl *ctrl = in nvme_scan_work()
3893 container_of(work, struct nvme_ctrl, scan_work); in nvme_scan_work()
3940 void nvme_remove_namespaces(struct nvme_ctrl *ctrl) in nvme_remove_namespaces()
3984 const struct nvme_ctrl *ctrl = in nvme_class_uevent()
3985 container_of(dev, struct nvme_ctrl, ctrl_device); in nvme_class_uevent()
4014 static void nvme_change_uevent(struct nvme_ctrl *ctrl, char *envdata) in nvme_change_uevent()
4021 static void nvme_aen_uevent(struct nvme_ctrl *ctrl) in nvme_aen_uevent()
4039 struct nvme_ctrl *ctrl = in nvme_async_event_work()
4040 container_of(work, struct nvme_ctrl, async_event_work); in nvme_async_event_work()
4053 static bool nvme_ctrl_pp_status(struct nvme_ctrl *ctrl) in nvme_ctrl_pp_status()
4067 static void nvme_get_fw_slot_info(struct nvme_ctrl *ctrl) in nvme_get_fw_slot_info()
4083 struct nvme_ctrl *ctrl = container_of(work, in nvme_fw_act_work()
4084 struct nvme_ctrl, fw_act_work); in nvme_fw_act_work()
4125 static bool nvme_handle_aen_notice(struct nvme_ctrl *ctrl, u32 result) in nvme_handle_aen_notice()
4163 static void nvme_handle_aer_persistent_error(struct nvme_ctrl *ctrl) in nvme_handle_aer_persistent_error()
4169 void nvme_complete_async_event(struct nvme_ctrl *ctrl, __le16 status, in nvme_complete_async_event()
4209 int nvme_alloc_admin_tag_set(struct nvme_ctrl *ctrl, struct blk_mq_tag_set *set, in nvme_alloc_admin_tag_set()
4259 void nvme_remove_admin_tag_set(struct nvme_ctrl *ctrl) in nvme_remove_admin_tag_set()
4271 int nvme_alloc_io_tag_set(struct nvme_ctrl *ctrl, struct blk_mq_tag_set *set, in nvme_alloc_io_tag_set()
4321 void nvme_remove_io_tag_set(struct nvme_ctrl *ctrl) in nvme_remove_io_tag_set()
4331 void nvme_stop_ctrl(struct nvme_ctrl *ctrl) in nvme_stop_ctrl()
4344 void nvme_start_ctrl(struct nvme_ctrl *ctrl) in nvme_start_ctrl()
4371 void nvme_uninit_ctrl(struct nvme_ctrl *ctrl) in nvme_uninit_ctrl()
4381 static void nvme_free_cels(struct nvme_ctrl *ctrl) in nvme_free_cels()
4396 struct nvme_ctrl *ctrl = in nvme_free_ctrl()
4397 container_of(dev, struct nvme_ctrl, ctrl_device); in nvme_free_ctrl()
4428 int nvme_init_ctrl(struct nvme_ctrl *ctrl, struct device *dev, in nvme_init_ctrl()
4523 void nvme_mark_namespaces_dead(struct nvme_ctrl *ctrl) in nvme_mark_namespaces_dead()
4534 void nvme_unfreeze(struct nvme_ctrl *ctrl) in nvme_unfreeze()
4545 int nvme_wait_freeze_timeout(struct nvme_ctrl *ctrl, long timeout) in nvme_wait_freeze_timeout()
4560 void nvme_wait_freeze(struct nvme_ctrl *ctrl) in nvme_wait_freeze()
4571 void nvme_start_freeze(struct nvme_ctrl *ctrl) in nvme_start_freeze()
4582 void nvme_quiesce_io_queues(struct nvme_ctrl *ctrl) in nvme_quiesce_io_queues()
4593 void nvme_unquiesce_io_queues(struct nvme_ctrl *ctrl) in nvme_unquiesce_io_queues()
4602 void nvme_quiesce_admin_queue(struct nvme_ctrl *ctrl) in nvme_quiesce_admin_queue()
4611 void nvme_unquiesce_admin_queue(struct nvme_ctrl *ctrl) in nvme_unquiesce_admin_queue()
4618 void nvme_sync_io_queues(struct nvme_ctrl *ctrl) in nvme_sync_io_queues()
4629 void nvme_sync_queues(struct nvme_ctrl *ctrl) in nvme_sync_queues()
4637 struct nvme_ctrl *nvme_ctrl_from_file(struct file *file) in nvme_ctrl_from_file()