Lines Matching refs:map_cmd
1443 TEST_F(iommufd, map_cmd) in TEST_F() argument
1445 struct vfio_iommu_type1_dma_map map_cmd = { in TEST_F() local
1451 map_cmd.argsz = 1; in TEST_F()
1452 EXPECT_ERRNO(EINVAL, ioctl(self->fd, VFIO_IOMMU_MAP_DMA, &map_cmd)); in TEST_F()
1454 map_cmd.argsz = sizeof(map_cmd); in TEST_F()
1455 map_cmd.flags = 1 << 31; in TEST_F()
1456 EXPECT_ERRNO(EINVAL, ioctl(self->fd, VFIO_IOMMU_MAP_DMA, &map_cmd)); in TEST_F()
1459 map_cmd.flags = VFIO_DMA_MAP_FLAG_READ | VFIO_DMA_MAP_FLAG_WRITE; in TEST_F()
1460 EXPECT_ERRNO(ENODEV, ioctl(self->fd, VFIO_IOMMU_MAP_DMA, &map_cmd)); in TEST_F()
1712 struct vfio_iommu_type1_dma_map map_cmd = { in TEST_F() local
1713 .argsz = sizeof(map_cmd), in TEST_F()
1728 ASSERT_EQ(0, ioctl(self->fd, VFIO_IOMMU_MAP_DMA, &map_cmd)); in TEST_F()
1733 ASSERT_EQ(0, ioctl(self->fd, VFIO_IOMMU_MAP_DMA, &map_cmd)); in TEST_F()
1744 map_cmd.iova = pages_iova[i] = in TEST_F()
1746 map_cmd.vaddr = (uintptr_t)buffer + i * PAGE_SIZE; in TEST_F()
1747 map_cmd.size = PAGE_SIZE; in TEST_F()
1748 ASSERT_EQ(0, ioctl(self->fd, VFIO_IOMMU_MAP_DMA, &map_cmd)); in TEST_F()
1763 struct vfio_iommu_type1_dma_map map_cmd = { in TEST_F() local
1764 .argsz = sizeof(map_cmd), in TEST_F()
1781 map_cmd.vaddr = (uintptr_t)buf; in TEST_F()
1782 ASSERT_EQ(0, ioctl(self->fd, VFIO_IOMMU_MAP_DMA, &map_cmd)); in TEST_F()