Home
last modified time | relevance | path

Searched refs:erase_size (Results 1 – 14 of 14) sorted by relevance

/Zephyr-latest/subsys/bluetooth/mesh/
Dblob_io_flash.c64 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/
Dzephyr_img_mgmt.c474 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/
Dflash_nxp_s32_qspi_nor.c658 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()
Dflash_cadence_qspi_nor_ll.c867 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()
Dflash_andes_qspi.c647 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()
Dflash_stm32_qspi.c927 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()
Dflash_stm32_xspi.c1576 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()
Dflash_stm32_ospi.c1739 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()
Dspi_nor.c1370 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/
Despi_saf_mchp_xec.c634 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()
Despi_saf_mchp_xec_v2.c806 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/
Dsd_spec.h569 uint8_t erase_size; member
/Zephyr-latest/subsys/sd/
Dmmc.c342 csd->erase_size = (uint8_t)((raw_csd[1U] & 0x00007C00U) >> 10U); in mmc_decode_csd()
Dsd_ops.c163 csd->erase_size = (uint8_t)((raw_csd[1U] & 0x3F80U) >> 7U); in sdmmc_decode_csd()