Lines Matching refs:dst_map
160 vm_map_t dst_map,
166 vm_map_t dst_map,
226 vm_map_t dst_map,
231 vm_map_t dst_map,
5425 vm_map_t dst_map,
5445 vm_map_lock(dst_map);
5448 if (!vm_map_lookup_entry(dst_map, dst_addr, &tmp_entry)) {
5449 vm_map_unlock(dst_map);
5453 vm_map_clip_start(dst_map, tmp_entry, vm_map_trunc_page(dst_addr));
5470 vm_map_entry_wait(dst_map, THREAD_UNINT);
5485 vm_map_unlock(dst_map);
5496 vm_map_lock(dst_map);
5497 if(!vm_map_lookup_entry(dst_map, local_end,
5499 vm_map_unlock(dst_map);
5507 vm_map_unlock(dst_map);
5522 vm_map_entry_wait(dst_map, THREAD_UNINT);
5531 vm_map_unlock(dst_map);
5537 if ((next == vm_map_to_entry(dst_map)) ||
5539 vm_map_unlock(dst_map);
5550 vm_map_unlock(dst_map);
5558 vm_map_unlock(dst_map);
5568 * the specified destination region (dst_map, dst_addr).
5615 vm_map_t dst_map,
5648 dst_map, &dst_addr,
5682 vm_map_lock(dst_map);
5688 if (dst_addr >= dst_map->max_offset) {
5689 vm_map_unlock(dst_map);
5694 if (!vm_map_lookup_entry(dst_map, dst_addr, &tmp_entry)) {
5695 vm_map_unlock(dst_map);
5698 vm_map_clip_start(dst_map, tmp_entry, vm_map_trunc_page(dst_addr));
5713 vm_map_entry_wait(dst_map, THREAD_UNINT);
5733 vm_map_unlock(dst_map);
5741 vm_map_lock(dst_map);
5746 if(!vm_map_lookup_entry(dst_map, local_end,
5748 vm_map_unlock(dst_map);
5755 vm_map_unlock(dst_map);
5770 vm_map_entry_wait(dst_map, THREAD_UNINT);
5783 if ((next == vm_map_to_entry(dst_map)) ||
5785 vm_map_unlock(dst_map);
5809 vm_map_unlock(dst_map);
5828 if (!vm_map_lookup_entry( dst_map, dst_addr, &tmp_entry)) {
5829 vm_map_unlock(dst_map);
5865 vm_map_entry_wait(dst_map, THREAD_UNINT);
5867 if(!vm_map_lookup_entry(dst_map, base_addr,
5869 vm_map_unlock(dst_map);
5894 dst_map, entry, sub_end);
5896 dst_map, entry, sub_start);
5939 vm_map_unlock(dst_map);
6009 dst_map->pmap,
6056 vm_map_lock(dst_map);
6057 if(!vm_map_lookup_entry(dst_map,
6059 vm_map_unlock(dst_map);
6070 if ((next == vm_map_to_entry(dst_map)) ||
6072 vm_map_unlock(dst_map);
6131 local_pmap = dst_map->pmap;
6134 dst_map, tmp_entry, copy,
6147 vm_map_unlock(dst_map);
6159 /* ALWAYS UNLOCKS THE dst_map MAP */
6160 if ((kr = vm_map_copy_overwrite_unaligned( dst_map,
6187 vm_map_lock(dst_map);
6189 if (!vm_map_lookup_entry(dst_map,
6191 vm_map_unlock(dst_map);
6196 vm_map_entry_wait(dst_map, THREAD_UNINT);
6201 vm_map_clip_start(dst_map, tmp_entry, vm_map_trunc_page(base_addr));
6217 vm_map_t dst_map,
6243 return vm_map_copy_overwrite_nested(dst_map,
6297 vm_map_lock_read(dst_map);
6298 if (! vm_map_lookup_entry(dst_map, dst_addr, &entry)) {
6299 vm_map_unlock_read(dst_map);
6307 vm_map_unlock_read(dst_map);
6311 vm_map_unlock_read(dst_map);
6349 kr = vm_map_copy_overwrite_nested(dst_map,
6391 kr = vm_map_copy_overwrite_nested(dst_map,
6402 kr = vm_map_copy_overwrite_nested(dst_map,
6474 * dst_map is locked on entry and is return locked on success,
6480 vm_map_t dst_map,
6498 vm_map_lock_write_to_read(dst_map);
6508 if (entry == vm_map_to_entry(dst_map)) {
6509 vm_map_unlock_read(dst_map);
6547 if (vm_map_lock_read_to_write(dst_map)) {
6548 vm_map_lock_read(dst_map);
6556 vm_map_lock_write_to_read(dst_map);
6564 if (vm_map_lock_read_to_write(dst_map)) {
6565 vm_map_lock_read(dst_map);
6572 vm_map_lock_write_to_read(dst_map);
6579 version.main_timestamp = dst_map->timestamp;
6582 vm_map_unlock_read(dst_map);
6592 dst_map,
6632 vm_map_lock_read(dst_map);
6633 if (version.main_timestamp == dst_map->timestamp) {
6646 vm_map_unlock_read(dst_map);
6657 if (!vm_map_lookup_entry(dst_map, start, &entry))
6659 vm_map_unlock_read(dst_map);
6693 vm_map_t dst_map,
6712 if (entry == vm_map_to_entry(dst_map)) {
6713 vm_map_unlock(dst_map);
6726 vm_map_unlock(dst_map);
6729 assert(entry != vm_map_to_entry(dst_map));
6736 vm_map_unlock(dst_map);
6745 vm_map_clip_end(dst_map, entry, entry->vme_start + copy_size);
6884 pmap_unnest(dst_map->pmap,
6888 if(dst_map->mapped_in_other_pmaps) {
6892 dst_map, entry->vme_start,
6899 dst_map, entry->vme_start,
6907 if(dst_map->mapped_in_other_pmaps) {
6917 pmap_remove(dst_map->pmap,
7003 version.main_timestamp = dst_map->timestamp + 1;
7005 vm_map_unlock(dst_map);
7018 dst_map,
7055 vm_map_lock(dst_map);
7056 if (version.main_timestamp == dst_map->timestamp &&
7060 vm_map_clip_end(dst_map, tmp_entry, start);
7065 if (!vm_map_lookup_entry(dst_map, start, &tmp_entry)) {
7066 vm_map_unlock(dst_map);
7069 vm_map_clip_start(dst_map, tmp_entry, start);
7261 vm_map_t dst_map,
7296 kr = vm_map_enter(dst_map, dst_addr, size,
7315 return(vm_map_copyout_kernel_buffer(dst_map, dst_addr,
7329 vm_map_lock(dst_map);
7330 if( dst_map->disable_vmentry_reuse == TRUE) {
7331 VM_MAP_HIGHEST_ENTRY(dst_map, entry, start);
7334 assert(first_free_is_valid(dst_map));
7335 start = ((last = dst_map->first_free) == vm_map_to_entry(dst_map)) ?
7336 vm_map_min(dst_map) : last->vme_end;
7343 if ((end > dst_map->max_offset) || (end < start)) {
7344 if (dst_map->wait_for_space) {
7345 if (size <= (dst_map->max_offset - dst_map->min_offset)) {
7346 assert_wait((event_t) dst_map,
7348 vm_map_unlock(dst_map);
7353 vm_map_unlock(dst_map);
7357 if ((next == vm_map_to_entry(dst_map)) ||
7371 if (copy->cpy_hdr.entries_pageable != dst_map->hdr.entries_pageable) {
7390 copy->cpy_hdr.entries_pageable = dst_map->hdr.entries_pageable;
7441 pmap_pageable(dst_map->pmap,
7485 if (override_nx(dst_map, entry->alias) && prot)
7490 vm_fault_enter(m, dst_map->pmap, va, prot, prot,
7512 SAVE_HINT_MAP_WRITE(dst_map, vm_map_copy_last_entry(copy));
7514 dst_map->size += size;
7520 vm_map_copy_insert(dst_map, last, copy);
7522 vm_map_unlock(dst_map);