Lines Matching refs:nvme_ctrl
103 static void nvme_remove_invalid_namespaces(struct nvme_ctrl *ctrl,
120 static void nvme_queue_scan(struct nvme_ctrl *ctrl) in nvme_queue_scan()
129 int nvme_reset_ctrl(struct nvme_ctrl *ctrl) in nvme_reset_ctrl()
139 int nvme_reset_ctrl_sync(struct nvme_ctrl *ctrl) in nvme_reset_ctrl_sync()
157 struct nvme_ctrl *ctrl = in nvme_delete_ctrl_work()
158 container_of(work, struct nvme_ctrl, delete_work); in nvme_delete_ctrl_work()
171 int nvme_delete_ctrl(struct nvme_ctrl *ctrl) in nvme_delete_ctrl()
181 int nvme_delete_ctrl_sync(struct nvme_ctrl *ctrl) in nvme_delete_ctrl_sync()
273 dev_dbg_ratelimited(((struct nvme_ctrl *) data)->device, in nvme_cancel_request()
282 bool nvme_change_ctrl_state(struct nvme_ctrl *ctrl, in nvme_change_ctrl_state()
437 static int nvme_toggle_streams(struct nvme_ctrl *ctrl, bool enable) in nvme_toggle_streams()
453 static int nvme_disable_streams(struct nvme_ctrl *ctrl) in nvme_disable_streams()
458 static int nvme_enable_streams(struct nvme_ctrl *ctrl) in nvme_enable_streams()
463 static int nvme_get_stream_params(struct nvme_ctrl *ctrl, in nvme_get_stream_params()
480 static int nvme_configure_directives(struct nvme_ctrl *ctrl) in nvme_configure_directives()
515 static void nvme_assign_write_stream(struct nvme_ctrl *ctrl, in nvme_assign_write_stream()
589 struct nvme_ctrl *ctrl = ns->ctrl; in nvme_setup_rw()
833 struct nvme_ctrl *ctrl = rq->end_io_data; in nvme_keep_alive_end_io()
847 static int nvme_keep_alive(struct nvme_ctrl *ctrl) in nvme_keep_alive()
866 struct nvme_ctrl *ctrl = container_of(to_delayed_work(work), in nvme_keep_alive_work()
867 struct nvme_ctrl, ka_work); in nvme_keep_alive_work()
877 static void nvme_start_keep_alive(struct nvme_ctrl *ctrl) in nvme_start_keep_alive()
885 void nvme_stop_keep_alive(struct nvme_ctrl *ctrl) in nvme_stop_keep_alive()
894 static int nvme_identify_ctrl(struct nvme_ctrl *dev, struct nvme_id_ctrl **id) in nvme_identify_ctrl()
914 static int nvme_identify_ns_descs(struct nvme_ctrl *ctrl, unsigned nsid, in nvme_identify_ns_descs()
986 static int nvme_identify_ns_list(struct nvme_ctrl *dev, unsigned nsid, __le32 *ns_list) in nvme_identify_ns_list()
997 static struct nvme_id_ns *nvme_identify_ns(struct nvme_ctrl *ctrl, in nvme_identify_ns()
1023 static int nvme_set_features(struct nvme_ctrl *dev, unsigned fid, unsigned dword11, in nvme_set_features()
1042 int nvme_set_queue_count(struct nvme_ctrl *ctrl, int *count) in nvme_set_queue_count()
1073 static void nvme_enable_aen(struct nvme_ctrl *ctrl) in nvme_enable_aen()
1152 static u32 nvme_passthru_start(struct nvme_ctrl *ctrl, struct nvme_ns *ns, in nvme_passthru_start()
1183 static void nvme_update_formats(struct nvme_ctrl *ctrl) in nvme_update_formats()
1196 static void nvme_passthru_end(struct nvme_ctrl *ctrl, u32 effects) in nvme_passthru_end()
1213 static int nvme_user_cmd(struct nvme_ctrl *ctrl, struct nvme_ns *ns, in nvme_user_cmd()
1404 struct nvme_ctrl *ctrl = ns->ctrl; in nvme_config_discard()
1433 static void nvme_report_ns_ids(struct nvme_ctrl *ctrl, unsigned int nsid, in nvme_report_ns_ids()
1530 struct nvme_ctrl *ctrl = ns->ctrl; in nvme_revalidate_disk()
1666 struct nvme_ctrl *ctrl = data; in nvme_sec_submit()
1721 static int nvme_wait_ready(struct nvme_ctrl *ctrl, u64 cap, bool enabled) in nvme_wait_ready()
1754 int nvme_disable_ctrl(struct nvme_ctrl *ctrl, u64 cap) in nvme_disable_ctrl()
1772 int nvme_enable_ctrl(struct nvme_ctrl *ctrl, u64 cap) in nvme_enable_ctrl()
1804 int nvme_shutdown_ctrl(struct nvme_ctrl *ctrl) in nvme_shutdown_ctrl()
1835 static void nvme_set_queue_limits(struct nvme_ctrl *ctrl, in nvme_set_queue_limits()
1857 static int nvme_configure_timestamp(struct nvme_ctrl *ctrl) in nvme_configure_timestamp()
1874 static int nvme_configure_apst(struct nvme_ctrl *ctrl) in nvme_configure_apst()
1999 struct nvme_ctrl *ctrl = dev_get_drvdata(dev); in nvme_set_latency_tolerance()
2071 static void nvme_init_subnqn(struct nvme_subsystem *subsys, struct nvme_ctrl *ctrl, in nvme_init_subnqn()
2194 struct nvme_ctrl *ctrl; in nvme_active_ctrls()
2207 static int nvme_init_subsystem(struct nvme_ctrl *ctrl, struct nvme_id_ctrl *id) in nvme_init_subsystem()
2291 int nvme_get_log(struct nvme_ctrl *ctrl, u32 nsid, u8 log_page, u8 lsp, in nvme_get_log()
2309 static int nvme_get_effects_log(struct nvme_ctrl *ctrl) in nvme_get_effects_log()
2333 int nvme_init_identify(struct nvme_ctrl *ctrl) in nvme_init_identify()
2506 struct nvme_ctrl *ctrl = in nvme_dev_open()
2507 container_of(inode->i_cdev, struct nvme_ctrl, cdev); in nvme_dev_open()
2521 static int nvme_dev_user_cmd(struct nvme_ctrl *ctrl, void __user *argp) in nvme_dev_user_cmd()
2557 struct nvme_ctrl *ctrl = file->private_data; in nvme_dev_ioctl()
2589 struct nvme_ctrl *ctrl = dev_get_drvdata(dev); in nvme_sysfs_reset()
2603 struct nvme_ctrl *ctrl = dev_get_drvdata(dev); in nvme_sysfs_rescan()
2741 struct nvme_ctrl *ctrl = dev_get_drvdata(dev); \
2755 struct nvme_ctrl *ctrl = dev_get_drvdata(dev); \
2766 struct nvme_ctrl *ctrl = dev_get_drvdata(dev); in nvme_sysfs_delete()
2778 struct nvme_ctrl *ctrl = dev_get_drvdata(dev); in nvme_sysfs_show_transport()
2788 struct nvme_ctrl *ctrl = dev_get_drvdata(dev); in nvme_sysfs_show_state()
2812 struct nvme_ctrl *ctrl = dev_get_drvdata(dev); in nvme_sysfs_show_subsysnqn()
2822 struct nvme_ctrl *ctrl = dev_get_drvdata(dev); in nvme_sysfs_show_address()
2847 struct nvme_ctrl *ctrl = dev_get_drvdata(dev); in nvme_dev_attrs_are_visible()
2899 static struct nvme_ns_head *nvme_alloc_ns_head(struct nvme_ctrl *ctrl, in nvme_alloc_ns_head()
2951 struct nvme_ctrl *ctrl = ns->ctrl; in nvme_init_ns_head()
2994 static struct nvme_ns *nvme_find_get_ns(struct nvme_ctrl *ctrl, unsigned nsid) in nvme_find_get_ns()
3013 static int nvme_setup_streams_ns(struct nvme_ctrl *ctrl, struct nvme_ns *ns) in nvme_setup_streams_ns()
3039 static void nvme_alloc_ns(struct nvme_ctrl *ctrl, unsigned nsid) in nvme_alloc_ns()
3159 static void nvme_validate_ns(struct nvme_ctrl *ctrl, unsigned nsid) in nvme_validate_ns()
3172 static void nvme_remove_invalid_namespaces(struct nvme_ctrl *ctrl, in nvme_remove_invalid_namespaces()
3190 static int nvme_scan_ns_list(struct nvme_ctrl *ctrl, unsigned nn) in nvme_scan_ns_list()
3230 static void nvme_scan_ns_sequential(struct nvme_ctrl *ctrl, unsigned nn) in nvme_scan_ns_sequential()
3240 static void nvme_clear_changed_ns_log(struct nvme_ctrl *ctrl) in nvme_clear_changed_ns_log()
3267 struct nvme_ctrl *ctrl = in nvme_scan_work()
3268 container_of(work, struct nvme_ctrl, scan_work); in nvme_scan_work()
3304 void nvme_remove_namespaces(struct nvme_ctrl *ctrl) in nvme_remove_namespaces()
3327 static void nvme_aen_uevent(struct nvme_ctrl *ctrl) in nvme_aen_uevent()
3345 struct nvme_ctrl *ctrl = in nvme_async_event_work()
3346 container_of(work, struct nvme_ctrl, async_event_work); in nvme_async_event_work()
3352 static bool nvme_ctrl_pp_status(struct nvme_ctrl *ctrl) in nvme_ctrl_pp_status()
3366 static void nvme_get_fw_slot_info(struct nvme_ctrl *ctrl) in nvme_get_fw_slot_info()
3382 struct nvme_ctrl *ctrl = container_of(work, in nvme_fw_act_work()
3383 struct nvme_ctrl, fw_act_work); in nvme_fw_act_work()
3412 static void nvme_handle_aen_notice(struct nvme_ctrl *ctrl, u32 result) in nvme_handle_aen_notice()
3434 void nvme_complete_async_event(struct nvme_ctrl *ctrl, __le16 status, in nvme_complete_async_event()
3459 void nvme_stop_ctrl(struct nvme_ctrl *ctrl) in nvme_stop_ctrl()
3471 void nvme_start_ctrl(struct nvme_ctrl *ctrl) in nvme_start_ctrl()
3485 void nvme_uninit_ctrl(struct nvme_ctrl *ctrl) in nvme_uninit_ctrl()
3493 struct nvme_ctrl *ctrl = in nvme_free_ctrl()
3494 container_of(dev, struct nvme_ctrl, ctrl_device); in nvme_free_ctrl()
3519 int nvme_init_ctrl(struct nvme_ctrl *ctrl, struct device *dev, in nvme_init_ctrl()
3588 void nvme_kill_queues(struct nvme_ctrl *ctrl) in nvme_kill_queues()
3605 void nvme_unfreeze(struct nvme_ctrl *ctrl) in nvme_unfreeze()
3616 void nvme_wait_freeze_timeout(struct nvme_ctrl *ctrl, long timeout) in nvme_wait_freeze_timeout()
3630 void nvme_wait_freeze(struct nvme_ctrl *ctrl) in nvme_wait_freeze()
3641 void nvme_start_freeze(struct nvme_ctrl *ctrl) in nvme_start_freeze()
3652 void nvme_stop_queues(struct nvme_ctrl *ctrl) in nvme_stop_queues()
3663 void nvme_start_queues(struct nvme_ctrl *ctrl) in nvme_start_queues()