Lines Matching refs:src_entry
6979 vm_map_entry_t src_entry = tmp_entry; /* Top-level entry */
7033 src_entry = tmp_entry;
7075 if (((src_entry->protection & VM_PROT_READ) == VM_PROT_NONE &&
7077 (src_entry->max_protection & VM_PROT_READ) == 0)
7084 vm_map_clip_end(src_map, src_entry, src_end);
7086 src_size = src_entry->vme_end - src_start;
7087 src_object = src_entry->object.vm_object;
7088 src_offset = src_entry->offset;
7089 was_wired = (src_entry->wired_count != 0);
7091 vm_map_entry_copy(new_entry, src_entry);
7143 prot = src_entry->protection & ~VM_PROT_WRITE;
7145 if (override_nx(src_map, src_entry->alias) && prot)
7152 (src_entry->is_shared ?
7155 src_entry->vme_start,
7269 src_entry = tmp_entry;
7270 vm_map_clip_start(src_map, src_entry, src_start);
7272 if ((((src_entry->protection & VM_PROT_READ) == VM_PROT_NONE) &&
7274 ((src_entry->max_protection & VM_PROT_READ) == 0))
7277 if (src_entry->vme_end < new_entry->vme_end)
7278 src_size = (new_entry->vme_end = src_entry->vme_end) - src_start;
7280 if ((src_entry->object.vm_object != src_object) ||
7281 (src_entry->offset != src_offset) ) {
7292 tmp_entry = src_entry;
7352 src_entry = tmp_entry->vme_prev;
7363 tmp_entry = src_entry->vme_next;
10013 vm_map_entry_t src_entry; /* result of last map lookup */
10062 if (! vm_map_lookup_entry(map, src_start, &src_entry)) {
10067 if (src_start < src_entry->vme_start ||
10068 (mapped_size && src_start != src_entry->vme_start)) {
10073 if(src_entry->is_sub_map) {
10079 if (src_end > src_entry->vme_end)
10080 tmp_size -= (src_end - src_entry->vme_end);
10082 entry_size = (vm_map_size_t)(src_entry->vme_end -
10083 src_entry->vme_start);
10085 if(src_entry->is_sub_map) {
10086 vm_map_reference(src_entry->object.sub_map);
10089 object = src_entry->object.vm_object;
10093 src_entry->offset = 0;
10094 src_entry->object.vm_object = object;
10102 assert(!src_entry->needs_copy);
10103 } else if (src_entry->needs_copy || object->shadowed ||
10105 !src_entry->is_shared &&
10108 vm_object_shadow(&src_entry->object.vm_object,
10109 &src_entry->offset,
10112 if (!src_entry->needs_copy &&
10113 (src_entry->protection & VM_PROT_WRITE)) {
10116 prot = src_entry->protection & ~VM_PROT_WRITE;
10118 if (override_nx(map, src_entry->alias) && prot)
10123 src_entry->object.vm_object,
10124 src_entry->offset,
10127 src_entry->vme_start,
10131 src_entry->vme_start,
10132 src_entry->vme_end,
10137 object = src_entry->object.vm_object;
10138 src_entry->needs_copy = FALSE;
10152 offset = src_entry->offset + (src_start - src_entry->vme_start);
10155 vm_map_entry_copy(new_entry, src_entry);
10168 src_entry->is_shared = TRUE;
10173 } else if (src_entry->is_sub_map) {
10177 } else if (src_entry->wired_count == 0 &&
10191 if (src_needs_copy && !src_entry->needs_copy) {
10194 prot = src_entry->protection & ~VM_PROT_WRITE;
10196 if (override_nx(map, src_entry->alias) && prot)
10202 ((src_entry->is_shared
10205 src_entry->vme_start,
10208 src_entry->needs_copy = TRUE;
10231 if (src_entry->wired_count > 0) {
10295 *cur_protection &= src_entry->protection;
10296 *max_protection &= src_entry->max_protection;
10309 for (src_entry = map_header->links.next;
10310 src_entry != (struct vm_map_entry *)&map_header->links;
10311 src_entry = new_entry) {
10312 new_entry = src_entry->vme_next;
10313 _vm_map_entry_unlink(map_header, src_entry);
10314 vm_object_deallocate(src_entry->object.vm_object);
10315 _vm_map_entry_dispose(map_header, src_entry);