Lines Matching refs:reserved_mem
30 static struct reserved_mem reserved_mem[MAX_RESERVED_REGIONS]; variable
64 struct reserved_mem *rmem = &reserved_mem[reserved_mem_count]; in fdt_reserved_mem_save_node()
66 if (reserved_mem_count == ARRAY_SIZE(reserved_mem)) { in fdt_reserved_mem_save_node()
177 static int __init __reserved_mem_init_node(struct reserved_mem *rmem) in __reserved_mem_init_node()
202 const struct reserved_mem *ra = a, *rb = b; in __rmem_cmp()
230 sort(reserved_mem, reserved_mem_count, sizeof(reserved_mem[0]), in __rmem_check_for_overlap()
233 struct reserved_mem *this, *next; in __rmem_check_for_overlap()
235 this = &reserved_mem[i]; in __rmem_check_for_overlap()
236 next = &reserved_mem[i + 1]; in __rmem_check_for_overlap()
261 struct reserved_mem *rmem = &reserved_mem[i]; in fdt_init_reserved_mem()
303 static inline struct reserved_mem *__find_rmem(struct device_node *node) in __find_rmem()
311 if (reserved_mem[i].phandle == node->phandle) in __find_rmem()
312 return &reserved_mem[i]; in __find_rmem()
318 struct reserved_mem *rmem;
345 struct reserved_mem *rmem; in of_reserved_mem_device_init_by_idx()
444 struct reserved_mem *of_reserved_mem_lookup(struct device_node *np) in of_reserved_mem_lookup()
454 if (!strcmp(reserved_mem[i].name, name)) in of_reserved_mem_lookup()
455 return &reserved_mem[i]; in of_reserved_mem_lookup()