/external/vboot_reference/tests/ |
D | verify_kernel.c | 27 VbError_t VbExDiskRead(VbExDiskHandle_t handle, uint64_t lba_start, in VbExDiskRead() argument 32 if (lba_start >= params.streaming_lba_count) in VbExDiskRead() 34 if (lba_start + lba_count > params.streaming_lba_count) in VbExDiskRead() 37 memcpy(buffer, diskbuf + lba_start * 512, lba_count * 512); in VbExDiskRead() 41 VbError_t VbExDiskWrite(VbExDiskHandle_t handle, uint64_t lba_start, in VbExDiskWrite() argument 46 if (lba_start >= params.streaming_lba_count) in VbExDiskWrite() 48 if (lba_start + lba_count > params.streaming_lba_count) in VbExDiskWrite() 51 memcpy(diskbuf + lba_start * 512, buffer, lba_count * 512); in VbExDiskWrite()
|
D | vboot_kernel_tests.c | 182 VbError_t VbExDiskRead(VbExDiskHandle_t handle, uint64_t lba_start, in VbExDiskRead() argument 185 LOGCALL("VbExDiskRead(h, %d, %d)\n", (int)lba_start, (int)lba_count); in VbExDiskRead() 187 if ((int)lba_start == disk_read_to_fail) in VbExDiskRead() 190 memcpy(buffer, &mock_disk[lba_start * MOCK_SECTOR_SIZE], in VbExDiskRead() 196 VbError_t VbExDiskWrite(VbExDiskHandle_t handle, uint64_t lba_start, in VbExDiskWrite() argument 199 LOGCALL("VbExDiskWrite(h, %d, %d)\n", (int)lba_start, (int)lba_count); in VbExDiskWrite() 201 if ((int)lba_start == disk_write_to_fail) in VbExDiskWrite() 204 memcpy(&mock_disk[lba_start * MOCK_SECTOR_SIZE], buffer, in VbExDiskWrite()
|
D | vboot_api_devmode_tests.c | 209 VbError_t VbExDiskRead(VbExDiskHandle_t handle, uint64_t lba_start, in VbExDiskRead() argument 214 VbError_t VbExDiskWrite(VbExDiskHandle_t handle, uint64_t lba_start, in VbExDiskWrite() argument
|
/external/vboot_reference/utility/ |
D | load_kernel_test.c | 36 VbError_t VbExDiskRead(VbExDiskHandle_t handle, uint64_t lba_start, in VbExDiskRead() argument 38 printf("Read(%" PRIu64 ", %" PRIu64 ")\n", lba_start, lba_count); in VbExDiskRead() 40 if (lba_start >= lkp.streaming_lba_count || in VbExDiskRead() 41 lba_start + lba_count > lkp.streaming_lba_count) { in VbExDiskRead() 43 lba_start, lba_count, lkp.streaming_lba_count); in VbExDiskRead() 47 fseek(image_file, lba_start * lkp.bytes_per_lba, SEEK_SET); in VbExDiskRead() 56 VbError_t VbExDiskWrite(VbExDiskHandle_t handle, uint64_t lba_start, in VbExDiskWrite() argument 58 printf("Write(%" PRIu64 ", %" PRIu64 ")\n", lba_start, lba_count); in VbExDiskWrite() 60 if (lba_start >= lkp.streaming_lba_count || in VbExDiskWrite() 61 lba_start + lba_count > lkp.streaming_lba_count) { in VbExDiskWrite() [all …]
|
/external/vboot_reference/firmware/stub/ |
D | vboot_api_stub_disk.c | 35 VbError_t VbExDiskRead(VbExDiskHandle_t handle, uint64_t lba_start, in VbExDiskRead() argument 41 VbError_t VbExDiskWrite(VbExDiskHandle_t handle, uint64_t lba_start, in VbExDiskWrite() argument
|
D | vboot_api_stub_stream.c | 29 VbError_t VbExStreamOpen(VbExDiskHandle_t handle, uint64_t lba_start, in VbExStreamOpen() argument 41 s->sector = lba_start; in VbExStreamOpen()
|
/external/vboot_reference/firmware/include/ |
D | vboot_api.h | 640 VbError_t VbExDiskRead(VbExDiskHandle_t handle, uint64_t lba_start, 654 VbError_t VbExDiskWrite(VbExDiskHandle_t handle, uint64_t lba_start, 674 VbError_t VbExStreamOpen(VbExDiskHandle_t handle, uint64_t lba_start,
|