Lines Matching refs:reserved_mem
30 static struct reserved_mem reserved_mem[MAX_RESERVED_REGIONS]; variable
63 struct reserved_mem *rmem = &reserved_mem[reserved_mem_count]; in fdt_reserved_mem_save_node()
65 if (reserved_mem_count == ARRAY_SIZE(reserved_mem)) { in fdt_reserved_mem_save_node()
175 static int __init __reserved_mem_init_node(struct reserved_mem *rmem) in __reserved_mem_init_node()
200 const struct reserved_mem *ra = a, *rb = b; in __rmem_cmp()
228 sort(reserved_mem, reserved_mem_count, sizeof(reserved_mem[0]), in __rmem_check_for_overlap()
231 struct reserved_mem *this, *next; in __rmem_check_for_overlap()
233 this = &reserved_mem[i]; in __rmem_check_for_overlap()
234 next = &reserved_mem[i + 1]; in __rmem_check_for_overlap()
259 struct reserved_mem *rmem = &reserved_mem[i]; in fdt_init_reserved_mem()
291 static inline struct reserved_mem *__find_rmem(struct device_node *node) in __find_rmem()
299 if (reserved_mem[i].phandle == node->phandle) in __find_rmem()
300 return &reserved_mem[i]; in __find_rmem()
306 struct reserved_mem *rmem;
333 struct reserved_mem *rmem; in of_reserved_mem_device_init_by_idx()
432 struct reserved_mem *of_reserved_mem_lookup(struct device_node *np) in of_reserved_mem_lookup()
442 if (!strcmp(reserved_mem[i].name, name)) in of_reserved_mem_lookup()
443 return &reserved_mem[i]; in of_reserved_mem_lookup()