Lines Matching defs:start

488 map_max_pages_need(vm_translation_map */*map*/, addr_t start, addr_t end)
492 // If start == 0, the actual base address is not yet known to the caller
494 if (start == 0) {
496 start = (1023) * B_PAGE_SIZE;
497 end += start;
499 pgdirs = VADDR_TO_PRENT(end) + 1 - VADDR_TO_PRENT(start);
509 need += (VADDR_TO_PDENT(end) + 1 - VADDR_TO_PDENT(start) + NUM_PAGETBL_PER_PAGE - 1) / NUM_PAGETBL_PER_PAGE;
646 unmap_tmap(vm_translation_map *map, addr_t start, addr_t end)
655 start = ROUNDDOWN(start, B_PAGE_SIZE);
658 TRACE(("unmap_tmap: asked to free pages 0x%lx to 0x%lx\n", start, end));
661 if (start >= end)
664 index = VADDR_TO_PRENT(start);
666 // no pagedir here, move the start up to access the next page table
667 start = ROUNDUP(start + 1, B_PAGE_SIZE);
679 index = VADDR_TO_PDENT(start);
681 // no pagetable here, move the start up to access the next page table
682 start = ROUNDUP(start + 1, B_PAGE_SIZE);
695 for (index = VADDR_TO_PTENT(start);
696 (index < NUM_PAGEENT_PER_TBL) && (start < end);
697 index++, start += B_PAGE_SIZE) {
703 TRACE(("unmap_tmap: removing page 0x%lx\n", start));
709 map->arch_data->pages_to_invalidate[map->arch_data->num_invalidate_pages] = start;
833 // add offset from start of page
868 protect_tmap(vm_translation_map *map, addr_t start, addr_t end, uint32 attributes)
877 start = ROUNDDOWN(start, B_PAGE_SIZE);
880 TRACE(("protect_tmap: pages 0x%lx to 0x%lx, attributes %lx\n", start, end, attributes));
883 if (start >= end)
886 index = VADDR_TO_PRENT(start);
888 // no pagedir here, move the start up to access the next page table
889 start = ROUNDUP(start + 1, B_PAGE_SIZE);
901 index = VADDR_TO_PDENT(start);
903 // no pagetable here, move the start up to access the next page table
904 start = ROUNDUP(start + 1, B_PAGE_SIZE);
917 for (index = VADDR_TO_PTENT(start);
918 (index < NUM_PAGEENT_PER_TBL) && (start < end);
919 index++, start += B_PAGE_SIZE) {
926 TRACE(("protect_tmap: protect page 0x%lx\n", start));
935 map->arch_data->pages_to_invalidate[map->arch_data->num_invalidate_pages] = start;
1000 // add offset from start of page