Home
last modified time | relevance | path

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

/Zephyr-latest/drivers/flash/
Dspi_nor.c875 size_t to_write = size; in spi_nor_write() local
878 if (to_write >= page_size) { in spi_nor_write()
879 to_write = page_size; in spi_nor_write()
883 if (((addr + to_write - 1U) / page_size) in spi_nor_write()
885 to_write = page_size - (addr % page_size); in spi_nor_write()
898 addr, src, to_write); in spi_nor_write()
901 src, to_write); in spi_nor_write()
905 to_write); in spi_nor_write()
912 size -= to_write; in spi_nor_write()
913 src = (const uint8_t *)src + to_write; in spi_nor_write()
[all …]
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_qspi.c616 size_t to_write = size; in flash_stm32_qspi_write() local
619 if (to_write >= SPI_NOR_PAGE_SIZE) { in flash_stm32_qspi_write()
620 to_write = SPI_NOR_PAGE_SIZE; in flash_stm32_qspi_write()
624 if (((addr + to_write - 1U) / SPI_NOR_PAGE_SIZE) in flash_stm32_qspi_write()
626 to_write = SPI_NOR_PAGE_SIZE - in flash_stm32_qspi_write()
636 ret = qspi_write_access(dev, &cmd_pp, data, to_write); in flash_stm32_qspi_write()
641 size -= to_write; in flash_stm32_qspi_write()
642 data = (const uint8_t *)data + to_write; in flash_stm32_qspi_write()
643 addr += to_write; in flash_stm32_qspi_write()
Dflash_stm32_xspi.c1268 size_t to_write; in flash_stm32_xspi_write() local
1350 to_write = size; in flash_stm32_xspi_write()
1358 if (to_write >= SPI_NOR_PAGE_SIZE) { in flash_stm32_xspi_write()
1359 to_write = SPI_NOR_PAGE_SIZE; in flash_stm32_xspi_write()
1363 if (((addr + to_write - 1U) / SPI_NOR_PAGE_SIZE) in flash_stm32_xspi_write()
1365 to_write = SPI_NOR_PAGE_SIZE - in flash_stm32_xspi_write()
1370 ret = xspi_write_access(dev, &cmd_pp, data, to_write); in flash_stm32_xspi_write()
1376 size -= to_write; in flash_stm32_xspi_write()
1377 data = (const uint8_t *)data + to_write; in flash_stm32_xspi_write()
1378 addr += to_write; in flash_stm32_xspi_write()
Dflash_stm32_ospi.c1433 size_t to_write; in flash_stm32_ospi_write() local
1514 to_write = size; in flash_stm32_ospi_write()
1522 if (to_write >= SPI_NOR_PAGE_SIZE) { in flash_stm32_ospi_write()
1523 to_write = SPI_NOR_PAGE_SIZE; in flash_stm32_ospi_write()
1527 if (((addr + to_write - 1U) / SPI_NOR_PAGE_SIZE) in flash_stm32_ospi_write()
1529 to_write = SPI_NOR_PAGE_SIZE - in flash_stm32_ospi_write()
1534 ret = ospi_write_access(dev, &cmd_pp, data, to_write); in flash_stm32_ospi_write()
1540 size -= to_write; in flash_stm32_ospi_write()
1541 data = (const uint8_t *)data + to_write; in flash_stm32_ospi_write()
1542 addr += to_write; in flash_stm32_ospi_write()
/Zephyr-latest/subsys/fs/ext2/
Dext2_impl.c661 size_t to_write = MIN(nbytes, block_size - block_off); in ext2_inode_write() local
664 to_write); in ext2_inode_write()
665 LOG_DBG("Written %zd bytes at offset %d in block i%d", to_write, block_off, block); in ext2_inode_write()
672 written += to_write; in ext2_inode_write()
719 uint32_t to_write = MIN(new_size - old_size, block_size - start_off); in ext2_inode_trunc() local
726 memset(inode_current_block_mem(inode) + start_off, 0, to_write); in ext2_inode_trunc()