Lines Matching defs:end

113 	 * block?) is not added to usable memory. So, add [0, crashk_res.end]
114 * instead of [crashk_res.start, crashk_res.end] to workaround it.
118 ret = add_mem_range(mem_ranges, 0, crashk_res.end + 1);
147 phys_addr_t base, end;
152 for_each_mem_range(i, &base, &end) {
153 u64 size = end - base;
182 ret = crash_exclude_mem_range(tmem, crashk_res.start, crashk_res.end);
254 phys_addr_t start, end;
257 for_each_mem_range_rev(i, &start, &end) {
259 * memblock uses [start, end) convention while it is
260 * [start, end] here. Fix the off-by-one to have the
263 end -= 1;
269 if (end < buf_min)
275 if (end > buf_max)
276 end = buf_max;
279 if (start < end && (end - start + 1) >= kbuf->memsz) {
281 kbuf->mem = ALIGN_DOWN(end - kbuf->memsz + 1,
306 u64 start, end, tmin, tmax;
311 end = emem->ranges[i].end;
316 if (end < tmax) {
317 tmin = (end < buf_min ? buf_min : end + 1);
353 phys_addr_t start, end;
356 for_each_mem_range(i, &start, &end) {
358 * memblock uses [start, end) convention while it is
359 * [start, end] here. Fix the off-by-one to have the
362 end -= 1;
364 if (end < buf_min)
374 if (end > buf_max)
375 end = buf_max;
378 if (start < end && (end - start + 1) >= kbuf->memsz) {
404 u64 start, end, tmin, tmax;
409 end = emem->ranges[i].end;
411 if (end < tmin)
421 tmin = end + 1;
470 * @end: End address of memory range to look for.
474 static int add_usable_mem(struct umem_info *um_info, u64 base, u64 end)
483 loc_end = um_info->ranges[i].end;
484 if (loc_base >= base && loc_end <= end)
486 else if (base < loc_end && end > loc_base) {
489 if (loc_end > end)
490 loc_end = end;
522 u64 base, end;
540 end = base + drmem_lmb_size() - 1;
541 ret = add_usable_mem(um_info, base, end);
571 u64 base, end;
617 end = base + of_read_number(prop, n_mem_size_cells) - 1;
620 ret = add_usable_mem(um_info, base, end);
1230 size = rmem->ranges[i].end - base + 1;
1280 buf_max = (buf_max > crashk_res.end ?
1281 crashk_res.end : buf_max);