Searched refs:to_write (Results 1 – 2 of 2) sorted by relevance
382 size_t to_write = len - start; in WriteToPartition() local383 if (to_write > 1<<20) to_write = 1<<20; in WriteToPartition()385 ssize_t written = TEMP_FAILURE_RETRY(ota_write(fd, data+start, to_write)); in WriteToPartition()
1523 int to_write = strlen(stagestr)+1; in SetStageFn() local1525 if (to_write > max_size) { in SetStageFn()1526 to_write = max_size; in SetStageFn()1529 ota_fwrite(stagestr, to_write, 1, f); in SetStageFn()