Searched refs:mock_dev (Results 1 – 1 of 1) sorted by relevance
97 struct mock_dev { struct109 struct mock_dev *mock_dev; argument359 struct mock_dev *mdev = container_of(dev, struct mock_dev, dev); in mock_dev_release()365 static struct mock_dev *mock_dev_create(void) in mock_dev_create()367 struct mock_dev *mdev; in mock_dev_create()393 static void mock_dev_destroy(struct mock_dev *mdev) in mock_dev_destroy()420 sobj->idev.mock_dev = mock_dev_create(); in iommufd_test_mock_domain()421 if (IS_ERR(sobj->idev.mock_dev)) { in iommufd_test_mock_domain()422 rc = PTR_ERR(sobj->idev.mock_dev); in iommufd_test_mock_domain()426 idev = iommufd_device_bind(ucmd->ictx, &sobj->idev.mock_dev->dev, in iommufd_test_mock_domain()[all …]