Searched refs:mock_nested (Results 1 – 1 of 1) sorted by relevance
344 struct mock_iommu_domain_nested *mock_nested; in __mock_domain_alloc_nested() local356 mock_nested = kzalloc(sizeof(*mock_nested), GFP_KERNEL); in __mock_domain_alloc_nested()357 if (!mock_nested) in __mock_domain_alloc_nested()359 mock_nested->domain.ops = &domain_nested_ops; in __mock_domain_alloc_nested()360 mock_nested->domain.type = IOMMU_DOMAIN_NESTED; in __mock_domain_alloc_nested()362 mock_nested->iotlb[i] = user_cfg.iotlb; in __mock_domain_alloc_nested()363 return mock_nested; in __mock_domain_alloc_nested()370 struct mock_iommu_domain_nested *mock_nested; in mock_domain_alloc_nested() local382 mock_nested = __mock_domain_alloc_nested(user_data); in mock_domain_alloc_nested()383 if (IS_ERR(mock_nested)) in mock_domain_alloc_nested()[all …]