/external/vboot_reference/tests/ |
D | vb21_host_misc_tests.c | 35 uint32_t read_size; in file_tests() local 42 TEST_EQ(vb2_read_file(testfile, &read_data, &read_size), in file_tests() 49 TEST_SUCC(vb2_read_file(testfile, &read_data, &read_size), in file_tests() 51 TEST_EQ(read_size, sizeof(test_data), " data size"); in file_tests() 52 TEST_EQ(memcmp(read_data, test_data, read_size), 0, " data"); in file_tests() 62 TEST_SUCC(vb2_read_file(testfile, &read_data, &read_size), in file_tests() 64 TEST_EQ(read_size, c->total_size, " data size"); in file_tests() 66 TEST_EQ(memcmp(read_data, c, read_size), 0, " data"); in file_tests()
|
/external/deqp/external/openglcts/modules/glesext/texture_cube_map_array/ |
D | esextcTextureCubeMapArrayImageTextureSize.cpp | 480 glw::GLuint read_size[m_n_varyings * m_n_tf_components]; in checkResults() local 481 memcpy(read_size, temp_buff, m_n_varyings * m_n_tf_components * sizeof(glw::GLint)); in checkResults() 489 …if (read_size[0] != width || read_size[1] != height || read_size[2] != (depth / m_n_layers_per_cub… in checkResults() 495 << "[" << read_size[0] << "][" << read_size[1] << "][" << read_size[2] << "] but should be " in checkResults() 502 …if (read_size[3] != width || read_size[4] != height || read_size[5] != (depth / m_n_layers_per_cub… in checkResults() 509 << "[" << read_size[3] << "][" << read_size[4] << "][" << read_size[5] in checkResults() 1176 glw::GLuint read_size[m_n_rt_components]; in checkResults() local 1177 memset(read_size, 0, m_n_rt_components * sizeof(glw::GLuint)); in checkResults() 1188 gl.readPixels(0, 0, 1, 1, GL_RGBA_INTEGER, GL_UNSIGNED_INT, read_size); in checkResults() 1191 …if (read_size[0] != width || read_size[1] != height || read_size[2] != (depth / m_n_layers_per_cub… in checkResults() [all …]
|
/external/u-boot/tools/ |
D | mkexynosspl.c | 81 int var_size_flag, read_size, count; in main() local 127 read_size = len; in main() 137 read_size = len; in main() 148 if (read(ifd, buffer, read_size) != read_size) { in main() 155 if (read_size < count) in main() 156 memset((char *)buffer + read_size, 0xff, count - read_size); in main()
|
/external/u-boot/common/ |
D | splash_source.c | 25 static int splash_sf_read_raw(u32 bmp_load_addr, int offset, size_t read_size) in splash_sf_read_raw() argument 36 return spi_flash_read(sf, offset, read_size, (void *)bmp_load_addr); in splash_sf_read_raw() 39 static int splash_sf_read_raw(u32 bmp_load_addr, int offset, size_t read_size) in splash_sf_read_raw() argument 47 static int splash_nand_read_raw(u32 bmp_load_addr, int offset, size_t read_size) in splash_nand_read_raw() argument 51 &read_size, NULL, in splash_nand_read_raw() 56 static int splash_nand_read_raw(u32 bmp_load_addr, int offset, size_t read_size) in splash_nand_read_raw() argument 64 u32 bmp_load_addr, size_t read_size) in splash_storage_read_raw() argument 74 return splash_nand_read_raw(bmp_load_addr, offset, read_size); in splash_storage_read_raw() 76 return splash_sf_read_raw(bmp_load_addr, offset, read_size); in splash_storage_read_raw()
|
/external/python/apitools/apitools/base/py/ |
D | stream_slice.py | 68 read_size = min(size, self.__remaining_bytes) 70 read_size = self.__remaining_bytes 71 data = self.__stream.read(read_size) 72 if read_size > 0 and not data:
|
/external/libchrome/mojo/public/cpp/system/ |
D | file_data_pipe_producer.cc | 166 int read_size = file_.ReadAtCurrentPos(static_cast<char*>(pipe_buffer), in TransferSomeBytes() local 169 if (read_size < 0) { in TransferSomeBytes() 177 observer_->OnBytesRead(pipe_buffer, static_cast<size_t>(read_size), in TransferSomeBytes() 182 read_size >= 0 ? static_cast<uint32_t>(read_size) : 0); in TransferSomeBytes() 184 if (read_size < 0) { in TransferSomeBytes() 189 bytes_transferred_ += read_size; in TransferSomeBytes() 192 if (read_size < attempted_read_size) { in TransferSomeBytes()
|
/external/adhd/cras/src/server/ |
D | cras_udev.c | 193 int read_size; in calculate_desc_checksum() local 216 read_size = 0; in calculate_desc_checksum() 217 while (read_size < stat_buf.st_size) { in calculate_desc_checksum() 218 if (read_size == buf_size) { in calculate_desc_checksum() 231 n = read(fd, buf + read_size, buf_size - read_size); in calculate_desc_checksum() 238 read_size += n; in calculate_desc_checksum() 242 result = crc32_checksum(buf, read_size); in calculate_desc_checksum()
|
/external/grpc-grpc/test/core/network_benchmarks/ |
D | low_level_ping_pong.cc | 71 static int read_bytes(int fd, char* buf, size_t read_size, int spin) { in read_bytes() argument 75 err = read(fd, buf + bytes_read, read_size - bytes_read); in read_bytes() 89 } while (bytes_read < read_size); in read_bytes() 102 static int poll_read_bytes(int fd, char* buf, size_t read_size, int spin) { in poll_read_bytes() argument 124 err2 = read(fd, buf + bytes_read, read_size - bytes_read); in poll_read_bytes() 131 } while (bytes_read < read_size); in poll_read_bytes() 150 size_t read_size = args->msg_size; in epoll_read_bytes() local 166 read(args->fds.read_fd, buf + bytes_read, read_size - bytes_read); in epoll_read_bytes() 172 } while (bytes_read < read_size); in epoll_read_bytes() 173 } while (bytes_read < read_size); in epoll_read_bytes() [all …]
|
/external/linux-kselftest/tools/testing/selftests/networking/timestamping/ |
D | rxtimestamp.c | 169 bool do_recv(int rcv, int read_size, struct tstamps expected) in do_recv() argument 186 recv_iov.iov_base = malloc(read_size); in do_recv() 187 recv_iov.iov_len = read_size; in do_recv() 195 if (r != read_size) in do_recv() 274 int read_size = op_size; in run_test_case() local 315 read_size += 20; /* for IP header */ in run_test_case() 316 failed = do_recv(rcv, read_size, t.expected); in run_test_case()
|
/external/puffin/src/ |
D | main.cc | 283 auto read_size = std::min(static_cast<uint64_t>(buffer.size()), in Main() local 285 TEST_AND_RETURN_FALSE(read_puff_stream->Read(buffer.data(), read_size)); in Main() 286 TEST_AND_RETURN_FALSE(huff_writer->Write(buffer.data(), read_size)); in Main() 287 bytes_read += read_size; in Main() 309 auto read_size = std::min(static_cast<uint64_t>(buffer.size()), in Main() local 311 TEST_AND_RETURN_FALSE(src_stream->Read(buffer.data(), read_size)); in Main() 312 TEST_AND_RETURN_FALSE(dst_stream->Write(buffer.data(), read_size)); in Main() 313 bytes_read += read_size; in Main()
|
/external/ltp/utils/ffsb-6.0-rc2/ |
D | fileops.c | 99 uint64_t read_size = ft_get_read_size(ft); in ffsb_readfile() local 112 assert(filesize >= read_size); in ffsb_readfile() 116 uint64_t range = filesize - read_size; in ffsb_readfile() 122 iterations = read_size / read_blocksize; in ffsb_readfile() 123 last = read_size % read_blocksize; in ffsb_readfile() 140 " aborting\n\n", read_size, in ffsb_readfile() 163 iterations = readfile_helper(fd, read_size, in ffsb_readfile() 172 iterations = read_size / read_blocksize; in ffsb_readfile() 185 ft_incr_op(ft, opnum, iterations, read_size); in ffsb_readfile() 186 ft_add_readbytes(ft, read_size); in ffsb_readfile()
|
D | ffsb_tg.c | 180 tg->read_size = rs; in tg_set_read_size() 227 return tg->read_size; in tg_get_read_size() 274 printf("\t read_size = %llu\t(%s)\n", tg->read_size, in tg_print_config_helper() 275 ffsb_printsize(buf, tg->read_size, 256)); in tg_print_config_helper()
|
/external/iputils/ninfod/ |
D | ni_ifaddrs.c | 168 int result = 0, read_size; in nl_getmsg() local 179 result = read_size = nl_recvmsg(sd, request, seq, buff, bufsize, &msg_flags); in nl_getmsg() 180 if (read_size < 0 || (msg_flags & MSG_TRUNC)) { in nl_getmsg() 185 if (read_size == 0) in nl_getmsg() 188 … (nh = (struct nlmsghdr *) buff; NLMSG_OK(nh, read_size); nh = (struct nlmsghdr *) NLMSG_NEXT(nh, … in nl_getmsg()
|
/external/libbrillo/brillo/http/ |
D | http_connection_curl.cc | 229 size_t read_size = 0; in read_callback() local 231 &read_size, nullptr); in read_callback() 232 VLOG_IF(3, success) << "Sending data: " << std::string{ptr, read_size}; in read_callback() 233 return success ? read_size : CURL_READFUNC_ABORT; in read_callback()
|
/external/grpc-grpc/src/core/lib/iomgr/ |
D | endpoint_cfstream.cc | 164 CFIndex read_size = in ReadAction() local 166 if (read_size == -1) { in ReadAction() 178 } else if (read_size == 0) { in ReadAction() 185 if (read_size < len) { in ReadAction() 186 grpc_slice_buffer_trim_end(ep->read_slices, len - read_size, nullptr); in ReadAction()
|
/external/perfetto/src/tracing/core/ |
D | startup_trace_writer.cc | 80 size_t read_size = std::min(num_bytes - bytes_read, in ReadBytes() local 83 read_size); in ReadBytes() 84 cur_slice_offset_ += read_size; in ReadBytes() 85 bytes_read += read_size; in ReadBytes()
|
/external/v8/src/ |
D | startup-data-util.cc | 63 int read_size = static_cast<int>(fread(const_cast<char*>(startup_data->data), in Load() local 67 if (startup_data->raw_size == read_size) { in Load()
|
/external/ltp/utils/ffsb-6.0-rc2/examples/ |
D | profile_everything | 73 read_size = 40k 115 # read_size = 4096
|
/external/libbrillo/brillo/streams/ |
D | stream_unittest.cc | 109 size_t read_size = 0; in TEST() local 113 [](size_t* read_size, bool* succeeded, size_t size) { in TEST() argument 114 *read_size = size; in TEST() 116 }, &read_size, &succeeded); in TEST() 132 EXPECT_EQ(0u, read_size); in TEST() 153 EXPECT_EQ(7u, read_size); in TEST()
|
/external/pdfium/core/fpdfapi/parser/ |
D | cpdf_syntax_parser.cpp | 61 size_t read_size = CPDF_ModuleMgr::kFileBufSize; in ReadBlockAt() local 63 safe_end += read_size; in ReadBlockAt() 65 read_size = m_FileLen - read_pos; in ReadBlockAt() 67 m_pFileBuf.resize(read_size); in ReadBlockAt() 68 if (!m_pFileAccess->ReadBlock(m_pFileBuf.data(), read_pos, read_size)) { in ReadBlockAt()
|
/external/strace/tests/ |
D | perf_event_open.c | 163 uint32_t read_size; in print_event_attr() local 175 read_size = in print_event_attr() 183 if (read_size > available_size) { in print_event_attr() 198 memcpy(attr, attr_ptr, read_size); in print_event_attr()
|
/external/strace/tests-mx32/ |
D | perf_event_open.c | 163 uint32_t read_size; in print_event_attr() local 175 read_size = in print_event_attr() 183 if (read_size > available_size) { in print_event_attr() 198 memcpy(attr, attr_ptr, read_size); in print_event_attr()
|
/external/strace/tests-m32/ |
D | perf_event_open.c | 163 uint32_t read_size; in print_event_attr() local 175 read_size = in print_event_attr() 183 if (read_size > available_size) { in print_event_attr() 198 memcpy(attr, attr_ptr, read_size); in print_event_attr()
|
/external/ltp/testcases/kernel/fs/ext4-new-features/ext4-ffsb-config/ |
D | ffsb-config2 | 21 read_size=4096
|
D | ffsb-config0 | 21 read_size=4096
|