Lines Matching refs:expansion_size
2692 void pmap_expand_ttb(pmap_t map, vm_offset_t expansion_size)
2697 if (expansion_size <= map->pm_l1_size)
2703 if (expansion_size > 0x4000)
2704 panic("pmap_expand_ttb: attempting to expand past maximum address of %x, map %p, expansion %x\n", 0x4000, map, expansion_size);
2706 switch (expansion_size) {
2716 ret = cpm_allocate(expansion_size, &pages, 0, ((expansion_size / map->pm_l1_size) - 1), FALSE, KMA_LOMEM);
2722 bzero((void *)phys_to_virt(pages->phys_page << PAGE_SHIFT), expansion_size);
2742 map->pm_l1_size = expansion_size;
2744 OSAddAtomic((expansion_size >> PAGE_SHIFT), &inuse_ptepages_count);
2745 OSAddAtomic((expansion_size >> PAGE_SHIFT), &alloc_ptepages_count);
2757 panic("pmap_expand_ttb: invalid expansion size %x\n", expansion_size);
2790 uint32_t expansion_size = ((tte_offset(v)) & ~(PAGE_SIZE - 1)) + PAGE_SIZE;
2791 pmap_expand_ttb(map, expansion_size);