Home
last modified time | relevance | path

Searched refs:read_size (Results 1 – 12 of 12) sorted by relevance

/system/core/trusty/storage/proxy/
Drpmb.c366 if (req->read_size) { in send_mmc_rpmb_req()
370 cmd->blocks = req->read_size / MMC_BLOCK_SIZE; in send_mmc_rpmb_req()
463 if (req->read_size) { in send_ufs_rpmb_req()
465 in_cdb.length = __builtin_bswap32(req->read_size); in send_ufs_rpmb_req()
468 req->read_size, read_buf, (unsigned char*)&in_cdb, sense_buffer); in send_ufs_rpmb_req()
487 static int send_virt_rpmb_req(int rpmb_fd, void* read_buf, size_t read_size, const void* payload, in send_virt_rpmb_req() argument
490 uint16_t res_count = read_size / MMC_BLOCK_SIZE; in send_virt_rpmb_req()
504 rc = read(rpmb_fd, read_buf, read_size); in send_virt_rpmb_req()
537 if (req->read_size % MMC_BLOCK_SIZE != 0 || req->read_size > sizeof(read_buf)) { in rpmb_send()
538 ALOGE("%s: invalid read size %u\n", __func__, req->read_size); in rpmb_send()
[all …]
/system/core/fs_mgr/libsnapshot/snapuserd/dm-snapshot-merge/
Dsnapuserd_worker.cpp356 bool WorkerThread::ZerofillDiskExceptions(size_t read_size) { in ZerofillDiskExceptions() argument
359 if (read_size > size) { in ZerofillDiskExceptions()
386 bool WorkerThread::ReadDiskExceptions(chunk_t chunk, size_t read_size) { in ReadDiskExceptions() argument
397 if (read_size != size) { in ReadDiskExceptions()
398 SNAP_LOG(ERROR) << "ReadDiskExceptions: read_size: " << read_size in ReadDiskExceptions()
411 return ZerofillDiskExceptions(read_size); in ReadDiskExceptions()
668 size_t read_size = std::min(PAYLOAD_SIZE, remaining_size); in DmuserWriteRequest() local
677 void* buffer = bufsink_.GetPayloadBuffer(read_size); in DmuserWriteRequest()
680 << read_size; in DmuserWriteRequest()
685 if (!ReadDmUserPayload(buffer, read_size)) { in DmuserWriteRequest()
[all …]
Dsnapuserd.h161 bool ZerofillDiskExceptions(size_t read_size);
282 bool IsBlockAligned(int read_size) { return ((read_size & (BLOCK_SZ - 1)) == 0); } in IsBlockAligned() argument
/system/teeui/libteeui/include/teeui/
Dcommon_message_types.h92 size_t read_size = 0; in readSimpleVecInPlace() local
93 std::tie(std::get<0>(result), pos, read_size) = read(in); in readSimpleVecInPlace()
94 if (!std::get<0>(result) || read_size % sizeof(T)) { in readSimpleVecInPlace()
100 reinterpret_cast<T*>(const_cast<uint8_t*>(pos)) + (read_size / sizeof(T))); in readSimpleVecInPlace()
161 size_t read_size = 0; in read() local
162 std::tie(in_, pos, read_size) = read(in); in read()
164 if (read_size != size) { in read()
/system/update_engine/payload_consumer/
Dfilesystem_verifier_action.cc282 const auto read_size = in WriteVerityAndHashPartition() local
284 const auto bytes_read = fd->Read(buffer, read_size); in WriteVerityAndHashPartition()
285 if (bytes_read < 0 || static_cast<size_t>(bytes_read) != read_size) { in WriteVerityAndHashPartition()
287 << read_size << " bytes, actual: " << bytes_read; in WriteVerityAndHashPartition()
292 start_offset, static_cast<const uint8_t*>(buffer), read_size)) { in WriteVerityAndHashPartition()
328 const auto read_size = in HashPartition() local
330 const auto bytes_read = fd->Read(buffer, read_size); in HashPartition()
331 if (bytes_read < 0 || static_cast<size_t>(bytes_read) != read_size) { in HashPartition()
333 << read_size << " bytes, actual: " << bytes_read; in HashPartition()
337 if (!hasher_->Update(buffer, read_size)) { in HashPartition()
/system/unwinding/libunwindstack/tests/
DMemoryRemoteTest.cpp241 size_t read_size = remote.Read(reinterpret_cast<uint64_t>(mapping), dst.data(), page_size * 3); in TEST() local
243 ASSERT_LE(page_size, read_size); in TEST()
244 for (size_t i = 0; i < read_size; ++i) { in TEST()
247 for (size_t i = read_size; i < dst.size(); ++i) { in TEST()
278 size_t read_size = remote.Read(reinterpret_cast<uint64_t>(mapping), dst.data(), page_size * 3); in TEST() local
279 ASSERT_EQ(page_size, read_size); in TEST()
280 for (size_t i = 0; i < read_size; ++i) { in TEST()
283 for (size_t i = read_size; i < dst.size(); ++i) { in TEST()
/system/core/fs_mgr/libsnapshot/snapuserd/user-space-merge/
Dsnapuserd_dm_user.cpp306 bool Worker::ReadDataFromBaseDevice(sector_t sector, size_t read_size) { in ReadDataFromBaseDevice() argument
307 CHECK(read_size <= BLOCK_SZ); in ReadDataFromBaseDevice()
316 if (!android::base::ReadFullyAtOffset(base_path_merge_fd_, buffer, read_size, offset)) { in ReadDataFromBaseDevice()
318 << "at sector :" << sector << " size: " << read_size; in ReadDataFromBaseDevice()
334 size_t read_size = std::min(PAYLOAD_BUFFER_SZ, remaining_size); in ReadAlignedSector() local
341 while (read_size) { in ReadAlignedSector()
344 size_t size = std::min(BLOCK_SZ, read_size); in ReadAlignedSector()
381 read_size -= ret; in ReadAlignedSector()
Dsnapuserd_core.h198 bool IsBlockAligned(uint64_t read_size) { return ((read_size & (BLOCK_SZ - 1)) == 0); } in IsBlockAligned() argument
234 bool ReadDataFromBaseDevice(sector_t sector, size_t read_size);
392 bool IsBlockAligned(uint64_t read_size) { return ((read_size & (BLOCK_SZ - 1)) == 0); } in IsBlockAligned() argument
/system/core/fs_mgr/liblp/
Dimages.cpp387 size_t read_size = remaining >= sizeof(buffer) ? sizeof(buffer) : size_t(remaining); in AddPartitionImage() local
392 if (read_size != sizeof(buffer) || !HasFillValue(buffer, read_size / sizeof(uint32_t))) { in AddPartitionImage()
393 int rv = sparse_file_add_fd(output_device, fd, pos, read_size, output_block); in AddPartitionImage()
399 int rv = sparse_file_add_fill(output_device, buffer[0], read_size, output_block); in AddPartitionImage()
405 pos += read_size; in AddPartitionImage()
406 remaining -= read_size; in AddPartitionImage()
/system/core/trusty/storage/interface/include/trusty/interface/
Dstorage.h280 uint32_t read_size; member
/system/libhwbinder/
DIPCThreadState.cpp905 bwr.read_size = mIn.dataCapacity(); in talkWithDriver()
908 bwr.read_size = 0; in talkWithDriver()
921 alog << "Size of receive buffer: " << bwr.read_size in talkWithDriver()
926 if ((bwr.write_size == 0) && (bwr.read_size == 0)) return NO_ERROR; in talkWithDriver()
/system/libziparchive/
Dzip_archive.cc1455 const auto read_size = static_cast<uint32_t>(std::min(remaining_bytes, max_read_size)); in inflateImpl() local
1457 auto buf = reader.AccessAtOffset(read_buf.data(), read_size, offset); in inflateImpl()
1459 ALOGW("Zip: inflate read failed, getSize = %u: %s", read_size, strerror(errno)); in inflateImpl()
1463 remaining_bytes -= read_size; in inflateImpl()
1466 zstream.avail_in = read_size; in inflateImpl()