Lines Matching refs:xpt_cmd
431 struct xcopy_pt_cmd *xpt_cmd = container_of(se_cmd, in xcopy_pt_release_cmd() local
435 pr_debug("xpt_cmd done: %p\n", xpt_cmd); in xcopy_pt_release_cmd()
440 struct xcopy_pt_cmd *xpt_cmd = container_of(se_cmd, in xcopy_pt_check_stop_free() local
443 complete(&xpt_cmd->xpt_passthrough_sem); in xcopy_pt_check_stop_free()
536 struct xcopy_pt_cmd *xpt_cmd, in target_xcopy_setup_pt_cmd() argument
542 struct se_cmd *cmd = &xpt_cmd->se_cmd; in target_xcopy_setup_pt_cmd()
574 static int target_xcopy_issue_pt_cmd(struct xcopy_pt_cmd *xpt_cmd) in target_xcopy_issue_pt_cmd() argument
576 struct se_cmd *se_cmd = &xpt_cmd->se_cmd; in target_xcopy_issue_pt_cmd()
586 wait_for_completion_interruptible(&xpt_cmd->xpt_passthrough_sem); in target_xcopy_issue_pt_cmd()
601 struct xcopy_pt_cmd xpt_cmd; in target_xcopy_read_source() local
602 struct se_cmd *se_cmd = &xpt_cmd.se_cmd; in target_xcopy_read_source()
608 memset(&xpt_cmd, 0, sizeof(xpt_cmd)); in target_xcopy_read_source()
609 init_completion(&xpt_cmd.xpt_passthrough_sem); in target_xcopy_read_source()
619 DMA_FROM_DEVICE, 0, &xpt_cmd.sense_buffer[0], 0); in target_xcopy_read_source()
621 rc = target_xcopy_setup_pt_cmd(&xpt_cmd, xop, src_dev, &cdb[0], in target_xcopy_read_source()
631 rc = target_xcopy_issue_pt_cmd(&xpt_cmd); in target_xcopy_read_source()
646 struct xcopy_pt_cmd xpt_cmd; in target_xcopy_write_destination() local
647 struct se_cmd *se_cmd = &xpt_cmd.se_cmd; in target_xcopy_write_destination()
653 memset(&xpt_cmd, 0, sizeof(xpt_cmd)); in target_xcopy_write_destination()
654 init_completion(&xpt_cmd.xpt_passthrough_sem); in target_xcopy_write_destination()
664 DMA_TO_DEVICE, 0, &xpt_cmd.sense_buffer[0], 0); in target_xcopy_write_destination()
666 rc = target_xcopy_setup_pt_cmd(&xpt_cmd, xop, dst_dev, &cdb[0], in target_xcopy_write_destination()
673 rc = target_xcopy_issue_pt_cmd(&xpt_cmd); in target_xcopy_write_destination()