Home
last modified time | relevance | path

Searched refs:map_size (Results 1 – 12 of 12) sorted by relevance

/u-boot/lib/efi_selftest/
A Defi_selftest_memory.c57 static int find_in_memory_map(efi_uintn_t map_size, in find_in_memory_map() argument
65 for (i = 0; map_size; ++i, map_size -= desc_size) { in find_in_memory_map()
105 efi_uintn_t map_size = 0; in execute() local
129 ret = boottime->get_memory_map(&map_size, NULL, &map_key, &desc_size, in execute()
137 map_size += sizeof(struct efi_mem_desc); in execute()
138 ret = boottime->allocate_pool(EFI_BOOT_SERVICES_DATA, map_size, in execute()
144 ret = boottime->get_memory_map(&map_size, memory_map, &map_key, in execute()
152 if (find_in_memory_map(map_size, memory_map, desc_size, p1, in execute()
155 if (find_in_memory_map(map_size, memory_map, desc_size, p2, in execute()
178 find_in_memory_map(map_size, memory_map, desc_size, fdt_addr, in execute()
A Defi_selftest_set_virtual_address_map.c17 static efi_uintn_t map_size; variable
96 ret = boottime->get_memory_map(&map_size, NULL, &map_key, &desc_size, in setup()
104 map_size += 3 * sizeof(struct efi_mem_desc); in setup()
105 ret = boottime->allocate_pool(EFI_BOOT_SERVICES_DATA, map_size, in setup()
111 ret = boottime->get_memory_map(&map_size, memory_map, &map_key, in setup()
130 end = (struct efi_mem_desc *)((u8 *)memory_map + map_size); in setup()
166 map_size = (u8 *)pos1 - (u8 *)memory_map; in setup()
185 ret = runtime->set_virtual_address_map(map_size, desc_size, in execute()
A Defi_selftest.c34 efi_uintn_t map_size = 0; in efi_st_exit_boot_services() local
44 ret = boottime->get_memory_map(&map_size, NULL, &map_key, &desc_size, in efi_st_exit_boot_services()
52 map_size += sizeof(struct efi_mem_desc); in efi_st_exit_boot_services()
53 ret = boottime->allocate_pool(EFI_BOOT_SERVICES_DATA, map_size, in efi_st_exit_boot_services()
59 ret = boottime->get_memory_map(&map_size, memory_map, &map_key, in efi_st_exit_boot_services()
/u-boot/test/dm/
A Dsf.c28 uint map_size; in dm_test_spi_flash() local
55 ut_assertok(dm_spi_get_mmap(dev, &map_base, &map_size, &offset)); in dm_test_spi_flash()
57 ut_asserteq(0x2000, map_size); in dm_test_spi_flash()
/u-boot/arch/x86/cpu/apollolake/
A Dcpu_spl.c98 uint map_size, offset; in fast_spi_cache_bios_region() local
106 ret = fast_spi_get_bios_mmap(PCH_DEV_SPI, &map_base, &map_size, in fast_spi_cache_bios_region()
111 base = SZ_4G - map_size; in fast_spi_cache_bios_region()
112 mtrr_set_next_var(MTRR_TYPE_WRPROT, base, map_size); in fast_spi_cache_bios_region()
113 log_debug("BIOS cache base=%lx, size=%x\n", base, (uint)map_size); in fast_spi_cache_bios_region()
A Dspl.c33 size_t map_size; in rom_load_image() local
50 ret = dm_spi_get_mmap(dev, &map_base, &map_size, &offset); in rom_load_image()
54 ret = fast_spi_get_bios_mmap(PCH_DEV_SPI, &map_base, &map_size, in rom_load_image()
/u-boot/arch/x86/lib/fsp2/
A Dfsp_init.c111 uint map_size; in fsp_locate_fsp() local
130 ret = dm_spi_get_mmap(sf, &map_base, &map_size, &offset); in fsp_locate_fsp()
/u-boot/lib/efi_loader/
A Defi_memory.c638 efi_uintn_t map_size = 0; in efi_get_memory_map() local
651 map_size = map_entries * sizeof(struct efi_mem_desc); in efi_get_memory_map()
653 *memory_map_size = map_size; in efi_get_memory_map()
661 if (provided_map_size < map_size) in efi_get_memory_map()
/u-boot/arch/x86/lib/
A Dmrccache.c235 uint map_size; in mrccache_get_region() local
257 ret = dm_spi_get_mmap(dev, &map_base, &map_size, &offset); in mrccache_get_region()
/u-boot/cmd/
A Defidebug.c721 efi_uintn_t map_size = 0; in do_efi_show_memmap() local
726 ret = efi_get_memory_map(&map_size, memmap, NULL, NULL, NULL); in do_efi_show_memmap()
728 map_size += sizeof(struct efi_mem_desc); /* for my own */ in do_efi_show_memmap()
729 ret = efi_allocate_pool(EFI_LOADER_DATA, map_size, in do_efi_show_memmap()
733 ret = efi_get_memory_map(&map_size, memmap, NULL, NULL, NULL); in do_efi_show_memmap()
749 for (i = 0, map = memmap; i < map_size / sizeof(*map); map++, i++) { in do_efi_show_memmap()
/u-boot/drivers/spi/
A Dich.c844 uint map_size; in ich_cache_bios_region() local
849 ret = ich_get_mmap_bus(dev, &map_base, &map_size, &offset); in ich_cache_bios_region()
854 base = SZ_4G - map_size; in ich_cache_bios_region()
855 mtrr_set_next_var(MTRR_TYPE_WRPROT, base, map_size); in ich_cache_bios_region()
856 log_debug("BIOS cache base=%lx, size=%x\n", base, (uint)map_size); in ich_cache_bios_region()
/u-boot/
A DMakefile1212 if [ "" != "$$map_size" ]; then \
1213 if test $$map_size -ne $$file_size; then \
1214 echo "u-boot.map shows a binary size of $$map_size" >&2 ; \

Completed in 19 milliseconds