Home
last modified time | relevance | path

Searched refs:num_protected_sectors (Results 1 – 2 of 2) sorted by relevance

/openbmc/qemu/tests/qtest/
H A Daspeed-smc-utils.c566 uint32_t num_protected_sectors = i ? MIN(1 << (i - 1), n_sectors) : 0; in aspeed_smc_test_write_block_protect() local
567 uint32_t protection_start = n_sectors - num_protected_sectors; in aspeed_smc_test_write_block_protect()
612 uint32_t num_protected_sectors = i ? MIN(1 << (i - 1), n_sectors) : 0; in aspeed_smc_test_write_block_protect_bottom_bit() local
614 uint32_t protection_end = num_protected_sectors; in aspeed_smc_test_write_block_protect_bottom_bit()
/openbmc/qemu/hw/block/
H A Dm25p80.c676 uint32_t num_protected_sectors = 1 << (block_protect_value - 1); in flash_write8() local
681 if (s->pi->n_sectors <= sector + num_protected_sectors) { in flash_write8()
687 if (sector < num_protected_sectors) { in flash_write8()