Lines Matching refs:mem_end

2409 static void __init *make_room(unsigned long *mem_start, unsigned long *mem_end,  in make_room()  argument
2415 while ((*mem_start + needed) > *mem_end) { in make_room()
2430 *mem_end = chunk + room; in make_room()
2439 #define dt_push_token(token, mem_start, mem_end) do { \ argument
2440 void *room = make_room(mem_start, mem_end, 4, 4); \
2466 unsigned long *mem_end) in scan_dt_build_strings() argument
2478 namep = make_room(mem_start, mem_end, MAX_PROPERTY_NAME, 1); in scan_dt_build_strings()
2507 scan_dt_build_strings(child, mem_start, mem_end); in scan_dt_build_strings()
2513 unsigned long *mem_end) in scan_dt_build_struct() argument
2522 dt_push_token(OF_DT_BEGIN_NODE, mem_start, mem_end); in scan_dt_build_struct()
2526 room = *mem_end - *mem_start; in scan_dt_build_struct()
2533 if (l >= *mem_end - *mem_start) in scan_dt_build_struct()
2534 namep = make_room(mem_start, mem_end, l+1, 1); in scan_dt_build_struct()
2589 dt_push_token(OF_DT_PROP, mem_start, mem_end); in scan_dt_build_struct()
2590 dt_push_token(l, mem_start, mem_end); in scan_dt_build_struct()
2591 dt_push_token(soff, mem_start, mem_end); in scan_dt_build_struct()
2594 valp = make_room(mem_start, mem_end, l, 4); in scan_dt_build_struct()
2608 dt_push_token(OF_DT_PROP, mem_start, mem_end); in scan_dt_build_struct()
2609 dt_push_token(4, mem_start, mem_end); in scan_dt_build_struct()
2610 dt_push_token(soff, mem_start, mem_end); in scan_dt_build_struct()
2611 valp = make_room(mem_start, mem_end, 4, 4); in scan_dt_build_struct()
2619 scan_dt_build_struct(child, mem_start, mem_end); in scan_dt_build_struct()
2623 dt_push_token(OF_DT_END_NODE, mem_start, mem_end); in scan_dt_build_struct()
2629 unsigned long mem_start, mem_end, room; in flatten_device_tree() local
2647 mem_end = mem_start + room; in flatten_device_tree()
2656 hdr = make_room(&mem_start, &mem_end, in flatten_device_tree()
2659 rsvmap = make_room(&mem_start, &mem_end, sizeof(mem_reserve_map), 8); in flatten_device_tree()
2667 namep = make_room(&mem_start, &mem_end, 16, 1); in flatten_device_tree()
2673 scan_dt_build_strings(root, &mem_start, &mem_end); in flatten_device_tree()
2680 scan_dt_build_struct(root, &mem_start, &mem_end); in flatten_device_tree()
2681 dt_push_token(OF_DT_END, &mem_start, &mem_end); in flatten_device_tree()