Lines Matching refs:end

38 	u64 end;
183 static int add_map_entry_at(u64 start, u64 end, u8 type, int idx)
187 if (start >= end)
193 if (!prev->fixed && start == prev->end && type == prev->type)
200 if (!next->fixed && end == next->start && type == next->type)
205 cache_map[idx - 1].end = cache_map[idx].end;
210 cache_map[idx - 1].end = end;
231 cache_map[idx].end = end;
240 static int clr_map_range_at(u64 start, u64 end, int idx)
245 if (start == cache_map[idx].start && end == cache_map[idx].end) {
248 cache_map[idx].start = end;
249 } else if (end == cache_map[idx].end) {
250 cache_map[idx].end = start;
252 tmp = cache_map[idx].end;
253 cache_map[idx].end = start;
254 add_map_entry_at(end, tmp, cache_map[idx].type, idx + 1);
265 static void add_map_entry(u64 start, u64 end, u8 type)
271 for (i = 0; i < cache_map_n && start < end; i++) {
272 if (start >= cache_map[i].end)
277 tmp = min(end, cache_map[i].start);
288 start = cache_map[i].end;
293 tmp = min(end, cache_map[i].end);
300 add_map_entry_at(start, end, type, i);
351 u64 start, end, size;
362 end = size = 0x10000;
371 add_map_entry(start, end, type);
372 start = end;
375 end += size;
377 add_map_entry(start, end, type);
394 cache_map[i].start, cache_map[i].end - 1,
503 * @end: End of the physical address range
512 u8 mtrr_type_lookup(u64 start, u64 end, u8 *uniform)
528 for (i = 0; i < cache_map_n && start < end; i++) {
530 if (start >= cache_map[i].end)
538 if (end <= cache_map[i].start)
545 start = cache_map[i].end;
549 if (start < end)
613 static void __init update_fixed_last(unsigned base, unsigned end,
617 last_fixed_end = end;