Searched refs:ptpindex (Results 1 – 2 of 2) sorted by relevance
674 int i, spshift, ptpshift, ptpindex, nlevels; in vtd_update_mapping() local678 ptpindex = 0; in vtd_update_mapping()719 ptpindex = (gpa >> ptpshift) & 0x1FF; in vtd_update_mapping()732 if (ptp[ptpindex] == 0) { in vtd_update_mapping()734 ptp[ptpindex] = vtophys(nlp)| VTD_PTE_RD | VTD_PTE_WR; in vtd_update_mapping()737 ptp = (uint64_t *)PHYS_TO_DMAP(ptp[ptpindex] & VTD_PTE_ADDR_M); in vtd_update_mapping()747 ptp[ptpindex] = 0; in vtd_update_mapping()749 ptp[ptpindex] = hpa | VTD_PTE_RD | VTD_PTE_WR; in vtd_update_mapping()752 ptp[ptpindex] |= VTD_PTE_SUPERPAGE; in vtd_update_mapping()
3095 int ptpshift = 0, ptpindex = 0; in _vm_gla2gpa() local3139 ptpindex = (gla >> ptpshift) & 0x3FF; in _vm_gla2gpa()3142 pte32 = ptpbase32[ptpindex]; in _vm_gla2gpa()3166 if (atomic_cmpset_32(&ptpbase32[ptpindex], in _vm_gla2gpa()3181 if (atomic_cmpset_32(&ptpbase32[ptpindex], in _vm_gla2gpa()3204 ptpindex = (gla >> 30) & 0x3; in _vm_gla2gpa()3206 pte = ptpbase[ptpindex]; in _vm_gla2gpa()3236 ptpindex = (gla >> ptpshift) & 0x1FF; in _vm_gla2gpa()3239 pte = ptpbase[ptpindex]; in _vm_gla2gpa()3256 if (atomic_cmpset_64(&ptpbase[ptpindex], in _vm_gla2gpa()[all …]