Home
last modified time | relevance | path

Searched refs:mock_dev (Results 1 – 1 of 1) sorted by relevance

/Linux-v6.6/drivers/iommu/iommufd/
Dselftest.c97 struct mock_dev { struct
109 struct mock_dev *mock_dev; argument
359 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 …]