Home
last modified time | relevance | path

Searched refs:ram (Results 1 – 25 of 311) sorted by relevance

12345678910>>...13

/openbmc/u-boot/test/lib/
H A Dlmb.c50 static int test_multi_alloc(struct unit_test_state *uts, const phys_addr_t ram, in test_multi_alloc() argument
55 const phys_addr_t ram_end = ram + ram_size; in test_multi_alloc()
63 ut_assert(ram_end == 0 || ram_end > ram); in test_multi_alloc()
66 ut_assert(alloc_64k_addr >= ram + 8); in test_multi_alloc()
76 ret = lmb_add(&lmb, ram, ram_size); in test_multi_alloc()
83 ut_asserteq(lmb.memory.region[1].base, ram); in test_multi_alloc()
87 ut_asserteq(lmb.memory.region[0].base, ram); in test_multi_alloc()
161 ut_asserteq(lmb.memory.region[1].base, ram); in test_multi_alloc()
165 ut_asserteq(lmb.memory.region[0].base, ram); in test_multi_alloc()
173 const phys_addr_t ram) in test_multi_alloc_512mb() argument
[all …]
/openbmc/u-boot/arch/mips/mach-bmips/
H A Ddram.c15 struct ram_info ram; in dram_init() local
25 err = ram_get_info(dev, &ram); in dram_init()
31 debug("SDRAM base=%zx, size=%x\n", ram.base, ram.size); in dram_init()
33 gd->ram_size = ram.size; in dram_init()
/openbmc/u-boot/arch/arm/mach-stm32mp/
H A Ddram_init.c14 struct ram_info ram; in dram_init() local
23 ret = ram_get_info(dev, &ram); in dram_init()
28 debug("RAM init base=%lx, size=%x\n", ram.base, ram.size); in dram_init()
30 gd->ram_size = ram.size; in dram_init()
/openbmc/u-boot/arch/x86/cpu/qemu/
H A Ddram.c14 u32 ram; in dram_init() local
17 ram = ((u32)inb(CMOS_DATA_PORT)) << 14; in dram_init()
19 ram |= ((u32)inb(CMOS_DATA_PORT)) << 6; in dram_init()
20 ram += 16 * 1024; in dram_init()
22 gd->ram_size = ram * 1024; in dram_init()
/openbmc/qemu/hw/arm/
H A Dkzm.c87 machine->ram); in kzm_init()
96 } ram[2] = { in kzm_init() local
101 size = MIN(ram_size, ram[i].size); in kzm_init()
105 if (size < ram[i].size) { in kzm_init()
107 machine->ram, in kzm_init()
108 alias_offset, ram[i].size - size); in kzm_init()
110 ram[i].addr + size, &s->ram_alias); in kzm_init()
113 alias_offset += ram[i].size; in kzm_init()
H A Dimx25_pdk.c87 machine->ram); in imx25_pdk_init()
96 } ram[2] = { in imx25_pdk_init() local
101 size = MIN(ram_size, ram[i].size); in imx25_pdk_init()
105 if (size < ram[i].size) { in imx25_pdk_init()
107 machine->ram, in imx25_pdk_init()
108 alias_offset, ram[i].size - size); in imx25_pdk_init()
110 ram[i].addr + size, &s->ram_alias); in imx25_pdk_init()
113 alias_offset += ram[i].size; in imx25_pdk_init()
/openbmc/u-boot/arch/sh/cpu/
H A Du-boot.lds21 ram : ORIGIN = CONFIG_SYS_SDRAM_BASE, LENGTH = CONFIG_SYS_SDRAM_SIZE
46 } >ram =0xFF
52 } >ram
61 } >ram
69 } >ram
74 } >ram
85 } >ram
/openbmc/qemu/tests/tcg/xtensa/
H A Dlinker.ld.S25 ram : ORIGIN = XCHAL_VECBASE_RESET_VADDR, LENGTH = RAM_SIZE
122 } > ram
129 } > ram
138 } > ram
149 } > ram
163 } > ram
166 PROVIDE(_fstack = (ORIGIN(ram) & 0xf0000000) + LENGTH(ram) - 16);
/openbmc/u-boot/drivers/dfu/
H A Ddfu_ram.c24 if (offset > dfu->data.ram.size) { in dfu_transfer_medium_ram()
30 memcpy(dfu->data.ram.start + offset, buf, *len); in dfu_transfer_medium_ram()
32 memcpy(buf, dfu->data.ram.start + offset, *len); in dfu_transfer_medium_ram()
45 *size = dfu->data.ram.size; in dfu_get_medium_size_ram()
76 dfu->data.ram.start = (void *)simple_strtoul(argv[1], NULL, 16); in dfu_fill_entity_ram()
77 dfu->data.ram.size = simple_strtoul(argv[2], NULL, 16); in dfu_fill_entity_ram()
/openbmc/u-boot/test/py/tests/
H A Dtest_tpm2.py141 ram = u_boot_utils.find_ram_base(u_boot_console)
163 ram = u_boot_utils.find_ram_base(u_boot_console)
171 read_cap = u_boot_console.run_command('tpm2 get_capability 0x6 0x20f 0x%x 3' % ram)
186 ram = u_boot_utils.find_ram_base(u_boot_console)
188 read_pcr = u_boot_console.run_command('tpm2 pcr_read 0 0x%x' % ram)
213 ram = u_boot_utils.find_ram_base(u_boot_console)
215 u_boot_console.run_command('tpm2 pcr_extend 0 0x%x' % ram)
219 read_pcr = u_boot_console.run_command('tpm2 pcr_read 0 0x%x' % ram)
/openbmc/qemu/docs/devel/migration/
H A Dmapped-ram.rst1 Mapped-ram
4 Mapped-ram is a new stream format for the RAM section designed to
25 ``mapped-ram`` capabilities:
29 ``migrate_set_capability mapped-ram on``
35 Mapped-ram migration is best done non-live, i.e. by stopping the VM on
45 The mapped-ram feature was designed for use cases where the migration
54 that's the ideal scenario for mapped-ram migration. Not having to
66 the snapshot operation, then mapped-ram migration can still be used,
69 mapped-ram in this scenario is portability since background-snapshot
74 snapshots or the ``file:`` migration alone, mapped-ram provides
[all …]
/openbmc/u-boot/arch/arm/mach-mediatek/mt7629/
H A Dinit.c97 struct ram_info ram; in dram_init() local
105 ret = ram_get_info(dev, &ram); in dram_init()
109 debug("RAM init base=%lx, size=%x\n", ram.base, ram.size); in dram_init()
111 gd->ram_size = ram.size; in dram_init()
/openbmc/u-boot/arch/arm/mach-rockchip/
H A Dsdram_common.c74 struct ram_info ram; in dram_init() local
83 ret = ram_get_info(dev, &ram); in dram_init()
88 gd->ram_size = ram.size; in dram_init()
90 (unsigned long)ram.base, (unsigned long)ram.size); in dram_init()
/openbmc/qemu/hw/tpm/
H A Dtpm_ppi.c54 memory_region_init_ram_device_ptr(&tpmppi->ram, obj, "tpm-ppi", in tpm_ppi_init()
56 vmstate_register_ram(&tpmppi->ram, DEVICE(obj)); in tpm_ppi_init()
58 memory_region_add_subregion(m, addr, &tpmppi->ram); in tpm_ppi_init()
/openbmc/qemu/migration/
H A Dmigration-hmp-cmds.c194 if (info->ram) { in hmp_info_migrate()
195 g_autofree char *str_psize = size_to_str(info->ram->page_size); in hmp_info_migrate()
196 g_autofree char *str_total = size_to_str(info->ram->total); in hmp_info_migrate()
197 g_autofree char *str_transferred = size_to_str(info->ram->transferred); in hmp_info_migrate()
198 g_autofree char *str_remaining = size_to_str(info->ram->remaining); in hmp_info_migrate()
199 g_autofree char *str_precopy = size_to_str(info->ram->precopy_bytes); in hmp_info_migrate()
200 g_autofree char *str_multifd = size_to_str(info->ram->multifd_bytes); in hmp_info_migrate()
201 g_autofree char *str_postcopy = size_to_str(info->ram->postcopy_bytes); in hmp_info_migrate()
205 info->ram->mbps); in hmp_info_migrate()
223 info->ram->normal, info->ram->duplicate); in hmp_info_migrate()
[all …]
/openbmc/openbmc/poky/meta/recipes-core/initscripts/initscripts-1.0/
H A Dumountfs23 grep -q /mnt/ram /proc/mounts && mount -o remount,ro /mnt/ram
/openbmc/u-boot/board/keymile/scripts/
H A DREADME8 run ramfs : setup environment to configure for rootfs in ram
25 This file defines variables for working with rootfs inside the ram for powerpc
31 ram.
/openbmc/qemu/hw/core/
H A Dnull-machine.c34 if (mch->ram) { in machine_none_init()
35 memory_region_add_subregion(get_system_memory(), 0, mch->ram); in machine_none_init()
/openbmc/qemu/docs/
H A Dpci_expander_bridge.txt24 -object memory-backend-ram,size=1024M,policy=bind,host-nodes=0,id=ram-node0 -numa node,nodeid=0,cpu…
25 -object memory-backend-ram,size=1024M,policy=bind,host-nodes=1,id=ram-node1 -numa node,nodeid=1,cpu…
/openbmc/u-boot/arch/x86/cpu/tangier/
H A Dsdram.c173 phys_size_t ram = 0; in sfi_get_ram_size() local
184 ram += mentry->pages << 12; in sfi_get_ram_size()
187 debug("sfi: RAM size %llu\n", ram); in sfi_get_ram_size()
188 return ram; in sfi_get_ram_size()
/openbmc/u-boot/arch/arm/mach-aspeed/ast2400/
H A Dboard_common.c126 struct ram_info ram; in dram_init()
135 ret = ram_get_info(dev, &ram); in dram_init()
141 gd->ram_size = ram.size; in dram_init()
/openbmc/qemu/docs/system/i386/
H A Dxenpvh.rst48 …-machine xenpvh,ram-low-base=0,ram-low-size=2147483648,ram-high-base=4294967296,ram-high-size=2147…
/openbmc/u-boot/board/CZ.NIC/turris_mox/
H A Dmox_sp.c108 int mbox_sp_get_board_info(u64 *sn, u8 *mac1, u8 *mac2, int *bv, int *ram) in mbox_sp_get_board_info() argument
126 if (ram) in mbox_sp_get_board_info()
127 *ram = out[3]; in mbox_sp_get_board_info()
/openbmc/qemu/hw/display/
H A Dqxl.c269 qxl->guest_monitors_config = qxl->ram->monitors_config; in qxl_spice_monitors_config_async()
271 qxl->ram->monitors_config, in qxl_spice_monitors_config_async()
411 d->ram = (QXLRam *)(buf + le32_to_cpu(d->shadow_rom.ram_header_offset)); in init_qxl_ram()
415 d->ram->magic = cpu_to_le32(QXL_RAM_MAGIC); in init_qxl_ram()
416 d->ram->int_pending = cpu_to_le32(0); in init_qxl_ram()
417 d->ram->int_mask = cpu_to_le32(0); in init_qxl_ram()
418 d->ram->update_surface = 0; in init_qxl_ram()
419 d->ram->monitors_config = 0; in init_qxl_ram()
420 SPICE_RING_INIT(&d->ram->cmd_ring); in init_qxl_ram()
421 SPICE_RING_INIT(&d->ram->cursor_ring); in init_qxl_ram()
[all …]
/openbmc/u-boot/arch/arm/mach-aspeed/ast2600/
H A Dboard_common.c100 struct ram_info ram; in dram_init() local
109 ret = ram_get_info(dev, &ram); in dram_init()
115 gd->ram_size = ram.size; in dram_init()

12345678910>>...13