/openbmc/u-boot/board/gateworks/gw_ventana/ |
H A D | gw_ventana_spl.c | 484 static void spl_dram_init(int width, int size_mb, int board_model) in spl_dram_init() argument 521 if (width == 16 && size_mb == 128) { in spl_dram_init() 528 } else if (width == 16 && size_mb == 256) { in spl_dram_init() 536 } else if (width == 16 && size_mb == 512) { in spl_dram_init() 543 } else if (width == 16 && size_mb == 1024) { in spl_dram_init() 548 } else if (width == 32 && size_mb == 256) { in spl_dram_init() 556 } else if (width == 32 && size_mb == 512) { in spl_dram_init() 563 } else if (width == 32 && size_mb == 1024) { in spl_dram_init() 570 } else if (width == 32 && size_mb == 2048) { in spl_dram_init() 575 } else if (width == 64 && size_mb == 512) { in spl_dram_init() [all …]
|
/openbmc/u-boot/arch/arm/mach-rockchip/ |
H A D | sdram_common.c | 18 size_t size_mb = 0; in rockchip_sdram_size() local 46 size_mb += chipsize_mb; in rockchip_sdram_size() 66 if (size_mb > (SDRAM_MAX_SIZE >> 20)) in rockchip_sdram_size() 67 size_mb = (SDRAM_MAX_SIZE >> 20); in rockchip_sdram_size() 69 return (size_t)size_mb << 20; in rockchip_sdram_size()
|
/openbmc/qemu/tests/qemu-iotests/ |
H A D | 149 | 223 def create_image(config, size_mb): argument 227 iotests.log("truncate %s --size %dMB" % (config.image_path(), size_mb), 230 fn.truncate(size_mb * 1024 * 1024) 245 def qemu_img_create(config, size_mb): argument 265 "%dM" % size_mb] 290 def qemu_io_write_pattern(config, pattern, offset_mb, size_mb, dev=False): argument 295 args = ["-c", "write -P 0x%x %dM %dM" % (pattern, offset_mb, size_mb)] 303 def qemu_io_read_pattern(config, pattern, offset_mb, size_mb, dev=False): argument 308 args = ["-c", "read -P 0x%x %dM %dM" % (pattern, offset_mb, size_mb)]
|
/openbmc/qemu/tests/qtest/libqos/ |
H A D | libqos.c | 140 void mkqcow2(const char *file, unsigned size_mb) in mkqcow2() argument 142 g_assert_true(mkimg(file, "qcow2", size_mb)); in mkqcow2()
|
H A D | libqos.h | 30 void mkqcow2(const char *file, unsigned size_mb);
|
/openbmc/linux/drivers/edac/ |
H A D | i5400_edac.c | 1171 int size_mb; in i5400_init_dimms() local 1193 size_mb = pvt->dimm_info[slot][channel].megabytes; in i5400_init_dimms() 1197 size_mb / 1000, size_mb % 1000); in i5400_init_dimms() 1199 dimm->nr_pages = size_mb << 8; in i5400_init_dimms()
|
H A D | edac_mc_sysfs.c | 250 DEVICE_ATTR_LEGACY(size_mb, S_IRUGO, csrow_size_show, NULL); 869 static DEVICE_ATTR(size_mb, S_IRUGO, mci_size_mb_show, NULL);
|
/openbmc/qemu/hw/smbios/ |
H A D | smbios.c | 869 uint64_t size_mb; in smbios_build_type_17_table() local 877 size_mb = QEMU_ALIGN_UP(size, MiB) / MiB; in smbios_build_type_17_table() 878 if (size_mb < MAX_T17_STD_SZ) { in smbios_build_type_17_table() 879 t->size = cpu_to_le16(size_mb); in smbios_build_type_17_table() 882 assert(size_mb < MAX_T17_EXT_SZ); in smbios_build_type_17_table() 884 t->extended_size = cpu_to_le32(size_mb); in smbios_build_type_17_table()
|
/openbmc/linux/fs/jffs2/ |
H A D | fs.c | 503 int size_mb = flash_size / 1024 / 1024; in calculate_inocache_hashsize() local 504 int hashsize = (size_mb * 2) & ~0x3f; in calculate_inocache_hashsize()
|
/openbmc/qemu/tests/qtest/ |
H A D | libqtest.h | 1094 bool mkimg(const char *file, const char *fmt, unsigned size_mb);
|
H A D | libqtest.c | 1966 bool mkimg(const char *file, const char *fmt, unsigned size_mb) in mkimg() argument 1986 fmt, file, size_mb); in mkimg()
|
/openbmc/linux/drivers/scsi/csiostor/ |
H A D | csio_init.c | 113 unsigned int idx, unsigned int size_mb) in csio_add_debugfs_mem() argument 117 size_mb << 20); in csio_add_debugfs_mem()
|
H A D | csio_hw.c | 769 u32 size_mb; in csio_hw_get_flash_params() member 790 hw->params.sf_size = supported_flash[part].size_mb; in csio_hw_get_flash_params()
|
/openbmc/linux/drivers/media/platform/allegro-dvt/ |
H A D | allegro-core.c | 1576 unsigned int size_mb = SIZE_MACROBLOCK; in allegro_h264_write_sps() local 1607 DIV_ROUND_UP(channel->width, size_mb) - 1; in allegro_h264_write_sps() 1609 DIV_ROUND_UP(channel->height, size_mb) - 1; in allegro_h264_write_sps() 1614 (channel->width % size_mb) || (channel->height % size_mb); in allegro_h264_write_sps() 1617 sps->crop_right = (round_up(channel->width, size_mb) - channel->width) / crop_unit_x; in allegro_h264_write_sps() 1619 sps->crop_bottom = (round_up(channel->height, size_mb) - channel->height) / crop_unit_y; in allegro_h264_write_sps()
|
/openbmc/linux/Documentation/ABI/testing/ |
H A D | sysfs-devices-edac | 25 What: /sys/devices/system/edac/mc/mc*/size_mb
|
/openbmc/linux/Documentation/admin-guide/ |
H A D | ras.rst | 463 │ │ ├── size_mb 484 │ │ ├── size_mb 606 - ``size_mb`` - Total memory managed by this csrow attribute file
|
/openbmc/linux/drivers/net/ethernet/chelsio/cxgb4/ |
H A D | cxgb4_debugfs.c | 3397 unsigned int idx, unsigned int size_mb) in add_debugfs_mem() argument 3401 size_mb << 20); in add_debugfs_mem()
|
H A D | t4_hw.c | 8949 u32 size_mb; member 8983 adap->params.sf_size = supported_flash[part].size_mb; in t4_get_flash_params()
|