Home
last modified time | relevance | path

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

/system/core/trusty/storage/proxy/
Drpmb.c175 if (req->read_size) { in send_mmc_rpmb_req()
179 cmd->blocks = req->read_size / MMC_BLOCK_SIZE; in send_mmc_rpmb_req()
232 if (req->read_size) { in send_ufs_rpmb_req()
234 in_cdb.length = __builtin_bswap32(req->read_size); in send_ufs_rpmb_req()
237 req->read_size, read_buf, (unsigned char*)&in_cdb, sense_buffer); in send_ufs_rpmb_req()
246 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
249 uint16_t res_count = read_size / MMC_BLOCK_SIZE; in send_virt_rpmb_req()
263 rc = read(rpmb_fd, read_buf, read_size); in send_virt_rpmb_req()
296 if (req->read_size % MMC_BLOCK_SIZE != 0 || req->read_size > sizeof(read_buf)) { in rpmb_send()
297 ALOGE("%s: invalid read size %u\n", __func__, req->read_size); in rpmb_send()
[all …]
/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/core/libunwindstack/tests/
DMemoryRemoteTest.cpp240 size_t read_size = remote.Read(reinterpret_cast<uint64_t>(mapping), dst.data(), page_size * 3); in TEST() local
242 ASSERT_LE(page_size, read_size); in TEST()
243 for (size_t i = 0; i < read_size; ++i) { in TEST()
246 for (size_t i = read_size; i < dst.size(); ++i) { in TEST()
277 size_t read_size = remote.Read(reinterpret_cast<uint64_t>(mapping), dst.data(), page_size * 3); in TEST() local
278 ASSERT_EQ(page_size, read_size); in TEST()
279 for (size_t i = 0; i < read_size; ++i) { in TEST()
282 for (size_t i = read_size; i < dst.size(); ++i) { in TEST()
/system/bt/stack/a2dp/
Da2dp_sbc_encoder.cc607 uint32_t read_size; in a2dp_sbc_read_feeding() local
644 read_size = in a2dp_sbc_read_feeding()
646 a2dp_sbc_encoder_cb.stats.media_read_total_expected_read_bytes += read_size; in a2dp_sbc_read_feeding()
650 read_size); in a2dp_sbc_read_feeding()
655 if (nb_byte_read != read_size) { in a2dp_sbc_read_feeding()
703 read_size = src_samples; in a2dp_sbc_read_feeding()
704 read_size *= a2dp_sbc_encoder_cb.feeding_params.channel_count; in a2dp_sbc_read_feeding()
705 read_size *= (a2dp_sbc_encoder_cb.feeding_params.bits_per_sample / 8); in a2dp_sbc_read_feeding()
706 a2dp_sbc_encoder_cb.stats.media_read_total_expected_read_bytes += read_size; in a2dp_sbc_read_feeding()
710 a2dp_sbc_encoder_cb.read_callback((uint8_t*)read_buffer, read_size); in a2dp_sbc_read_feeding()
[all …]
Da2dp_aac_encoder.cc721 uint32_t read_size = a2dp_aac_encoder_cb.aac_encoder_params.frame_length * in a2dp_aac_read_feeding() local
726 a2dp_aac_encoder_cb.stats.media_read_total_expected_read_bytes += read_size; in a2dp_aac_read_feeding()
730 a2dp_aac_encoder_cb.read_callback(read_buffer, read_size); in a2dp_aac_read_feeding()
734 if (nb_byte_read < read_size) { in a2dp_aac_read_feeding()
738 memset(((uint8_t*)read_buffer) + nb_byte_read, 0, read_size - nb_byte_read); in a2dp_aac_read_feeding()
739 nb_byte_read = read_size; in a2dp_aac_read_feeding()
Da2dp_vendor_ldac_encoder.cc715 uint32_t read_size = LDACBT_ENC_LSU * in a2dp_ldac_read_feeding() local
720 a2dp_ldac_encoder_cb.stats.media_read_total_expected_read_bytes += read_size; in a2dp_ldac_read_feeding()
724 a2dp_ldac_encoder_cb.read_callback(read_buffer, read_size); in a2dp_ldac_read_feeding()
727 if (nb_byte_read < read_size) { in a2dp_ldac_read_feeding()
731 memset(((uint8_t*)read_buffer) + nb_byte_read, 0, read_size - nb_byte_read); in a2dp_ldac_read_feeding()
732 nb_byte_read = read_size; in a2dp_ldac_read_feeding()
/system/core/fs_mgr/liblp/
Dimages.cpp382 size_t read_size = remaining >= sizeof(buffer) ? sizeof(buffer) : size_t(remaining); in AddPartitionImage() local
387 if (read_size != sizeof(buffer) || !HasFillValue(buffer, read_size / sizeof(uint32_t))) { in AddPartitionImage()
388 int rv = sparse_file_add_fd(output_device, fd, pos, read_size, output_block); in AddPartitionImage()
394 int rv = sparse_file_add_fill(output_device, buffer[0], read_size, output_block); in AddPartitionImage()
400 pos += read_size; in AddPartitionImage()
401 remaining -= read_size; in AddPartitionImage()
/system/core/trusty/storage/interface/include/trusty/interface/
Dstorage.h252 uint32_t read_size; member
/system/core/deprecated-adf/libadf/
Dadf.cpp627 ssize_t read_size = read(fd, &event_ret->data, data_size); in adf_read_event() local
628 if (read_size < 0) in adf_read_event()
630 if ((size_t)read_size < data_size) in adf_read_event()
/system/libhwbinder/
DIPCThreadState.cpp911 bwr.read_size = mIn.dataCapacity(); in talkWithDriver()
914 bwr.read_size = 0; in talkWithDriver()
927 alog << "Size of receive buffer: " << bwr.read_size in talkWithDriver()
932 if ((bwr.write_size == 0) && (bwr.read_size == 0)) return NO_ERROR; in talkWithDriver()
/system/libziparchive/
Dzip_archive.cc1246 const uint32_t read_size = in Inflate() local
1250 if (!reader.ReadAtOffset(read_buf.data(), read_size, offset)) { in Inflate()
1251 ALOGW("Zip: inflate read failed, getSize = %u: %s", read_size, strerror(errno)); in Inflate()
1255 remaining_bytes -= read_size; in Inflate()
1258 zstream.avail_in = read_size; in Inflate()