Home
last modified time | relevance | path

Searched refs:size_mb (Results 1 – 18 of 18) sorted by relevance

/openbmc/u-boot/board/gateworks/gw_ventana/
H A Dgw_ventana_spl.c484 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 Dsdram_common.c18 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 D149223 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 Dlibqos.c140 void mkqcow2(const char *file, unsigned size_mb) in mkqcow2() argument
142 g_assert_true(mkimg(file, "qcow2", size_mb)); in mkqcow2()
H A Dlibqos.h30 void mkqcow2(const char *file, unsigned size_mb);
/openbmc/linux/drivers/edac/
H A Di5400_edac.c1171 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 Dedac_mc_sysfs.c250 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 Dsmbios.c869 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 Dfs.c503 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 Dlibqtest.h1094 bool mkimg(const char *file, const char *fmt, unsigned size_mb);
H A Dlibqtest.c1966 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 Dcsio_init.c113 unsigned int idx, unsigned int size_mb) in csio_add_debugfs_mem() argument
117 size_mb << 20); in csio_add_debugfs_mem()
H A Dcsio_hw.c769 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 Dallegro-core.c1576 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 Dsysfs-devices-edac25 What: /sys/devices/system/edac/mc/mc*/size_mb
/openbmc/linux/Documentation/admin-guide/
H A Dras.rst463 │   │   ├── 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 Dcxgb4_debugfs.c3397 unsigned int idx, unsigned int size_mb) in add_debugfs_mem() argument
3401 size_mb << 20); in add_debugfs_mem()
H A Dt4_hw.c8949 u32 size_mb; member
8983 adap->params.sf_size = supported_flash[part].size_mb; in t4_get_flash_params()