/external/freetype/builds/amiga/src/base/ |
D | ftsystem.c | 298 unsigned long read_bytes; in ft_amiga_stream_io() local 322 read_bytes = count; in ft_amiga_stream_io() 330 read_bytes = Read( sysfile->file, sysfile->iobuf, IOBUF_SIZE ); in ft_amiga_stream_io() 331 if ( read_bytes == -1UL ) in ft_amiga_stream_io() 334 read_bytes = 0; in ft_amiga_stream_io() 338 sysfile->iobuf_end = offset + read_bytes; in ft_amiga_stream_io() 340 if ( read_bytes > count ) in ft_amiga_stream_io() 342 read_bytes = count; in ft_amiga_stream_io() 351 read_bytes = Read( sysfile->file, buffer, count ); in ft_amiga_stream_io() 352 if ( read_bytes == -1UL ) in ft_amiga_stream_io() [all …]
|
/external/freetype/src/base/ |
D | ftstream.c | 125 FT_ULong read_bytes; in FT_Stream_ReadAt() local 138 read_bytes = stream->read( stream, pos, buffer, count ); in FT_Stream_ReadAt() 141 read_bytes = stream->size - pos; in FT_Stream_ReadAt() 142 if ( read_bytes > count ) in FT_Stream_ReadAt() 143 read_bytes = count; in FT_Stream_ReadAt() 145 FT_MEM_COPY( buffer, stream->base + pos, read_bytes ); in FT_Stream_ReadAt() 148 stream->pos = pos + read_bytes; in FT_Stream_ReadAt() 150 if ( read_bytes < count ) in FT_Stream_ReadAt() 154 count, read_bytes )); in FT_Stream_ReadAt() 168 FT_ULong read_bytes = 0; in FT_Stream_TryRead() local [all …]
|
/external/ltp/testcases/kernel/syscalls/acct/ |
D | acct02.c | 159 int read_bytes, ret; in run() local 173 read_bytes = SAFE_READ(0, fd, &acct_struct, acct_size); in run() 175 if (i == 0 && read_bytes == 0) { in run() 180 if (read_bytes == 0) { in run() 185 if (read_bytes != acct_size) { in run() 187 read_bytes, acct_size); in run() 198 if (read_bytes) in run() 200 } while (read_bytes == acct_size && ret); in run()
|
/external/grpc-grpc/test/core/iomgr/ |
D | tcp_posix_test.cc | 152 size_t read_bytes; member 177 size_t read_bytes; in read_cb() local 183 current_data = state->read_bytes % 256; in read_cb() 184 read_bytes = count_slices(state->incoming.slices, state->incoming.count, in read_cb() 186 state->read_bytes += read_bytes; in read_cb() 187 gpr_log(GPR_INFO, "Read %" PRIuPTR " bytes of %" PRIuPTR, read_bytes, in read_cb() 189 if (state->read_bytes >= state->target_read_bytes) { in read_cb() 227 state.read_bytes = 0; in read_test() 235 while (state.read_bytes < state.target_read_bytes) { in read_test() 243 GPR_ASSERT(state.read_bytes == state.target_read_bytes); in read_test() [all …]
|
/external/u-boot/drivers/fpga/ |
D | lattice.c | 20 static unsigned long read_bytes; variable 157 if (read_bytes == bufsize) { in GetByte() 161 read_bytes++; in GetByte() 163 if (!(read_bytes % block_size)) { in GetByte() 165 read_bytes, in GetByte() 299 read_bytes = 0; in lattice_load()
|
/external/grpc-grpc/test/cpp/codegen/ |
D | proto_utils_test.cc | 125 int read_bytes = 0; in BufferWriterTest() local 126 while (read_bytes < total_size) { in BufferWriterTest() 130 EXPECT_EQ(GRPC_SLICE_START_PTR(s)[i], read_bytes % 128); in BufferWriterTest() 131 read_bytes++; in BufferWriterTest() 135 EXPECT_EQ(read_bytes, total_size); in BufferWriterTest()
|
/external/ltp/testcases/kernel/syscalls/readahead/ |
D | readahead02.c | 158 unsigned long *read_bytes, long long *usec, in read_testfile() argument 209 *read_bytes = get_bytes_read() - read_bytes_start; in read_testfile() 220 unsigned long read_bytes, read_bytes_ra; in test_readahead() local 237 read_testfile(tc, 0, testfile, testfile_size, &read_bytes, &usec, in test_readahead() 246 read_testfile(tc, 0, testfile, testfile_size, &read_bytes, &usec, in test_readahead() 293 tst_res(TINFO, "read_testfile(0) read: %ld bytes", read_bytes); in test_readahead() 297 if (read_bytes_ra < read_bytes) in test_readahead()
|
/external/bsdiff/ |
D | bspatch.cc | 306 size_t read_bytes; in bspatch() local 308 if (!old_file->Read(old_buf.data(), bytes_to_read, &read_bytes)) { in bspatch() 312 if (!read_bytes) { in bspatch() 317 if (!patch_reader.ReadDiffStream(new_buf.data(), read_bytes)) { in bspatch() 322 for (size_t k = 0; k < read_bytes; k++) in bspatch() 324 if (!WriteAll(new_file, new_buf.data(), read_bytes)) { in bspatch() 328 chunk_size -= read_bytes; in bspatch()
|
/external/webrtc/webrtc/base/ |
D | bytebuffer_unittest.cc | 175 char read_bytes[3]; in TEST() local 176 EXPECT_TRUE(buffer.ReadBytes(read_bytes, 3)); in TEST() 178 EXPECT_EQ(write_bytes[i], read_bytes[i]); in TEST() 185 memset(read_bytes, 0, 3); in TEST() 186 EXPECT_TRUE(buffer.ReadBytes(read_bytes, 3)); in TEST() 188 EXPECT_EQ(write_bytes[i], read_bytes[i]); in TEST()
|
/external/grpc-grpc/test/core/network_benchmarks/ |
D | low_level_ping_pong.cc | 56 int (*read_bytes)(struct thread_args* args, char* buf); member 71 static int read_bytes(int fd, char* buf, size_t read_size, int spin) { in read_bytes() function 94 return read_bytes(args->fds.read_fd, buf, args->msg_size, 0); in blocking_read_bytes() 98 return read_bytes(args->fds.read_fd, buf, args->msg_size, 1); in spin_read_bytes() 261 if (args->read_bytes(args, buf) < 0) { in server_thread() 313 if (args->read_bytes(args, buf) < 0) { in client_thread() 609 client_args->read_bytes = strategy->read_strategy; in run_all_benchmarks() 614 server_args->read_bytes = strategy->read_strategy; in run_all_benchmarks() 681 client_args->read_bytes = strategy->read_strategy; in main() 686 server_args->read_bytes = strategy->read_strategy; in main()
|
/external/v4l2_codec2/tests/c2_e2e_test/jni/ |
D | encoded_data_helper.cpp | 111 char* read_bytes = new char[file_size]; in EncodedDataHelper() local 112 if (input.Read(read_bytes, file_size) != file_size) { in EncodedDataHelper() 119 std::string data(read_bytes, file_size); in EncodedDataHelper() 120 delete[] read_bytes; in EncodedDataHelper()
|
/external/u-boot/drivers/mtd/nand/raw/ |
D | fsl_elbc_nand.c | 68 unsigned int read_bytes; /* Number of bytes read during command */ member 290 ctrl->read_bytes = 0; in fsl_elbc_cmdfunc() 307 ctrl->read_bytes = mtd->writesize + mtd->oobsize; in fsl_elbc_cmdfunc() 322 ctrl->read_bytes = mtd->writesize + mtd->oobsize; in fsl_elbc_cmdfunc() 343 ctrl->read_bytes = 256; in fsl_elbc_cmdfunc() 371 ctrl->read_bytes = 0; in fsl_elbc_cmdfunc() 456 ctrl->read_bytes = 1; in fsl_elbc_cmdfunc() 534 if (ctrl->index < ctrl->read_bytes) in fsl_elbc_read_byte() 554 avail = min((unsigned int)len, ctrl->read_bytes - ctrl->index); in fsl_elbc_read_buf() 584 ctrl->read_bytes = 1; in fsl_elbc_wait() [all …]
|
D | fsl_ifc_nand.c | 52 unsigned int read_bytes; /* Number of bytes read during command */ member 377 ctrl->read_bytes = 0; in fsl_ifc_cmdfunc() 387 ctrl->read_bytes = mtd->writesize + mtd->oobsize; in fsl_ifc_cmdfunc() 403 ctrl->read_bytes = mtd->writesize + mtd->oobsize; in fsl_ifc_cmdfunc() 430 ctrl->read_bytes = 256; in fsl_ifc_cmdfunc() 454 ctrl->read_bytes = 0; in fsl_ifc_cmdfunc() 540 ctrl->read_bytes = 1; in fsl_ifc_cmdfunc() 611 if (ctrl->index < ctrl->read_bytes) { in fsl_ifc_read_byte() 635 if (ctrl->index < ctrl->read_bytes) { in fsl_ifc_read_byte16() 658 avail = min((unsigned int)len, ctrl->read_bytes - ctrl->index); in fsl_ifc_read_buf() [all …]
|
/external/autotest/client/site_tests/security_Libcontainer/src/ |
D | libcontainer_target_unittest.cc | 45 ssize_t read_bytes = read(read_fd_.get(), buffer, sizeof(buffer) - 1); in GetContents() local 46 CHECK(read_bytes >= 0); in GetContents() 47 buffer[read_bytes] = '\0'; in GetContents() 48 return std::string(buffer, read_bytes); in GetContents()
|
/external/tensorflow/tensorflow/core/lib/io/ |
D | zlib_inputstream.cc | 130 uLong read_bytes = in ReadFromStream() local 134 if (read_bytes > 0) { in ReadFromStream() 190 size_t read_bytes = in NumUnreadBytes() local 193 read_bytes; in NumUnreadBytes()
|
D | zlib_outputbuffer.cc | 97 int32 read_bytes = z_stream_->next_in - z_stream_input_.get(); in AddToInputBuffer() local 99 int32 free_tail_bytes = input_buffer_capacity_ - (read_bytes + unread_bytes); in AddToInputBuffer()
|
/external/linux-kselftest/tools/testing/selftests/vm/ |
D | hugepage-mmap.c | 52 static int read_bytes(char *addr) in read_bytes() function 86 ret = read_bytes(addr); in main()
|
D | map_hugetlb.c | 56 static int read_bytes(char *addr) in read_bytes() function 100 ret = read_bytes(addr); in main()
|
/external/OpenCSD/decoder/tests/source/ |
D | c_api_pkt_print_test.c | 256 uint32_t read_bytes = 0; in do_mem_acc_cb() local 270 read_bytes = reqBytes; in do_mem_acc_cb() 275 read_bytes = (uint32_t)(mem_file_en_address - (address - 1)); in do_mem_acc_cb() 280 if(read_bytes != 0) in do_mem_acc_cb() 283 file_read_bytes = fread(byteBuffer,sizeof(uint8_t),read_bytes,dump_file); in do_mem_acc_cb() 284 if(file_read_bytes < read_bytes) in do_mem_acc_cb() 285 read_bytes = file_read_bytes; in do_mem_acc_cb() 291 return read_bytes; in do_mem_acc_cb()
|
D | mem_buff_demo.cpp | 326 uint32_t read_bytes = reqBytes; in mem_access_callback_fn() local 338 read_bytes = (uint32_t)(buf_end_address - (address - 1)); in mem_access_callback_fn() 341 memcpy(byteBuffer, program_image_buffer + (address - program_image_address), read_bytes); in mem_access_callback_fn() 343 return read_bytes; in mem_access_callback_fn()
|
/external/grpc-grpc/src/core/lib/iomgr/ |
D | tcp_posix.cc | 413 ssize_t read_bytes; in tcp_do_read() local 437 read_bytes = recvmsg(tcp->fd, &msg, 0); in tcp_do_read() 438 } while (read_bytes < 0 && errno == EINTR); in tcp_do_read() 440 if (read_bytes < 0) { in tcp_do_read() 453 } else if (read_bytes == 0) { in tcp_do_read() 461 GRPC_STATS_INC_TCP_READ_SIZE(read_bytes); in tcp_do_read() 462 add_to_estimate(tcp, static_cast<size_t>(read_bytes)); in tcp_do_read() 463 GPR_ASSERT((size_t)read_bytes <= tcp->incoming_buffer->length); in tcp_do_read() 464 if (static_cast<size_t>(read_bytes) < tcp->incoming_buffer->length) { in tcp_do_read() 467 tcp->incoming_buffer->length - static_cast<size_t>(read_bytes), in tcp_do_read() [all …]
|
/external/python/rsa/rsa/ |
D | pkcs1.py | 371 read_bytes = len(block) 372 if read_bytes == 0: 377 if read_bytes < blocksize:
|
/external/tensorflow/tensorflow/core/lib/io/snappy/ |
D | snappy_inputbuffer.cc | 150 size_t read_bytes = next_in_ - input_buffer_.get(); in ReadFromFile() local 153 if (read_bytes > 0) { in ReadFromFile()
|
D | snappy_outputbuffer.cc | 144 const int32 read_bytes = next_in_ - input_buffer_.get(); in AddToInputBuffer() local 147 input_buffer_capacity_ - (read_bytes + unread_bytes); in AddToInputBuffer()
|
/external/libunwind/src/ |
D | Los-common.c | 164 map_local_is_readable (unw_word_t addr, size_t read_bytes) in map_local_is_readable() argument 166 return is_flag_set (addr, PROT_READ, read_bytes); in map_local_is_readable()
|