Lines Matching refs:se_cmd
42 int ft_queue_data_in(struct se_cmd *se_cmd) in ft_queue_data_in() argument
44 struct ft_cmd *cmd = container_of(se_cmd, struct ft_cmd, se_cmd); in ft_queue_data_in()
68 if (se_cmd->scsi_status == SAM_STAT_TASK_SET_FULL) in ft_queue_data_in()
75 remaining = se_cmd->data_length; in ft_queue_data_in()
80 BUG_ON(remaining && !se_cmd->t_data_sg); in ft_queue_data_in()
82 sg = se_cmd->t_data_sg; in ft_queue_data_in()
178 se_cmd->scsi_status = SAM_STAT_TASK_SET_FULL; in ft_queue_data_in()
183 return ft_queue_status(se_cmd); in ft_queue_data_in()
190 target_execute_cmd(&cmd->se_cmd); in ft_execute_work()
198 struct se_cmd *se_cmd = &cmd->se_cmd; in ft_recv_write_data() local
237 se_cmd->t_data_sg, se_cmd->t_data_nents); in ft_recv_write_data()
267 if (rel_off >= se_cmd->data_length) in ft_recv_write_data()
269 if (frame_len + rel_off > se_cmd->data_length) in ft_recv_write_data()
270 frame_len = se_cmd->data_length - rel_off; in ft_recv_write_data()
275 BUG_ON(frame_len && !se_cmd->t_data_sg); in ft_recv_write_data()
277 sg = se_cmd->t_data_sg; in ft_recv_write_data()
316 if (cmd->write_data_len == se_cmd->data_length) { in ft_recv_write_data()