Lines Matching refs:to_write
875 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()
914 addr += to_write; in spi_nor_write()