Lines Matching full:reserved_mem
31 static struct reserved_mem reserved_mem[MAX_RESERVED_REGIONS]; variable
65 struct reserved_mem *rmem = &reserved_mem[reserved_mem_count]; in fdt_reserved_mem_save_node()
67 if (reserved_mem_count == ARRAY_SIZE(reserved_mem)) { in fdt_reserved_mem_save_node()
215 struct reserved_mem *rmem = &reserved_mem[i]; in __reserved_mem_alloc_in_range()
349 static int __init __reserved_mem_init_node(struct reserved_mem *rmem) in __reserved_mem_init_node()
374 const struct reserved_mem *ra = a, *rb = b; in __rmem_cmp()
407 sort(reserved_mem, reserved_mem_count, sizeof(reserved_mem[0]), in __rmem_check_for_overlap()
410 struct reserved_mem *this, *next; in __rmem_check_for_overlap()
412 this = &reserved_mem[i]; in __rmem_check_for_overlap()
413 next = &reserved_mem[i + 1]; in __rmem_check_for_overlap()
438 struct reserved_mem *rmem = &reserved_mem[i]; in fdt_init_reserved_mem()
475 struct reserved_mem *rmem;
502 struct reserved_mem *rmem; in of_reserved_mem_device_init_by_idx()
593 * of_reserved_mem_lookup() - acquire reserved_mem from a device node
596 * This function allows drivers to acquire a reference to the reserved_mem
599 * Returns a reserved_mem reference, or NULL on error.
601 struct reserved_mem *of_reserved_mem_lookup(struct device_node *np) in of_reserved_mem_lookup()
611 if (!strcmp(reserved_mem[i].name, name)) in of_reserved_mem_lookup()
612 return &reserved_mem[i]; in of_reserved_mem_lookup()