Searched refs:num_protected_sectors (Results 1 – 2 of 2) sorted by relevance
566 uint32_t num_protected_sectors = i ? MIN(1 << (i - 1), n_sectors) : 0; in aspeed_smc_test_write_block_protect() local567 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() local614 uint32_t protection_end = num_protected_sectors; in aspeed_smc_test_write_block_protect_bottom_bit()
676 uint32_t num_protected_sectors = 1 << (block_protect_value - 1); in flash_write8() local681 if (s->pi->n_sectors <= sector + num_protected_sectors) { in flash_write8()687 if (sector < num_protected_sectors) { in flash_write8()