/linux/drivers/nvme/host/ |
H A D | nvme.h | 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 525 struct nvme_ctrl *ctrl; 563 int (*reg_read32)(struct nvme_ctrl *ctrl, u32 off, u32 *val); 564 int (*reg_write32)(struct nvme_ctrl *ctrl, u32 off, u32 val); 565 int (*reg_read64)(struct nvme_ctrl *ctrl, u32 off, u64 *val); 566 void (*free_ctrl)(struct nvme_ctrl *ctrl); 567 void (*submit_async_event)(struct nvme_ctrl *ctrl); 568 int (*subsystem_reset)(struct nvme_ctrl *ctrl); [all …]
|
H A D | fabrics.h | 173 struct nvme_ctrl *(*create_ctrl)(struct device *dev, 178 nvmf_ctlr_matches_baseopts(struct nvme_ctrl *ctrl, in nvmf_ctlr_matches_baseopts() 194 static inline char *nvmf_ctrl_subsysnqn(struct nvme_ctrl *ctrl) in nvmf_ctrl_subsysnqn() 217 int nvmf_reg_read32(struct nvme_ctrl *ctrl, u32 off, u32 *val); 218 int nvmf_reg_read64(struct nvme_ctrl *ctrl, u32 off, u64 *val); 219 int nvmf_reg_write32(struct nvme_ctrl *ctrl, u32 off, u32 val); 220 int nvmf_subsystem_reset(struct nvme_ctrl *ctrl); 221 int nvmf_connect_admin_queue(struct nvme_ctrl *ctrl); 222 int nvmf_connect_io_queue(struct nvme_ctrl *ctrl, u16 qid); 226 int nvmf_get_address(struct nvme_ctrl *ctrl, char *buf, int size); [all …]
|
H A D | sysfs.c | 17 struct nvme_ctrl *ctrl = dev_get_drvdata(dev); in nvme_sysfs_reset() 31 struct nvme_ctrl *ctrl = dev_get_drvdata(dev); in nvme_sysfs_rescan() 41 struct nvme_ctrl *ctrl = dev_get_drvdata(dev); in nvme_adm_passthru_err_log_enabled_show() 50 struct nvme_ctrl *ctrl = dev_get_drvdata(dev); in nvme_adm_passthru_err_log_enabled_store() 311 struct nvme_ctrl *ctrl = dev_get_drvdata(dev); \ 325 struct nvme_ctrl *ctrl = dev_get_drvdata(dev); \ 340 struct nvme_ctrl *ctrl = dev_get_drvdata(dev); in nvme_sysfs_delete() 355 struct nvme_ctrl *ctrl = dev_get_drvdata(dev); in nvme_sysfs_show_transport() 365 struct nvme_ctrl *ctrl = dev_get_drvdata(dev); in nvme_sysfs_show_state() 389 struct nvme_ctrl *ctrl = dev_get_drvdata(dev); in nvme_sysfs_show_subsysnqn() [all …]
|
H A D | auth.c | 23 struct nvme_ctrl *ctrl; 51 static inline int ctrl_max_dhchaps(struct nvme_ctrl *ctrl) in ctrl_max_dhchaps() 57 static int nvme_auth_submit(struct nvme_ctrl *ctrl, int qid, in nvme_auth_submit() 93 static int nvme_auth_receive_validate(struct nvme_ctrl *ctrl, int qid, in nvme_auth_receive_validate() 120 static int nvme_auth_set_dhchap_negotiate_data(struct nvme_ctrl *ctrl, in nvme_auth_set_dhchap_negotiate_data() 152 static int nvme_auth_process_dhchap_challenge(struct nvme_ctrl *ctrl, in nvme_auth_process_dhchap_challenge() 291 static int nvme_auth_set_dhchap_reply_data(struct nvme_ctrl *ctrl, in nvme_auth_set_dhchap_reply_data() 338 static int nvme_auth_process_dhchap_success1(struct nvme_ctrl *ctrl, in nvme_auth_process_dhchap_success1() 388 static int nvme_auth_set_dhchap_success2_data(struct nvme_ctrl *ctrl, in nvme_auth_set_dhchap_success2_data() 402 static int nvme_auth_set_dhchap_failure2_data(struct nvme_ctrl *ctrl, in nvme_auth_set_dhchap_failure2_data() [all …]
|
H A D | hwmon.c | 14 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 D | fabrics.c | 130 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() 524 int nvmf_connect_io_queue(struct nvme_ctrl *ctrl, u16 qid) in nvmf_connect_io_queue() [all …]
|
H A D | tcp.c | 195 struct nvme_ctrl ctrl; 210 static inline struct nvme_tcp_ctrl *to_tcp_ctrl(struct nvme_ctrl *ctrl) in to_tcp_ctrl() 247 static inline bool nvme_tcp_tls_configured(struct nvme_ctrl *ctrl) in nvme_tcp_tls_configured() 605 static void nvme_tcp_error_recovery(struct nvme_ctrl *ctrl) in nvme_tcp_error_recovery() 1446 static void nvme_tcp_free_queue(struct nvme_ctrl *nctrl, int qid) in nvme_tcp_free_queue() 1724 static int nvme_tcp_start_tls(struct nvme_ctrl *nctrl, in nvme_tcp_start_tls() 1772 static int nvme_tcp_alloc_queue(struct nvme_ctrl *nctrl, int qid, in nvme_tcp_alloc_queue() 1947 static void nvme_tcp_stop_queue(struct nvme_ctrl *nctrl, int qid) in nvme_tcp_stop_queue() 1982 static int nvme_tcp_start_queue(struct nvme_ctrl *nctrl, int idx) in nvme_tcp_start_queue() 2009 static void nvme_tcp_free_admin_queue(struct nvme_ctrl *ctrl) in nvme_tcp_free_admin_queue() [all …]
|
H A D | ioctl.c | 123 struct nvme_ctrl *ctrl = nvme_req(req)->ctrl; in nvme_map_user_request() 188 struct nvme_ctrl *ctrl; in nvme_submit_user_cmd() 285 static bool nvme_validate_passthru_nsid(struct nvme_ctrl *ctrl, in nvme_validate_passthru_nsid() 298 static int nvme_user_cmd(struct nvme_ctrl *ctrl, struct nvme_ns *ns, in nvme_user_cmd() 346 static int nvme_user_cmd64(struct nvme_ctrl *ctrl, struct nvme_ns *ns, in nvme_user_cmd64() 462 static int nvme_uring_cmd_io(struct nvme_ctrl *ctrl, struct nvme_ns *ns, in nvme_uring_cmd_io() 543 static int nvme_ctrl_ioctl(struct nvme_ctrl *ctrl, unsigned int cmd, in nvme_ctrl_ioctl() 645 struct nvme_ctrl *ctrl = ns->ctrl; in nvme_ns_uring_cmd() 691 struct nvme_ctrl *ctrl = ns->ctrl; in nvme_ns_head_ctrl_ioctl() 779 struct nvme_ctrl *ctrl = ioucmd->file->private_data; in nvme_dev_uring_cmd() [all …]
|
H A D | pci.c | 141 struct nvme_ctrl ctrl; 183 static inline struct nvme_dev *to_nvme_dev(struct nvme_ctrl *ctrl) in to_nvme_dev() 1224 static void nvme_pci_submit_async_event(struct nvme_ctrl *ctrl) in nvme_pci_submit_async_event() 1239 static int nvme_pci_subsystem_reset(struct nvme_ctrl *ctrl) in nvme_pci_subsystem_reset() 1310 struct nvme_ctrl *ctrl = &dev->ctrl; in adapter_alloc_sq() 2326 struct nvme_ctrl *ctrl = in nvme_pci_attrs_are_visible() 2905 static void nvme_pci_free_ctrl(struct nvme_ctrl *ctrl) in nvme_pci_free_ctrl() 3025 static int nvme_pci_reg_read32(struct nvme_ctrl *ctrl, u32 off, u32 *val) in nvme_pci_reg_read32() 3031 static int nvme_pci_reg_write32(struct nvme_ctrl *ctrl, u32 off, u32 val) in nvme_pci_reg_write32() 3037 static int nvme_pci_reg_read64(struct nvme_ctrl *ctrl, u32 off, u64 *val) in nvme_pci_reg_read64() [all …]
|
H A D | rdma.c | 125 struct nvme_ctrl ctrl; 130 static inline struct nvme_rdma_ctrl *to_rdma_ctrl(struct nvme_ctrl *ctrl) in to_rdma_ctrl() 754 static int nvme_rdma_alloc_tag_set(struct nvme_ctrl *ctrl) in nvme_rdma_alloc_tag_set() 960 static void nvme_rdma_stop_ctrl(struct nvme_ctrl *nctrl) in nvme_rdma_stop_ctrl() 968 static void nvme_rdma_free_ctrl(struct nvme_ctrl *nctrl) in nvme_rdma_free_ctrl() 1664 static void nvme_rdma_submit_async_event(struct nvme_ctrl *arg) in nvme_rdma_submit_async_event() 1816 struct nvme_ctrl *ctrl = &queue->ctrl->ctrl; in nvme_rdma_addr_resolved() 2162 static void nvme_rdma_delete_ctrl(struct nvme_ctrl *ctrl) in nvme_rdma_delete_ctrl() 2312 static struct nvme_ctrl *nvme_rdma_create_ctrl(struct device *dev, in nvme_rdma_create_ctrl()
|
H A D | trace.h | 118 TP_PROTO(struct nvme_ctrl *ctrl, u32 result),
|
H A D | fc.c | 179 struct nvme_ctrl ctrl; 183 to_fc_ctrl(struct nvme_ctrl *ctrl) in to_fc_ctrl() 2390 nvme_fc_free_ctrl(struct nvme_ctrl *nctrl) in nvme_fc_free_ctrl() 2414 struct nvme_ctrl *nctrl = data; in nvme_fc_terminate_exchange() 2790 nvme_fc_submit_async_event(struct nvme_ctrl *arg) in nvme_fc_submit_async_event() 3245 nvme_fc_delete_ctrl(struct nvme_ctrl *nctrl) in nvme_fc_delete_ctrl() 3515 static struct nvme_ctrl * 3655 static struct nvme_ctrl * 3660 struct nvme_ctrl *ctrl; in nvme_fc_create_ctrl()
|
/linux/drivers/nvme/target/ |
H A D | loop.c | 37 struct nvme_ctrl ctrl; 42 static inline struct nvme_loop_ctrl *to_loop_ctrl(struct nvme_ctrl *ctrl) in to_loop_ctrl() 173 static void nvme_loop_submit_async_event(struct nvme_ctrl *arg) in nvme_loop_submit_async_event() 279 static void nvme_loop_free_ctrl(struct nvme_ctrl *nctrl) in nvme_loop_free_ctrl() 423 static void nvme_loop_delete_ctrl_host(struct nvme_ctrl *ctrl) in nvme_loop_delete_ctrl_host() 533 static struct nvmet_port *nvme_loop_find_port(struct nvme_ctrl *ctrl) in nvme_loop_find_port() 550 static struct nvme_ctrl *nvme_loop_create_ctrl(struct device *dev, in nvme_loop_create_ctrl()
|
H A D | passthru.c | 83 struct nvme_ctrl *pctrl = ctrl->subsys->passthru_ctrl; in nvmet_passthru_override_id_ctrl() 218 struct nvme_ctrl *ctrl = nvme_req(rq)->ctrl; in nvmet_passthru_execute_cmd_work() 298 struct nvme_ctrl *ctrl = nvmet_req_subsys(req)->passthru_ctrl; in nvmet_passthru_execute_cmd() 379 struct nvme_ctrl *ctrl = nvmet_req_subsys(req)->passthru_ctrl; in nvmet_passthru_set_host_behaviour() 577 struct nvme_ctrl *ctrl; in nvmet_passthru_ctrl_enable()
|
H A D | nvmet.h | 343 struct nvme_ctrl *passthru_ctrl;
|