• Home
  • Raw
  • Download

Lines Matching refs:se_cmd

163 	if (cmd->se_cmd.scsi_status == SAM_STAT_GOOD) {  in bot_send_status()
216 struct se_cmd *se_cmd = &cmd->se_cmd; in bot_send_read_response() local
227 cmd->data_buf = kmalloc(se_cmd->data_length, GFP_ATOMIC); in bot_send_read_response()
231 sg_copy_to_buffer(se_cmd->t_data_sg, in bot_send_read_response()
232 se_cmd->t_data_nents, in bot_send_read_response()
234 se_cmd->data_length); in bot_send_read_response()
239 fu->bot_req_in->num_sgs = se_cmd->t_data_nents; in bot_send_read_response()
240 fu->bot_req_in->sg = se_cmd->t_data_sg; in bot_send_read_response()
244 fu->bot_req_in->length = se_cmd->data_length; in bot_send_read_response()
258 struct se_cmd *se_cmd = &cmd->se_cmd; in bot_send_write_request() local
271 cmd->data_buf = kmalloc(se_cmd->data_length, GFP_KERNEL); in bot_send_write_request()
278 fu->bot_req_out->num_sgs = se_cmd->t_data_nents; in bot_send_write_request()
279 fu->bot_req_out->sg = se_cmd->t_data_sg; in bot_send_write_request()
283 fu->bot_req_out->length = se_cmd->data_length; in bot_send_write_request()
294 target_execute_cmd(se_cmd); in bot_send_write_request()
525 struct se_cmd *se_cmd = &cmd->se_cmd; in uasp_prepare_r_request() local
531 cmd->data_buf = kmalloc(se_cmd->data_length, GFP_ATOMIC); in uasp_prepare_r_request()
535 sg_copy_to_buffer(se_cmd->t_data_sg, in uasp_prepare_r_request()
536 se_cmd->t_data_nents, in uasp_prepare_r_request()
538 se_cmd->data_length); in uasp_prepare_r_request()
543 stream->req_in->num_sgs = se_cmd->t_data_nents; in uasp_prepare_r_request()
544 stream->req_in->sg = se_cmd->t_data_sg; in uasp_prepare_r_request()
548 stream->req_in->length = se_cmd->data_length; in uasp_prepare_r_request()
557 struct se_cmd *se_cmd = &cmd->se_cmd; in uasp_prepare_status() local
568 iu->len = cpu_to_be16(se_cmd->scsi_sense_length); in uasp_prepare_status()
569 iu->status = se_cmd->scsi_status; in uasp_prepare_status()
571 stream->req_status->length = se_cmd->scsi_sense_length + 16; in uasp_prepare_status()
687 struct se_cmd *se_cmd = &cmd->se_cmd; in uasp_send_write_request() local
725 target_execute_cmd(se_cmd); in uasp_send_write_request()
967 struct se_cmd *se_cmd = &cmd->se_cmd; in usbg_data_write_cmpl() local
975 sg_copy_from_buffer(se_cmd->t_data_sg, in usbg_data_write_cmpl()
976 se_cmd->t_data_nents, in usbg_data_write_cmpl()
978 se_cmd->data_length); in usbg_data_write_cmpl()
990 struct se_cmd *se_cmd = &cmd->se_cmd; in usbg_prepare_w_request() local
995 cmd->data_buf = kmalloc(se_cmd->data_length, GFP_ATOMIC); in usbg_prepare_w_request()
1002 req->num_sgs = se_cmd->t_data_nents; in usbg_prepare_w_request()
1003 req->sg = se_cmd->t_data_sg; in usbg_prepare_w_request()
1007 req->length = se_cmd->data_length; in usbg_prepare_w_request()
1012 static int usbg_send_status_response(struct se_cmd *se_cmd) in usbg_send_status_response() argument
1014 struct usbg_cmd *cmd = container_of(se_cmd, struct usbg_cmd, in usbg_send_status_response()
1015 se_cmd); in usbg_send_status_response()
1024 static int usbg_send_write_request(struct se_cmd *se_cmd) in usbg_send_write_request() argument
1026 struct usbg_cmd *cmd = container_of(se_cmd, struct usbg_cmd, in usbg_send_write_request()
1027 se_cmd); in usbg_send_write_request()
1036 static int usbg_send_read_response(struct se_cmd *se_cmd) in usbg_send_read_response() argument
1038 struct usbg_cmd *cmd = container_of(se_cmd, struct usbg_cmd, in usbg_send_read_response()
1039 se_cmd); in usbg_send_read_response()
1051 struct se_cmd *se_cmd; in usbg_cmd_work() local
1056 se_cmd = &cmd->se_cmd; in usbg_cmd_work()
1061 transport_init_se_cmd(se_cmd, in usbg_cmd_work()
1068 if (target_submit_cmd(se_cmd, tv_nexus->tvn_se_sess, in usbg_cmd_work()
1076 transport_send_check_condition_and_sense(se_cmd, in usbg_cmd_work()
1087 struct se_cmd *se_cmd; in usbg_submit_command() local
1150 se_cmd = &cmd->se_cmd; in usbg_submit_command()
1167 struct se_cmd *se_cmd; in bot_cmd_work() local
1172 se_cmd = &cmd->se_cmd; in bot_cmd_work()
1177 transport_init_se_cmd(se_cmd, in bot_cmd_work()
1184 if (target_submit_cmd(se_cmd, tv_nexus->tvn_se_sess, in bot_cmd_work()
1192 transport_send_check_condition_and_sense(se_cmd, in bot_cmd_work()
1203 struct se_cmd *se_cmd; in bot_submit_command() local
1244 se_cmd = &cmd->se_cmd; in bot_submit_command()
1411 transport_generic_free_cmd(&cmd->se_cmd, 0); in usbg_cmd_release()
1414 static void usbg_release_cmd(struct se_cmd *se_cmd) in usbg_release_cmd() argument
1416 struct usbg_cmd *cmd = container_of(se_cmd, struct usbg_cmd, in usbg_release_cmd()
1417 se_cmd); in usbg_release_cmd()
1441 static int usbg_write_pending_status(struct se_cmd *se_cmd) in usbg_write_pending_status() argument
1451 static u32 usbg_get_task_tag(struct se_cmd *se_cmd) in usbg_get_task_tag() argument
1453 struct usbg_cmd *cmd = container_of(se_cmd, struct usbg_cmd, in usbg_get_task_tag()
1454 se_cmd); in usbg_get_task_tag()
1463 static int usbg_get_cmd_state(struct se_cmd *se_cmd) in usbg_get_cmd_state() argument
1468 static void usbg_queue_tm_rsp(struct se_cmd *se_cmd) in usbg_queue_tm_rsp() argument
1472 static void usbg_aborted_task(struct se_cmd *se_cmd) in usbg_aborted_task() argument
1859 static int usbg_check_stop_free(struct se_cmd *se_cmd) in usbg_check_stop_free() argument
1861 struct usbg_cmd *cmd = container_of(se_cmd, struct usbg_cmd, in usbg_check_stop_free()
1862 se_cmd); in usbg_check_stop_free()