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()
344 static int nvmet_tcp_map_data(struct nvmet_tcp_cmd *cmd) in nvmet_tcp_map_data()
382 struct nvmet_tcp_cmd *cmd) in nvmet_tcp_ddgst()
389 static void nvmet_setup_c2h_data_pdu(struct nvmet_tcp_cmd *cmd) in nvmet_setup_c2h_data_pdu()
422 static void nvmet_setup_r2t_pdu(struct nvmet_tcp_cmd *cmd) in nvmet_setup_r2t_pdu()
447 static void nvmet_setup_response_pdu(struct nvmet_tcp_cmd *cmd) in nvmet_setup_response_pdu()
470 struct nvmet_tcp_cmd *cmd; in nvmet_tcp_process_resp_list()
473 cmd = llist_entry(node, struct nvmet_tcp_cmd, lentry); in nvmet_tcp_process_resp_list()
479 static struct nvmet_tcp_cmd *nvmet_tcp_fetch_cmd(struct nvmet_tcp_queue *queue) in nvmet_tcp_fetch_cmd()
482 struct nvmet_tcp_cmd, entry); in nvmet_tcp_fetch_cmd()
487 struct nvmet_tcp_cmd, entry); in nvmet_tcp_fetch_cmd()
507 struct nvmet_tcp_cmd *cmd = in nvmet_tcp_queue_response()
508 container_of(req, struct nvmet_tcp_cmd, req); in nvmet_tcp_queue_response()
515 static int nvmet_try_send_data_pdu(struct nvmet_tcp_cmd *cmd) in nvmet_try_send_data_pdu()
538 static int nvmet_try_send_data(struct nvmet_tcp_cmd *cmd, bool last_in_batch) in nvmet_try_send_data()
589 static int nvmet_try_send_response(struct nvmet_tcp_cmd *cmd, in nvmet_try_send_response()
619 static int nvmet_try_send_r2t(struct nvmet_tcp_cmd *cmd, bool last_in_batch) in nvmet_try_send_r2t()
645 static int nvmet_try_send_ddgst(struct nvmet_tcp_cmd *cmd, bool last_in_batch) in nvmet_try_send_ddgst()
678 struct nvmet_tcp_cmd *cmd = queue->snd_cmd; in nvmet_tcp_try_send_one()
849 struct nvmet_tcp_cmd *cmd, struct nvmet_req *req) in nvmet_tcp_handle_req_failure()
875 struct nvmet_tcp_cmd *cmd; in nvmet_tcp_handle_h2c_data_pdu()
1058 static void nvmet_tcp_prep_recv_ddgst(struct nvmet_tcp_cmd *cmd) in nvmet_tcp_prep_recv_ddgst()
1070 struct nvmet_tcp_cmd *cmd = queue->cmd; in nvmet_tcp_try_recv_data()
1100 struct nvmet_tcp_cmd *cmd = queue->cmd; in nvmet_tcp_try_recv_ddgst()
1233 struct nvmet_tcp_cmd *c) in nvmet_tcp_alloc_cmd()
1276 static void nvmet_tcp_free_cmd(struct nvmet_tcp_cmd *c) in nvmet_tcp_free_cmd()
1286 struct nvmet_tcp_cmd *cmds; in nvmet_tcp_alloc_cmds()
1289 cmds = kcalloc(nr_cmds, sizeof(struct nvmet_tcp_cmd), GFP_KERNEL); in nvmet_tcp_alloc_cmds()
1312 struct nvmet_tcp_cmd *cmds = queue->cmds; in nvmet_tcp_free_cmds()
1334 static void nvmet_tcp_finish_cmd(struct nvmet_tcp_cmd *cmd) in nvmet_tcp_finish_cmd()
1344 struct nvmet_tcp_cmd *cmd = queue->cmds; in nvmet_tcp_uninit_data_in_cmds()
1707 struct nvmet_tcp_cmd *cmd = in nvmet_tcp_disc_port_addr()
1708 container_of(req, struct nvmet_tcp_cmd, req); in nvmet_tcp_disc_port_addr()