/Zephyr-latest/subsys/bluetooth/mesh/ |
D | blob_io_flash.c | 64 size_t erase_size; in block_start() local 86 erase_size = page.size * DIV_ROUND_UP(block->size, page.size); in block_start() 88 erase_size = block->size; in block_start() 92 erase_size); in block_start()
|
/Zephyr-latest/subsys/mgmt/mcumgr/grp/img_mgmt/src/ |
D | zephyr_img_mgmt.c | 474 size_t erase_size = page.start_offset + page.size - fa->fa_off; in img_mgmt_erase_image_data() local 476 rc = flash_area_flatten(fa, 0, erase_size); in img_mgmt_erase_image_data() 479 LOG_ERR("image slot erase of 0x%zx bytes failed (err %d)", erase_size, in img_mgmt_erase_image_data() 485 LOG_INF("Erased 0x%zx bytes of image slot", erase_size); in img_mgmt_erase_image_data() 495 if (off >= erase_size) { in img_mgmt_erase_image_data() 499 erase_size = fa->fa_size - off; in img_mgmt_erase_image_data() 501 rc = flash_area_flatten(fa, off, erase_size); in img_mgmt_erase_image_data() 504 erase_size, rc); in img_mgmt_erase_image_data() 509 LOG_INF("Erased 0x%zx bytes of image slot trailer", erase_size); in img_mgmt_erase_image_data()
|
/Zephyr-latest/drivers/flash/ |
D | flash_nxp_s32_qspi_nor.c | 658 size_t size, size_t *erase_size) in nxp_s32_qspi_erase_block() argument 682 *erase_size = BIT(etp->size); in nxp_s32_qspi_erase_block() 683 status = Qspi_Ip_EraseBlock(data->instance, (uint32_t)offset, *erase_size); in nxp_s32_qspi_erase_block() 686 *erase_size, (long)offset, status); in nxp_s32_qspi_erase_block() 702 size_t erase_size; in nxp_s32_qspi_erase() local 719 erase_size = 0; in nxp_s32_qspi_erase() 721 ret = nxp_s32_qspi_erase_block(dev, offset, size, &erase_size); in nxp_s32_qspi_erase() 733 erase_size); in nxp_s32_qspi_erase() 742 offset += erase_size; in nxp_s32_qspi_erase() 743 size -= erase_size; in nxp_s32_qspi_erase()
|
D | flash_cadence_qspi_nor_ll.c | 867 uint32_t erase_size = MIN(size, CAD_QSPI_SUBSECTOR_SIZE - subsector_offset); in cad_qspi_erase() local 881 offset += erase_size; in cad_qspi_erase() 882 size -= erase_size; in cad_qspi_erase() 883 erase_size = MIN(size, CAD_QSPI_SUBSECTOR_SIZE); in cad_qspi_erase()
|
D | flash_andes_qspi.c | 647 uint32_t erase_size = BIT(exponent); in setup_pages_layout() local 652 if ((layout_page_size % erase_size) != 0) { in setup_pages_layout() 654 layout_page_size, erase_size); in setup_pages_layout()
|
D | flash_stm32_qspi.c | 927 uint32_t erase_size = BIT(exp) << STM32_QSPI_DOUBLE_FLASH; in setup_pages_layout() local 930 if ((layout_page_size % erase_size) != 0) { in setup_pages_layout() 932 layout_page_size, erase_size); in setup_pages_layout() 934 layout_page_size = erase_size; in setup_pages_layout()
|
D | flash_stm32_xspi.c | 1576 uint32_t erase_size = BIT(value); in setup_pages_layout() local 1578 if (erase_size == 0) { in setup_pages_layout() 1579 erase_size = SPI_NOR_SECTOR_SIZE; in setup_pages_layout() 1583 if ((layout_page_size % erase_size) != 0) { in setup_pages_layout() 1585 layout_page_size, erase_size); in setup_pages_layout() 1587 layout_page_size = erase_size; in setup_pages_layout()
|
D | flash_stm32_ospi.c | 1739 uint32_t erase_size = BIT(value); in setup_pages_layout() local 1741 if (erase_size == 0) { in setup_pages_layout() 1742 erase_size = SPI_NOR_SECTOR_SIZE; in setup_pages_layout() 1746 if ((layout_page_size % erase_size) != 0) { in setup_pages_layout() 1748 layout_page_size, erase_size); in setup_pages_layout() 1750 layout_page_size = erase_size; in setup_pages_layout()
|
D | spi_nor.c | 1370 uint32_t erase_size = BIT(exp); in setup_pages_layout() local 1375 if ((layout_page_size % erase_size) != 0) { in setup_pages_layout() 1377 layout_page_size, erase_size); in setup_pages_layout()
|
/Zephyr-latest/drivers/espi/ |
D | espi_saf_mchp_xec.c | 634 static uint32_t get_erase_size_encoding(uint32_t erase_size) in get_erase_size_encoding() argument 642 if ((sz == erase_size) && in get_erase_size_encoding()
|
D | espi_saf_mchp_xec_v2.c | 806 static uint32_t get_erase_size_encoding(const struct device *dev, uint32_t erase_size) in get_erase_size_encoding() argument 816 if ((sz == erase_size) && in get_erase_size_encoding()
|
/Zephyr-latest/include/zephyr/sd/ |
D | sd_spec.h | 569 uint8_t erase_size; member
|
/Zephyr-latest/subsys/sd/ |
D | mmc.c | 342 csd->erase_size = (uint8_t)((raw_csd[1U] & 0x00007C00U) >> 10U); in mmc_decode_csd()
|
D | sd_ops.c | 163 csd->erase_size = (uint8_t)((raw_csd[1U] & 0x3F80U) >> 7U); in sdmmc_decode_csd()
|