Lines Matching defs:hint

308     vaddr_t hint, vsize_t sz, vaddr_t align, vaddr_t offset,
317 KASSERT((hint & PAGE_MASK) == 0 && (high & PAGE_MASK) == 0 &&
325 if (hint == 0)
326 hint = (direction == 1 ? low : high);
327 else if (hint > high) {
330 hint = high;
331 } else if (hint < low) {
334 hint = low;
338 hint - (direction == -1 ? 1 : 0)); entry != NULL;
352 if (hint >= low_addr && hint <= high_addr) {
353 *addr_out = hint;
375 vsize_t sz, vaddr_t align, vaddr_t offset, vm_prot_t prot, vaddr_t hint)
382 hint &= ~((vaddr_t)PAGE_MASK);
383 if (hint != 0 &&
384 !(hint >= uaddr->uaddr_minaddr && hint < uaddr->uaddr_maxaddr))
390 entry_out, addr_out, sz, align, offset, prot, hint);
445 * If hint is set, search will start at the hint position.
471 vm_prot_t prot, vaddr_t hint)
526 vm_prot_t prot, vaddr_t hint)
552 /* Select a hint. */
553 if (hint == 0)
554 hint = uvm_map_hint(vm, prot, minaddr, maxaddr);
555 /* Clamp hint to uaddr range. */
556 hint = MIN(MAX(hint, minaddr), maxaddr);
558 /* Align hint to align,offset parameters. */
559 tmp = hint;
560 hint = uvm_addr_align_forward(tmp, align, offset);
562 if (hint < tmp || hint > maxaddr)
567 hint -= MIN(hint, before_gap);
571 * at or after hint with sufficient space.
579 entry = uvm_map_entrybyaddr(&map->addr, hint);
588 if (VMMAP_FREE_END(entry) > hint &&
595 if (hint >= low_addr && hint <= high_addr)
596 *addr_out = hint;
721 vsize_t sz, vaddr_t align, vaddr_t offset, vm_prot_t prot, vaddr_t hint)
808 vm_prot_t prot, vaddr_t hint)
1090 vm_prot_t prot, vaddr_t hint)
1100 * When we have a hint, use the rnd allocator that finds the
1101 * area that is closest to the hint, if there is such an area.
1103 if (hint != 0) {
1105 sz, align, offset, prot, hint) == 0)
1340 vm_prot_t prot, vaddr_t hint)