Lines Matching defs:dst_map
162 vm_map_t dst_map,
168 vm_map_t dst_map,
228 vm_map_t dst_map,
233 vm_map_t dst_map,
5060 vm_map_t dst_map,
5080 vm_map_lock(dst_map);
5083 if (!vm_map_lookup_entry(dst_map, dst_addr, &tmp_entry)) {
5084 vm_map_unlock(dst_map);
5088 vm_map_clip_start(dst_map, tmp_entry, vm_map_trunc_page(dst_addr));
5105 vm_map_entry_wait(dst_map, THREAD_UNINT);
5120 vm_map_unlock(dst_map);
5131 vm_map_lock(dst_map);
5132 if(!vm_map_lookup_entry(dst_map, local_end,
5134 vm_map_unlock(dst_map);
5142 vm_map_unlock(dst_map);
5157 vm_map_entry_wait(dst_map, THREAD_UNINT);
5166 vm_map_unlock(dst_map);
5172 if ((next == vm_map_to_entry(dst_map)) ||
5174 vm_map_unlock(dst_map);
5185 vm_map_unlock(dst_map);
5193 vm_map_unlock(dst_map);
5203 * the specified destination region (dst_map, dst_addr).
5250 vm_map_t dst_map,
5282 dst_map, &dst_addr,
5315 vm_map_lock(dst_map);
5321 if (dst_addr >= dst_map->max_offset) {
5322 vm_map_unlock(dst_map);
5327 if (!vm_map_lookup_entry(dst_map, dst_addr, &tmp_entry)) {
5328 vm_map_unlock(dst_map);
5331 vm_map_clip_start(dst_map, tmp_entry, vm_map_trunc_page(dst_addr));
5346 vm_map_entry_wait(dst_map, THREAD_UNINT);
5366 vm_map_unlock(dst_map);
5374 vm_map_lock(dst_map);
5379 if(!vm_map_lookup_entry(dst_map, local_end,
5381 vm_map_unlock(dst_map);
5388 vm_map_unlock(dst_map);
5403 vm_map_entry_wait(dst_map, THREAD_UNINT);
5416 if ((next == vm_map_to_entry(dst_map)) ||
5418 vm_map_unlock(dst_map);
5442 vm_map_unlock(dst_map);
5461 if (!vm_map_lookup_entry( dst_map, dst_addr, &tmp_entry)) {
5462 vm_map_unlock(dst_map);
5498 vm_map_entry_wait(dst_map, THREAD_UNINT);
5500 if(!vm_map_lookup_entry(dst_map, base_addr,
5502 vm_map_unlock(dst_map);
5527 dst_map, entry, sub_end);
5529 dst_map, entry, sub_start);
5572 vm_map_unlock(dst_map);
5640 dst_map->pmap);
5680 vm_map_lock(dst_map);
5681 if(!vm_map_lookup_entry(dst_map,
5683 vm_map_unlock(dst_map);
5694 if ((next == vm_map_to_entry(dst_map)) ||
5696 vm_map_unlock(dst_map);
5755 local_pmap = dst_map->pmap;
5758 dst_map, tmp_entry, copy,
5771 vm_map_unlock(dst_map);
5783 /* ALWAYS UNLOCKS THE dst_map MAP */
5784 if ((kr = vm_map_copy_overwrite_unaligned( dst_map,
5811 vm_map_lock(dst_map);
5813 if (!vm_map_lookup_entry(dst_map,
5815 vm_map_unlock(dst_map);
5820 vm_map_entry_wait(dst_map, THREAD_UNINT);
5825 vm_map_clip_start(dst_map, tmp_entry, vm_map_trunc_page(base_addr));
5840 vm_map_t dst_map,
5846 dst_map, dst_addr, copy, interruptible, (pmap_t) NULL);
5869 * dst_map is locked on entry and is return locked on success,
5875 vm_map_t dst_map,
5893 vm_map_lock_write_to_read(dst_map);
5903 if (entry == vm_map_to_entry(dst_map)) {
5904 vm_map_unlock_read(dst_map);
5942 if (vm_map_lock_read_to_write(dst_map)) {
5943 vm_map_lock_read(dst_map);
5951 vm_map_lock_write_to_read(dst_map);
5959 if (vm_map_lock_read_to_write(dst_map)) {
5960 vm_map_lock_read(dst_map);
5967 vm_map_lock_write_to_read(dst_map);
5974 version.main_timestamp = dst_map->timestamp;
5977 vm_map_unlock_read(dst_map);
5987 dst_map,
6027 vm_map_lock_read(dst_map);
6028 if (version.main_timestamp == dst_map->timestamp) {
6041 vm_map_unlock_read(dst_map);
6052 if (!vm_map_lookup_entry(dst_map, start, &entry))
6054 vm_map_unlock_read(dst_map);
6084 vm_map_t dst_map,
6103 if (entry == vm_map_to_entry(dst_map)) {
6104 vm_map_unlock(dst_map);
6117 vm_map_unlock(dst_map);
6120 assert(entry != vm_map_to_entry(dst_map));
6127 vm_map_unlock(dst_map);
6136 vm_map_clip_end(dst_map, entry, entry->vme_start + copy_size);
6190 pmap_unnest(dst_map->pmap,
6194 if(dst_map->mapped) {
6198 dst_map, entry->vme_start,
6205 dst_map, entry->vme_start,
6213 if(dst_map->mapped) {
6223 pmap_remove(dst_map->pmap,
6276 version.main_timestamp = dst_map->timestamp + 1;
6278 vm_map_unlock(dst_map);
6291 dst_map,
6328 vm_map_lock(dst_map);
6329 if (version.main_timestamp == dst_map->timestamp) {
6332 vm_map_clip_end(dst_map, tmp_entry, start);
6337 if (!vm_map_lookup_entry(dst_map, start, &tmp_entry)) {
6338 vm_map_unlock(dst_map);
6341 vm_map_clip_start(dst_map, tmp_entry, start);
6535 vm_map_t dst_map,
6570 kr = vm_map_enter(dst_map, dst_addr, size,
6589 return(vm_map_copyout_kernel_buffer(dst_map, dst_addr,
6603 vm_map_lock(dst_map);
6604 assert(first_free_is_valid(dst_map));
6605 start = ((last = dst_map->first_free) == vm_map_to_entry(dst_map)) ?
6606 vm_map_min(dst_map) : last->vme_end;
6612 if ((end > dst_map->max_offset) || (end < start)) {
6613 if (dst_map->wait_for_space) {
6614 if (size <= (dst_map->max_offset - dst_map->min_offset)) {
6615 assert_wait((event_t) dst_map,
6617 vm_map_unlock(dst_map);
6622 vm_map_unlock(dst_map);
6626 if ((next == vm_map_to_entry(dst_map)) ||
6640 if (copy->cpy_hdr.entries_pageable != dst_map->hdr.entries_pageable) {
6661 copy->cpy_hdr.entries_pageable = dst_map->hdr.entries_pageable;
6714 pmap_pageable(dst_map->pmap,
6758 if (override_nx(dst_map, entry->alias) && prot)
6763 vm_fault_enter(m, dst_map->pmap, va, prot,
6785 SAVE_HINT_MAP_WRITE(dst_map, vm_map_copy_last_entry(copy));
6787 dst_map->size += size;
6793 vm_map_copy_insert(dst_map, last, copy);
6795 vm_map_unlock(dst_map);