Home
last modified time | relevance | path

Searched refs:fetch_size (Results 1 – 5 of 5) sorted by relevance

/bootable/recovery/minadbd/
Dfuse_adb_provider.cpp27 int read_block_adb(void* data, uint32_t block, uint8_t* buffer, uint32_t fetch_size) { in read_block_adb() argument
35 if (!ReadFdExactly(ad->sfd, buffer, fetch_size)) { in read_block_adb()
Dfuse_adb_provider.h29 int read_block_adb(void* cookie, uint32_t block, uint8_t* buffer, uint32_t fetch_size);
/bootable/recovery/
Dfuse_sdcard_provider.cpp37 static int read_block_file(void* cookie, uint32_t block, uint8_t* buffer, uint32_t fetch_size) { in read_block_file() argument
46 if (!android::base::ReadFully(fd->fd, buffer, fetch_size)) { in read_block_file()
Dfuse_sideload.h29 int (*read_block)(void* cookie, uint32_t block, uint8_t* buffer, uint32_t fetch_size);
Dfuse_sideload.cpp250 size_t fetch_size = fd->block_size; in fetch_block() local
251 if (block * fd->block_size + fetch_size > fd->file_size) { in fetch_block()
255 fetch_size = fd->file_size - (block * fd->block_size); in fetch_block()
256 memset(fd->block_data + fetch_size, 0, fd->block_size - fetch_size); in fetch_block()
259 int result = fd->vtab->read_block(fd->cookie, block, fd->block_data, fetch_size); in fetch_block()