Lines Matching refs:hint

308     vaddr_t hint, vsize_t sz, vaddr_t align, vaddr_t offset,  in uvm_addr_linsearch()  argument
317 KASSERT((hint & PAGE_MASK) == 0 && (high & PAGE_MASK) == 0 && in uvm_addr_linsearch()
325 if (hint == 0) in uvm_addr_linsearch()
326 hint = (direction == 1 ? low : high); in uvm_addr_linsearch()
327 else if (hint > high) { in uvm_addr_linsearch()
330 hint = high; in uvm_addr_linsearch()
331 } else if (hint < low) { in uvm_addr_linsearch()
334 hint = low; in uvm_addr_linsearch()
338 hint - (direction == -1 ? 1 : 0)); entry != NULL; in uvm_addr_linsearch()
352 if (hint >= low_addr && hint <= high_addr) { in uvm_addr_linsearch()
353 *addr_out = hint; in uvm_addr_linsearch()
375 vsize_t sz, vaddr_t align, vaddr_t offset, vm_prot_t prot, vaddr_t hint) in uvm_addr_invoke() argument
382 hint &= ~((vaddr_t)PAGE_MASK); in uvm_addr_invoke()
383 if (hint != 0 && in uvm_addr_invoke()
384 !(hint >= uaddr->uaddr_minaddr && hint < uaddr->uaddr_maxaddr)) in uvm_addr_invoke()
390 entry_out, addr_out, sz, align, offset, prot, hint); in uvm_addr_invoke()
471 vm_prot_t prot, vaddr_t hint)
526 vm_prot_t prot, vaddr_t hint) in uaddr_rnd_select() argument
553 if (hint == 0) in uaddr_rnd_select()
554 hint = uvm_map_hint(vm, prot, minaddr, maxaddr); in uaddr_rnd_select()
556 hint = MIN(MAX(hint, minaddr), maxaddr); in uaddr_rnd_select()
559 tmp = hint; in uaddr_rnd_select()
560 hint = uvm_addr_align_forward(tmp, align, offset); in uaddr_rnd_select()
562 if (hint < tmp || hint > maxaddr) in uaddr_rnd_select()
567 hint -= MIN(hint, before_gap); in uaddr_rnd_select()
579 entry = uvm_map_entrybyaddr(&map->addr, hint); in uaddr_rnd_select()
588 if (VMMAP_FREE_END(entry) > hint && in uaddr_rnd_select()
595 if (hint >= low_addr && hint <= high_addr) in uaddr_rnd_select()
596 *addr_out = hint; in uaddr_rnd_select()
721 vsize_t sz, vaddr_t align, vaddr_t offset, vm_prot_t prot, vaddr_t hint) in uaddr_kbootstrap_select() argument
808 vm_prot_t prot, vaddr_t hint) in uaddr_bestfit_select() argument
1090 vm_prot_t prot, vaddr_t hint) in uaddr_pivot_select() argument
1103 if (hint != 0) { in uaddr_pivot_select()
1105 sz, align, offset, prot, hint) == 0) in uaddr_pivot_select()
1340 vm_prot_t prot, vaddr_t hint) in uaddr_stack_brk_select() argument