Lines Matching refs:src_dev
176 xop->src_dev = se_cmd->se_dev; in target_xcopy_parse_tiddesc_e4()
178 " received xop\n", xop->src_dev); in target_xcopy_parse_tiddesc_e4()
268 &xop->src_dev, in target_xcopy_parse_target_descriptors()
289 xop->src_dev, &xop->src_tid_wwn[0]); in target_xcopy_parse_target_descriptors()
411 pr_debug("putting src lun_ref for %p\n", xop->src_dev); in xcopy_pt_undepend_remotedev()
573 struct se_device *src_dev, in target_xcopy_read_source() argument
579 u32 transfer_length_block = src_bytes / src_dev->dev_attrib.block_size; in target_xcopy_read_source()
597 rc = target_xcopy_setup_pt_cmd(&xpt_cmd, xop, src_dev, &cdb[0], in target_xcopy_read_source()
661 struct se_device *src_dev, *dst_dev; in target_xcopy_do_work() local
673 if (WARN_ON_ONCE(!xop->src_dev) || WARN_ON_ONCE(!xop->dst_dev)) { in target_xcopy_do_work()
678 src_dev = xop->src_dev; in target_xcopy_do_work()
688 max_bytes_src = (unsigned long long) src_dev->dev_attrib.hw_max_sectors * in target_xcopy_do_work()
689 src_dev->dev_attrib.hw_block_size; in target_xcopy_do_work()
700 max_blocks = max_bytes >> ilog2(src_dev->dev_attrib.block_size); in target_xcopy_do_work()
708 u32 cur_bytes = min_t(u64, max_bytes, nolb * src_dev->dev_attrib.block_size); in target_xcopy_do_work()
709 unsigned short cur_nolb = cur_bytes / src_dev->dev_attrib.block_size; in target_xcopy_do_work()
727 __func__, src_dev, (unsigned long long)src_lba, cur_nolb); in target_xcopy_do_work()
729 rc = target_xcopy_read_source(ec_cmd, xop, src_dev, src_lba, cur_bytes); in target_xcopy_do_work()
733 src_lba += cur_bytes / src_dev->dev_attrib.block_size; in target_xcopy_do_work()
750 nolb -= cur_bytes / src_dev->dev_attrib.block_size; in target_xcopy_do_work()
852 if (xop->src_dev->dev_attrib.block_size != in target_parse_xcopy_cmd()
856 xop->src_dev->dev_attrib.block_size, in target_parse_xcopy_cmd()