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

Lines Matching refs:mp

843 	register struct mapping 	*mp;
855 mp = hw_purge_phys(pp); /* Toss a map */
856 switch ((unsigned int)mp & mapRetCode) {
858 mapping_free(mp); /* Return mapping to free inventory */
868 pp, pmap, mp); /* Handle failure with our usual lack of tact */
871 mp = hw_purge_space(pp, pmap); /* Toss a map */
872 switch ((unsigned int)mp & mapRetCode) {
874 mapping_free(mp); /* Return mapping to free inventory */
882 pp, pmap, mp); /* Handle failure with our usual lack of tact */
885 } while (mapRtEmpty != ((unsigned int)mp & mapRetCode));
951 mapping_t *mp;
973 mp = hw_purge_phys(pp); /* Toss a map */
974 switch ((unsigned int)mp & mapRetCode) {
976 mapping_free(mp); /* Return mapping to free inventory */
985 pp, mp); /* Handle failure with our usual lack of tact */
987 } while (mapRtEmpty != ((unsigned int)mp & mapRetCode));
1019 mapping_t *mp;
1024 mp = hw_purge_phys(pp); /* Disconnect a mapping */
1025 if (!mp) break; /* All mappings are gone, leave the loop */
1026 switch ((unsigned int)mp & mapRetCode) {
1028 mapping_free(mp); /* Return mapping to free inventory */
1037 pp, mp); /* Handle failure with our usual lack of tact */
1039 } while (mapRtEmpty != ((unsigned int)mp & mapRetCode));
1205 register struct mapping *mp;
1219 mp = mapping_find(pmap, (addr64_t)gva, &nextva,1); /* Find the mapping for this address */
1221 if(!mp) { /* Is the page mapped? */
1226 ppoffset = (ppnum_t)(((gva & -4096LL) - (mp->mpVAddr & -4096LL)) >> 12); /* Get offset from va to base va */
1229 pa = mp->mpPAddr + ppoffset; /* Remember ppage because mapping may vanish after drop call */
1231 mapping_drop_busy(mp); /* We have everything we need from the mapping */
1253 register struct mapping *mp;
1259 mp = mapping_find(pmap, va, &nextva, 1); /* Find the mapping for this address */
1261 if(!mp) { /* Is the page mapped? */
1267 ppoffset = (ppnum_t)(((va & -4096LL) - (mp->mpVAddr & -4096LL)) >> 12); /* Get offset from va to base va */
1269 pa = mp->mpPAddr + ppoffset; /* Get the actual physical address */
1271 mapping_drop_busy(mp); /* We have everything we need from the mapping */
1657 mapping_t *mp;
1672 mp = mapping_alloc(nlists); /* Get a spare mapping block */
1674 mp->mpFlags = 0x01000000 | mpNest | mpPerm | mpBSu | nlists; /* Make this a permanent nested pmap with a 32MB basic size unit */
1676 mp->mpSpace = subord->space; /* Set the address space/pmap lookup ID */
1677 mp->u.mpBSize = msize; /* Set the size */
1678 mp->mpPte = 0; /* Set the PTE invalid */
1679 mp->mpPAddr = 0; /* Set the physical page number */
1680 mp->mpVAddr = vstart; /* Set the address */
1681 mp->mpNestReloc = nstart - vstart; /* Set grand to nested vaddr relocation value */
1683 colladdr = hw_add_map(grand, mp); /* Go add the mapping to the pmap */
1711 mapping_t *mp;
1722 mp = mapping_find(grand, vaddr, &nextva, 0); /* Find the nested map */
1724 if(((unsigned int)mp & mapRetCode) != mapRtOK) { /* See if it was even nested */
1728 if((mp->mpFlags & mpType) != mpNest) { /* Did we find something other than a nest? */
1732 if(mp->mpVAddr != vaddr) { /* Make sure the address is the same */
1736 (void)hw_atomic_and(&mp->mpFlags, ~mpPerm); /* Show that this mapping is now removable */
1738 mapping_drop_busy(mp); /* Go ahead and release the mapping now */
1812 mapping_t *mp;
1816 mp = mapping_alloc(nlists); /* Get a spare mapping block */
1818 mp->mpFlags = 0x01000000 | mpLinkage | mpPerm | mpBSu | nlists; /* Make this a permanent nested pmap with a 32MB basic size unit */
1820 mp->mpSpace = kernel_pmap->space; /* Set the address space/pmap lookup ID */
1821 mp->u.mpBSize = 15; /* Set the size to 2 segments in 32MB chunks - 1 */
1822 mp->mpPte = 0; /* Means nothing */
1823 mp->mpPAddr = 0; /* Means nothing */
1824 mp->mpVAddr = lowGlo.lgUMWvaddr; /* Set the address range we cover */
1825 mp->mpNestReloc = 0; /* Means nothing */
1827 colladdr = hw_add_map(kernel_pmap, mp); /* Go add the mapping to the pmap */
1891 mapping_t *mp;
1904 mp = (mapping_t *)&(getPerProc()->ppUMWmp); /* Make up for C */
1906 mp->mpNestReloc = reladd; /* Relocation from user to kernel */
1909 mp->mpSpace = map->pmap->space; /* Set the address space/pmap lookup ID */
2041 mapping_t *mp;
2049 mp = hw_find_map(pmap, 0xFFFFFFFFF0000000ULL, &nextva); /* Find the mapping for this address */
2050 if((unsigned int)mp == mapRtBadLk) { /* Did we lock up ok? */
2051 panic("pmap_unmap_sharedpage: mapping lock failure - rc = %p, pmap = %p\n", mp, pmap); /* Die... */
2055 if(mp) {
2056 gotnest = ((mp->mpFlags & mpType) == mpNest);
2058 mapping_drop_busy(mp); /* We have everything we need from the mapping */