Lines Matching refs:se_cmd
36 struct se_cmd *se_cmd; in _ft_dump_cmd() local
40 se_cmd = &cmd->se_cmd; in _ft_dump_cmd()
42 caller, cmd, cmd->sess, cmd->seq, se_cmd); in _ft_dump_cmd()
45 caller, cmd, se_cmd->t_data_nents, in _ft_dump_cmd()
46 se_cmd->data_length, se_cmd->se_cmd_flags); in _ft_dump_cmd()
48 for_each_sg(se_cmd->t_data_sg, sg, se_cmd->t_data_nents, count) in _ft_dump_cmd()
82 target_free_tag(sess->se_sess, &cmd->se_cmd); in ft_free_cmd()
86 void ft_release_cmd(struct se_cmd *se_cmd) in ft_release_cmd() argument
88 struct ft_cmd *cmd = container_of(se_cmd, struct ft_cmd, se_cmd); in ft_release_cmd()
93 int ft_check_stop_free(struct se_cmd *se_cmd) in ft_check_stop_free() argument
95 return transport_generic_free_cmd(se_cmd, 0); in ft_check_stop_free()
101 int ft_queue_status(struct se_cmd *se_cmd) in ft_queue_status() argument
103 struct ft_cmd *cmd = container_of(se_cmd, struct ft_cmd, se_cmd); in ft_queue_status()
116 len = sizeof(*fcp) + se_cmd->scsi_sense_length; in ft_queue_status()
119 se_cmd->scsi_status = SAM_STAT_TASK_SET_FULL; in ft_queue_status()
125 fcp->resp.fr_status = se_cmd->scsi_status; in ft_queue_status()
127 len = se_cmd->scsi_sense_length; in ft_queue_status()
131 memcpy((fcp + 1), se_cmd->sense_buffer, len); in ft_queue_status()
138 if (se_cmd->se_cmd_flags & (SCF_OVERFLOW_BIT | SCF_UNDERFLOW_BIT)) { in ft_queue_status()
139 if (se_cmd->se_cmd_flags & SCF_OVERFLOW_BIT) in ft_queue_status()
143 fcp->ext.fr_resid = cpu_to_be32(se_cmd->residual_count); in ft_queue_status()
162 se_cmd->scsi_status = SAM_STAT_TASK_SET_FULL; in ft_queue_status()
171 target_put_sess_cmd(&cmd->se_cmd); in ft_queue_status()
178 int ft_write_pending(struct se_cmd *se_cmd) in ft_write_pending() argument
180 struct ft_cmd *cmd = container_of(se_cmd, struct ft_cmd, se_cmd); in ft_write_pending()
200 txrdy->ft_burst_len = htonl(se_cmd->data_length); in ft_write_pending()
216 if ((se_cmd->se_cmd_flags & SCF_SCSI_DATA_CDB) && in ft_write_pending()
218 se_cmd->t_data_sg, in ft_write_pending()
219 se_cmd->t_data_nents)) in ft_write_pending()
227 int ft_get_cmd_state(struct se_cmd *se_cmd) in ft_get_cmd_state() argument
261 transport_generic_free_cmd(&cmd->se_cmd, 0); in ft_recv_seq()
371 rc = target_submit_tmr(&cmd->se_cmd, cmd->sess->se_sess, in ft_send_tm()
381 void ft_queue_tm_resp(struct se_cmd *se_cmd) in ft_queue_tm_resp() argument
383 struct ft_cmd *cmd = container_of(se_cmd, struct ft_cmd, se_cmd); in ft_queue_tm_resp()
384 struct se_tmr_req *tmr = se_cmd->se_tmr_req; in ft_queue_tm_resp()
413 target_put_sess_cmd(&cmd->se_cmd); in ft_queue_tm_resp()
416 void ft_aborted_task(struct se_cmd *se_cmd) in ft_aborted_task() argument
440 cmd->se_cmd.map_tag = tag; in ft_recv_cmd()
441 cmd->se_cmd.map_cpu = cpu; in ft_recv_cmd()
445 target_free_tag(se_sess, &cmd->se_cmd); in ft_recv_cmd()
546 cmd->se_cmd.tag = fc_seq_exch(cmd->seq)->rxid; in ft_send_work()
551 if (target_submit_cmd(&cmd->se_cmd, cmd->sess->se_sess, fcp->fc_cdb, in ft_send_work()