Searched refs:total_read (Results 1 – 3 of 3) sorted by relevance
| /system/uapp/xdc-test/ |
| A D | xdc-test.cpp | 45 size_t total_read = 0; in read_file_header() local 47 while ((total_read < len) && in read_file_header() 48 ((res = read(xdc_fd.get(), buf + total_read, len - total_read)) != 0)) { in read_file_header() 53 total_read += res; in read_file_header() 55 if (total_read != len) { in read_file_header() 56 fprintf(stderr, "Malformed file header, only read %lu bytes, want %lu\n", total_read, len); in read_file_header() 89 off_t total_read = 0; in transfer() local 90 while ((total_read < src_len) && in transfer() 96 total_read += res; in transfer()
|
| /system/uapp/usb-fwloader/ |
| A D | usb-fwloader.cpp | 168 off_t total_read = 0; in read_firmware() local 169 while ((total_read < s.st_size) && in read_firmware() 175 zx_status_t status = vmo.write(buf.get(), total_read, res); in read_firmware() 179 total_read += res; in read_firmware() 181 if (total_read != s.st_size) { in read_firmware() 182 fprintf(stderr, "Read %jd bytes, want %jd\n", (intmax_t)total_read, (intmax_t)s.st_size); in read_firmware() 185 *out_fw_size = total_read; in read_firmware()
|
| /system/utest/blobfs/ |
| A D | blobfs.cpp | 538 size_t total_read = 0; in VerifyContents() local 539 while (total_read != size_data) { in VerifyContents() 542 ASSERT_EQ(memcmp(buffer.get(), &data[total_read], result), 0); in VerifyContents() 543 total_read += result; in VerifyContents()
|
Completed in 14 milliseconds