Lines Matching defs:size
53 * The list is terminated by the first entry with size == 0.
63 while (mm->size != 0U) {
64 debug_print(" VA:%p PA:0x%llx size:0x%zx attr:0x%x\n",
66 mm->size, mm->attr);
74 size_t size, unsigned int attr)
78 unsigned long long end_pa = base_pa + size - 1U;
79 uintptr_t end_va = base_va + size - 1U;
83 assert(IS_PAGE_ALIGNED(size));
85 if (size == 0U)
91 assert((base_va + (uintptr_t)size - (uintptr_t)1) <=
93 assert((base_pa + (unsigned long long)size - 1ULL) <=
99 for (mm = mmap; mm->size; ++mm) {
101 uintptr_t mm_end_va = mm->base_va + mm->size - 1U;
119 assert((base_va != mm->base_va) || (size != mm->size));
128 mm->base_pa + mm->size - 1;
144 while ((mm->base_va < base_va) && (mm->size != 0U))
158 while ((mm->base_va == base_va) && (mm->size > size))
165 assert(mm_last->size == 0U);
169 mm->size = size;
182 while ((mm_cursor->size != 0U) || (mm_cursor->attr != 0U)) {
184 mm_cursor->size, mm_cursor->attr);
271 * Look for the innermost region that contains the area at `base_va` with size
272 * `size`. Populate *attr with the attributes of this region.
275 * If there are partial overlaps (meaning that a smaller size is needed) or if
280 size_t size, unsigned int *attr)
302 if (mm->size == 0U)
305 if (mm->base_va > (base_va + size - 1U))
308 if ((mm->base_va + mm->size - 1U) < base_va)
315 ((mm->base_va + mm->size - 1U) < (base_va + size - 1U)))
343 if (mm->size == 0U) {
346 } else if ((mm->base_va + mm->size - 1U) < base_va) {
352 debug_print("%s VA:%p size:0x%llx ", get_level_spacer(level),