Lines Matching refs:copy_cmd
532 struct iommu_ioas_copy copy_cmd = { in TEST_F() local
533 .size = sizeof(copy_cmd), in TEST_F()
543 copy_cmd.src_iova = self->base_iova; in TEST_F()
544 copy_cmd.dst_iova = self->base_iova + PAGE_SIZE; in TEST_F()
545 ASSERT_EQ(0, ioctl(self->fd, IOMMU_IOAS_COPY, ©_cmd)); in TEST_F()
548 copy_cmd.src_iova = self->base_iova; in TEST_F()
549 copy_cmd.dst_iova = 0; in TEST_F()
550 test_ioctl_ioas_alloc(©_cmd.dst_ioas_id); in TEST_F()
551 ASSERT_EQ(0, ioctl(self->fd, IOMMU_IOAS_COPY, ©_cmd)); in TEST_F()
1025 struct iommu_ioas_copy copy_cmd = { in TEST_F() local
1026 .size = sizeof(copy_cmd), in TEST_F()
1037 copy_cmd.dst_ioas_id = dst_ioas_id; in TEST_F()
1049 copy_cmd.src_iova = iova; in TEST_F()
1051 iova + copy_cmd.length - 1 > last_iova) { in TEST_F()
1053 ©_cmd)); in TEST_F()
1056 ioctl(self->fd, IOMMU_IOAS_COPY, ©_cmd)); in TEST_F()
1057 test_ioctl_ioas_unmap_id(dst_ioas_id, copy_cmd.dst_iova, in TEST_F()
1058 copy_cmd.length); in TEST_F()
1315 struct iommu_ioas_copy copy_cmd = { in TEST_F() local
1316 .size = sizeof(copy_cmd), in TEST_F()
1333 ©_cmd.src_iova); in TEST_F()
1338 access_cmd.access_pages.iova = copy_cmd.src_iova; in TEST_F()
1342 copy_cmd.src_ioas_id = ioas_id; in TEST_F()
1343 ASSERT_EQ(0, ioctl(self->fd, IOMMU_IOAS_COPY, ©_cmd)); in TEST_F()
1349 ©_cmd.src_iova); in TEST_F()
1357 access_cmd.access_pages.iova = copy_cmd.src_iova; in TEST_F()
1361 copy_cmd.src_ioas_id = new_ioas_id; in TEST_F()
1362 ASSERT_EQ(0, ioctl(self->fd, IOMMU_IOAS_COPY, ©_cmd)); in TEST_F()