Lines Matching refs:mock_nested

317 	struct mock_iommu_domain_nested *mock_nested;  in __mock_domain_alloc_nested()  local
329 mock_nested = kzalloc(sizeof(*mock_nested), GFP_KERNEL); in __mock_domain_alloc_nested()
330 if (!mock_nested) in __mock_domain_alloc_nested()
332 mock_nested->domain.ops = &domain_nested_ops; in __mock_domain_alloc_nested()
333 mock_nested->domain.type = IOMMU_DOMAIN_NESTED; in __mock_domain_alloc_nested()
335 mock_nested->iotlb[i] = user_cfg.iotlb; in __mock_domain_alloc_nested()
336 return mock_nested; in __mock_domain_alloc_nested()
343 struct mock_iommu_domain_nested *mock_nested; in mock_domain_alloc_nested() local
355 mock_nested = __mock_domain_alloc_nested(user_data); in mock_domain_alloc_nested()
356 if (IS_ERR(mock_nested)) in mock_domain_alloc_nested()
357 return ERR_CAST(mock_nested); in mock_domain_alloc_nested()
358 mock_nested->parent = mock_parent; in mock_domain_alloc_nested()
359 return &mock_nested->domain; in mock_domain_alloc_nested()
586 struct mock_iommu_domain_nested *mock_nested; in mock_viommu_alloc_domain_nested() local
591 mock_nested = __mock_domain_alloc_nested(user_data); in mock_viommu_alloc_domain_nested()
592 if (IS_ERR(mock_nested)) in mock_viommu_alloc_domain_nested()
593 return ERR_CAST(mock_nested); in mock_viommu_alloc_domain_nested()
594 mock_nested->mock_viommu = mock_viommu; in mock_viommu_alloc_domain_nested()
595 mock_nested->parent = mock_viommu->s2_parent; in mock_viommu_alloc_domain_nested()
596 return &mock_nested->domain; in mock_viommu_alloc_domain_nested()
735 struct mock_iommu_domain_nested *mock_nested = to_mock_nested(domain); in mock_domain_cache_invalidate_user() local
766 mock_nested->iotlb[j] = 0; in mock_domain_cache_invalidate_user()
768 mock_nested->iotlb[inv.iotlb_id] = 0; in mock_domain_cache_invalidate_user()
816 struct mock_iommu_domain_nested **mock_nested) in get_md_pagetable_nested() argument
828 *mock_nested = to_mock_nested(hwpt->domain); in get_md_pagetable_nested()
1097 struct mock_iommu_domain_nested *mock_nested; in iommufd_test_md_check_iotlb() local
1101 hwpt = get_md_pagetable_nested(ucmd, mockpt_id, &mock_nested); in iommufd_test_md_check_iotlb()
1105 mock_nested = to_mock_nested(hwpt->domain); in iommufd_test_md_check_iotlb()
1108 mock_nested->iotlb[iotlb_id] != iotlb) in iommufd_test_md_check_iotlb()