Lines Matching refs:nvmet_tcp_cmd

55 struct nvmet_tcp_cmd {  struct
101 struct nvmet_tcp_cmd *cmds; argument
107 struct nvmet_tcp_cmd *snd_cmd;
113 struct nvmet_tcp_cmd *cmd;
132 struct nvmet_tcp_cmd connect;
155 static void nvmet_tcp_free_cmd(struct nvmet_tcp_cmd *c);
156 static void nvmet_tcp_finish_cmd(struct nvmet_tcp_cmd *cmd);
159 struct nvmet_tcp_cmd *cmd) in nvmet_tcp_cmd_tag()
169 static inline bool nvmet_tcp_has_data_in(struct nvmet_tcp_cmd *cmd) in nvmet_tcp_has_data_in()
175 static inline bool nvmet_tcp_need_data_in(struct nvmet_tcp_cmd *cmd) in nvmet_tcp_need_data_in()
180 static inline bool nvmet_tcp_need_data_out(struct nvmet_tcp_cmd *cmd) in nvmet_tcp_need_data_out()
187 static inline bool nvmet_tcp_has_inline_data(struct nvmet_tcp_cmd *cmd) in nvmet_tcp_has_inline_data()
193 static inline struct nvmet_tcp_cmd *
196 struct nvmet_tcp_cmd *cmd; in nvmet_tcp_get_cmd()
199 struct nvmet_tcp_cmd, entry); in nvmet_tcp_get_cmd()
212 static inline void nvmet_tcp_put_cmd(struct nvmet_tcp_cmd *cmd) in nvmet_tcp_put_cmd()
288 static void nvmet_tcp_unmap_pdu_iovec(struct nvmet_tcp_cmd *cmd) in nvmet_tcp_unmap_pdu_iovec()
299 static void nvmet_tcp_map_pdu_iovec(struct nvmet_tcp_cmd *cmd) in nvmet_tcp_map_pdu_iovec()
345 static int nvmet_tcp_map_data(struct nvmet_tcp_cmd *cmd) in nvmet_tcp_map_data()
383 struct nvmet_tcp_cmd *cmd) in nvmet_tcp_send_ddgst()
391 struct nvmet_tcp_cmd *cmd) in nvmet_tcp_recv_ddgst()
407 static void nvmet_setup_c2h_data_pdu(struct nvmet_tcp_cmd *cmd) in nvmet_setup_c2h_data_pdu()
440 static void nvmet_setup_r2t_pdu(struct nvmet_tcp_cmd *cmd) in nvmet_setup_r2t_pdu()
465 static void nvmet_setup_response_pdu(struct nvmet_tcp_cmd *cmd) in nvmet_setup_response_pdu()
488 struct nvmet_tcp_cmd *cmd; in nvmet_tcp_process_resp_list()
491 cmd = llist_entry(node, struct nvmet_tcp_cmd, lentry); in nvmet_tcp_process_resp_list()
497 static struct nvmet_tcp_cmd *nvmet_tcp_fetch_cmd(struct nvmet_tcp_queue *queue) in nvmet_tcp_fetch_cmd()
500 struct nvmet_tcp_cmd, entry); in nvmet_tcp_fetch_cmd()
505 struct nvmet_tcp_cmd, entry); in nvmet_tcp_fetch_cmd()
525 struct nvmet_tcp_cmd *cmd = in nvmet_tcp_queue_response()
526 container_of(req, struct nvmet_tcp_cmd, req); in nvmet_tcp_queue_response()
550 static void nvmet_tcp_execute_request(struct nvmet_tcp_cmd *cmd) in nvmet_tcp_execute_request()
558 static int nvmet_try_send_data_pdu(struct nvmet_tcp_cmd *cmd) in nvmet_try_send_data_pdu()
581 static int nvmet_try_send_data(struct nvmet_tcp_cmd *cmd, bool last_in_batch) in nvmet_try_send_data()
632 static int nvmet_try_send_response(struct nvmet_tcp_cmd *cmd, in nvmet_try_send_response()
662 static int nvmet_try_send_r2t(struct nvmet_tcp_cmd *cmd, bool last_in_batch) in nvmet_try_send_r2t()
688 static int nvmet_try_send_ddgst(struct nvmet_tcp_cmd *cmd, bool last_in_batch) in nvmet_try_send_ddgst()
726 struct nvmet_tcp_cmd *cmd = queue->snd_cmd; in nvmet_tcp_try_send_one()
897 struct nvmet_tcp_cmd *cmd, struct nvmet_req *req) in nvmet_tcp_handle_req_failure()
923 struct nvmet_tcp_cmd *cmd; in nvmet_tcp_handle_h2c_data_pdu()
1113 static void nvmet_tcp_prep_recv_ddgst(struct nvmet_tcp_cmd *cmd) in nvmet_tcp_prep_recv_ddgst()
1125 struct nvmet_tcp_cmd *cmd = queue->cmd; in nvmet_tcp_try_recv_data()
1153 struct nvmet_tcp_cmd *cmd = queue->cmd; in nvmet_tcp_try_recv_ddgst()
1286 struct nvmet_tcp_cmd *c) in nvmet_tcp_alloc_cmd()
1329 static void nvmet_tcp_free_cmd(struct nvmet_tcp_cmd *c) in nvmet_tcp_free_cmd()
1339 struct nvmet_tcp_cmd *cmds; in nvmet_tcp_alloc_cmds()
1342 cmds = kcalloc(nr_cmds, sizeof(struct nvmet_tcp_cmd), GFP_KERNEL); in nvmet_tcp_alloc_cmds()
1365 struct nvmet_tcp_cmd *cmds = queue->cmds; in nvmet_tcp_free_cmds()
1387 static void nvmet_tcp_finish_cmd(struct nvmet_tcp_cmd *cmd) in nvmet_tcp_finish_cmd()
1397 struct nvmet_tcp_cmd *cmd = queue->cmds; in nvmet_tcp_uninit_data_in_cmds()
1789 struct nvmet_tcp_cmd *cmd = in nvmet_tcp_disc_port_addr()
1790 container_of(req, struct nvmet_tcp_cmd, req); in nvmet_tcp_disc_port_addr()