Lines Matching defs:grand
4280 * kern_return_t pmap_nest(grand, subord, vstart, size)
4282 * grand = the pmap that we will nest subord into
4283 * subord = the pmap that goes into the grand
4298 kern_return_t pmap_nest(pmap_t grand, pmap_t subord, addr64_t vstart, addr64_t nstart, uint64_t size) {
4315 (int) grand, (int) subord,
4338 PMAP_LOCK(grand);
4348 pde = pmap_pde(grand, vaddr);
4354 PMAP_UNLOCK(grand);
4355 pmap_expand_pdpt(grand, vaddr);
4356 PMAP_LOCK(grand);
4357 pde = pmap_pde(grand, vaddr);
4361 panic("pmap_nest: no pde, grand %p vaddr 0x%llx", grand, vaddr);
4367 PMAP_UPDATE_TLBS(grand, vstart, vstart + size - 1);
4369 PMAP_UNLOCK(grand);
4377 * kern_return_t pmap_unnest(grand, vaddr)
4379 * grand = the pmap that we will nest subord into
4387 kern_return_t pmap_unnest(pmap_t grand, addr64_t vaddr, uint64_t size) {
4395 (int) grand,
4401 grand, vaddr, size);
4409 PMAP_LOCK(grand);
4411 // invalidate all pdes for segment at vaddr in pmap grand
4417 pde = pmap_pde(grand, (vm_map_offset_t)vaddr);
4418 if (pde == 0) panic("pmap_unnest: no pde, grand %p vaddr 0x%llx\n", grand, vaddr);
4422 PMAP_UPDATE_TLBS(grand, vstart, vend);
4424 PMAP_UNLOCK(grand);