Home
last modified time | relevance | path

Searched refs:to_write (Results 1 – 5 of 5) sorted by relevance

/Zephyr-Core-3.5.0/drivers/flash/
Dspi_nor.c722 size_t to_write = size; in spi_nor_write() local
725 if (to_write >= page_size) { in spi_nor_write()
726 to_write = page_size; in spi_nor_write()
730 if (((addr + to_write - 1U) / page_size) in spi_nor_write()
732 to_write = page_size - (addr % page_size); in spi_nor_write()
737 src, to_write); in spi_nor_write()
742 size -= to_write; in spi_nor_write()
743 src = (const uint8_t *)src + to_write; in spi_nor_write()
744 addr += to_write; in spi_nor_write()
Dflash_stm32_qspi.c461 size_t to_write = size; in flash_stm32_qspi_write() local
464 if (to_write >= SPI_NOR_PAGE_SIZE) { in flash_stm32_qspi_write()
465 to_write = SPI_NOR_PAGE_SIZE; in flash_stm32_qspi_write()
469 if (((addr + to_write - 1U) / SPI_NOR_PAGE_SIZE) in flash_stm32_qspi_write()
471 to_write = SPI_NOR_PAGE_SIZE - in flash_stm32_qspi_write()
481 ret = qspi_write_access(dev, &cmd_pp, data, to_write); in flash_stm32_qspi_write()
486 size -= to_write; in flash_stm32_qspi_write()
487 data = (const uint8_t *)data + to_write; in flash_stm32_qspi_write()
488 addr += to_write; in flash_stm32_qspi_write()
Dflash_andes_qspi.c332 size_t to_write = size; in flash_andes_qspi_write() local
354 to_write = MIN(page_size - (addr % page_size), size); in flash_andes_qspi_write()
357 FLASH_ANDES_CMD_4PP, addr, src, to_write); in flash_andes_qspi_write()
363 size -= to_write; in flash_andes_qspi_write()
364 src = (const uint8_t *)src + to_write; in flash_andes_qspi_write()
365 addr += to_write; in flash_andes_qspi_write()
Dflash_stm32_ospi.c1213 size_t to_write; in flash_stm32_ospi_write() local
1281 to_write = size; in flash_stm32_ospi_write()
1289 if (to_write >= SPI_NOR_PAGE_SIZE) { in flash_stm32_ospi_write()
1290 to_write = SPI_NOR_PAGE_SIZE; in flash_stm32_ospi_write()
1294 if (((addr + to_write - 1U) / SPI_NOR_PAGE_SIZE) in flash_stm32_ospi_write()
1296 to_write = SPI_NOR_PAGE_SIZE - in flash_stm32_ospi_write()
1301 ret = ospi_write_access(dev, &cmd_pp, data, to_write); in flash_stm32_ospi_write()
1307 size -= to_write; in flash_stm32_ospi_write()
1308 data = (const uint8_t *)data + to_write; in flash_stm32_ospi_write()
1309 addr += to_write; in flash_stm32_ospi_write()
/Zephyr-Core-3.5.0/subsys/fs/ext2/
Dext2_impl.c659 size_t to_write = MIN(nbytes, block_size - block_off); in ext2_inode_write() local
662 to_write); in ext2_inode_write()
663 LOG_DBG("Written %zd bytes at offset %d in block i%d", to_write, block_off, block); in ext2_inode_write()
670 written += to_write; in ext2_inode_write()
717 uint32_t to_write = MIN(new_size - old_size, block_size - start_off); in ext2_inode_trunc() local
724 memset(inode_current_block_mem(inode) + start_off, 0, to_write); in ext2_inode_trunc()