/external/elfutils/libcpu/ |
D | i386_data.h | 124 if (*d->bufcntp + 4 > d->bufsize) in data_prefix() 125 return *d->bufcntp + 4 - d->bufsize; in data_prefix() 167 size_t bufsize = d->bufsize; in general_mod$r_m() local 204 if (*bufcntp + n + 1 > bufsize) in general_mod$r_m() 205 return *bufcntp + n + 1 - bufsize; in general_mod$r_m() 278 if (*bufcntp + n + 1 > bufsize) in general_mod$r_m() 279 return *bufcntp + n + 1 - bufsize; in general_mod$r_m() 376 if (*bufcntp + (cp - tmpbuf) > bufsize) in general_mod$r_m() 377 return *bufcntp + (cp - tmpbuf) - bufsize; in general_mod$r_m() 401 size_t avail = d->bufsize - *bufcntp; in FCT_MOD$R_M() [all …]
|
D | i386_disasm.c | 266 size_t bufsize; member 292 if (unlikely (bufcnt == bufsize)) \ 308 if (unlikely (bufcnt + _len > bufsize)) \ 326 size_t bufsize = BUFSIZE; in i386_disasm() local 334 .bufsize = bufsize, in i386_disasm() 459 buf = malloc (2 * bufsize); in i386_disasm() 461 buf = realloc (buf, 2 * bufsize); in i386_disasm() 468 bufsize *= 2; in i386_disasm() 471 output_data.bufsize = bufsize; in i386_disasm() 1075 size_t bufavail = bufsize - bufcnt; in i386_disasm() [all …]
|
/external/vboot_reference/tests/ |
D | vb21_host_key_tests.c | 44 uint32_t bufsize; in private_key_tests() local 93 TEST_SUCC(vb2_read_file(testfile, &buf, &bufsize), "Read key raw"); in private_key_tests() 97 buf2 = malloc(bufsize); in private_key_tests() 98 memcpy(buf2, buf, bufsize); in private_key_tests() 100 TEST_SUCC(vb2_private_key_unpack(&k2, buf, bufsize), in private_key_tests() 104 memcpy(buf, buf2, bufsize); in private_key_tests() 106 TEST_EQ(vb2_private_key_unpack(&k2, buf, bufsize), in private_key_tests() 111 memcpy(buf, buf2, bufsize); in private_key_tests() 113 TEST_EQ(vb2_private_key_unpack(&k2, buf, bufsize), in private_key_tests() 117 memcpy(buf, buf2, bufsize); in private_key_tests() [all …]
|
D | vb21_host_sig_tests.c | 54 uint32_t bufsize; in sig_tests() local 121 bufsize = c_sig_offs + size; in sig_tests() 122 buf = calloc(1, bufsize); in sig_tests() 125 c->total_size = bufsize; in sig_tests() 138 bufsize = c_sig_offs + size; in sig_tests() 139 buf = calloc(1, bufsize); in sig_tests() 142 c->total_size = bufsize; in sig_tests()
|
/external/libvncserver/libvncserver/ |
D | rfbssl_gnutls.c | 148 static int rfbssl_do_read(rfbClientPtr cl, char *buf, int bufsize) in rfbssl_do_read() argument 153 while ((ret = gnutls_record_recv(ctx->session, buf, bufsize)) < 0) { in rfbssl_do_read() 172 int rfbssl_write(rfbClientPtr cl, const char *buf, int bufsize) in rfbssl_write() argument 177 while ((ret = gnutls_record_send(ctx->session, buf, bufsize)) < 0) { in rfbssl_write() 193 static void rfbssl_gc_peekbuf(struct rfbssl_ctx *ctx, int bufsize) in rfbssl_gc_peekbuf() argument 197 if (spaceleft < bufsize) { in rfbssl_gc_peekbuf() 204 static int __rfbssl_read(rfbClientPtr cl, char *buf, int bufsize, int peek) in __rfbssl_read() argument 209 rfbssl_gc_peekbuf(ctx, bufsize); in __rfbssl_read() 213 ret = bufsize < ctx->peeklen ? bufsize : ctx->peeklen; in __rfbssl_read() 224 if (ret < bufsize) { in __rfbssl_read() [all …]
|
D | rfbssl_openssl.c | 86 int rfbssl_write(rfbClientPtr cl, const char *buf, int bufsize) in rfbssl_write() argument 91 while ((ret = SSL_write(ctx->ssl, buf, bufsize)) <= 0) { in rfbssl_write() 98 int rfbssl_peek(rfbClientPtr cl, char *buf, int bufsize) in rfbssl_peek() argument 103 while ((ret = SSL_peek(ctx->ssl, buf, bufsize)) <= 0) { in rfbssl_peek() 110 int rfbssl_read(rfbClientPtr cl, char *buf, int bufsize) in rfbssl_read() argument 115 while ((ret = SSL_read(ctx->ssl, buf, bufsize)) <= 0) { in rfbssl_read()
|
D | rfbssl.h | 9 int rfbssl_peek(rfbClientPtr cl, char *buf, int bufsize); 10 int rfbssl_read(rfbClientPtr cl, char *buf, int bufsize); 11 int rfbssl_write(rfbClientPtr cl, const char *buf, int bufsize);
|
D | rfbssl_none.c | 36 int rfbssl_write(rfbClientPtr cl, const char *buf, int bufsize) in rfbssl_write() argument 41 int rfbssl_peek(rfbClientPtr cl, char *buf, int bufsize) in rfbssl_peek() argument 46 int rfbssl_read(rfbClientPtr cl, char *buf, int bufsize) in rfbssl_read() argument
|
/external/c-ares/ |
D | ares__read_line.c | 33 int ares__read_line(FILE *fp, char **buf, size_t *bufsize) in ares__read_line() argument 44 *bufsize = 128; in ares__read_line() 49 int bytestoread = aresx_uztosi(*bufsize - offset); in ares__read_line() 60 if(len < *bufsize - 1) in ares__read_line() 64 newbuf = realloc(*buf, *bufsize * 2); in ares__read_line() 68 *bufsize *= 2; in ares__read_line()
|
/external/libjpeg-turbo/ |
D | jdatadst-tj.c | 43 size_t bufsize; member 95 nextsize = dest->bufsize * 2; in empty_mem_output_buffer() 101 MEMCOPY(nextbuffer, dest->buffer, dest->bufsize); in empty_mem_output_buffer() 108 dest->pub.next_output_byte = nextbuffer + dest->bufsize; in empty_mem_output_buffer() 109 dest->pub.free_in_buffer = dest->bufsize; in empty_mem_output_buffer() 112 dest->bufsize = nextsize; in empty_mem_output_buffer() 133 *dest->outsize = (unsigned long)(dest->bufsize - dest->pub.free_in_buffer); in term_mem_destination() 194 dest->bufsize = *outsize; in jpeg_mem_dest_tj() 195 dest->pub.free_in_buffer = dest->bufsize; in jpeg_mem_dest_tj()
|
D | jdatadst.c | 55 size_t bufsize; member 137 nextsize = dest->bufsize * 2; in empty_mem_output_buffer() 143 MEMCOPY(nextbuffer, dest->buffer, dest->bufsize); in empty_mem_output_buffer() 150 dest->pub.next_output_byte = nextbuffer + dest->bufsize; in empty_mem_output_buffer() 151 dest->pub.free_in_buffer = dest->bufsize; in empty_mem_output_buffer() 154 dest->bufsize = nextsize; in empty_mem_output_buffer() 194 *dest->outsize = (unsigned long)(dest->bufsize - dest->pub.free_in_buffer); in term_mem_destination() 277 dest->pub.free_in_buffer = dest->bufsize = *outsize; in jpeg_mem_dest()
|
/external/fec/ |
D | sumsq_test.c | 30 int bufsize = 2048; local 61 bufsize = atoi(optarg); 75 buf = (signed short *)calloc(bufsize,sizeof(signed short)); 78 (void)sumsq(buf,bufsize); 85 length = (random() % bufsize) - offset; 88 for(i=0;i<bufsize;i++)
|
/external/opencv3/3rdparty/libjpeg/ |
D | jdatadst.c | 52 size_t bufsize; member 130 nextsize = dest->bufsize * 2; in empty_mem_output_buffer() 136 MEMCOPY(nextbuffer, dest->buffer, dest->bufsize); in empty_mem_output_buffer() 143 dest->pub.next_output_byte = nextbuffer + dest->bufsize; in empty_mem_output_buffer() 144 dest->pub.free_in_buffer = dest->bufsize; in empty_mem_output_buffer() 147 dest->bufsize = nextsize; in empty_mem_output_buffer() 185 *dest->outsize = dest->bufsize - dest->pub.free_in_buffer; in term_mem_destination() 269 dest->pub.free_in_buffer = dest->bufsize = *outsize; in jpeg_mem_dest()
|
/external/libpcap/tests/ |
D | opentest.c | 54 int dorfmon, dopromisc, snaplen, useactivate, bufsize; in main() local 63 bufsize = 0; in main() 100 bufsize = atoi(optarg)*1024; in main() 101 if (bufsize <= 0) in main() 140 if (bufsize != 0) { in main() 141 status = pcap_set_buffer_size(pd, bufsize); in main()
|
/external/javassist/src/main/javassist/ |
D | ClassPoolTail.java | 386 int bufsize = 4096; in readStream() local 389 bufs[i] = new byte[bufsize]; in readStream() 393 len = fin.read(bufs[i], size, bufsize - size); in readStream() 397 byte[] result = new byte[bufsize - 4096 + size]; in readStream() 407 } while (size < bufsize); in readStream() 408 bufsize *= 2; in readStream() 422 int bufsize = 4096; in copyStream() local 424 byte[] buf = new byte[bufsize]; in copyStream() 428 len = fin.read(buf, size, bufsize - size); in copyStream() 435 } while (size < bufsize); in copyStream() [all …]
|
/external/curl/tests/server/ |
D | getpart.c | 87 static int readline(char **buffer, size_t *bufsize, FILE *stream) in readline() argument 97 *bufsize = 128; in readline() 101 int bytestoread = curlx_uztosi(*bufsize - offset); in readline() 110 if(length < *bufsize - 1) in readline() 113 newptr = realloc(*buffer, *bufsize * 2); in readline() 117 *bufsize *= 2; in readline() 265 size_t bufsize = 0; in getpart() local 287 while((error = readline(&buffer, &bufsize, stream)) == GPE_OK) { in getpart()
|
/external/e2fsprogs/lib/ext2fs/ |
D | inode.c | 405 struct ext2_inode *inode, int bufsize) in ext2fs_get_next_inode_full() argument 479 memset(inode, 0, bufsize); in ext2fs_get_next_inode_full() 483 0, bufsize); in ext2fs_get_next_inode_full() 492 memset(inode, 0, bufsize); in ext2fs_get_next_inode_full() 496 0, bufsize); in ext2fs_get_next_inode_full() 498 memcpy(inode, scan->ptr, bufsize); in ext2fs_get_next_inode_full() 523 struct ext2_inode * inode, int bufsize) in ext2fs_read_inode_full() argument 536 ((bufsize == sizeof(struct ext2_inode)) || in ext2fs_read_inode_full() 551 if (bufsize == sizeof(struct ext2_inode)) { in ext2fs_read_inode_full() 583 if (bufsize < length) in ext2fs_read_inode_full() [all …]
|
/external/boringssl/src/crypto/asn1/ |
D | f_string.c | 100 int i,j,k,m,n,again,bufsize; in a2i_ASN1_STRING() local 105 bufsize=BIO_gets(bp,buf,size); in a2i_ASN1_STRING() 108 if (bufsize < 1) in a2i_ASN1_STRING() 117 i=bufsize; in a2i_ASN1_STRING() 187 bufsize=BIO_gets(bp,buf,size); in a2i_ASN1_STRING()
|
D | f_enum.c | 100 int i,j,k,m,n,again,bufsize; in a2i_ASN1_ENUMERATED() local 107 bufsize=BIO_gets(bp,buf,size); in a2i_ASN1_ENUMERATED() 110 if (bufsize < 1) goto err_sl; in a2i_ASN1_ENUMERATED() 111 i=bufsize; in a2i_ASN1_ENUMERATED() 189 bufsize=BIO_gets(bp,buf,size); in a2i_ASN1_ENUMERATED()
|
D | f_int.c | 105 int i,j,k,m,n,again,bufsize; in a2i_ASN1_INTEGER() local 112 bufsize=BIO_gets(bp,buf,size); in a2i_ASN1_INTEGER() 115 if (bufsize < 1) goto err_sl; in a2i_ASN1_INTEGER() 116 i=bufsize; in a2i_ASN1_INTEGER() 193 bufsize=BIO_gets(bp,buf,size); in a2i_ASN1_INTEGER()
|
/external/libunwind/src/dwarf/ |
D | Gfind_proc_info-lsb.c | 94 load_debug_frame (const char *file, char **buf, size_t *bufsize, in load_debug_frame() argument 107 *bufsize = 0; in load_debug_frame() 150 *bufsize = sec_hdrs[i].sh_size; in load_debug_frame() 151 *buf = malloc (*bufsize); in load_debug_frame() 153 if (*buf == NULL || fread (*buf, 1, *bufsize, f) != *bufsize) in load_debug_frame() 157 *bufsize, (long) sec_hdrs[i].sh_offset); in load_debug_frame() 202 if (elf_w (find_section_mapped) (&mdi, ".debug_frame", &found_section, bufsize, NULL)) { in load_debug_frame() 204 *buf = malloc (*bufsize); in load_debug_frame() 210 memcpy(*buf, found_section, *bufsize); in load_debug_frame() 274 ret = load_debug_frame (newname, buf, bufsize, -1, segbase_bias); in load_debug_frame() [all …]
|
/external/opencv3/3rdparty/libjasper/ |
D | jas_stream.c | 102 int bufsize); 171 jas_stream_t *jas_stream_memopen(char *buf, int bufsize) in jas_stream_memopen() argument 205 if (bufsize <= 0) { in jas_stream_memopen() 209 obj->bufsize_ = bufsize; in jas_stream_memopen() 223 if (bufsize > 0 && buf) { in jas_stream_memopen() 226 obj->len_ = bufsize; in jas_stream_memopen() 582 char *jas_stream_gets(jas_stream_t *stream, char *buf, int bufsize) in jas_stream_gets() argument 586 assert(bufsize > 0); in jas_stream_gets() 589 while (bufsize > 1) { in jas_stream_gets() 594 --bufsize; in jas_stream_gets() [all …]
|
/external/vboot_reference/firmware/lib/ |
D | utility_string.c | 13 uint32_t Uint64ToString(char *buf, uint32_t bufsize, uint64_t value, in Uint64ToString() argument 38 if (++usedsize > bufsize) in Uint64ToString() 45 if (++usedsize > bufsize) in Uint64ToString()
|
/external/vboot_reference/utility/ |
D | image_types.c | 35 ImageFormat identify_image_type(const void *buf, uint32_t bufsize, in identify_image_type() argument 41 if (bufsize < sizeof(BMP_IMAGE_HEADER) && in identify_image_type() 42 bufsize < sizeof(FontArrayHeader)) { in identify_image_type()
|
/external/pdfium/fpdfsdk/src/ |
D | fpdfdoc_embeddertest.cpp | 57 unsigned long bufsize = FPDFAction_GetFilePath(action, nullptr, 0); in TEST_F() local 58 ASSERT_EQ(kExpectedLength, bufsize); in TEST_F() 61 EXPECT_EQ(bufsize, FPDFAction_GetFilePath(action, buf, bufsize)); in TEST_F()
|