Lines Matching defs:pt

226 	page_table_entry *pt;
245 pt = (page_table_entry *)pa;
248 TRACE(("%s: pt[%d].type %d\n", __FUNCTION__, index,
249 pt?(pt[index].type):-1));
250 if (pt && pt[index].type == DT_INDIRECT) {
251 pi = (page_indirect_entry *)pt;
253 pt = (page_table_entry *)pa;
257 if (pt && pt[index].type == DT_PAGE) {
258 *_physicalAddress = PTE_TO_PA(pt[index]);
521 page_table_entry *pt;
622 pt = (page_table_entry *)pt_pg;
624 pt += (dindex % NUM_PAGETBL_PER_PAGE) * NUM_PAGEENT_PER_TBL;
628 put_page_table_entry_in_pgtable(&pt[pindex], pa, attributes,
648 page_table_entry *pt;
691 pt = (page_table_entry *)pt_pg;
693 pt += (index % NUM_PAGETBL_PER_PAGE) * NUM_PAGEENT_PER_TBL;
698 if (pt[index].type != DT_PAGE && pt[index].type != DT_INDIRECT) {
705 pt[index].type = DT_INVALID;
728 page_table_entry *pt;
739 arch_cpu_invalidate_TLB_range((addr_t)pt, (addr_t)pt);
745 arch_cpu_invalidate_TLB_range((addr_t)pt, (addr_t)pt);
746 pt = (page_table_entry *)sQueryPage;
749 if (pt && pt[index].type == DT_INDIRECT) {
750 pi = (page_indirect_entry *)pt;
752 arch_cpu_invalidate_TLB_range((addr_t)pt, (addr_t)pt);
753 pt = (page_table_entry *)sQueryPage;
757 if (pt /*&& pt[index].type == DT_PAGE*/) {
758 *_physical = PTE_TO_PA(pt[index]);
761 *_flags |= ((pt[index].write_protect ? 0 : B_KERNEL_WRITE_AREA) | B_KERNEL_READ_AREA)
762 | (pt[index].dirty ? PAGE_MODIFIED : 0)
763 | (pt[index].accessed ? PAGE_ACCESSED : 0)
764 | ((pt[index].type == DT_PAGE) ? PAGE_PRESENT : 0);
780 page_table_entry *pt;
818 pt = (page_table_entry *)pt_pg;
820 pt += (index % NUM_PAGETBL_PER_PAGE) * NUM_PAGEENT_PER_TBL;
825 if (pt[index].type == DT_INDIRECT) {
826 pi = (page_indirect_entry *)pt;
832 pt = (page_table_entry *)pt_pg;
834 pt += PIE_TO_PO(pi[index]) / sizeof(page_table_entry);
839 *_physical = PTE_TO_PA(pt[index]);
842 if (!pt[index].supervisor)
843 *_flags |= (pt[index].write_protect ? 0 : B_WRITE_AREA) | B_READ_AREA;
845 *_flags |= (pt[index].write_protect ? 0 : B_KERNEL_WRITE_AREA)
847 | (pt[index].dirty ? PAGE_MODIFIED : 0)
848 | (pt[index].accessed ? PAGE_ACCESSED : 0)
849 | ((pt[index].type == DT_PAGE) ? PAGE_PRESENT : 0);
870 page_table_entry *pt;
913 pt = (page_table_entry *)pt_pg;
915 pt += (index % NUM_PAGETBL_PER_PAGE) * NUM_PAGEENT_PER_TBL;
921 if (pt[index].type != DT_PAGE /*&& pt[index].type != DT_INDIRECT*/) {
928 pt[index].supervisor = (attributes & B_USER_PROTECTION) == 0;
930 pt[index].write_protect = (attributes & B_WRITE_AREA) == 0;
932 pt[index].write_protect = (attributes & B_KERNEL_WRITE_AREA) == 0;
950 page_table_entry *pt;
985 pt = (page_table_entry *)pt_pg;
987 pt += (index % NUM_PAGETBL_PER_PAGE) * NUM_PAGEENT_PER_TBL;
992 if (pt[index].type == DT_INDIRECT) {
993 pi = (page_indirect_entry *)pt;
999 pt = (page_table_entry *)pt_pg;
1001 pt += PIE_TO_PO(pi[index]) / sizeof(page_table_entry);
1008 pt[index].dirty = 0;
1012 pt[index].accessed = 0;
1067 page_table_entry *pt;
1075 pt = &iospace_pgtables[(va - sIOSpaceBase) / B_PAGE_SIZE];
1077 init_page_table_entry(&pt[i]);
1078 pt[i].addr = TA_TO_PTEA(pa);
1079 pt[i].supervisor = 1;
1080 pt[i].write_protect = 0;
1081 pt[i].type = DT_PAGE;
1085 pt[i].global = 1;
1450 page_table_entry *pt;
1498 pt = (page_table_entry *)tbl;
1500 *(page_table_entry_scalar *)(&pt[j]) = DFL_PAGEENT_VAL;
1504 pt = (page_table_entry *)PDE_TO_TA(pd[index]);
1507 put_page_table_entry_in_pgtable(&pt[index], pa, attributes,