Searched refs:pdom (Results 1 – 5 of 5) sorted by relevance
/linux/drivers/iommu/amd/ |
H A D | pasid.c | 42 static void remove_pdom_dev_pasid(struct protection_domain *pdom, in remove_pdom_dev_pasid() argument 48 lockdep_assert_held(&pdom->lock); in remove_pdom_dev_pasid() 50 for_each_pdom_dev_data(pdom_dev_data, pdom) { in remove_pdom_dev_pasid() 181 struct protection_domain *pdom; in amd_iommu_domain_alloc_sva() local 184 pdom = protection_domain_alloc(IOMMU_DOMAIN_SVA, dev_to_node(dev)); in amd_iommu_domain_alloc_sva() 185 if (!pdom) in amd_iommu_domain_alloc_sva() 188 pdom->domain.ops = &amd_sva_domain_ops; in amd_iommu_domain_alloc_sva() 189 pdom->mn.ops = &sva_mn; in amd_iommu_domain_alloc_sva() 191 ret = mmu_notifier_register(&pdom->mn, mm); in amd_iommu_domain_alloc_sva() 193 protection_domain_free(pdom); in amd_iommu_domain_alloc_sva() [all …]
|
H A D | iommu.c | 86 static inline bool pdom_is_v2_pgtbl_mode(struct protection_domain *pdom) in pdom_is_v2_pgtbl_mode() argument 88 return (pdom && (pdom->pd_mode == PD_MODE_V2)); in pdom_is_v2_pgtbl_mode() 91 static inline bool pdom_is_in_pt_mode(struct protection_domain *pdom) in pdom_is_in_pt_mode() argument 93 return (pdom->domain.type == IOMMU_DOMAIN_IDENTITY); in pdom_is_in_pt_mode() 101 static inline bool pdom_is_sva_capable(struct protection_domain *pdom) in pdom_is_sva_capable() argument 103 return pdom_is_v2_pgtbl_mode(pdom) || pdom_is_in_pt_mode(pdom); in pdom_is_sva_capable() 1422 static int domain_flush_pages_v2(struct protection_domain *pdom, in domain_flush_pages_v2() argument 1429 list_for_each_entry(dev_data, &pdom->dev_list, list) { in domain_flush_pages_v2() 1442 static int domain_flush_pages_v1(struct protection_domain *pdom, in domain_flush_pages_v1() argument 1449 pdom->id, IOMMU_NO_PASID, false); in domain_flush_pages_v1() [all …]
|
H A D | amd_iommu_types.h | 514 #define for_each_pdom_dev_data(pdom_dev_data, pdom) \ argument 515 list_for_each_entry(pdom_dev_data, &pdom->dev_data_list, list) 516 #define for_each_pdom_dev_data_safe(pdom_dev_data, next, pdom) \ argument 517 list_for_each_entry_safe((pdom_dev_data), (next), &pdom->dev_data_list, list)
|
H A D | io_pgtable_v2.c | 270 struct protection_domain *pdom = io_pgtable_ops_to_domain(ops); in iommu_v2_map_pages() local 272 amd_iommu_domain_flush_pages(pdom, o_iova, size); in iommu_v2_map_pages()
|
/linux/drivers/net/ethernet/realtek/ |
H A D | r8169_main.c | 922 char pdom[8], pfun[8]; in r8169_get_led_name() local 927 snprintf(pdom, sizeof(pdom), "P%d", domain); in r8169_get_led_name() 929 pdom[0] = '\0'; in r8169_get_led_name() 936 snprintf(buf, buf_len, "en%sp%ds%d%s-%d::lan", pdom, pdev->bus->number, in r8169_get_led_name()
|