Lines Matching refs:itr

363     auto itr = --subregions_.upper_bound(addr);
364 if (!itr.IsValid() || itr->base() > addr || addr > itr->base() + itr->size() - 1) {
368 return itr.CopyPointer();
544 for (auto itr = subregions_.begin(), end = subregions_.end(); itr != end;) {
545 DEBUG_ASSERT(itr->IsAliveLocked());
546 auto curr = itr++;
563 itr = vmar->subregions_.begin();
569 if (depth > min_depth && itr == end) {
573 itr = up->subregions_.upper_bound(curr->base());
574 if (itr.IsValid()) {
579 if (!itr.IsValid()) {
652 auto itr = --subregions_.upper_bound(base);
653 if (!itr.IsValid()) {
654 itr = subregions_.begin();
655 } else if (base >= itr->base() + itr->size()) {
657 ++itr;
659 return itr;
689 for (auto itr = begin; itr != end; ++itr) {
690 const vaddr_t itr_end = itr->base() + itr->size();
691 if (!itr->is_mapping() && (!can_destroy_regions ||
692 itr->base() < base || itr_end > end_addr)) {
699 for (auto itr = begin; itr != end;) {
701 auto curr = itr++;
742 itr = begin;
751 if (allow_partial_vmar && !at_top && itr == end) {
768 itr = begin;
810 for (auto itr = begin; itr != end; ++itr) {
811 if (!itr->is_mapping()) {
814 if (itr->base() != last_mapped) {
817 if (!itr->is_valid_mapping_flags(new_arch_mmu_flags)) {
820 if (itr->as_vm_mapping() == aspace_->vdso_code_mapping_) {
824 last_mapped = itr->base() + itr->size();
830 for (auto itr = begin; itr != end;) {
831 DEBUG_ASSERT(itr->is_mapping());
833 auto next = itr;
836 const vaddr_t curr_end = itr->base() + itr->size();
837 const vaddr_t protect_base = fbl::max(itr->base(), base);
841 zx_status_t status = itr->as_vm_mapping()->ProtectLocked(protect_base, protect_size,
849 itr = fbl::move(next);