Home
last modified time | relevance | path

Searched refs:lmb (Results 1 – 25 of 27) sorted by relevance

12

/u-boot/include/
A Dlmb.h28 struct lmb { struct
33 extern void lmb_init(struct lmb *lmb);
34 extern void lmb_init_and_reserve(struct lmb *lmb, struct bd_info *bd,
36 extern void lmb_init_and_reserve_range(struct lmb *lmb, phys_addr_t base,
38 extern long lmb_add(struct lmb *lmb, phys_addr_t base, phys_size_t size);
45 extern phys_addr_t lmb_alloc_addr(struct lmb *lmb, phys_addr_t base,
48 extern int lmb_is_reserved(struct lmb *lmb, phys_addr_t addr);
51 extern void lmb_dump_all(struct lmb *lmb);
52 extern void lmb_dump_all_force(struct lmb *lmb);
60 void board_lmb_reserve(struct lmb *lmb);
[all …]
A Dimage.h23 struct lmb;
438 struct lmb lmb; /* for memory mgmt */ member
765 void boot_fdt_add_mem_rsv_regions(struct lmb *lmb, void *fdt_blob);
766 int boot_relocate_fdt(struct lmb *lmb, char **of_flat_tree, ulong *of_size);
768 int boot_ramdisk_high(struct lmb *lmb, ulong rd_data, ulong rd_len,
770 int boot_get_cmdline(struct lmb *lmb, ulong *cmd_start, ulong *cmd_end);
772 int boot_get_kbd(struct lmb *lmb, struct bd_info **kbd);
954 int of_size, struct lmb *lmb);
/u-boot/test/lib/
A Dlmb.c15 static int check_lmb(struct unit_test_state *uts, struct lmb *lmb, in check_lmb() argument
62 struct lmb lmb; in test_multi_alloc() local
73 lmb_init(&lmb); in test_multi_alloc()
229 struct lmb lmb; in test_bigblock() local
236 lmb_init(&lmb); in test_bigblock()
295 struct lmb lmb; in test_noreserved() local
304 lmb_init(&lmb); in test_noreserved()
386 struct lmb lmb; in lib_test_lmb_at_0() local
427 struct lmb lmb; in lib_test_lmb_overlapping_reserve() local
472 struct lmb lmb; in test_alloc_addr() local
[all …]
A DMakefile9 obj-y += lmb.o
/u-boot/lib/
A Dlmb.c17 void lmb_dump_all_force(struct lmb *lmb) in lmb_dump_all_force() argument
43 void lmb_dump_all(struct lmb *lmb) in lmb_dump_all() argument
100 void lmb_init(struct lmb *lmb) in lmb_init() argument
108 static void lmb_reserve_common(struct lmb *lmb, void *fdt_blob) in lmb_reserve_common() argument
122 lmb_init(lmb); in lmb_init_and_reserve()
138 lmb_init(lmb); in lmb_init_and_reserve_range()
403 return lmb->memory.region[lmb->memory.cnt - 1].base + in lmb_get_free_size()
404 lmb->memory.region[lmb->memory.cnt - 1].size - addr; in lmb_get_free_size()
409 int lmb_is_reserved(struct lmb *lmb, phys_addr_t addr) in lmb_is_reserved() argument
422 __weak void board_lmb_reserve(struct lmb *lmb) in board_lmb_reserve() argument
[all …]
/u-boot/arch/arm/mach-stm32mp/
A Ddram_init.c45 struct lmb lmb; in board_get_usable_ram_top() local
48 lmb_init(&lmb); in board_get_usable_ram_top()
49 lmb_add(&lmb, gd->ram_base, gd->ram_size); in board_get_usable_ram_top()
50 boot_fdt_add_mem_rsv_regions(&lmb, (void *)gd->fdt_blob); in board_get_usable_ram_top()
51 reg = lmb_alloc(&lmb, CONFIG_SYS_MALLOC_LEN + total_size, SZ_4K); in board_get_usable_ram_top()
/u-boot/arch/m68k/lib/
A Dbootm.c33 void arch_lmb_reserve(struct lmb *lmb) in arch_lmb_reserve() argument
51 lmb_reserve(lmb, sp, (CONFIG_SYS_SDRAM_BASE + gd->ram_size - sp)); in arch_lmb_reserve()
60 struct lmb *lmb = &images->lmb; in do_bootm_linux() local
72 ret = boot_get_kbd (lmb, &kbd); in do_bootm_linux()
/u-boot/arch/powerpc/lib/
A Dbootm.c119 void arch_lmb_reserve(struct lmb *lmb) in arch_lmb_reserve() argument
141 lmb_reserve(lmb, base, bootm_size - size); in arch_lmb_reserve()
158 lmb_reserve(lmb, sp, (CONFIG_SYS_SDRAM_BASE + get_effective_memsize() - sp)); in arch_lmb_reserve()
161 cpu_mp_lmb_reserve(lmb); in arch_lmb_reserve()
182 struct lmb *lmb = &images->lmb; in boot_cmdline_linux() local
190 ret = boot_get_cmdline (lmb, cmd_start, cmd_end); in boot_cmdline_linux()
203 struct lmb *lmb = &images->lmb; in boot_bd_t_linux() local
210 ret = boot_get_kbd (lmb, kbd); in boot_bd_t_linux()
/u-boot/common/
A Dimage-fdt.c77 static void boot_fdt_reserve_region(struct lmb *lmb, uint64_t addr, in boot_fdt_reserve_region() argument
82 ret = lmb_reserve(lmb, addr, size); in boot_fdt_reserve_region()
103 void boot_fdt_add_mem_rsv_regions(struct lmb *lmb, void *fdt_blob) in boot_fdt_add_mem_rsv_regions() argument
118 boot_fdt_reserve_region(lmb, addr, size); in boot_fdt_add_mem_rsv_regions()
132 boot_fdt_reserve_region(lmb, addr, size); in boot_fdt_add_mem_rsv_regions()
157 int boot_relocate_fdt(struct lmb *lmb, char **of_flat_tree, ulong *of_size) in boot_relocate_fdt() argument
187 lmb_reserve(lmb, (ulong)of_start, of_len); in boot_relocate_fdt()
545 int of_size, struct lmb *lmb) in image_setup_libfdt() argument
603 if (lmb) in image_setup_libfdt()
617 if (lmb) in image_setup_libfdt()
[all …]
A Dimage.c1370 int boot_ramdisk_high(struct lmb *lmb, ulong rd_data, ulong rd_len, in boot_ramdisk_high() argument
1398 lmb_reserve(lmb, rd_data, rd_len); in boot_ramdisk_high()
1401 *initrd_start = (ulong)lmb_alloc_base(lmb, in boot_ramdisk_high()
1404 *initrd_start = (ulong)lmb_alloc(lmb, rd_len, in boot_ramdisk_high()
1657 int boot_get_cmdline(struct lmb *lmb, ulong *cmd_start, ulong *cmd_end) in boot_get_cmdline() argument
1697 int boot_get_kbd(struct lmb *lmb, struct bd_info **kbd) in boot_get_kbd() argument
1699 *kbd = (struct bd_info *)(ulong)lmb_alloc_base(lmb, in boot_get_kbd()
1723 struct lmb *lmb = &images->lmb; in image_setup_linux() local
1727 boot_fdt_add_mem_rsv_regions(lmb, *of_flat_tree); in image_setup_linux()
1730 ret = boot_get_cmdline(lmb, &images->cmdline_start, in image_setup_linux()
[all …]
A Dbootm_os.c279 struct lmb *lmb = &images->lmb; in do_bootvx_fdt() local
282 boot_fdt_add_mem_rsv_regions(lmb, *of_flat_tree); in do_bootvx_fdt()
284 ret = boot_relocate_fdt(lmb, of_flat_tree, &of_size); in do_bootvx_fdt()
A Dbootm.c68 lmb_init_and_reserve_range(&images->lmb, (phys_addr_t)mem_start, in boot_start_lmb()
72 #define lmb_reserve(lmb, base, size) argument
429 lmb_reserve(&images->lmb, images->os.load, (load_end - in bootm_load_os()
700 ret = boot_ramdisk_high(&images->lmb, images->rd_start, in do_bootm_states()
710 boot_fdt_add_mem_rsv_regions(&images->lmb, images->ft_addr); in do_bootm_states()
711 ret = boot_relocate_fdt(&images->lmb, &images->ft_addr, in do_bootm_states()
/u-boot/arch/arm/mach-nexell/
A Dcmd_boot_linux.c68 lmb_init(&images->lmb); in boot_start_lmb()
73 lmb_add(&images->lmb, (phys_addr_t)mem_start, mem_size); in boot_start_lmb()
75 arch_lmb_reserve(&images->lmb); in boot_start_lmb()
76 board_lmb_reserve(&images->lmb); in boot_start_lmb()
79 #define lmb_reserve(lmb, base, size) argument
/u-boot/arch/powerpc/include/asm/
A Dmp.h12 void cpu_mp_lmb_reserve(struct lmb *lmb);
/u-boot/arch/arm/mach-imx/
A Dmisc.c89 void board_lmb_reserve(struct lmb *lmb) in board_lmb_reserve() argument
106 lmb_reserve(lmb, sp, bank_end - sp); in board_lmb_reserve()
/u-boot/arch/powerpc/cpu/mpc86xx/
A Dmp.c90 void cpu_mp_lmb_reserve(struct lmb *lmb) in cpu_mp_lmb_reserve() argument
95 lmb_reserve(lmb, bootpg, 4096); in cpu_mp_lmb_reserve()
/u-boot/arch/arc/lib/
A Dbootm.c26 void arch_lmb_reserve(struct lmb *lmb) in arch_lmb_reserve() argument
44 lmb_reserve(lmb, sp, (CONFIG_SYS_SDRAM_BASE + gd->ram_size - sp)); in arch_lmb_reserve()
/u-boot/cmd/
A Dbdinfo.c127 struct lmb lmb; in do_bdinfo() local
129 lmb_init_and_reserve(&lmb, gd->bd, (void *)gd->fdt_blob); in do_bdinfo()
130 lmb_dump_all_force(&lmb); in do_bdinfo()
A Dbootz.c51 lmb_reserve(&images->lmb, images->ep, zi_end - zi_start); in bootz_start()
/u-boot/arch/microblaze/lib/
A Dbootm.c35 void arch_lmb_reserve(struct lmb *lmb) in arch_lmb_reserve() argument
61 lmb_reserve(lmb, sp, bank_end - sp); in arch_lmb_reserve()
/u-boot/arch/mips/lib/
A Dbootm.c40 void arch_lmb_reserve(struct lmb *lmb) in arch_lmb_reserve() argument
49 lmb_reserve(lmb, sp, gd->ram_top - sp); in arch_lmb_reserve()
235 boot_fdt_add_mem_rsv_regions(&images->lmb, images->ft_addr); in boot_reloc_fdt()
236 return boot_relocate_fdt(&images->lmb, &images->ft_addr, in boot_reloc_fdt()
258 &images->lmb); in boot_setup_fdt()
/u-boot/arch/powerpc/cpu/mpc85xx/
A Dmp.c412 void cpu_mp_lmb_reserve(struct lmb *lmb) in cpu_mp_lmb_reserve() argument
416 lmb_reserve(lmb, bootpg, 4096); in cpu_mp_lmb_reserve()
/u-boot/arch/arm/lib/
A Dbootm.c55 void arch_lmb_reserve(struct lmb *lmb) in arch_lmb_reserve() argument
86 lmb_reserve(lmb, sp, bank_end - sp + 1); in arch_lmb_reserve()
/u-boot/fs/
A Dfs.c496 struct lmb lmb; in fs_read_lmb_check() local
515 lmb_init_and_reserve(&lmb, gd->bd, (void *)gd->fdt_blob); in fs_read_lmb_check()
516 lmb_dump_all(&lmb); in fs_read_lmb_check()
518 if (lmb_alloc_addr(&lmb, addr, read_len) == addr) in fs_read_lmb_check()
/u-boot/net/
A Dtftp.c730 struct lmb lmb; in tftp_init_load_addr() local
733 lmb_init_and_reserve(&lmb, gd->bd, (void *)gd->fdt_blob); in tftp_init_load_addr()
735 max_size = lmb_get_free_size(&lmb, image_load_addr); in tftp_init_load_addr()

Completed in 50 milliseconds

12