/system/core/trusty/storage/proxy/ |
D | rpmb.c | 366 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/ |
D | snapuserd_worker.cpp | 356 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 …]
|
D | snapuserd.h | 161 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/ |
D | common_message_types.h | 92 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/ |
D | filesystem_verifier_action.cc | 282 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/ |
D | MemoryRemoteTest.cpp | 241 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/ |
D | snapuserd_dm_user.cpp | 306 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()
|
D | snapuserd_core.h | 198 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/ |
D | images.cpp | 387 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/ |
D | storage.h | 280 uint32_t read_size; member
|
/system/libhwbinder/ |
D | IPCThreadState.cpp | 905 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/ |
D | zip_archive.cc | 1455 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()
|