Lines Matching refs:tmp_entry
169 vm_map_entry_t tmp_entry,
1666 vm_map_entry_t tmp_entry;
1667 if (vm_map_lookup_entry(map, start, &tmp_entry))
1668 start = tmp_entry->vme_end;
1669 entry = tmp_entry;
3514 struct vm_map_entry *first_entry, tmp_entry;
3890 tmp_entry = *entry;
3906 &tmp_entry, map_pmap, pmap_addr);
3909 &tmp_entry, map->pmap,
3910 tmp_entry.vme_start);
3922 if (!vm_map_lookup_entry(map, tmp_entry.vme_start,
3932 (entry->vme_start < tmp_entry.vme_end)) {
4030 struct vm_map_entry *first_entry, tmp_entry;
4165 tmp_entry = *entry;/* see comment in vm_map_wire() */
4182 tmp_entry.vme_start,
4195 * tmp_entry). Also check for waiters.
4198 (entry->vme_start < tmp_entry.vme_end)) {
4221 tmp_entry.vme_start,
4272 tmp_entry = *entry; /* see comment in vm_map_wire() */
4281 &tmp_entry, FALSE, map_pmap, pmap_addr);
4284 &tmp_entry, FALSE, map->pmap,
4285 tmp_entry.vme_start);
4294 if (!vm_map_lookup_entry(map, tmp_entry.vme_start,
4306 * were in the original entry (saved in tmp_entry). Also
4310 (entry->vme_start < tmp_entry.vme_end)) {
4509 struct vm_map_entry *first_entry, tmp_entry;
4719 tmp_entry = *entry;
4728 if (tmp_entry.is_sub_map) {
4735 sub_map = tmp_entry.object.sub_map;
4736 sub_start = tmp_entry.offset;
4737 sub_end = sub_start + (tmp_entry.vme_end -
4738 tmp_entry.vme_start);
4739 if (tmp_entry.use_pmap) {
4741 pmap_addr = tmp_entry.vme_start;
4744 pmap_addr = tmp_entry.vme_start;
4752 vm_fault_unwire(map, &tmp_entry,
4753 tmp_entry.object.vm_object == kernel_object,
4754 map->pmap, tmp_entry.vme_start);
4781 (entry->vme_start < tmp_entry.vme_end)) {
5065 vm_map_entry_t tmp_entry;
5083 if (!vm_map_lookup_entry(dst_map, dst_addr, &tmp_entry)) {
5088 vm_map_clip_start(dst_map, tmp_entry, vm_map_trunc_page(dst_addr));
5089 assert(!tmp_entry->use_pmap); /* clipping did unnest if needed */
5091 for (entry = tmp_entry;;) {
5133 &tmp_entry)) {
5137 entry = tmp_entry;
5257 vm_map_entry_t tmp_entry;
5327 if (!vm_map_lookup_entry(dst_map, dst_addr, &tmp_entry)) {
5331 vm_map_clip_start(dst_map, tmp_entry, vm_map_trunc_page(dst_addr));
5332 for (entry = tmp_entry;;) {
5450 * the next entry to be overwritten is "tmp_entry"
5459 /* re-calculate tmp_entry since we've had the map */
5461 if (!vm_map_lookup_entry( dst_map, dst_addr, &tmp_entry)) {
5480 for (entry = tmp_entry; copy_size == 0;) {
5485 /* tmp_entry and base address are moved along */
5487 /* entry can outpase tmp_entry, and the copy_size */
5501 &tmp_entry)) {
5506 entry = tmp_entry;
5682 local_end, &tmp_entry)) {
5686 entry = tmp_entry;
5758 dst_map, tmp_entry, copy,
5785 tmp_entry, copy, base_addr)) != KERN_SUCCESS) {
5814 base_addr, &tmp_entry)) {
5818 if (tmp_entry->in_transition) {
5825 vm_map_clip_start(dst_map, tmp_entry, vm_map_trunc_page(base_addr));
5827 entry = tmp_entry;
6085 vm_map_entry_t tmp_entry,
6101 entry = tmp_entry;
6151 assert((tmp_entry->vme_end - tmp_entry->vme_start) == size);
6181 start = tmp_entry->vme_end;
6182 tmp_entry = tmp_entry->vme_next;
6259 start = tmp_entry->vme_end;
6260 tmp_entry = tmp_entry->vme_next;
6330 /* We can safely use saved tmp_entry value */
6332 vm_map_clip_end(dst_map, tmp_entry, start);
6333 tmp_entry = tmp_entry->vme_next;
6335 /* Must do lookup of tmp_entry */
6337 if (!vm_map_lookup_entry(dst_map, start, &tmp_entry)) {
6341 vm_map_clip_start(dst_map, tmp_entry, start);
6863 vm_map_entry_t tmp_entry; /* Result of last map lookup --
6965 if (!vm_map_lookup_entry(src_map, src_start, &tmp_entry))
6967 if(!tmp_entry->is_sub_map) {
6968 vm_map_clip_start(src_map, tmp_entry, src_start);
6979 vm_map_entry_t src_entry = tmp_entry; /* Top-level entry */
7003 while(tmp_entry->is_sub_map) {
7013 submap_len = tmp_entry->vme_end - src_start;
7018 src_start -= tmp_entry->vme_start;
7019 src_start += tmp_entry->offset;
7021 src_map = tmp_entry->object.sub_map;
7028 src_map, src_start, &tmp_entry))
7031 if(!tmp_entry->is_sub_map)
7032 vm_map_clip_start(src_map, tmp_entry, src_start);
7033 src_entry = tmp_entry;
7037 if ((tmp_entry->object.vm_object != VM_OBJECT_NULL) &&
7038 (tmp_entry->object.vm_object->phys_contiguous)) {
7063 &tmp_entry)) {
7066 if (!tmp_entry->is_sub_map)
7067 vm_map_clip_start(src_map, tmp_entry, src_start);
7068 continue; /* restart w/ new tmp_entry */
7126 (!was_wired && !map_share && !tmp_entry->is_shared)) &&
7140 if (src_needs_copy && !tmp_entry->needs_copy) {
7158 tmp_entry->needs_copy = TRUE;
7204 (tmp_entry->is_shared || map_share)) {
7265 if (!vm_map_lookup_entry(src_map, src_start, &tmp_entry)) {
7269 src_entry = tmp_entry;
7292 tmp_entry = src_entry;
7347 src_map, src_start, &tmp_entry))
7352 src_entry = tmp_entry->vme_prev;
7363 tmp_entry = src_entry->vme_next;
7364 if ((tmp_entry->vme_start != src_start) ||
7365 (tmp_entry == vm_map_to_entry(src_map)))
7394 tmp_entry = vm_map_copy_first_entry(copy);
7395 while (tmp_entry != vm_map_copy_to_entry(copy)) {
7396 tmp_entry->vme_end = copy_addr +
7397 (tmp_entry->vme_end - tmp_entry->vme_start);
7398 tmp_entry->vme_start = copy_addr;
7399 copy_addr += tmp_entry->vme_end - tmp_entry->vme_start;
7400 tmp_entry = (struct vm_map_entry *)tmp_entry->vme_next;
7969 vm_map_entry_t tmp_entry;
7975 if (!vm_map_lookup_entry(map, vaddr, &tmp_entry)) {
7984 entry = tmp_entry;
8460 vm_map_entry_t tmp_entry;
8545 &tmp_entry)) {
8546 /* tmp_entry contains the address we're looking for */
8547 curr_entry = tmp_entry;
8550 * The address is not mapped. "tmp_entry" is the
8554 curr_entry = tmp_entry->vme_next;
8575 tmp_entry = curr_entry->vme_next;
8576 if (tmp_entry == vm_map_to_entry(curr_map)) {
8578 } else if (tmp_entry->vme_start >= curr_max_offset) {
8580 * tmp_entry is beyond the scope of what we mapped of
8584 (tmp_entry->vme_start + curr_offset <=
8589 * use this "tmp_entry" as the new "next_entry".
8597 next_entry = tmp_entry;
8793 vm_map_entry_t tmp_entry;
8816 if (!vm_map_lookup_entry(map, start, &tmp_entry)) {
8817 if ((entry = tmp_entry->vme_next) == vm_map_to_entry(map)) {
8822 entry = tmp_entry;
8861 if (!vm_map_lookup_entry(map, start, &tmp_entry)) {
8862 if ((entry = tmp_entry->vme_next) == vm_map_to_entry(map)) {
8867 entry = tmp_entry;
8905 if (!vm_map_lookup_entry(map, start, &tmp_entry)) {
8906 if ((entry = tmp_entry->vme_next) == vm_map_to_entry(map)) {
8911 entry = tmp_entry;
8950 if (!vm_map_lookup_entry(map, start, &tmp_entry)) {
8951 if ((entry = tmp_entry->vme_next) == vm_map_to_entry(map)) {
8956 entry = tmp_entry;
10471 vm_map_entry_t tmp_entry;
10472 if (vm_map_lookup_entry(map, start, &tmp_entry))
10473 start = tmp_entry->vme_end;
10474 entry = tmp_entry;
10708 vm_map_entry_t tmp_entry;
10718 if (!vm_map_lookup_entry(map, start, &tmp_entry)) {
10723 entry = tmp_entry;