Lines Matching refs:end
108 * block?) is not added to usable memory. So, add [0, crashk_res.end]
109 * instead of [crashk_res.start, crashk_res.end] to workaround it.
113 ret = add_mem_range(mem_ranges, 0, crashk_res.end + 1);
142 phys_addr_t base, end;
147 for_each_mem_range(i, &base, &end) {
148 u64 size = end - base;
177 ret = crash_exclude_mem_range(tmem, crashk_res.start, crashk_res.end);
249 phys_addr_t start, end;
252 for_each_mem_range_rev(i, &start, &end) {
254 * memblock uses [start, end) convention while it is
255 * [start, end] here. Fix the off-by-one to have the
258 end -= 1;
264 if (end < buf_min)
270 if (end > buf_max)
271 end = buf_max;
274 if (start < end && (end - start + 1) >= kbuf->memsz) {
276 kbuf->mem = ALIGN_DOWN(end - kbuf->memsz + 1,
301 u64 start, end, tmin, tmax;
306 end = emem->ranges[i].end;
311 if (end < tmax) {
312 tmin = (end < buf_min ? buf_min : end + 1);
348 phys_addr_t start, end;
351 for_each_mem_range(i, &start, &end) {
353 * memblock uses [start, end) convention while it is
354 * [start, end] here. Fix the off-by-one to have the
357 end -= 1;
359 if (end < buf_min)
369 if (end > buf_max)
370 end = buf_max;
373 if (start < end && (end - start + 1) >= kbuf->memsz) {
399 u64 start, end, tmin, tmax;
404 end = emem->ranges[i].end;
406 if (end < tmin)
416 tmin = end + 1;
465 * @end: End address of memory range to look for.
469 static int add_usable_mem(struct umem_info *um_info, u64 base, u64 end)
478 loc_end = um_info->ranges[i].end;
479 if (loc_base >= base && loc_end <= end)
481 else if (base < loc_end && end > loc_base) {
484 if (loc_end > end)
485 loc_end = end;
517 u64 base, end;
535 end = base + drmem_lmb_size() - 1;
536 ret = add_usable_mem(um_info, base, end);
566 u64 base, end;
612 end = base + of_read_number(prop, n_mem_size_cells) - 1;
615 ret = add_usable_mem(um_info, base, end);
944 * chosen node with properties for initrd start & end addresses and
1125 size = rmem->ranges[i].end - base + 1;
1171 buf_max = (buf_max > crashk_res.end ?
1172 crashk_res.end : buf_max);