Lines Matching defs:start

180 M68KVMTranslationMap040::MaxPagesNeededToMap(addr_t start, addr_t end) const
185 // If start == 0, the actual base address is not yet known to the caller and
187 if (start == 0) {
190 start = 1023 * B_PAGE_SIZE;
194 pgdirs = VADDR_TO_PRENT(end) + 1 - VADDR_TO_PRENT(start);
204 need += (VADDR_TO_PDENT(end) + 1 - VADDR_TO_PDENT(start) + NUM_PAGETBL_PER_PAGE - 1) / NUM_PAGETBL_PER_PAGE;
348 M68KVMTranslationMap040::Unmap(addr_t start, addr_t end)
350 start = ROUNDDOWN(start, B_PAGE_SIZE);
351 if (start >= end)
354 TRACE("M68KVMTranslationMap040::Unmap: asked to free pages 0x%lx to 0x%lx\n", start, end);
362 index = VADDR_TO_PRENT(start);
364 // no pagedir here, move the start up to access the next page
366 start = ROUNDUP(start + 1, kPageDirAlignment);
379 index = VADDR_TO_PDENT(start);
381 // no pagedir here, move the start up to access the next page
383 start = ROUNDUP(start + 1, kPageTableAlignment);
392 for (index = VADDR_TO_PTENT(start);
393 (index < NUM_PAGEENT_PER_TBL) && (start < end);
394 index++, start += B_PAGE_SIZE) {
401 TRACE("::Unmap: removing page 0x%lx\n", start);
411 InvalidatePage(start);
414 } while (start != 0 && start < end);
512 addr_t start = base;
516 B_PRIxADDR ")\n", area, start, end);
525 index = VADDR_TO_PRENT(start);
527 // no page table here, move the start up to access the next page
529 start = ROUNDUP(start + 1, kPageDirAlignment);
539 index = VADDR_TO_PDENT(start);
541 // no page table here, move the start up to access the next page
543 start = ROUNDUP(start + 1, kPageTableAlignment);
550 for (index = VADDR_TO_PTENT(start); (index < 1024) && (start < end);
551 index++, start += B_PAGE_SIZE) {
572 InvalidatePage(start);
627 } while (start != 0 && start < end);
889 M68KVMTranslationMap040::Protect(addr_t start, addr_t end, uint32 attributes,
892 start = ROUNDDOWN(start, B_PAGE_SIZE);
893 if (start >= end)
896 TRACE("protect_tmap: pages 0x%lx to 0x%lx, attributes %lx\n", start, end,
913 int index = VADDR_TO_PDENT(start);
915 // no page table here, move the start up to access the next page
917 start = ROUNDUP(start + 1, kPageTableAlignment);
927 for (index = VADDR_TO_PTENT(start); index < 1024 && start < end;
928 index++, start += B_PAGE_SIZE) {
935 TRACE("protect_tmap: protect page 0x%lx\n", start);
958 InvalidatePage(start);
961 } while (start != 0 && start < end);