Home
last modified time | relevance | path

Searched refs:sector_len (Results 1 – 5 of 5) sorted by relevance

/openbmc/qemu/tests/qtest/
H A Dpflash-cfi02-test.c54 int sector_len[4]; member
75 ret.sector_len[0] = UNIFORM_FLASH_SECTOR_SIZE; in expand_config_defaults()
284 config->sector_len[0], in test_geometry()
286 config->sector_len[1], in test_geometry()
288 config->sector_len[2], in test_geometry()
290 config->sector_len[3]); in test_geometry()
351 g_assert_cmphex(sector_len, ==, c->sector_len[region]); in test_geometry()
388 byte_addr += sector_len; in test_geometry()
450 byte_addr += config->sector_len[region]; in test_geometry()
486 byte_addr = c->sector_len[0]; in test_geometry()
[all …]
/openbmc/qemu/hw/block/
H A Dpflash_cfi02.c76 uint32_t sector_len[PFLASH_MAX_ERASE_REGIONS]; member
287 .len = pfl->sector_len[i], in pflash_sector_info()
415 uint64_t sector_len = sector_info.len; in pflash_sector_erase() local
416 offset &= ~(sector_len - 1); in pflash_sector_erase()
421 memset(p + offset, 0xff, sector_len); in pflash_sector_erase()
422 pflash_update(pfl, offset, sector_len); in pflash_sector_erase()
777 uint32_t sector_len_per_device = pfl->sector_len[i]; in pflash_cfi02_fill_cfi_table()
873 pfl->sector_len[0] = pfl->uniform_sector_len; in pflash_cfi02_realize()
1001 uint32_t sector_len, in type_init()
1014 assert(QEMU_IS_ALIGNED(size, sector_len)); in type_init()
[all …]
H A Dpflash_cfi01.c68 uint64_t sector_len; member
489 offset &= ~(pfl->sector_len - 1); in pflash_write()
494 memset(p + offset, 0xff, pfl->sector_len); in pflash_write()
495 pflash_update(pfl, offset, pfl->sector_len); in pflash_write()
709 sector_len_per_device = pfl->sector_len; in pflash_cfi01_fill_cfi_table()
810 if (pfl->sector_len == 0) { in pflash_cfi01_realize()
823 total_len = pfl->sector_len * pfl->nb_blocs; in pflash_cfi01_realize()
969 uint32_t sector_len, in type_init()
980 assert(QEMU_IS_ALIGNED(size, sector_len)); in type_init()
982 qdev_prop_set_uint64(dev, "sector-length", sector_len); in type_init()
[all …]
/openbmc/qemu/include/hw/block/
H A Dflash.h19 uint32_t sector_len,
38 uint32_t sector_len,
/openbmc/qemu/hw/ppc/
H A De500.c1127 uint32_t sector_len = 64 * KiB; in ppce500_init() local
1140 if (!QEMU_IS_ALIGNED(size, sector_len)) { in ppce500_init()
1142 ".", sector_len); in ppce500_init()
1148 qdev_prop_set_uint32(dev, "num-blocks", size / sector_len); in ppce500_init()
1149 qdev_prop_set_uint64(dev, "sector-length", sector_len); in ppce500_init()