Lines Matching refs:VTD_PAGE_SHIFT
33 #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()
1153 unsigned long mask = 1UL << (VTD_PAGE_SHIFT + size_order - 1); in qi_desc_dev_iotlb_pasid()
1181 desc->qw1 |= GENMASK_ULL(size_order + VTD_PAGE_SHIFT - 1, in qi_desc_dev_iotlb_pasid()
1182 VTD_PAGE_SHIFT); in qi_desc_dev_iotlb_pasid()