Lines Matching refs:pages

443 vm_thread_stack_create(struct domainset *ds, int pages)  in vm_thread_stack_create()  argument
452 obj = vm_thread_kstack_size_to_obj(pages); in vm_thread_stack_create()
460 ks = vm_thread_alloc_kstack_kva(ptoa(pages + KSTACK_GUARD_PAGES), in vm_thread_stack_create()
469 if (vm_thread_stack_back(ks, ma, pages, req, domain) != 0) { in vm_thread_stack_create()
471 ptoa(pages + KSTACK_GUARD_PAGES), domain); in vm_thread_stack_create()
478 for (i = 0; i < pages; i++) in vm_thread_stack_create()
480 pmap_qenter(ks, ma, pages); in vm_thread_stack_create()
488 vm_thread_stack_dispose(vm_offset_t ks, int pages) in vm_thread_stack_dispose() argument
493 vm_object_t obj = vm_thread_kstack_size_to_obj(pages); in vm_thread_stack_dispose()
495 pindex = vm_kstack_pindex(ks, pages); in vm_thread_stack_dispose()
497 pmap_qremove(ks, pages); in vm_thread_stack_dispose()
499 for (i = 0; i < pages; i++) { in vm_thread_stack_dispose()
511 kasan_mark((void *)ks, ptoa(pages), ptoa(pages), 0); in vm_thread_stack_dispose()
513 ptoa(pages + KSTACK_GUARD_PAGES), domain); in vm_thread_stack_dispose()
520 vm_thread_new(struct thread *td, int pages) in vm_thread_new() argument
526 if (pages <= 1) in vm_thread_new()
527 pages = kstack_pages; in vm_thread_new()
528 else if (pages > KSTACK_MAX_PAGES) in vm_thread_new()
529 pages = KSTACK_MAX_PAGES; in vm_thread_new()
532 if (pages == kstack_pages && kstack_cache != NULL) in vm_thread_new()
542 pages); in vm_thread_new()
550 td->td_kstack_pages = pages; in vm_thread_new()
562 int pages; in vm_thread_dispose() local
564 pages = td->td_kstack_pages; in vm_thread_dispose()
569 if (pages == kstack_pages) { in vm_thread_dispose()
570 kasan_mark((void *)ks, 0, ptoa(pages), KASAN_KSTACK_FREED); in vm_thread_dispose()
573 vm_thread_stack_dispose(ks, pages); in vm_thread_dispose()