Home
last modified time | relevance | path

Searched refs:lba_count (Results 1 – 9 of 9) sorted by relevance

/external/vboot_reference/utility/
Dload_kernel_test.c37 uint64_t lba_count, void *buffer) { in VbExDiskRead() argument
38 printf("Read(%" PRIu64 ", %" PRIu64 ")\n", lba_start, 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()
48 if (1 != fread(buffer, lba_count * lkp.bytes_per_lba, 1, image_file)) { in VbExDiskRead()
57 uint64_t lba_count, const void *buffer) { in VbExDiskWrite() argument
58 printf("Write(%" PRIu64 ", %" PRIu64 ")\n", lba_start, lba_count); in VbExDiskWrite()
61 lba_start + lba_count > lkp.streaming_lba_count) { in VbExDiskWrite()
63 lba_start, lba_count, lkp.streaming_lba_count); in VbExDiskWrite()
71 if (1 != fwrite(buffer, lba_count * lkp.bytes_per_lba, 1, image_file)) { in VbExDiskWrite()
/external/vboot_reference/tests/
Dverify_kernel.c28 uint64_t lba_count, void *buffer) in VbExDiskRead() argument
34 if (lba_start + lba_count > params.streaming_lba_count) in VbExDiskRead()
37 memcpy(buffer, diskbuf + lba_start * 512, lba_count * 512); in VbExDiskRead()
42 uint64_t lba_count, const void *buffer) in VbExDiskWrite() argument
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_api_kernel_tests.c26 uint64_t lba_count; member
236 mock_disks[num_disks].lba_count = in VbExDiskGetInfo()
238 t->disks_to_provide[i].lba_count; in VbExDiskGetInfo()
246 mock_disks[num_disks].lba_count, in VbExDiskGetInfo()
Dvboot_kernel_tests.c183 uint64_t lba_count, void *buffer) in VbExDiskRead() argument
185 LOGCALL("VbExDiskRead(h, %d, %d)\n", (int)lba_start, (int)lba_count); in VbExDiskRead()
191 lba_count * MOCK_SECTOR_SIZE); in VbExDiskRead()
197 uint64_t lba_count, const void *buffer) in VbExDiskWrite() argument
199 LOGCALL("VbExDiskWrite(h, %d, %d)\n", (int)lba_start, (int)lba_count); in VbExDiskWrite()
205 lba_count * MOCK_SECTOR_SIZE); in VbExDiskWrite()
Dvboot_api_devmode_tests.c210 uint64_t lba_count, void* buffer) { in VbExDiskRead() argument
215 uint64_t lba_count, const void* buffer) { in VbExDiskWrite() argument
/external/vboot_reference/firmware/stub/
Dvboot_api_stub_disk.c36 uint64_t lba_count, void* buffer) { in VbExDiskRead() argument
42 uint64_t lba_count, const void* buffer) { in VbExDiskWrite() argument
Dvboot_api_stub_stream.c30 uint64_t lba_count, VbExStream_t *stream) in VbExStreamOpen() argument
42 s->sectors_left = lba_count; in VbExStreamOpen()
/external/vboot_reference/firmware/include/
Dvboot_api.h589 uint64_t lba_count; member
641 uint64_t lba_count, void *buffer);
655 uint64_t lba_count, const void *buffer);
675 uint64_t lba_count, VbExStream_t *stream_ptr);
/external/vboot_reference/firmware/lib/
Dvboot_api_kernel.c107 16 > disk_info[i].lba_count || in VbTryLoadKernel()
112 disk_info[i].lba_count, in VbTryLoadKernel()
118 p->gpt_lba_count = disk_info[i].lba_count; in VbTryLoadKernel()