Lines Matching refs:map
153 * Allocates a region from the kernel address map and physical pages
207 * Allocates a region from the kernel address map and physically
267 * Allocates a map to manage a subrange
273 * min, max Returned endpoints of map
424 * Allocates pageable memory from a sub-map of the kernel. If the submap
430 kmap_alloc_wait(map, size)
431 vm_map_t map;
442 * To make this work for more than one map, use the map's lock
445 vm_map_lock(map);
446 if (vm_map_findspace(map, vm_map_min(map), size, &addr) == 0)
449 if (vm_map_max(map) - vm_map_min(map) < size) {
450 vm_map_unlock(map);
454 map->needs_wakeup = TRUE;
455 vm_map_unlock_and_wait(map, 0);
457 vm_map_insert(map, NULL, 0, addr, addr + size, VM_PROT_ALL,
459 vm_map_unlock(map);
467 * waiting for memory in that map.
470 kmap_free_wakeup(map, addr, size)
471 vm_map_t map;
476 vm_map_lock(map);
477 (void) vm_map_delete(map, trunc_page(addr), round_page(addr + size));
478 if (map->needs_wakeup) {
479 map->needs_wakeup = FALSE;
480 vm_map_wakeup(map);
482 vm_map_unlock(map);
511 * Create the kernel map; insert a mapping covering kernel text,
513 * new map will thus map the range between VM_MIN_KERNEL_ADDRESS and