Home
last modified time | relevance | path

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

/Zephyr-Core-3.5.0/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-Core-3.5.0/subsys/mgmt/mcumgr/grp/img_mgmt/src/
Dzephyr_img_mgmt.c467 size_t erase_size = page.start_offset + page.size - fa->fa_off; in img_mgmt_erase_image_data() local
469 rc = flash_area_erase(fa, 0, erase_size); in img_mgmt_erase_image_data()
472 LOG_ERR("image slot erase of 0x%zx bytes failed (err %d)", erase_size, in img_mgmt_erase_image_data()
478 LOG_INF("Erased 0x%zx bytes of image slot", erase_size); in img_mgmt_erase_image_data()
488 if (off >= erase_size) { in img_mgmt_erase_image_data()
492 erase_size = fa->fa_size - off; in img_mgmt_erase_image_data()
494 rc = flash_area_erase(fa, off, erase_size); in img_mgmt_erase_image_data()
497 erase_size, rc); in img_mgmt_erase_image_data()
502 LOG_INF("Erased 0x%zx bytes of image slot trailer", erase_size); in img_mgmt_erase_image_data()
/Zephyr-Core-3.5.0/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.c854 uint32_t erase_size = MIN(size, CAD_QSPI_SUBSECTOR_SIZE - subsector_offset); in cad_qspi_erase() local
868 offset += erase_size; in cad_qspi_erase()
869 size -= erase_size; in cad_qspi_erase()
870 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.c747 uint32_t erase_size = BIT(exp); in setup_pages_layout() local
750 if ((layout_page_size % erase_size) != 0) { in setup_pages_layout()
752 layout_page_size, erase_size); in setup_pages_layout()
754 layout_page_size = erase_size; in setup_pages_layout()
Dspi_nor.c1122 uint32_t erase_size = BIT(exp); in setup_pages_layout() local
1127 if ((layout_page_size % erase_size) != 0) { in setup_pages_layout()
1129 layout_page_size, erase_size); in setup_pages_layout()
Dflash_stm32_ospi.c1504 uint32_t erase_size = BIT(value); in setup_pages_layout() local
1506 if (erase_size == 0) { in setup_pages_layout()
1507 erase_size = SPI_NOR_SECTOR_SIZE; in setup_pages_layout()
1511 if ((layout_page_size % erase_size) != 0) { in setup_pages_layout()
1513 layout_page_size, erase_size); in setup_pages_layout()
1515 layout_page_size = erase_size; in setup_pages_layout()
/Zephyr-Core-3.5.0/drivers/disk/
Dsdmmc_sdhc.h269 uint8_t erase_size; member
667 csd->erase_size = (uint8_t)((raw_csd[1U] & in sdhc_decode_csd()
/Zephyr-Core-3.5.0/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-Core-3.5.0/include/zephyr/sd/
Dsd_spec.h548 uint8_t erase_size; member
/Zephyr-Core-3.5.0/subsys/sd/
Dmmc.c342 csd->erase_size = (uint8_t)((raw_csd[1U] & 0x00007C00U) >> 10U); in mmc_decode_csd()
Dsd_ops.c154 csd->erase_size = (uint8_t)((raw_csd[1U] & 0x3F80U) >> 7U); in sdmmc_decode_csd()