/u-boot/include/ |
H A D | lmb.h | 49 * => CONFIG_LMB_MEMORY_REGIONS: struct lmb.memory_regions 50 * => CONFIG_LMB_RESERVED_REGIONS: struct lmb.reserved_regions 74 * struct lmb - Logical memory block handle. 76 * Clients provide storage for Logical memory block (lmb) handles. 77 * The content of the structure is managed by the lmb library. 78 * A lmb struct is initialized by lmb_init() functions. 79 * The lmb struct is passed to all other lmb APIs. 86 struct lmb { struct 95 void lmb_init(struct lmb *lm [all...] |
/u-boot/arch/powerpc/include/asm/ |
H A D | mp.h | 9 #include <lmb.h> 12 void cpu_mp_lmb_reserve(struct lmb *lmb);
|
/u-boot/test/lib/ |
H A D | lmb.c | 8 #include <lmb.h> 21 static int check_lmb(struct unit_test_state *uts, struct lmb *lmb, argument 29 ut_asserteq(lmb->memory.cnt, 1); 30 ut_asserteq(lmb->memory.region[0].base, ram_base); 31 ut_asserteq(lmb->memory.region[0].size, ram_size); 34 ut_asserteq(lmb->reserved.cnt, num_reserved); 36 ut_asserteq(lmb->reserved.region[0].base, base1); 37 ut_asserteq(lmb->reserved.region[0].size, size1); 40 ut_asserteq(lmb 68 struct lmb lmb; local 233 struct lmb lmb; local 298 struct lmb lmb; local 389 struct lmb lmb; local 429 struct lmb lmb; local 483 struct lmb lmb; local 610 struct lmb lmb; local 684 struct lmb lmb; local 745 struct lmb lmb; local [all...] |
H A D | Makefile | 12 obj-y += lmb.o
|
/u-boot/arch/arm/lib/ |
H A D | stack.c | 15 #include <lmb.h> 46 void arch_lmb_reserve(struct lmb *lmb) argument 48 arch_lmb_reserve_generic(lmb, get_sp(), gd->ram_top, 16384);
|
/u-boot/lib/ |
H A D | lmb.c | 12 #include <lmb.h> 42 void lmb_dump_all_force(struct lmb *lmb) argument 45 lmb_dump_region(&lmb->memory, "memory"); 46 lmb_dump_region(&lmb->reserved, "reserved"); 49 void lmb_dump_all(struct lmb *lmb) argument 52 lmb_dump_all_force(lmb); 133 void lmb_init(struct lmb *lmb) argument 148 arch_lmb_reserve_generic(struct lmb *lmb, ulong sp, ulong end, ulong align) argument 192 efi_lmb_reserve(struct lmb *lmb) argument 217 lmb_reserve_common(struct lmb *lmb, void *fdt_blob) argument 230 lmb_init_and_reserve(struct lmb *lmb, struct bd_info *bd, void *fdt_blob) argument 247 lmb_init_and_reserve_range(struct lmb *lmb, phys_addr_t base, phys_size_t size, void *fdt_blob) argument 353 lmb_add(struct lmb *lmb, phys_addr_t base, phys_size_t size) argument 360 lmb_free(struct lmb *lmb, phys_addr_t base, phys_size_t size) argument 410 lmb_reserve_flags(struct lmb *lmb, phys_addr_t base, phys_size_t size, enum lmb_flags flags) argument 418 lmb_reserve(struct lmb *lmb, phys_addr_t base, phys_size_t size) argument 438 lmb_alloc(struct lmb *lmb, phys_size_t size, ulong align) argument 443 lmb_alloc_base(struct lmb *lmb, phys_size_t size, ulong align, phys_addr_t max_addr) argument 461 __lmb_alloc_base(struct lmb *lmb, phys_size_t size, ulong align, phys_addr_t max_addr) argument 506 lmb_alloc_addr(struct lmb *lmb, phys_addr_t base, phys_size_t size) argument 529 lmb_get_free_size(struct lmb *lmb, phys_addr_t addr) argument 555 lmb_is_reserved_flags(struct lmb *lmb, phys_addr_t addr, int flags) argument 568 lmb_is_reserved(struct lmb *lmb, phys_addr_t addr) argument 573 board_lmb_reserve(struct lmb *lmb) argument 578 arch_lmb_reserve(struct lmb *lmb) argument [all...] |
/u-boot/drivers/iommu/ |
H A D | sandbox_iommu.c | 9 #include <lmb.h> 16 struct lmb lmb; member in struct:sandbox_iommu_priv 30 dva = lmb_alloc(&priv->lmb, psize, IOMMU_PAGE_SIZE); 46 lmb_free(&priv->lmb, dva, psize); 58 lmb_init(&priv->lmb); 59 lmb_add(&priv->lmb, 0x89abc000, SZ_16K);
|
/u-boot/arch/arm/mach-stm32mp/ |
H A D | dram_init.c | 12 #include <lmb.h> 50 struct lmb lmb; local 62 lmb_init(&lmb); 63 lmb_add(&lmb, gd->ram_base, gd->ram_top - gd->ram_base); 64 boot_fdt_add_mem_rsv_regions(&lmb, (void *)gd->fdt_blob); 67 reg = lmb_alloc(&lmb, size, MMU_SECTION_SIZE);
|
/u-boot/arch/m68k/lib/ |
H A D | bootm.c | 12 #include <lmb.h> 33 void arch_lmb_reserve(struct lmb *lmb) argument 35 arch_lmb_reserve_generic(lmb, get_sp(), gd->ram_top, 1024); 44 struct lmb *lmb = &images->lmb; local 56 ret = boot_get_kbd (lmb, &kbd);
|
/u-boot/arch/powerpc/lib/ |
H A D | bootm.c | 16 #include <lmb.h> 120 void arch_lmb_reserve(struct lmb *lmb) argument 143 lmb_reserve(lmb, base, bootm_size - size); 146 arch_lmb_reserve_generic(lmb, get_sp(), gd->ram_top, 4096); 149 cpu_mp_lmb_reserve(lmb); 170 struct lmb *lmb = &images->lmb; local 178 ret = boot_get_cmdline (lmb, cmd_star 191 struct lmb *lmb = &images->lmb; local [all...] |
/u-boot/arch/microblaze/lib/ |
H A D | bootm.c | 18 #include <lmb.h> 35 void arch_lmb_reserve(struct lmb *lmb) argument 37 arch_lmb_reserve_generic(lmb, get_sp(), gd->ram_top, 4096);
|
/u-boot/arch/nios2/lib/ |
H A D | bootm.c | 77 void arch_lmb_reserve(struct lmb *lmb) argument 79 arch_lmb_reserve_generic(lmb, get_sp(), gd->ram_top, 4096);
|
/u-boot/boot/ |
H A D | image-fdt.c | 18 #include <lmb.h> 72 static void boot_fdt_reserve_region(struct lmb *lmb, uint64_t addr, argument 77 ret = lmb_reserve_flags(lmb, addr, size, flags); 93 * @lmb: pointer to lmb handle, will be used for memory mgmt 96 * Adds the and reserved-memorymemreserve regions in the dtb to the lmb block. 100 void boot_fdt_add_mem_rsv_regions(struct lmb *lmb, void *fdt_blob) argument 116 boot_fdt_reserve_region(lmb, add 159 boot_relocate_fdt(struct lmb *lmb, char **of_flat_tree, ulong *of_size) argument 573 image_setup_libfdt(struct bootm_headers *images, void *blob, struct lmb *lmb) argument [all...] |
H A D | image-board.c | 511 * @lmb: pointer to lmb handle, will be used for memory mgmt 530 int boot_ramdisk_high(struct lmb *lmb, ulong rd_data, ulong rd_len, argument 557 lmb_reserve(lmb, rd_data, rd_len); 560 *initrd_start = (ulong)lmb_alloc_base(lmb, 563 *initrd_start = (ulong)lmb_alloc(lmb, rd_len, 796 * @lmb: pointer to lmb handle, will be used for memory mgmt 809 int boot_get_cmdline(struct lmb *lm argument 855 boot_get_kbd(struct lmb *lmb, struct bd_info **kbd) argument 879 struct lmb *lmb = images_lmb(images); local [all...] |
H A D | bootm_os.c | 15 #include <lmb.h> 263 struct lmb *lmb = &images->lmb; local 266 boot_fdt_add_mem_rsv_regions(lmb, *of_flat_tree); 268 ret = boot_relocate_fdt(lmb, of_flat_tree, &of_size);
|
/u-boot/arch/riscv/lib/ |
H A D | bootm.c | 145 void arch_lmb_reserve(struct lmb *lmb) argument 147 arch_lmb_reserve_generic(lmb, get_sp(), gd->ram_top, 4096);
|
/u-boot/arch/arm/mach-snapdragon/ |
H A D | board.c | 26 #include <lmb.h> 278 #define addr_alloc(lmb, size) lmb_alloc(lmb, size, SZ_2M) 283 struct lmb lmb; local 286 lmb_init_and_reserve(&lmb, gd->bd, (void *)gd->fdt_blob); 289 status |= env_set_hex("kernel_addr_r", addr_alloc(&lmb, SZ_128M)); 290 status |= env_set_hex("ramdisk_addr_r", addr_alloc(&lmb, SZ_128M)); 291 status |= env_set_hex("kernel_comp_addr_r", addr_alloc(&lmb, KERNEL_COMP_SIZE)); 293 status |= env_set_hex("scriptaddr", addr_alloc(&lmb, SZ_4 [all...] |
/u-boot/arch/sh/lib/ |
H A D | bootm.c | 113 void arch_lmb_reserve(struct lmb *lmb) argument 115 arch_lmb_reserve_generic(lmb, get_sp(), gd->ram_top, 4096);
|
/u-boot/test/cmd/ |
H A D | bdinfo.c | 17 #include <lmb.h> 120 * We could instead have the bdinfo command put its lmb region 136 static int lmb_test_dump_all(struct unit_test_state *uts, struct lmb *lmb) argument 139 ut_assertok(lmb_test_dump_region(uts, &lmb->memory, "memory")); 140 ut_assertok(lmb_test_dump_region(uts, &lmb->reserved, "reserved")); 202 struct lmb lmb; local 204 lmb_init_and_reserve(&lmb, gd->bd, (void *)gd->fdt_blob); 205 ut_assertok(lmb_test_dump_all(uts, &lmb)); [all...] |
/u-boot/arch/mips/lib/ |
H A D | bootm.c | 12 #include <lmb.h> 40 void arch_lmb_reserve(struct lmb *lmb) argument 42 arch_lmb_reserve_generic(lmb, arch_get_sp(), gd->ram_top, 4096); 228 boot_fdt_add_mem_rsv_regions(&images->lmb, images->ft_addr); 229 return boot_relocate_fdt(&images->lmb, &images->ft_addr, 251 return image_setup_libfdt(images, images->ft_addr, &images->lmb);
|
/u-boot/cmd/ |
H A D | bootz.c | 12 #include <lmb.h> 60 lmb_reserve(&images->lmb, images->ep, zi_end - zi_start);
|
H A D | bdinfo.c | 14 #include <lmb.h> 166 struct lmb lmb; local 168 lmb_init_and_reserve(&lmb, gd->bd, (void *)gd->fdt_blob); 169 lmb_dump_all_force(&lmb);
|
/u-boot/arch/arm/mach-stm32mp/stm32mp1/ |
H A D | cpu.c | 15 #include <lmb.h> 34 struct lmb lmb; variable in typeref:struct:lmb 84 if (use_lmb && lmb_is_reserved_flags(&lmb, i << MMU_SECTION_SHIFT, LMB_NOMAP)) 148 lmb_init_and_reserve(&lmb, gd->bd, (void *)gd->fdt_blob);
|
/u-boot/arch/xtensa/lib/ |
H A D | bootm.c | 210 void arch_lmb_reserve(struct lmb *lmb) argument 212 arch_lmb_reserve_generic(lmb, get_sp(), gd->ram_top, 4096);
|
/u-boot/arch/x86/lib/ |
H A D | bootm.c | 271 void arch_lmb_reserve(struct lmb *lmb) argument 273 arch_lmb_reserve_generic(lmb, get_sp(), gd->ram_top, 4096);
|