Searched refs:nb_blocs (Results 1 – 3 of 3) sorted by relevance
/openbmc/qemu/tests/qtest/ |
H A D | pflash-cfi02-test.c | 53 int nb_blocs[4]; member 74 if (ret.nb_blocs[0] == 0 && ret.sector_len[0] == 0) { in expand_config_defaults() 76 ret.nb_blocs[0] = UNIFORM_FLASH_SIZE / UNIFORM_FLASH_SECTOR_SIZE; in expand_config_defaults() 283 config->nb_blocs[0], in test_geometry() 285 config->nb_blocs[1], in test_geometry() 287 config->nb_blocs[2], in test_geometry() 289 config->nb_blocs[3], in test_geometry() 320 !!c->nb_blocs[0] + !!c->nb_blocs[1] + !!c->nb_blocs[2] + in test_geometry() 321 !!c->nb_blocs[3]); in test_geometry() 350 g_assert_cmphex(nb_sectors, ==, c->nb_blocs[region]); in test_geometry() [all …]
|
/openbmc/qemu/hw/block/ |
H A D | pflash_cfi02.c | 75 uint32_t nb_blocs[PFLASH_MAX_ERASE_REGIONS]; member 284 uint64_t region_size = (uint64_t)pfl->nb_blocs[i] * pfl->sector_len[i]; in pflash_sector_info() 291 sector_num += pfl->nb_blocs[i]; in pflash_sector_info() 778 pfl->cfi_table[0x2d + 4 * i] = pfl->nb_blocs[i] - 1; in pflash_cfi02_fill_cfi_table() 779 pfl->cfi_table[0x2e + 4 * i] = (pfl->nb_blocs[i] - 1) >> 8; in pflash_cfi02_fill_cfi_table() 825 if (pfl->uniform_nb_blocs == 0 && pfl->nb_blocs[0] == 0) { in pflash_cfi02_realize() 838 if (pfl->nb_blocs[nb_regions] == 0) { in pflash_cfi02_realize() 841 pfl->total_sectors += pfl->nb_blocs[nb_regions]; in pflash_cfi02_realize() 865 pfl->nb_blocs[nb_regions]; in pflash_cfi02_realize() 872 pfl->nb_blocs[0] = pfl->uniform_nb_blocs; in pflash_cfi02_realize() [all …]
|
H A D | pflash_cfi01.c | 66 uint32_t nb_blocs; member 707 blocks_per_device = pfl->nb_blocs / num_devices; in pflash_cfi01_fill_cfi_table() 710 blocks_per_device = pfl->nb_blocs; in pflash_cfi01_fill_cfi_table() 813 if (pfl->nb_blocs == 0) { in pflash_cfi01_realize() 822 total_len = pfl->sector_len * pfl->nb_blocs; in pflash_cfi01_realize() 905 DEFINE_PROP_UINT32("num-blocks", PFlashCFI01, nb_blocs, 0), 1035 pflash_update(pfl, 0, pfl->sector_len * pfl->nb_blocs); in postload_update_cb()
|