/linux/drivers/nvme/target/ |
H A D | nvmet.h | 213 struct nvmet_req *async_event_cmds[NVMET_ASYNC_EVENTS]; 343 struct nvmet_req; 351 void (*queue_response)(struct nvmet_req *req); 355 void (*disc_traddr)(struct nvmet_req *req, 368 struct nvmet_req { struct 408 void (*execute)(struct nvmet_req *req); argument 423 static inline void nvmet_set_result(struct nvmet_req *req, u32 result) in nvmet_set_result() argument 432 nvmet_data_dir(struct nvmet_req *req) in nvmet_data_dir() 444 static inline void nvmet_clear_aen_bit(struct nvmet_req *req, u32 bn) in nvmet_clear_aen_bit() 459 void nvmet_get_feat_kato(struct nvmet_req *req); [all …]
|
H A D | io-cmd-file.c | 76 static ssize_t nvmet_file_submit_bvec(struct nvmet_req *req, loff_t pos, in nvmet_file_submit_bvec() 105 struct nvmet_req *req = container_of(iocb, struct nvmet_req, f.iocb); in nvmet_file_io_done() 120 static bool nvmet_file_execute_io(struct nvmet_req *req, int ki_flags) in nvmet_file_execute_io() 207 struct nvmet_req *req = container_of(w, struct nvmet_req, f.work); in nvmet_file_buffered_io_work() 212 static void nvmet_file_submit_buffered_io(struct nvmet_req *req) in nvmet_file_submit_buffered_io() 218 static void nvmet_file_execute_rw(struct nvmet_req *req) in nvmet_file_execute_rw() 253 u16 nvmet_file_flush(struct nvmet_req *req) in nvmet_file_flush() 260 struct nvmet_req *req = container_of(w, struct nvmet_req, f.work); in nvmet_file_flush_work() 265 static void nvmet_file_execute_flush(struct nvmet_req *req) in nvmet_file_execute_flush() 273 static void nvmet_file_execute_discard(struct nvmet_req *req) in nvmet_file_execute_discard() [all …]
|
H A D | admin-cmd.c | 28 static u32 nvmet_feat_data_len(struct nvmet_req *req, u32 cdw10) in nvmet_feat_data_len() 43 static void nvmet_execute_get_log_page_noop(struct nvmet_req *req) in nvmet_execute_get_log_page_noop() 48 static void nvmet_execute_get_log_page_error(struct nvmet_req *req) in nvmet_execute_get_log_page_error() 74 static u16 nvmet_get_smart_log_nsid(struct nvmet_req *req, in nvmet_get_smart_log_nsid() 103 static u16 nvmet_get_smart_log_all(struct nvmet_req *req, in nvmet_get_smart_log_all() 133 static void nvmet_execute_get_log_page_smart(struct nvmet_req *req) in nvmet_execute_get_log_page_smart() 194 static void nvmet_execute_get_log_cmd_effects_ns(struct nvmet_req *req) in nvmet_execute_get_log_cmd_effects_ns() 229 static void nvmet_execute_get_log_changed_ns(struct nvmet_req *req) in nvmet_execute_get_log_changed_ns() 253 static u32 nvmet_format_ana_group(struct nvmet_req *req, u32 grpid, in nvmet_format_ana_group() 275 static void nvmet_execute_get_log_page_ana(struct nvmet_req *req) in nvmet_execute_get_log_page_ana() [all …]
|
H A D | zns.c | 69 void nvmet_execute_identify_ctrl_zns(struct nvmet_req *req) in nvmet_execute_identify_ctrl_zns() 94 void nvmet_execute_identify_ns_zns(struct nvmet_req *req) in nvmet_execute_identify_ns_zns() 154 static u16 nvmet_bdev_validate_zone_mgmt_recv(struct nvmet_req *req) in nvmet_bdev_validate_zone_mgmt_recv() 203 struct nvmet_req *req; 251 static unsigned long nvmet_req_nr_zones_from_slba(struct nvmet_req *req) in nvmet_req_nr_zones_from_slba() 258 static unsigned long get_nr_zones_from_buf(struct nvmet_req *req, u32 bufsize) in get_nr_zones_from_buf() 269 struct nvmet_req *req = container_of(w, struct nvmet_req, z.zmgmt_work); in nvmet_bdev_zone_zmgmt_recv_work() 315 void nvmet_bdev_execute_zone_mgmt_recv(struct nvmet_req *req) in nvmet_bdev_execute_zone_mgmt_recv() 352 struct nvmet_req *req; 396 static u16 nvmet_bdev_zone_mgmt_emulate_all(struct nvmet_req *req) in nvmet_bdev_zone_mgmt_emulate_all() [all …]
|
H A D | io-cmd-bdev.c | 126 u16 blk_to_nvme_status(struct nvmet_req *req, blk_status_t blk_sts) in blk_to_nvme_status() 185 struct nvmet_req *req = bio->bi_private; in nvmet_bio_done() 192 static int nvmet_bdev_alloc_bip(struct nvmet_req *req, struct bio *bio, in nvmet_bdev_alloc_bip() 237 static int nvmet_bdev_alloc_bip(struct nvmet_req *req, struct bio *bio, in nvmet_bdev_alloc_bip() 244 static void nvmet_bdev_execute_rw(struct nvmet_req *req) in nvmet_bdev_execute_rw() 335 static void nvmet_bdev_execute_flush(struct nvmet_req *req) in nvmet_bdev_execute_flush() 355 u16 nvmet_bdev_flush(struct nvmet_req *req) in nvmet_bdev_flush() 365 static u16 nvmet_bdev_discard_range(struct nvmet_req *req, in nvmet_bdev_discard_range() 382 static void nvmet_bdev_execute_discard(struct nvmet_req *req) in nvmet_bdev_execute_discard() 412 static void nvmet_bdev_execute_dsm(struct nvmet_req *req) in nvmet_bdev_execute_dsm() [all …]
|
H A D | passthru.c | 33 static u16 nvmet_passthru_override_id_descs(struct nvmet_req *req) in nvmet_passthru_override_id_descs() 80 static u16 nvmet_passthru_override_id_ctrl(struct nvmet_req *req) in nvmet_passthru_override_id_ctrl() 175 static u16 nvmet_passthru_override_id_ns(struct nvmet_req *req) in nvmet_passthru_override_id_ns() 216 struct nvmet_req *req = container_of(w, struct nvmet_req, p.work); in nvmet_passthru_execute_cmd_work() 252 struct nvmet_req *req = rq->end_io_data; in nvmet_passthru_req_done() 260 static int nvmet_passthru_map_sg(struct nvmet_req *req, struct request *rq) in nvmet_passthru_map_sg() 292 static void nvmet_passthru_execute_cmd(struct nvmet_req *req) in nvmet_passthru_execute_cmd() 373 static void nvmet_passthru_set_host_behaviour(struct nvmet_req *req) in nvmet_passthru_set_host_behaviour() 404 static u16 nvmet_setup_passthru_command(struct nvmet_req *req) in nvmet_setup_passthru_command() 411 u16 nvmet_parse_passthru_io_cmd(struct nvmet_req *req) in nvmet_parse_passthru_io_cmd() [all …]
|
H A D | fabrics-cmd.c | 10 static void nvmet_execute_prop_set(struct nvmet_req *req) in nvmet_execute_prop_set() 38 static void nvmet_execute_prop_get(struct nvmet_req *req) in nvmet_execute_prop_get() 85 u16 nvmet_parse_fabrics_admin_cmd(struct nvmet_req *req) in nvmet_parse_fabrics_admin_cmd() 114 u16 nvmet_parse_fabrics_io_cmd(struct nvmet_req *req) in nvmet_parse_fabrics_io_cmd() 137 static u16 nvmet_install_queue(struct nvmet_ctrl *ctrl, struct nvmet_req *req) in nvmet_install_queue() 208 static void nvmet_execute_admin_connect(struct nvmet_req *req) in nvmet_execute_admin_connect() 284 static void nvmet_execute_io_connect(struct nvmet_req *req) in nvmet_execute_io_connect() 345 u16 nvmet_parse_connect_cmd(struct nvmet_req *req) in nvmet_parse_connect_cmd()
|
H A D | core.c | 52 inline u16 errno_to_nvme_status(struct nvmet_req *req, int errno) in errno_to_nvme_status() 84 u16 nvmet_report_invalid_opcode(struct nvmet_req *req) in nvmet_report_invalid_opcode() 96 u16 nvmet_copy_to_sgl(struct nvmet_req *req, off_t off, const void *buf, in nvmet_copy_to_sgl() 106 u16 nvmet_copy_from_sgl(struct nvmet_req *req, off_t off, void *buf, size_t len) in nvmet_copy_from_sgl() 115 u16 nvmet_zero_sgl(struct nvmet_req *req, off_t off, size_t len) in nvmet_zero_sgl() 143 struct nvmet_req *req; in nvmet_async_events_failall() 158 struct nvmet_req *req; in nvmet_async_events_process() 438 u16 nvmet_req_find_ns(struct nvmet_req *req) in nvmet_req_find_ns() 712 static void nvmet_update_sq_head(struct nvmet_req *req) in nvmet_update_sq_head() 725 static void nvmet_set_error(struct nvmet_req *req, u16 status) in nvmet_set_error() [all …]
|
H A D | discovery.c | 135 static void nvmet_set_disc_traddr(struct nvmet_req *req, struct nvmet_port *port, in nvmet_set_disc_traddr() 144 static size_t discovery_log_entries(struct nvmet_req *req) in discovery_log_entries() 161 static void nvmet_execute_disc_get_log_page(struct nvmet_req *req) in nvmet_execute_disc_get_log_page() 248 static void nvmet_execute_disc_identify(struct nvmet_req *req) in nvmet_execute_disc_identify() 304 static void nvmet_execute_disc_set_features(struct nvmet_req *req) in nvmet_execute_disc_set_features() 330 static void nvmet_execute_disc_get_features(struct nvmet_req *req) in nvmet_execute_disc_get_features() 355 u16 nvmet_parse_discovery_cmd(struct nvmet_req *req) in nvmet_parse_discovery_cmd()
|
H A D | trace.h | 44 static inline u16 nvmet_req_to_ctrl_id(struct nvmet_req *req) in nvmet_req_to_ctrl_id() 55 static inline void __assign_req_name(char *name, struct nvmet_req *req) in __assign_req_name() 67 TP_PROTO(struct nvmet_req *req, struct nvme_command *cmd), 109 TP_PROTO(struct nvmet_req *req),
|
H A D | fabrics-cmd-auth.c | 34 static u8 nvmet_auth_negotiate(struct nvmet_req *req, void *d) in nvmet_auth_negotiate() 112 static u8 nvmet_auth_reply(struct nvmet_req *req, void *d) in nvmet_auth_reply() 182 void nvmet_execute_auth_send(struct nvmet_req *req) in nvmet_execute_auth_send() 353 static int nvmet_auth_challenge(struct nvmet_req *req, void *d, int al) in nvmet_auth_challenge() 393 static int nvmet_auth_success1(struct nvmet_req *req, void *d, int al) in nvmet_auth_success1() 420 static void nvmet_auth_failure1(struct nvmet_req *req, void *d, int al) in nvmet_auth_failure1() 432 void nvmet_execute_auth_receive(struct nvmet_req *req) in nvmet_execute_auth_receive()
|
H A D | auth.c | 266 bool nvmet_check_auth_status(struct nvmet_req *req) in nvmet_check_auth_status() 274 int nvmet_auth_host_hash(struct nvmet_req *req, u8 *response, in nvmet_auth_host_hash() 388 int nvmet_auth_ctrl_hash(struct nvmet_req *req, u8 *response, in nvmet_auth_ctrl_hash() 499 int nvmet_auth_ctrl_exponential(struct nvmet_req *req, in nvmet_auth_ctrl_exponential() 522 int nvmet_auth_ctrl_sesskey(struct nvmet_req *req, in nvmet_auth_ctrl_sesskey()
|
H A D | loop.c | 22 struct nvmet_req req; 64 static void nvme_loop_queue_response(struct nvmet_req *nvme_req); 91 static void nvme_loop_queue_response(struct nvmet_req *req) in nvme_loop_queue_response()
|
H A D | rdma.c | 72 struct nvmet_req req; 588 static void nvmet_rdma_set_sig_attrs(struct nvmet_req *req, in nvmet_rdma_set_sig_attrs() 630 struct nvmet_req *req = &rsp->req; in nvmet_rdma_rw_ctx_init() 649 struct nvmet_req *req = &rsp->req; in nvmet_rdma_rw_ctx_destroy() 709 static void nvmet_rdma_queue_response(struct nvmet_req *req) in nvmet_rdma_queue_response() 1983 static void nvmet_rdma_disc_port_addr(struct nvmet_req *req, in nvmet_rdma_disc_port_addr()
|
H A D | tcp.c | 111 struct nvmet_req req; 569 static void nvmet_tcp_queue_response(struct nvmet_req *req) in nvmet_tcp_queue_response() 951 struct nvmet_tcp_cmd *cmd, struct nvmet_req *req) in nvmet_tcp_handle_req_failure() 1034 struct nvmet_req *req; in nvmet_tcp_done_recv_pdu() 2156 static void nvmet_tcp_disc_port_addr(struct nvmet_req *req, in nvmet_tcp_disc_port_addr()
|
H A D | fc.c | 87 struct nvmet_req req; 229 nvmet_req_to_fod(struct nvmet_req *nvme_req) in nvmet_req_to_fod() 1929 static void nvmet_fc_fcp_nvme_cmd_done(struct nvmet_req *nvme_req); 2511 nvmet_fc_fcp_nvme_cmd_done(struct nvmet_req *nvme_req) in nvmet_fc_fcp_nvme_cmd_done()
|