• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /macosx-10.5.8/xnu-1228.15.4/osfmk/ppc/

Lines Matching defs:pa

84 void mapping_phys_unused(ppnum_t pa);
278 * mapping_make(pmap, va, pa, flags, size, prot) - map a virtual address to a real one
285 * pa (physical page number) is the physical page number (i.e., physcial address >> 12). This is
312 addr64_t mapping_make(pmap_t pmap, addr64_t va, ppnum_t pa, unsigned int flags, unsigned int size, vm_prot_t prot) { /* Make an address mapping */
336 if(((addr64_t)pa << 12) & psmask) { /* Make sure we are page aligned on physical */
337 panic("mapping_make: attempt to map unaligned paddr - pmap = %p, pa = %08X, cfg = %d\n",
338 pmap, pa, pcf);
347 physent = mapping_phys_lookup(pa, &pindex); /* Get physical entry */
351 if((pa & 0xFFF80000) == 0x00080000) pattr = mmFlgCInhib | mmFlgGuarded; /* If this page is in I/O range, set I/O attributes */
389 mp->mpPAddr = pa; /* Set the physical page number */
525 * void mapping_protect_phys(ppnum_t pa, vm_prot_t prot) - change the protection of a physical page
537 void mapping_protect_phys(ppnum_t pa, vm_prot_t prot) { /* Change protection of all mappings to page */
542 physent = mapping_phys_lookup(pa, &pindex); /* Get physical entry */
544 panic("mapping_protect_phys: invalid physical page %08X\n", pa);
555 * void mapping_clr_mod(ppnum_t pa) - clears the change bit of a physical page
561 void mapping_clr_mod(ppnum_t pa) { /* Clears the change bit of a physical page */
566 physent = mapping_phys_lookup(pa, &pindex); /* Get physical entry */
568 panic("mapping_clr_mod: invalid physical page %08X\n", pa);
578 * void mapping_set_mod(ppnum_t pa) - set the change bit of a physical page
584 void mapping_set_mod(ppnum_t pa) { /* Sets the change bit of a physical page */
589 physent = mapping_phys_lookup(pa, &pindex); /* Get physical entry */
591 panic("mapping_set_mod: invalid physical page %08X\n", pa);
601 * void mapping_clr_ref(ppnum_t pa) - clears the reference bit of a physical page
607 void mapping_clr_ref(ppnum_t pa) { /* Clears the reference bit of a physical page */
612 physent = mapping_phys_lookup(pa, &pindex); /* Get physical entry */
614 panic("mapping_clr_ref: invalid physical page %08X\n", pa);
624 * void mapping_set_ref(ppnum_t pa) - set the reference bit of a physical page
630 void mapping_set_ref(ppnum_t pa) { /* Sets the reference bit of a physical page */
635 physent = mapping_phys_lookup(pa, &pindex); /* Get physical entry */
637 panic("mapping_set_ref: invalid physical page %08X\n", pa);
647 * boolean_t mapping_tst_mod(ppnum_t pa) - test the change bit of a physical page
653 boolean_t mapping_tst_mod(ppnum_t pa) { /* Tests the change bit of a physical page */
658 physent = mapping_phys_lookup(pa, &pindex); /* Get physical entry */
660 panic("mapping_tst_mod: invalid physical page %08X\n", pa);
670 * boolean_t mapping_tst_ref(ppnum_t pa) - tests the reference bit of a physical page
676 boolean_t mapping_tst_ref(ppnum_t pa) { /* Tests the reference bit of a physical page */
681 physent = mapping_phys_lookup(pa, &pindex); /* Get physical entry */
683 panic("mapping_tst_ref: invalid physical page %08X\n", pa);
693 * unsigned int mapping_tst_refmod(ppnum_t pa) - tests the reference and change bits of a physical page
699 unsigned int mapping_tst_refmod(ppnum_t pa) { /* Tests the reference and change bits of a physical page */
704 physent = mapping_phys_lookup(pa, &pindex); /* Get physical entry */
706 panic("mapping_tst_refmod: invalid physical page %08X\n", pa);
718 * void mapping_clr_refmod(ppnum_t pa, unsigned int mask) - clears the reference and change bits specified
725 void mapping_clr_refmod(ppnum_t pa, unsigned int mask) { /* Clears the reference and change bits of a physical page */
731 physent = mapping_phys_lookup(pa, &pindex); /* Get physical entry */
733 panic("mapping_clr_refmod: invalid physical page %08X\n", pa);
1488 * addr64_t mapping_p2v(pmap_t pmap, ppnum_t pa) - Finds first virtual mapping of a physical page in a space
1496 addr64_t mapping_p2v(pmap_t pmap, ppnum_t pa) { /* Finds first virtual mapping of a physical page in a space */
1504 physent = mapping_phys_lookup(pa, &pindex); /* Get physical entry */
1506 panic("mapping_p2v: invalid physical page %08X\n", pa);
1544 ppnum_t pa = pmap_find_phys(kernel_pmap, (addr64_t)va);
1546 if (!pa)
1548 return (((vm_map_offset_t)pa) << 12) | (va & 0xfff);
1765 void mapping_phys_unused(ppnum_t pa) {
1770 physent = mapping_phys_lookup(pa, &pindex); /* Get physical entry */
1775 panic("mapping_phys_unused: physical page (%08X) in use, physent = %p\n", pa, physent);