Lines Matching defs:prev
361 * The prev->end is always aligned on the page size, which
478 struct iommu_map_entry *next, *prev;
494 prev = RB_PREV(iommu_gas_entries_tree, &domain->rb_root, next);
495 /* prev could be NULL */
501 * XXXKIB: this does not handle a case when prev or next
505 if (prev != NULL && prev->end > entry->start &&
506 (prev->flags & IOMMU_MAP_ENTRY_PLACE) == 0) {
508 (prev->flags & IOMMU_MAP_ENTRY_RMRR) == 0)
510 entry->start = prev->end;
522 if (prev != NULL && prev->end > entry->start) {
523 /* This assumes that prev is the placeholder entry. */
524 iommu_gas_rb_remove(domain, prev);
525 prev = NULL;
542 KASSERT(prev == NULL || ip == prev,
543 ("RMRR %p (%jx %jx) prev %p (%jx %jx) ins prev %p (%jx %jx)",
544 entry, entry->start, entry->end, prev,
545 prev == NULL ? 0 : prev->start, prev == NULL ? 0 : prev->end,
577 struct iommu_map_entry *next, *prev;
584 prev = RB_PREV(iommu_gas_entries_tree, &domain->rb_root, entry);
589 if (prev == NULL)
722 struct iommu_map_entry *entry, *next, *prev, key = {};
742 prev = RB_PREV(iommu_gas_entries_tree, &domain->rb_root, next);
743 if (prev != NULL)
744 entry_start = ummax(start, prev->end);