Home
last modified time | relevance | path

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

/linux-6.12.1/drivers/iommu/intel/
Diommu.h33 #define VTD_PAGE_SHIFT (12) macro
34 #define VTD_PAGE_SIZE (1UL << VTD_PAGE_SHIFT)
35 #define VTD_PAGE_MASK (((u64)-1) << VTD_PAGE_SHIFT)
890 #define MAX_AGAW_PFN_WIDTH (MAX_AGAW_WIDTH - VTD_PAGE_SHIFT)
941 return mm_pfn << (PAGE_SHIFT - VTD_PAGE_SHIFT); in mm_to_dma_pfn_start()
945 return ((mm_pfn + 1) << (PAGE_SHIFT - VTD_PAGE_SHIFT)) - 1; in mm_to_dma_pfn_end()
1072 return PAGE_ALIGN(host_addr + size) >> VTD_PAGE_SHIFT; in aligned_nrpages()
1078 return npages << VTD_PAGE_SHIFT; in nrpages_to_size()
1106 addr |= (1ULL << (VTD_PAGE_SHIFT + mask - 1)) - 1; in qi_desc_dev_iotlb()
1133 unsigned long align = (1ULL << (VTD_PAGE_SHIFT + mask)); in qi_desc_piotlb()
[all …]
Diommu.c49 #define __DOMAIN_MAX_PFN(gaw) ((((uint64_t)1) << ((gaw) - VTD_PAGE_SHIFT)) - 1)
56 #define DOMAIN_MAX_ADDR(gaw) (((uint64_t)__DOMAIN_MAX_PFN(gaw)) << VTD_PAGE_SHIFT)
289 int addr_width = agaw_to_width(domain->agaw) - VTD_PAGE_SHIFT; in domain_pfn_supported()
803 pgtable_walk(iommu, addr >> VTD_PAGE_SHIFT, bus, devfn, pgtable, level); in dmar_fault_dump_ptes()
840 pteval = ((uint64_t)virt_to_dma_pfn(tmp_page) << VTD_PAGE_SHIFT) | DMA_PTE_READ | DMA_PTE_WRITE; in pfn_to_dma_pte()
1284 !pci_enable_ats(pdev, VTD_PAGE_SHIFT)) in iommu_enable_pci_caps()
1769 cache_tag_flush_range(domain, start_pfn << VTD_PAGE_SHIFT, in switch_to_super_page()
1770 end_pfn << VTD_PAGE_SHIFT, 0); in switch_to_super_page()
1812 pteval = ((phys_addr_t)phys_pfn << VTD_PAGE_SHIFT) | attr; in __domain_mapping()
3676 return __domain_mapping(dmar_domain, iova >> VTD_PAGE_SHIFT, in intel_iommu_map()
[all …]
Dsvm.c392 event.fault.prm.addr = (u64)desc->addr << VTD_PAGE_SHIFT; in intel_svm_prq_report()
449 address = (u64)req->addr << VTD_PAGE_SHIFT; in prq_event_thread()
Ddebugfs.c307 return BIT_ULL(VTD_PAGE_SHIFT + VTD_STRIDE_SHIFT * (level - 1)); in level_to_directory_size()
314 iova >> VTD_PAGE_SHIFT, path[5], path[4], path[3]); in dump_page_info()
Dpasid.c234 qi_flush_dev_iotlb(iommu, sid, pfsid, qdep, 0, 64 - VTD_PAGE_SHIFT); in devtlb_invalidation_with_pasid()
236 qi_flush_dev_iotlb_pasid(iommu, sid, pfsid, pasid, qdep, 0, 64 - VTD_PAGE_SHIFT); in devtlb_invalidation_with_pasid()