Home
last modified time | relevance | path

Searched refs:nvme_ctrl (Results 1 – 16 of 16) sorted by relevance

/linux/drivers/nvme/host/
H A Dnvme.h258 struct nvme_ctrl *ctrl;
341 struct nvme_ctrl { struct
485 static inline enum nvme_ctrl_state nvme_ctrl_state(struct nvme_ctrl *ctrl) in nvme_ctrl_state() argument
608 struct nvme_ctrl *ctrl;
642 static inline unsigned long nvme_get_virt_boundary(struct nvme_ctrl *ctrl, in nvme_get_virt_boundary()
657 int (*reg_read32)(struct nvme_ctrl *ctrl, u32 off, u32 *val);
658 int (*reg_write32)(struct nvme_ctrl *ctrl, u32 off, u32 val);
659 int (*reg_read64)(struct nvme_ctrl *ctrl, u32 off, u64 *val);
660 void (*free_ctrl)(struct nvme_ctrl *ctrl);
661 void (*submit_async_event)(struct nvme_ctrl *ctrl);
[all …]
H A Dsysfs.c18 struct nvme_ctrl *ctrl = dev_get_drvdata(dev); in nvme_sysfs_reset()
32 struct nvme_ctrl *ctrl = dev_get_drvdata(dev); in nvme_sysfs_rescan()
42 struct nvme_ctrl *ctrl = dev_get_drvdata(dev); in nvme_adm_passthru_err_log_enabled_show()
51 struct nvme_ctrl *ctrl = dev_get_drvdata(dev); in nvme_adm_passthru_err_log_enabled_store()
465 struct nvme_ctrl *ctrl = dev_get_drvdata(dev); \
479 struct nvme_ctrl *ctrl = dev_get_drvdata(dev); \
494 struct nvme_ctrl *ctrl = dev_get_drvdata(dev); in nvme_sysfs_delete()
509 struct nvme_ctrl *ctrl = dev_get_drvdata(dev); in nvme_sysfs_show_transport()
519 struct nvme_ctrl *ctrl = dev_get_drvdata(dev); in nvme_sysfs_show_state()
543 struct nvme_ctrl *ctrl = dev_get_drvdata(dev); in nvme_sysfs_show_subsysnqn()
[all …]
H A Dcore.c158 static void nvme_remove_invalid_namespaces(struct nvme_ctrl *ctrl,
160 static void nvme_update_keep_alive(struct nvme_ctrl *ctrl,
162 static int nvme_get_log_lsi(struct nvme_ctrl *ctrl, u32 nsid, u8 log_page,
165 void nvme_queue_scan(struct nvme_ctrl *ctrl) in nvme_queue_scan()
180 int nvme_try_sched_reset(struct nvme_ctrl *ctrl) in nvme_try_sched_reset()
192 struct nvme_ctrl *ctrl = container_of(to_delayed_work(work), in nvme_failfast_work()
193 struct nvme_ctrl, failfast_work); in nvme_failfast_work()
203 static inline void nvme_start_failfast_work(struct nvme_ctrl *ctrl) in nvme_start_failfast_work()
212 static inline void nvme_stop_failfast_work(struct nvme_ctrl *ctrl) in nvme_stop_failfast_work()
222 int nvme_reset_ctrl(struct nvme_ctrl *ctrl) in nvme_reset_ctrl()
[all …]
H A Dauth.c24 struct nvme_ctrl *ctrl;
53 static inline int ctrl_max_dhchaps(struct nvme_ctrl *ctrl) in ctrl_max_dhchaps()
59 static int nvme_auth_submit(struct nvme_ctrl *ctrl, int qid, in nvme_auth_submit()
95 static int nvme_auth_receive_validate(struct nvme_ctrl *ctrl, int qid, in nvme_auth_receive_validate()
122 static int nvme_auth_set_dhchap_negotiate_data(struct nvme_ctrl *ctrl, in nvme_auth_set_dhchap_negotiate_data()
165 static int nvme_auth_process_dhchap_challenge(struct nvme_ctrl *ctrl, in nvme_auth_process_dhchap_challenge()
283 static int nvme_auth_set_dhchap_reply_data(struct nvme_ctrl *ctrl, in nvme_auth_set_dhchap_reply_data()
335 static int nvme_auth_process_dhchap_success1(struct nvme_ctrl *ctrl, in nvme_auth_process_dhchap_success1()
385 static int nvme_auth_set_dhchap_success2_data(struct nvme_ctrl *ctrl, in nvme_auth_set_dhchap_success2_data()
399 static int nvme_auth_set_dhchap_failure2_data(struct nvme_ctrl *ctrl, in nvme_auth_set_dhchap_failure2_data()
[all …]
H A Dhwmon.c14 struct nvme_ctrl *ctrl;
19 static int nvme_get_temp_thresh(struct nvme_ctrl *ctrl, int sensor, bool under, in nvme_get_temp_thresh()
40 static int nvme_set_temp_thresh(struct nvme_ctrl *ctrl, int sensor, bool under, in nvme_set_temp_thresh()
226 int nvme_hwmon_init(struct nvme_ctrl *ctrl) in nvme_hwmon_init()
270 void nvme_hwmon_exit(struct nvme_ctrl *ctrl) in nvme_hwmon_exit()
H A Dfabrics.c130 int nvmf_get_address(struct nvme_ctrl *ctrl, char *buf, int size) in nvmf_get_address()
172 int nvmf_reg_read32(struct nvme_ctrl *ctrl, u32 off, u32 *val) in nvmf_reg_read32()
217 int nvmf_reg_read64(struct nvme_ctrl *ctrl, u32 off, u64 *val) in nvmf_reg_read64()
262 int nvmf_reg_write32(struct nvme_ctrl *ctrl, u32 off, u32 val) in nvmf_reg_write32()
283 int nvmf_subsystem_reset(struct nvme_ctrl *ctrl) in nvmf_subsystem_reset()
309 static void nvmf_log_connect_error(struct nvme_ctrl *ctrl, in nvmf_log_connect_error()
394 static struct nvmf_connect_data *nvmf_connect_data_prep(struct nvme_ctrl *ctrl, in nvmf_connect_data_prep()
411 static void nvmf_connect_cmd_prep(struct nvme_ctrl *ctrl, u16 qid, in nvmf_connect_cmd_prep()
447 int nvmf_connect_admin_queue(struct nvme_ctrl *ctrl) in nvmf_connect_admin_queue()
525 int nvmf_connect_io_queue(struct nvme_ctrl *ctrl, u16 qid) in nvmf_connect_io_queue()
[all …]
H A Dtcp.c168 struct nvme_ctrl ctrl;
214 static inline struct nvme_tcp_ctrl *to_tcp_ctrl(struct nvme_ctrl *ctrl) in to_tcp_ctrl()
251 static inline bool nvme_tcp_tls_configured(struct nvme_ctrl *ctrl) in nvme_tcp_tls_configured()
612 static void nvme_tcp_error_recovery(struct nvme_ctrl *ctrl) in nvme_tcp_error_recovery()
1479 static void nvme_tcp_free_queue(struct nvme_ctrl *nctrl, int qid) in nvme_tcp_free_queue()
1774 static int nvme_tcp_start_tls(struct nvme_ctrl *nctrl, in nvme_tcp_start_tls()
1827 static int nvme_tcp_alloc_queue(struct nvme_ctrl *nctrl, int qid, in nvme_tcp_alloc_queue()
2005 static void nvme_tcp_stop_queue_nowait(struct nvme_ctrl *nctrl, int qid) in nvme_tcp_stop_queue_nowait()
2024 static void nvme_tcp_wait_queue(struct nvme_ctrl *nctrl, int qid) in nvme_tcp_wait_queue()
2042 static void nvme_tcp_stop_queue(struct nvme_ctrl *nctrl, int qid) in nvme_tcp_stop_queue()
[all …]
H A Dioctl.c17 static bool nvme_admin_cmd_allowed(struct nvme_ctrl *ctrl, in nvme_admin_cmd_allowed()
96 static bool nvme_cmd_allowed(struct nvme_ctrl *ctrl, struct nvme_ns *ns, in nvme_cmd_allowed()
199 struct nvme_ctrl *ctrl; in nvme_submit_user_cmd()
303 static bool nvme_validate_passthru_nsid(struct nvme_ctrl *ctrl, in nvme_validate_passthru_nsid()
316 static int nvme_user_cmd(struct nvme_ctrl *ctrl, struct nvme_ns *ns, in nvme_user_cmd()
364 static int nvme_user_cmd64(struct nvme_ctrl *ctrl, struct nvme_ns *ns, in nvme_user_cmd64()
481 static int nvme_uring_cmd_io(struct nvme_ctrl *ctrl, struct nvme_ns *ns, in nvme_uring_cmd_io()
586 static int nvme_ctrl_ioctl(struct nvme_ctrl *ctrl, unsigned int cmd, in nvme_ctrl_ioctl()
688 struct nvme_ctrl *ctrl = ns->ctrl; in nvme_ns_uring_cmd()
734 struct nvme_ctrl *ctrl = ns->ctrl; in nvme_ns_head_ctrl_ioctl()
[all …]
H A Dmultipath.c216 void nvme_kick_requeue_lists(struct nvme_ctrl *ctrl) in nvme_kick_requeue_lists()
257 void nvme_mpath_clear_ctrl_paths(struct nvme_ctrl *ctrl) in nvme_mpath_clear_ctrl_paths()
734 int nvme_mpath_alloc_disk(struct nvme_ctrl *ctrl, struct nvme_ns_head *head) in nvme_mpath_alloc_disk()
832 static int nvme_parse_ana_log(struct nvme_ctrl *ctrl, void *data, in nvme_parse_ana_log()
833 int (*cb)(struct nvme_ctrl *ctrl, struct nvme_ana_group_desc *, in nvme_parse_ana_log()
921 static int nvme_update_ana_state(struct nvme_ctrl *ctrl, in nvme_update_ana_state()
958 static int nvme_read_ana_log(struct nvme_ctrl *ctrl) in nvme_read_ana_log()
998 struct nvme_ctrl *ctrl = container_of(work, struct nvme_ctrl, ana_work); in nvme_ana_work()
1006 void nvme_mpath_update(struct nvme_ctrl *ctrl) in nvme_mpath_update()
1020 struct nvme_ctrl *ctrl = timer_container_of(ctrl, t, anatt_timer); in nvme_anatt_timeout()
[all …]
H A Dpci.c316 struct nvme_ctrl ctrl;
357 static inline struct nvme_dev *to_nvme_dev(struct nvme_ctrl *ctrl) in to_nvme_dev()
1698 static void nvme_pci_submit_async_event(struct nvme_ctrl *ctrl) in nvme_pci_submit_async_event()
1713 static int nvme_pci_subsystem_reset(struct nvme_ctrl *ctrl) in nvme_pci_subsystem_reset()
1787 struct nvme_ctrl *ctrl = &dev->ctrl; in adapter_alloc_sq()
2830 struct nvme_ctrl *ctrl = in nvme_pci_attrs_are_visible()
3391 static void nvme_pci_free_ctrl(struct nvme_ctrl *ctrl) in nvme_pci_free_ctrl()
3513 static int nvme_pci_reg_read32(struct nvme_ctrl *ctrl, u32 off, u32 *val) in nvme_pci_reg_read32()
3519 static int nvme_pci_reg_write32(struct nvme_ctrl *ctrl, u32 off, u32 val) in nvme_pci_reg_write32()
3525 static int nvme_pci_reg_read64(struct nvme_ctrl *ctrl, u32 off, u64 *val) in nvme_pci_reg_read64()
[all …]
H A Dapple.c209 struct nvme_ctrl ctrl;
225 static inline struct apple_nvme *ctrl_to_apple_nvme(struct nvme_ctrl *ctrl) in ctrl_to_apple_nvme()
1245 static int apple_nvme_reg_read32(struct nvme_ctrl *ctrl, u32 off, u32 *val) in apple_nvme_reg_read32()
1251 static int apple_nvme_reg_write32(struct nvme_ctrl *ctrl, u32 off, u32 val) in apple_nvme_reg_write32()
1257 static int apple_nvme_reg_read64(struct nvme_ctrl *ctrl, u32 off, u64 *val) in apple_nvme_reg_read64()
1263 static int apple_nvme_get_address(struct nvme_ctrl *ctrl, char *buf, int size) in apple_nvme_get_address()
1270 static void apple_nvme_free_ctrl(struct nvme_ctrl *ctrl) in apple_nvme_free_ctrl()
H A Dtrace.h118 TP_PROTO(struct nvme_ctrl *ctrl, u32 result),
H A Dfc.c179 struct nvme_ctrl ctrl;
183 to_fc_ctrl(struct nvme_ctrl *ctrl) in to_fc_ctrl()
2401 nvme_fc_free_ctrl(struct nvme_ctrl *nctrl) in nvme_fc_free_ctrl()
2425 struct nvme_ctrl *nctrl = data; in nvme_fc_terminate_exchange()
2801 nvme_fc_submit_async_event(struct nvme_ctrl *arg) in nvme_fc_submit_async_event()
3269 nvme_fc_delete_ctrl(struct nvme_ctrl *nctrl) in nvme_fc_delete_ctrl()
3548 static struct nvme_ctrl *
3690 static struct nvme_ctrl *
3695 struct nvme_ctrl *ctrl; in nvme_fc_create_ctrl()
H A Dzns.c10 static int nvme_set_max_append(struct nvme_ctrl *ctrl) in nvme_set_max_append()
/linux/drivers/nvme/target/
H A Dpassthru.c92 struct nvme_ctrl *pctrl = ctrl->subsys->passthru_ctrl; in nvmet_passthru_override_id_ctrl()
227 struct nvme_ctrl *ctrl = nvme_req(rq)->ctrl; in nvmet_passthru_execute_cmd_work()
308 struct nvme_ctrl *ctrl = nvmet_req_subsys(req)->passthru_ctrl; in nvmet_passthru_execute_cmd()
389 struct nvme_ctrl *ctrl = nvmet_req_subsys(req)->passthru_ctrl; in nvmet_passthru_set_host_behaviour()
589 struct nvme_ctrl *ctrl; in nvmet_passthru_ctrl_enable()
H A Dnvmet.h359 struct nvme_ctrl *passthru_ctrl;