/kernel/linux/linux-6.6/drivers/nvme/host/ |
H A D | nvme.h | 180 struct nvme_ctrl *ctrl; 262 struct nvme_ctrl { struct 395 static inline enum nvme_ctrl_state nvme_ctrl_state(struct nvme_ctrl *ctrl) in nvme_ctrl_state() 489 struct nvme_ctrl *ctrl; 539 int (*reg_read32)(struct nvme_ctrl *ctrl, u32 off, u32 *val); 540 int (*reg_write32)(struct nvme_ctrl *ctrl, u32 off, u32 val); 541 int (*reg_read64)(struct nvme_ctrl *ctrl, u32 off, u64 *val); 542 void (*free_ctrl)(struct nvme_ctrl *ctrl); 543 void (*submit_async_event)(struct nvme_ctrl *ctrl); 544 void (*delete_ctrl)(struct nvme_ctrl *ctr [all...] |
H A D | fabrics.h | 164 struct nvme_ctrl *(*create_ctrl)(struct device *dev, 169 nvmf_ctlr_matches_baseopts(struct nvme_ctrl *ctrl, in nvmf_ctlr_matches_baseopts() 183 static inline char *nvmf_ctrl_subsysnqn(struct nvme_ctrl *ctrl) in nvmf_ctrl_subsysnqn() 206 int nvmf_reg_read32(struct nvme_ctrl *ctrl, u32 off, u32 *val); 207 int nvmf_reg_read64(struct nvme_ctrl *ctrl, u32 off, u64 *val); 208 int nvmf_reg_write32(struct nvme_ctrl *ctrl, u32 off, u32 val); 209 int nvmf_connect_admin_queue(struct nvme_ctrl *ctrl); 210 int nvmf_connect_io_queue(struct nvme_ctrl *ctrl, u16 qid); 214 int nvmf_get_address(struct nvme_ctrl *ctrl, char *buf, int size); 215 bool nvmf_should_reconnect(struct nvme_ctrl *ctr [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() 174 struct nvme_ctrl *ctrl = dev_get_drvdata(dev); \ 188 struct nvme_ctrl *ctrl = dev_get_drvdata(dev); \ 203 struct nvme_ctrl *ctrl = dev_get_drvdata(dev); in nvme_sysfs_delete() 218 struct nvme_ctrl *ctrl = dev_get_drvdata(dev); in nvme_sysfs_show_transport() 228 struct nvme_ctrl *ctrl = dev_get_drvdata(dev); in nvme_sysfs_show_state() 252 struct nvme_ctrl *ctrl = dev_get_drvdata(dev); in nvme_sysfs_show_subsysnqn() 262 struct nvme_ctrl *ctrl = dev_get_drvdata(dev); in nvme_sysfs_show_hostnqn() 272 struct nvme_ctrl *ctr in nvme_sysfs_show_hostid() [all...] |
H A D | core.c | 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 *ctr [all...] |
H A D | multipath.c | 150 void nvme_kick_requeue_lists(struct nvme_ctrl *ctrl) in nvme_kick_requeue_lists() 193 void nvme_mpath_clear_ctrl_paths(struct nvme_ctrl *ctrl) in nvme_mpath_clear_ctrl_paths() 516 int nvme_mpath_alloc_disk(struct nvme_ctrl *ctrl, struct nvme_ns_head *head) in nvme_mpath_alloc_disk() 605 static int nvme_parse_ana_log(struct nvme_ctrl *ctrl, void *data, in nvme_parse_ana_log() 606 int (*cb)(struct nvme_ctrl *ctrl, struct nvme_ana_group_desc *, in nvme_parse_ana_log() 674 static int nvme_update_ana_state(struct nvme_ctrl *ctrl, in nvme_update_ana_state() 709 static int nvme_read_ana_log(struct nvme_ctrl *ctrl) in nvme_read_ana_log() 749 struct nvme_ctrl *ctrl = container_of(work, struct nvme_ctrl, ana_work); in nvme_ana_work() 757 void nvme_mpath_update(struct nvme_ctrl *ctr [all...] |
H A D | auth.c | 23 struct nvme_ctrl *ctrl; 55 static inline int ctrl_max_dhchaps(struct nvme_ctrl *ctrl) in ctrl_max_dhchaps() 61 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() 391 static int nvme_auth_set_dhchap_success2_data(struct nvme_ctrl *ctrl, in nvme_auth_set_dhchap_success2_data() 405 static int nvme_auth_set_dhchap_failure2_data(struct nvme_ctrl *ctr [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 | tcp.c | 167 struct nvme_ctrl ctrl; 182 static inline struct nvme_tcp_ctrl *to_tcp_ctrl(struct nvme_ctrl *ctrl) in to_tcp_ctrl() 536 static void nvme_tcp_error_recovery(struct nvme_ctrl *ctrl) in nvme_tcp_error_recovery() 1321 static void nvme_tcp_free_queue(struct nvme_ctrl *nctrl, int qid) in nvme_tcp_free_queue() 1510 static int nvme_tcp_alloc_queue(struct nvme_ctrl *nctrl, int qid) in nvme_tcp_alloc_queue() 1670 static void nvme_tcp_stop_queue(struct nvme_ctrl *nctrl, int qid) in nvme_tcp_stop_queue() 1700 static int nvme_tcp_start_queue(struct nvme_ctrl *nctrl, int idx) in nvme_tcp_start_queue() 1726 static void nvme_tcp_free_admin_queue(struct nvme_ctrl *ctrl) in nvme_tcp_free_admin_queue() 1737 static void nvme_tcp_free_io_queues(struct nvme_ctrl *ctrl) in nvme_tcp_free_io_queues() 1745 static void nvme_tcp_stop_io_queues(struct nvme_ctrl *ctr [all...] |
H A D | fabrics.c | 129 int nvmf_get_address(struct nvme_ctrl *ctrl, char *buf, int size) in nvmf_get_address() 171 int nvmf_reg_read32(struct nvme_ctrl *ctrl, u32 off, u32 *val) in nvmf_reg_read32() 216 int nvmf_reg_read64(struct nvme_ctrl *ctrl, u32 off, u64 *val) in nvmf_reg_read64() 261 int nvmf_reg_write32(struct nvme_ctrl *ctrl, u32 off, u32 val) in nvmf_reg_write32() 293 static void nvmf_log_connect_error(struct nvme_ctrl *ctrl, in nvmf_log_connect_error() 378 static struct nvmf_connect_data *nvmf_connect_data_prep(struct nvme_ctrl *ctrl, in nvmf_connect_data_prep() 395 static void nvmf_connect_cmd_prep(struct nvme_ctrl *ctrl, u16 qid, in nvmf_connect_cmd_prep() 437 int nvmf_connect_admin_queue(struct nvme_ctrl *ctrl) in nvmf_connect_admin_queue() 512 int nvmf_connect_io_queue(struct nvme_ctrl *ctrl, u16 qid) in nvmf_connect_io_queue() 561 bool nvmf_should_reconnect(struct nvme_ctrl *ctr [all...] |
H A D | ioctl.c | 227 struct nvme_ctrl *ctrl; in nvme_submit_user_cmd() 328 static bool nvme_validate_passthru_nsid(struct nvme_ctrl *ctrl, in nvme_validate_passthru_nsid() 342 static int nvme_user_cmd(struct nvme_ctrl *ctrl, struct nvme_ns *ns, in nvme_user_cmd() 390 static int nvme_user_cmd64(struct nvme_ctrl *ctrl, struct nvme_ns *ns, in nvme_user_cmd64() 560 static int nvme_uring_cmd_io(struct nvme_ctrl *ctrl, struct nvme_ns *ns, in nvme_uring_cmd_io() 653 static int nvme_ctrl_ioctl(struct nvme_ctrl *ctrl, unsigned int cmd, in nvme_ctrl_ioctl() 755 struct nvme_ctrl *ctrl = ns->ctrl; in nvme_ns_uring_cmd() 807 struct nvme_ctrl *ctrl = ns->ctrl; 895 struct nvme_ctrl *ctrl = ioucmd->file->private_data; in nvme_dev_uring_cmd() 920 static int nvme_dev_user_cmd(struct nvme_ctrl *ctr [all...] |
H A D | pci.c | 141 struct nvme_ctrl ctrl; 180 static inline struct nvme_dev *to_nvme_dev(struct nvme_ctrl *ctrl) in to_nvme_dev() 1131 static void nvme_pci_submit_async_event(struct nvme_ctrl *ctrl) in nvme_pci_submit_async_event() 1182 struct nvme_ctrl *ctrl = &dev->ctrl; in adapter_alloc_sq() 2132 struct nvme_ctrl *ctrl = in nvme_pci_attrs_are_visible() 2677 static void nvme_pci_free_ctrl(struct nvme_ctrl *ctrl) in nvme_pci_free_ctrl() 2791 static int nvme_pci_reg_read32(struct nvme_ctrl *ctrl, u32 off, u32 *val) in nvme_pci_reg_read32() 2797 static int nvme_pci_reg_write32(struct nvme_ctrl *ctrl, u32 off, u32 val) in nvme_pci_reg_write32() 2803 static int nvme_pci_reg_read64(struct nvme_ctrl *ctrl, u32 off, u64 *val) in nvme_pci_reg_read64() 2809 static int nvme_pci_get_address(struct nvme_ctrl *ctr [all...] |
H A D | apple.c | 187 struct nvme_ctrl ctrl; 203 static inline struct apple_nvme *ctrl_to_apple_nvme(struct nvme_ctrl *ctrl) in ctrl_to_apple_nvme() 1184 static int apple_nvme_reg_read32(struct nvme_ctrl *ctrl, u32 off, u32 *val) in apple_nvme_reg_read32() 1190 static int apple_nvme_reg_write32(struct nvme_ctrl *ctrl, u32 off, u32 val) in apple_nvme_reg_write32() 1196 static int apple_nvme_reg_read64(struct nvme_ctrl *ctrl, u32 off, u64 *val) in apple_nvme_reg_read64() 1202 static int apple_nvme_get_address(struct nvme_ctrl *ctrl, char *buf, int size) in apple_nvme_get_address() 1209 static void apple_nvme_free_ctrl(struct nvme_ctrl *ctrl) in apple_nvme_free_ctrl() 1514 dev_err_probe(dev, ret, "Failed to initialize nvme_ctrl"); in apple_nvme_probe()
|
/kernel/linux/linux-5.10/drivers/nvme/host/ |
H A D | nvme.h | 171 struct nvme_ctrl *ctrl; 241 struct nvme_ctrl { struct 359 static inline enum nvme_ctrl_state nvme_ctrl_state(struct nvme_ctrl *ctrl) in nvme_ctrl_state() 442 struct nvme_ctrl *ctrl; 486 int (*reg_read32)(struct nvme_ctrl *ctrl, u32 off, u32 *val); 487 int (*reg_write32)(struct nvme_ctrl *ctrl, u32 off, u32 val); 488 int (*reg_read64)(struct nvme_ctrl *ctrl, u32 off, u64 *val); 489 void (*free_ctrl)(struct nvme_ctrl *ctrl); 490 void (*submit_async_event)(struct nvme_ctrl *ctrl); 491 void (*delete_ctrl)(struct nvme_ctrl *ctr [all...] |
H A D | fabrics.h | 147 struct nvme_ctrl *(*create_ctrl)(struct device *dev, 152 nvmf_ctlr_matches_baseopts(struct nvme_ctrl *ctrl, in nvmf_ctlr_matches_baseopts() 166 int nvmf_reg_read32(struct nvme_ctrl *ctrl, u32 off, u32 *val); 167 int nvmf_reg_read64(struct nvme_ctrl *ctrl, u32 off, u64 *val); 168 int nvmf_reg_write32(struct nvme_ctrl *ctrl, u32 off, u32 val); 169 int nvmf_connect_admin_queue(struct nvme_ctrl *ctrl); 170 int nvmf_connect_io_queue(struct nvme_ctrl *ctrl, u16 qid, bool poll); 174 int nvmf_get_address(struct nvme_ctrl *ctrl, char *buf, int size); 175 bool nvmf_should_reconnect(struct nvme_ctrl *ctrl); 176 blk_status_t nvmf_fail_nonready_command(struct nvme_ctrl *ctr [all...] |
H A D | core.c | 92 static void nvme_remove_invalid_namespaces(struct nvme_ctrl *ctrl, 105 static void nvme_queue_scan(struct nvme_ctrl *ctrl) in nvme_queue_scan() 120 int nvme_try_sched_reset(struct nvme_ctrl *ctrl) in nvme_try_sched_reset() 130 int nvme_reset_ctrl(struct nvme_ctrl *ctrl) in nvme_reset_ctrl() 140 int nvme_reset_ctrl_sync(struct nvme_ctrl *ctrl) in nvme_reset_ctrl_sync() 155 static void nvme_do_delete_ctrl(struct nvme_ctrl *ctrl) in nvme_do_delete_ctrl() 169 struct nvme_ctrl *ctrl = in nvme_delete_ctrl_work() 170 container_of(work, struct nvme_ctrl, delete_work); in nvme_delete_ctrl_work() 175 int nvme_delete_ctrl(struct nvme_ctrl *ctrl) in nvme_delete_ctrl() 185 static void nvme_delete_ctrl_sync(struct nvme_ctrl *ctr [all...] |
H A D | multipath.c | 54 struct nvme_ctrl *ctrl, int *flags) in nvme_set_disk_name() 94 void nvme_kick_requeue_lists(struct nvme_ctrl *ctrl) in nvme_kick_requeue_lists() 134 void nvme_mpath_clear_ctrl_paths(struct nvme_ctrl *ctrl) in nvme_mpath_clear_ctrl_paths() 358 int nvme_mpath_alloc_disk(struct nvme_ctrl *ctrl, struct nvme_ns_head *head) in nvme_mpath_alloc_disk() 432 static int nvme_parse_ana_log(struct nvme_ctrl *ctrl, void *data, in nvme_parse_ana_log() 433 int (*cb)(struct nvme_ctrl *ctrl, struct nvme_ana_group_desc *, in nvme_parse_ana_log() 501 static int nvme_update_ana_state(struct nvme_ctrl *ctrl, in nvme_update_ana_state() 536 static int nvme_read_ana_log(struct nvme_ctrl *ctrl) in nvme_read_ana_log() 576 struct nvme_ctrl *ctrl = container_of(work, struct nvme_ctrl, ana_wor in nvme_ana_work() [all...] |
H A D | fabrics.c | 103 int nvmf_get_address(struct nvme_ctrl *ctrl, char *buf, int size) in nvmf_get_address() 142 int nvmf_reg_read32(struct nvme_ctrl *ctrl, u32 off, u32 *val) in nvmf_reg_read32() 188 int nvmf_reg_read64(struct nvme_ctrl *ctrl, u32 off, u64 *val) in nvmf_reg_read64() 234 int nvmf_reg_write32(struct nvme_ctrl *ctrl, u32 off, u32 val) in nvmf_reg_write32() 271 static void nvmf_log_connect_error(struct nvme_ctrl *ctrl, in nvmf_log_connect_error() 372 int nvmf_connect_admin_queue(struct nvme_ctrl *ctrl) in nvmf_connect_admin_queue() 442 int nvmf_connect_io_queue(struct nvme_ctrl *ctrl, u16 qid, bool poll) in nvmf_connect_io_queue() 479 bool nvmf_should_reconnect(struct nvme_ctrl *ctrl) in nvmf_should_reconnect() 552 blk_status_t nvmf_fail_nonready_command(struct nvme_ctrl *ctrl, in nvmf_fail_nonready_command() 567 bool __nvmf_check_ready(struct nvme_ctrl *ctr [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() 224 int nvme_hwmon_init(struct nvme_ctrl *ctrl) in nvme_hwmon_init() 268 void nvme_hwmon_exit(struct nvme_ctrl *ctrl) in nvme_hwmon_exit()
|
H A D | tcp.c | 163 struct nvme_ctrl ctrl; 178 static inline struct nvme_tcp_ctrl *to_tcp_ctrl(struct nvme_ctrl *ctrl) in to_tcp_ctrl() 515 static void nvme_tcp_error_recovery(struct nvme_ctrl *ctrl) in nvme_tcp_error_recovery() 1262 static void nvme_tcp_free_queue(struct nvme_ctrl *nctrl, int qid) in nvme_tcp_free_queue() 1430 static int nvme_tcp_alloc_queue(struct nvme_ctrl *nctrl, in nvme_tcp_alloc_queue() 1576 static void nvme_tcp_stop_queue(struct nvme_ctrl *nctrl, int qid) in nvme_tcp_stop_queue() 1603 static int nvme_tcp_start_queue(struct nvme_ctrl *nctrl, int idx) in nvme_tcp_start_queue() 1629 static struct blk_mq_tag_set *nvme_tcp_alloc_tagset(struct nvme_ctrl *nctrl, in nvme_tcp_alloc_tagset() 1670 static void nvme_tcp_free_admin_queue(struct nvme_ctrl *ctrl) in nvme_tcp_free_admin_queue() 1681 static void nvme_tcp_free_io_queues(struct nvme_ctrl *ctr [all...] |
H A D | pci.c | 136 struct nvme_ctrl ctrl; 180 static inline struct nvme_dev *to_nvme_dev(struct nvme_ctrl *ctrl) in to_nvme_dev() 1114 static void nvme_pci_submit_async_event(struct nvme_ctrl *ctrl) in nvme_pci_submit_async_event() 1164 struct nvme_ctrl *ctrl = &dev->ctrl; in adapter_alloc_sq() 2577 static void nvme_pci_free_ctrl(struct nvme_ctrl *ctrl) in nvme_pci_free_ctrl() 2756 static int nvme_pci_reg_read32(struct nvme_ctrl *ctrl, u32 off, u32 *val) in nvme_pci_reg_read32() 2762 static int nvme_pci_reg_write32(struct nvme_ctrl *ctrl, u32 off, u32 val) in nvme_pci_reg_write32() 2768 static int nvme_pci_reg_read64(struct nvme_ctrl *ctrl, u32 off, u64 *val) in nvme_pci_reg_read64() 2774 static int nvme_pci_get_address(struct nvme_ctrl *ctrl, char *buf, int size) in nvme_pci_get_address() 3007 static int nvme_get_power_state(struct nvme_ctrl *ctr [all...] |
/kernel/linux/linux-5.10/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() 272 static void nvme_loop_free_ctrl(struct nvme_ctrl *nctrl) in nvme_loop_free_ctrl() 441 static void nvme_loop_delete_ctrl_host(struct nvme_ctrl *ctrl) in nvme_loop_delete_ctrl_host() 565 static struct nvmet_port *nvme_loop_find_port(struct nvme_ctrl *ctrl) in nvme_loop_find_port() 582 static struct nvme_ctrl *nvme_loop_create_ctrl(struct device *dev, in nvme_loop_create_ctrl()
|
H A D | passthru.c | 26 struct nvme_ctrl *pctrl = ctrl->subsys->passthru_ctrl; in nvmet_passthru_override_id_ctrl() 226 struct nvme_ctrl *ctrl = nvmet_req_passthru_ctrl(req); in nvmet_passthru_execute_cmd() 299 struct nvme_ctrl *ctrl = nvmet_req_passthru_ctrl(req); in nvmet_passthru_set_host_behaviour() 499 struct nvme_ctrl *ctrl; in nvmet_passthru_ctrl_enable()
|
H A D | nvmet.h | 248 struct nvme_ctrl *passthru_ctrl; 558 static inline struct nvme_ctrl *nvmet_passthru_ctrl(struct nvmet_subsys *subsys) in nvmet_passthru_ctrl() 577 static inline struct nvme_ctrl *nvmet_passthru_ctrl(struct nvmet_subsys *subsys) in nvmet_passthru_ctrl() 583 static inline struct nvme_ctrl *
|
/kernel/linux/linux-6.6/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() 272 static void nvme_loop_free_ctrl(struct nvme_ctrl *nctrl) in nvme_loop_free_ctrl() 410 static void nvme_loop_delete_ctrl_host(struct nvme_ctrl *ctrl) in nvme_loop_delete_ctrl_host() 516 static struct nvmet_port *nvme_loop_find_port(struct nvme_ctrl *ctrl) in nvme_loop_find_port() 533 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() 294 struct nvme_ctrl *ctrl = nvmet_req_subsys(req)->passthru_ctrl; in nvmet_passthru_execute_cmd() 375 struct nvme_ctrl *ctrl = nvmet_req_subsys(req)->passthru_ctrl; in nvmet_passthru_set_host_behaviour() 575 struct nvme_ctrl *ctrl; in nvmet_passthru_ctrl_enable()
|