Lines Matching refs:remaining_length
81 uint32_t remaining_length = len; /* length of data left to be erased */ in flash_nios2_qspi_erase() local
106 if ((remaining_length <= 0U) || in flash_nios2_qspi_erase()
125 remaining_length); in flash_nios2_qspi_erase()
164 remaining_length -= length_to_erase; in flash_nios2_qspi_erase()
188 int32_t remaining_length = len; /* length left to write */ in flash_nios2_qspi_write_block() local
194 while (remaining_length > 0) { in flash_nios2_qspi_write_block()
221 if (bytes_to_copy > remaining_length) { in flash_nios2_qspi_write_block()
222 bytes_to_copy = remaining_length; in flash_nios2_qspi_write_block()
233 if (bytes_to_copy > remaining_length) { in flash_nios2_qspi_write_block()
234 bytes_to_copy = remaining_length; in flash_nios2_qspi_write_block()
271 remaining_length -= bytes_to_copy; in flash_nios2_qspi_write_block()
287 uint32_t remaining_length = len; /* length of data left to be written */ in flash_nios2_qspi_write() local
311 if (remaining_length <= 0U) { in flash_nios2_qspi_write()
329 remaining_length); in flash_nios2_qspi_write()
340 remaining_length -= length_to_write; in flash_nios2_qspi_write()
362 uint32_t remaining_length = len; /* length left to read */ in flash_nios2_qspi_read() local
387 if (bytes_to_copy > remaining_length) { in flash_nios2_qspi_read()
388 bytes_to_copy = remaining_length; in flash_nios2_qspi_read()
397 remaining_length -= bytes_to_copy; in flash_nios2_qspi_read()
401 while (remaining_length > 0) { in flash_nios2_qspi_read()
405 if (bytes_to_copy > remaining_length) { in flash_nios2_qspi_read()
406 bytes_to_copy = remaining_length; in flash_nios2_qspi_read()
416 remaining_length -= bytes_to_copy; in flash_nios2_qspi_read()