Lines Matching defs:se_cmd

64 	transport_generic_free_cmd(&cmd->se_cmd, 0);
152 if (cmd->se_cmd.scsi_status == SAM_STAT_GOOD) {
205 struct se_cmd *se_cmd = &cmd->se_cmd;
216 cmd->data_buf = kmalloc(se_cmd->data_length, GFP_ATOMIC);
220 sg_copy_to_buffer(se_cmd->t_data_sg,
221 se_cmd->t_data_nents,
223 se_cmd->data_length);
228 fu->bot_req_in->num_sgs = se_cmd->t_data_nents;
229 fu->bot_req_in->sg = se_cmd->t_data_sg;
233 fu->bot_req_in->length = se_cmd->data_length;
247 struct se_cmd *se_cmd = &cmd->se_cmd;
260 cmd->data_buf = kmalloc(se_cmd->data_length, GFP_KERNEL);
267 fu->bot_req_out->num_sgs = se_cmd->t_data_nents;
268 fu->bot_req_out->sg = se_cmd->t_data_sg;
272 fu->bot_req_out->length = se_cmd->data_length;
283 target_execute_cmd(se_cmd);
512 struct se_cmd *se_cmd = &cmd->se_cmd;
518 cmd->data_buf = kmalloc(se_cmd->data_length, GFP_ATOMIC);
522 sg_copy_to_buffer(se_cmd->t_data_sg,
523 se_cmd->t_data_nents,
525 se_cmd->data_length);
530 stream->req_in->num_sgs = se_cmd->t_data_nents;
531 stream->req_in->sg = se_cmd->t_data_sg;
536 stream->req_in->length = se_cmd->data_length;
545 struct se_cmd *se_cmd = &cmd->se_cmd;
556 iu->len = cpu_to_be16(se_cmd->scsi_sense_length);
557 iu->status = se_cmd->scsi_status;
560 stream->req_status->length = se_cmd->scsi_sense_length + 16;
603 transport_generic_free_cmd(&cmd->se_cmd, 0);
613 transport_generic_free_cmd(&cmd->se_cmd, 0);
676 struct se_cmd *se_cmd = &cmd->se_cmd;
714 target_execute_cmd(se_cmd);
958 struct se_cmd *se_cmd = &cmd->se_cmd;
966 sg_copy_from_buffer(se_cmd->t_data_sg,
967 se_cmd->t_data_nents,
969 se_cmd->data_length);
976 transport_generic_free_cmd(&cmd->se_cmd, 0);
981 struct se_cmd *se_cmd = &cmd->se_cmd;
986 cmd->data_buf = kmalloc(se_cmd->data_length, GFP_ATOMIC);
993 req->num_sgs = se_cmd->t_data_nents;
994 req->sg = se_cmd->t_data_sg;
999 req->length = se_cmd->data_length;
1004 static int usbg_send_status_response(struct se_cmd *se_cmd)
1006 struct usbg_cmd *cmd = container_of(se_cmd, struct usbg_cmd,
1007 se_cmd);
1016 static int usbg_send_write_request(struct se_cmd *se_cmd)
1018 struct usbg_cmd *cmd = container_of(se_cmd, struct usbg_cmd,
1019 se_cmd);
1028 static int usbg_send_read_response(struct se_cmd *se_cmd)
1030 struct usbg_cmd *cmd = container_of(se_cmd, struct usbg_cmd,
1031 se_cmd);
1043 struct se_cmd *se_cmd;
1048 se_cmd = &cmd->se_cmd;
1053 __target_init_cmd(se_cmd,
1061 target_submit_cmd(se_cmd, tv_nexus->tvn_se_sess, cmd->cmd_buf,
1067 transport_send_check_condition_and_sense(se_cmd,
1069 transport_generic_free_cmd(&cmd->se_cmd, 0);
1085 cmd->se_cmd.map_tag = tag;
1086 cmd->se_cmd.map_cpu = cpu;
1087 cmd->se_cmd.tag = cmd->tag = scsi_tag;
1093 static void usbg_release_cmd(struct se_cmd *);
1165 usbg_release_cmd(&cmd->se_cmd);
1172 struct se_cmd *se_cmd;
1177 se_cmd = &cmd->se_cmd;
1182 __target_init_cmd(se_cmd,
1190 target_submit_cmd(se_cmd, tv_nexus->tvn_se_sess,
1196 transport_send_check_condition_and_sense(se_cmd,
1198 transport_generic_free_cmd(&cmd->se_cmd, 0);
1241 cmd->se_cmd.tag = le32_to_cpu(cmd->bot_tag);
1272 static void usbg_release_cmd(struct se_cmd *se_cmd)
1274 struct usbg_cmd *cmd = container_of(se_cmd, struct usbg_cmd,
1275 se_cmd);
1276 struct se_session *se_sess = se_cmd->se_sess;
1279 target_free_tag(se_sess, se_cmd);
1282 static void usbg_queue_tm_rsp(struct se_cmd *se_cmd)
1286 static void usbg_aborted_task(struct se_cmd *se_cmd)
1659 static int usbg_check_stop_free(struct se_cmd *se_cmd)
1661 return target_put_sess_cmd(se_cmd);