Lines Matching refs:xpt_cmd
418 struct xcopy_pt_cmd *xpt_cmd = container_of(se_cmd, in xcopy_pt_release_cmd() local
422 pr_debug("xpt_cmd done: %p\n", xpt_cmd); in xcopy_pt_release_cmd()
427 struct xcopy_pt_cmd *xpt_cmd = container_of(se_cmd, in xcopy_pt_check_stop_free() local
430 complete(&xpt_cmd->xpt_passthrough_sem); in xcopy_pt_check_stop_free()
512 struct xcopy_pt_cmd *xpt_cmd, in target_xcopy_setup_pt_cmd() argument
518 struct se_cmd *cmd = &xpt_cmd->se_cmd; in target_xcopy_setup_pt_cmd()
550 static int target_xcopy_issue_pt_cmd(struct xcopy_pt_cmd *xpt_cmd) in target_xcopy_issue_pt_cmd() argument
552 struct se_cmd *se_cmd = &xpt_cmd->se_cmd; in target_xcopy_issue_pt_cmd()
562 wait_for_completion_interruptible(&xpt_cmd->xpt_passthrough_sem); in target_xcopy_issue_pt_cmd()
577 struct xcopy_pt_cmd xpt_cmd; in target_xcopy_read_source() local
578 struct se_cmd *se_cmd = &xpt_cmd.se_cmd; in target_xcopy_read_source()
584 memset(&xpt_cmd, 0, sizeof(xpt_cmd)); in target_xcopy_read_source()
585 init_completion(&xpt_cmd.xpt_passthrough_sem); in target_xcopy_read_source()
595 DMA_FROM_DEVICE, 0, &xpt_cmd.sense_buffer[0], 0, in target_xcopy_read_source()
597 rc = target_xcopy_setup_pt_cmd(&xpt_cmd, xop, src_dev, &cdb[0], in target_xcopy_read_source()
607 rc = target_xcopy_issue_pt_cmd(&xpt_cmd); in target_xcopy_read_source()
622 struct xcopy_pt_cmd xpt_cmd; in target_xcopy_write_destination() local
623 struct se_cmd *se_cmd = &xpt_cmd.se_cmd; in target_xcopy_write_destination()
629 memset(&xpt_cmd, 0, sizeof(xpt_cmd)); in target_xcopy_write_destination()
630 init_completion(&xpt_cmd.xpt_passthrough_sem); in target_xcopy_write_destination()
640 DMA_TO_DEVICE, 0, &xpt_cmd.sense_buffer[0], 0, in target_xcopy_write_destination()
642 rc = target_xcopy_setup_pt_cmd(&xpt_cmd, xop, dst_dev, &cdb[0], in target_xcopy_write_destination()
649 rc = target_xcopy_issue_pt_cmd(&xpt_cmd); in target_xcopy_write_destination()