Lines Matching refs:se_cmd

35 	struct se_cmd *se_cmd;  in _ft_dump_cmd()  local
39 se_cmd = &cmd->se_cmd; in _ft_dump_cmd()
41 caller, cmd, cmd->sess, cmd->seq, se_cmd); in _ft_dump_cmd()
44 caller, cmd, se_cmd->t_data_nents, in _ft_dump_cmd()
45 se_cmd->data_length, se_cmd->se_cmd_flags); in _ft_dump_cmd()
47 for_each_sg(se_cmd->t_data_sg, sg, se_cmd->t_data_nents, count) in _ft_dump_cmd()
81 target_free_tag(sess->se_sess, &cmd->se_cmd); in ft_free_cmd()
85 void ft_release_cmd(struct se_cmd *se_cmd) in ft_release_cmd() argument
87 struct ft_cmd *cmd = container_of(se_cmd, struct ft_cmd, se_cmd); in ft_release_cmd()
92 int ft_check_stop_free(struct se_cmd *se_cmd) in ft_check_stop_free() argument
94 return transport_generic_free_cmd(se_cmd, 0); in ft_check_stop_free()
100 int ft_queue_status(struct se_cmd *se_cmd) in ft_queue_status() argument
102 struct ft_cmd *cmd = container_of(se_cmd, struct ft_cmd, se_cmd); in ft_queue_status()
115 len = sizeof(*fcp) + se_cmd->scsi_sense_length; in ft_queue_status()
118 se_cmd->scsi_status = SAM_STAT_TASK_SET_FULL; in ft_queue_status()
124 fcp->resp.fr_status = se_cmd->scsi_status; in ft_queue_status()
126 len = se_cmd->scsi_sense_length; in ft_queue_status()
130 memcpy((fcp + 1), se_cmd->sense_buffer, len); in ft_queue_status()
137 if (se_cmd->se_cmd_flags & (SCF_OVERFLOW_BIT | SCF_UNDERFLOW_BIT)) { in ft_queue_status()
138 if (se_cmd->se_cmd_flags & SCF_OVERFLOW_BIT) in ft_queue_status()
142 fcp->ext.fr_resid = cpu_to_be32(se_cmd->residual_count); in ft_queue_status()
161 se_cmd->scsi_status = SAM_STAT_TASK_SET_FULL; in ft_queue_status()
170 target_put_sess_cmd(&cmd->se_cmd); in ft_queue_status()
177 int ft_write_pending(struct se_cmd *se_cmd) in ft_write_pending() argument
179 struct ft_cmd *cmd = container_of(se_cmd, struct ft_cmd, se_cmd); in ft_write_pending()
199 txrdy->ft_burst_len = htonl(se_cmd->data_length); in ft_write_pending()
215 if ((se_cmd->se_cmd_flags & SCF_SCSI_DATA_CDB) && in ft_write_pending()
217 se_cmd->t_data_sg, in ft_write_pending()
218 se_cmd->t_data_nents)) in ft_write_pending()
255 transport_generic_free_cmd(&cmd->se_cmd, 0); in ft_recv_seq()
365 rc = target_submit_tmr(&cmd->se_cmd, cmd->sess->se_sess, in ft_send_tm()
375 void ft_queue_tm_resp(struct se_cmd *se_cmd) in ft_queue_tm_resp() argument
377 struct ft_cmd *cmd = container_of(se_cmd, struct ft_cmd, se_cmd); in ft_queue_tm_resp()
378 struct se_tmr_req *tmr = se_cmd->se_tmr_req; in ft_queue_tm_resp()
407 target_put_sess_cmd(&cmd->se_cmd); in ft_queue_tm_resp()
410 void ft_aborted_task(struct se_cmd *se_cmd) in ft_aborted_task() argument
434 cmd->se_cmd.map_tag = tag; in ft_recv_cmd()
435 cmd->se_cmd.map_cpu = cpu; in ft_recv_cmd()
439 target_free_tag(se_sess, &cmd->se_cmd); in ft_recv_cmd()
540 cmd->se_cmd.tag = fc_seq_exch(cmd->seq)->rxid; in ft_send_work()
546 if (target_init_cmd(&cmd->se_cmd, cmd->sess->se_sess, in ft_send_work()
552 if (target_submit_prep(&cmd->se_cmd, fcp->fc_cdb, NULL, 0, NULL, 0, in ft_send_work()
556 target_submit(&cmd->se_cmd); in ft_send_work()