Searched refs:read_buf (Results 1 – 5 of 5) sorted by relevance
/system/extras/tests/directiotest/ |
D | directiotest.c | 176 void *read_buf = NULL, *write_buf = NULL; in main() local 212 read_buf = pagealign_alloc(test_size); in main() 214 if (!read_buf || !write_buf) { in main() 246 if (do_read(fd, read_buf, cur_blk * blk_size, test_size) != in main() 252 if (memcmp(write_buf, read_buf, test_size)) { in main() 258 dump_hex(read_buf, test_size); in main() 267 if (read_buf) in main() 268 pagealign_free(read_buf, test_size); in main()
|
/system/core/trusty/storage/proxy/ |
D | rpmb.c | 53 static uint8_t read_buf[4096]; variable 118 mmc_ioc_cmd_set_data((*cmd), read_buf); in send_mmc_rpmb_req() 133 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 150 rc = read(rpmb_fd, read_buf, read_size); in send_virt_rpmb_req() 183 if (req->read_size % MMC_BLOCK_SIZE != 0 || req->read_size > sizeof(read_buf)) { in rpmb_send() 197 rc = send_virt_rpmb_req(rpmb_fd, read_buf, req->read_size, req->payload, payload_size); in rpmb_send() 216 if (req->read_size) print_buf("response: ", read_buf, req->read_size); in rpmb_send() 227 return ipc_respond(msg, read_buf, req->read_size); in rpmb_send()
|
/system/extras/simpleperf/ |
D | UnixSocket_test.cpp | 57 std::vector<char> read_buf; in TEST() local 59 while (read_buf.size() < size) { in TEST() 62 n = std::min(n, size - read_buf.size()); in TEST() 63 read_buf.insert(read_buf.end(), p, p + n); in TEST() 68 Message* msg = reinterpret_cast<Message*>(read_buf.data()); in TEST() 71 msg = reinterpret_cast<Message*>(read_buf.data()); in TEST()
|
/system/nvram/messages/tests/ |
D | io_test.cpp | 104 uint8_t read_buf[10]; in TEST() local 105 EXPECT_FALSE(buf.Read(read_buf, SIZE_MAX)); in TEST()
|
/system/core/libziparchive/ |
D | zip_archive.cc | 961 std::vector<uint8_t> read_buf(kBufSize); in Inflate() local 1009 if (!reader.ReadAtOffset(read_buf.data(), read_size, offset)) { in Inflate() 1016 zstream.next_in = &read_buf[0]; in Inflate()
|