Lines Matching refs:se_cmd
49 struct se_cmd *se_cmd; in _ft_dump_cmd() local
53 se_cmd = &cmd->se_cmd; in _ft_dump_cmd()
55 caller, cmd, cmd->sess, cmd->seq, se_cmd); in _ft_dump_cmd()
58 caller, cmd, se_cmd->t_data_nents, in _ft_dump_cmd()
59 se_cmd->data_length, se_cmd->se_cmd_flags); in _ft_dump_cmd()
61 for_each_sg(se_cmd->t_data_sg, sg, se_cmd->t_data_nents, count) in _ft_dump_cmd()
97 percpu_ida_free(&sess->se_sess->sess_tag_pool, cmd->se_cmd.map_tag); in ft_free_cmd()
101 void ft_release_cmd(struct se_cmd *se_cmd) in ft_release_cmd() argument
103 struct ft_cmd *cmd = container_of(se_cmd, struct ft_cmd, se_cmd); in ft_release_cmd()
108 int ft_check_stop_free(struct se_cmd *se_cmd) in ft_check_stop_free() argument
110 transport_generic_free_cmd(se_cmd, 0); in ft_check_stop_free()
117 int ft_queue_status(struct se_cmd *se_cmd) in ft_queue_status() argument
119 struct ft_cmd *cmd = container_of(se_cmd, struct ft_cmd, se_cmd); in ft_queue_status()
132 len = sizeof(*fcp) + se_cmd->scsi_sense_length; in ft_queue_status()
135 se_cmd->scsi_status = SAM_STAT_TASK_SET_FULL; in ft_queue_status()
141 fcp->resp.fr_status = se_cmd->scsi_status; in ft_queue_status()
143 len = se_cmd->scsi_sense_length; in ft_queue_status()
147 memcpy((fcp + 1), se_cmd->sense_buffer, len); in ft_queue_status()
154 if (se_cmd->se_cmd_flags & (SCF_OVERFLOW_BIT | SCF_UNDERFLOW_BIT)) { in ft_queue_status()
155 if (se_cmd->se_cmd_flags & SCF_OVERFLOW_BIT) in ft_queue_status()
159 fcp->ext.fr_resid = cpu_to_be32(se_cmd->residual_count); in ft_queue_status()
178 se_cmd->scsi_status = SAM_STAT_TASK_SET_FULL; in ft_queue_status()
185 int ft_write_pending_status(struct se_cmd *se_cmd) in ft_write_pending_status() argument
187 struct ft_cmd *cmd = container_of(se_cmd, struct ft_cmd, se_cmd); in ft_write_pending_status()
189 return cmd->write_data_len != se_cmd->data_length; in ft_write_pending_status()
195 int ft_write_pending(struct se_cmd *se_cmd) in ft_write_pending() argument
197 struct ft_cmd *cmd = container_of(se_cmd, struct ft_cmd, se_cmd); in ft_write_pending()
217 txrdy->ft_burst_len = htonl(se_cmd->data_length); in ft_write_pending()
233 if ((se_cmd->se_cmd_flags & SCF_SCSI_DATA_CDB) && in ft_write_pending()
235 se_cmd->t_data_sg, in ft_write_pending()
236 se_cmd->t_data_nents)) in ft_write_pending()
244 int ft_get_cmd_state(struct se_cmd *se_cmd) in ft_get_cmd_state() argument
278 transport_generic_free_cmd(&cmd->se_cmd, 0); in ft_recv_seq()
388 rc = target_submit_tmr(&cmd->se_cmd, cmd->sess->se_sess, in ft_send_tm()
398 void ft_queue_tm_resp(struct se_cmd *se_cmd) in ft_queue_tm_resp() argument
400 struct ft_cmd *cmd = container_of(se_cmd, struct ft_cmd, se_cmd); in ft_queue_tm_resp()
401 struct se_tmr_req *tmr = se_cmd->se_tmr_req; in ft_queue_tm_resp()
427 void ft_aborted_task(struct se_cmd *se_cmd) in ft_aborted_task() argument
451 cmd->se_cmd.map_tag = tag; in ft_recv_cmd()
556 cmd->se_cmd.tag = fc_seq_exch(cmd->seq)->rxid; in ft_send_work()
561 if (target_submit_cmd(&cmd->se_cmd, cmd->sess->se_sess, fcp->fc_cdb, in ft_send_work()