Home
last modified time | relevance | path

Searched refs:lba_start (Results 1 – 7 of 7) sorted by relevance

/external/vboot_reference/tests/
Dverify_kernel.c27 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()
Dvboot_kernel_tests.c182 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()
Dvboot_api_devmode_tests.c209 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/
Dload_kernel_test.c36 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/
Dvboot_api_stub_disk.c35 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
Dvboot_api_stub_stream.c29 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/
Dvboot_api.h640 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,