/external/tlsdate/src/ |
D | test-bio.c | 42 static size_t buf_drain (unsigned char **buf, size_t *bufsz, in buf_drain() argument 45 if (*bufsz < outsz) in buf_drain() 46 outsz = *bufsz; in buf_drain() 48 if (*bufsz > outsz) in buf_drain() 49 memmove (*buf, *buf + outsz, *bufsz - outsz); in buf_drain() 50 *bufsz -= outsz; in buf_drain() 51 *buf = realloc (*buf, *bufsz); in buf_drain() 55 static void buf_fill (unsigned char **buf, size_t *bufsz, in buf_fill() argument 58 *buf = realloc (*buf, *bufsz + insz); in buf_fill() 59 memcpy (*buf + *bufsz, in, insz); in buf_fill() [all …]
|
D | test-bio.h | 17 size_t BIO_test_get_output (BIO *b, unsigned char *buf, size_t bufsz); 18 void BIO_test_add_input (BIO *b, const unsigned char *buf, size_t bufsz);
|
/external/toybox/toys/pending/ |
D | fold.c | 34 int bufsz, len = 0, maxlen; local 40 while ((bufsz = read(fd, toybuf, sizeof(toybuf))) > 0) { 44 while (pos < bufsz) { 51 bufsz -= pos + 1; 83 bufsz -= split + 1; 89 xwrite(1, buf, bufsz);
|
/external/mesa3d/src/mesa/drivers/dri/i965/ |
D | brw_curbe.c | 190 const GLuint bufsz = sz * 16 * sizeof(GLfloat); in brw_upload_constant_buffer() local 280 bufsz, brw->curbe.last_bufsz, in brw_upload_constant_buffer() 281 brw->curbe.last_buf ? memcmp(buf, brw->curbe.last_buf, bufsz) : -1); in brw_upload_constant_buffer() 285 bufsz == brw->curbe.last_bufsz && in brw_upload_constant_buffer() 286 memcmp(buf, brw->curbe.last_buf, bufsz) == 0) { in brw_upload_constant_buffer() 293 memcpy(brw->curbe.last_buf, buf, bufsz); in brw_upload_constant_buffer() 294 brw->curbe.last_bufsz = bufsz; in brw_upload_constant_buffer() 297 brw->curbe.curbe_next_offset + bufsz > brw->curbe.curbe_bo->size) in brw_upload_constant_buffer() 312 assert(bufsz < 4096); in brw_upload_constant_buffer() 316 brw->curbe.curbe_next_offset += bufsz; in brw_upload_constant_buffer() [all …]
|
/external/valgrind/coregrind/m_ume/ |
D | main.c | 73 SizeT bufsz = sizeof buf, fsz; in VG_() local 100 if (fsz < bufsz) in VG_() 101 bufsz = fsz; in VG_() 103 res = VG_(pread)(fd, buf, bufsz, 0); in VG_() 104 if (sr_isError(res) || sr_Res(res) != bufsz) { in VG_() 108 bufsz = sr_Res(res); in VG_() 112 if ((*exe_handlers[i].match_fn)(buf, bufsz)) { in VG_()
|
/external/icu/icu4c/source/extra/uconv/ |
D | uconv.cpp | 536 bufsz(0), signature(0) {} in ConvertFile() 540 bufsz = bufferSize; in setBufferSize() 542 buf = new char[2 * bufsz]; in setBufferSize() 543 outbuf = buf + bufsz; in setBufferSize() 546 fromoffsets = new int32_t[bufsz + 1]; in setBufferSize() 571 size_t bufsz; member in ConvertFile 739 rd = fread(buf, 1, bufsz, infile); in convertFile() 759 flush = (UBool)(rd != bufsz); in convertFile() 766 unibuf = unibufp = u.getBuffer((int32_t)bufsz); in convertFile() 770 ucnv_toUnicode(convfrom, &unibufp, unibuf + bufsz, &cbufp, in convertFile() [all …]
|
/external/mesa3d/src/mesa/drivers/dri/radeon/ |
D | radeon_sanity.c | 535 if (sz * sizeof(int) > cmdbuf->bufsz) { in radeon_emit_packets() 557 cmdbuf->bufsz -= sz * sizeof(int); in radeon_emit_packets() 585 cmdbuf->bufsz -= sz * sizeof(int); in radeon_emit_scalars() 617 cmdbuf->bufsz -= sz * sizeof(int); in radeon_emit_scalars2() 657 cmdbuf->bufsz -= sz * sizeof(int); in radeon_emit_vectors() 796 cmdsz * 4 > cmdbuf->bufsz || in radeon_emit_packet3() 940 cmdbuf->bufsz -= cmdsz * 4; in radeon_emit_packet3() 990 cmdbuf.bufsz = rmesa->store.cmd_used; in radeonSanityCmdBuffer() 994 while ( cmdbuf.bufsz >= sizeof(header) ) { in radeonSanityCmdBuffer() 998 cmdbuf.bufsz -= sizeof(header); in radeonSanityCmdBuffer()
|
/external/mesa3d/src/mesa/drivers/dri/r200/ |
D | r200_sanity.c | 813 if (sz * sizeof(int) > cmdbuf->bufsz) { in radeon_emit_packets() 835 cmdbuf->bufsz -= sz * sizeof(int); in radeon_emit_packets() 863 cmdbuf->bufsz -= sz * sizeof(int); in radeon_emit_scalars() 895 cmdbuf->bufsz -= sz * sizeof(int); in radeon_emit_scalars2() 935 cmdbuf->bufsz -= sz * sizeof(int); in radeon_emit_vectors() 991 cmdbuf->bufsz -= sz * sizeof(int); in radeon_emit_veclinear() 1145 cmdsz * 4 > cmdbuf->bufsz || in radeon_emit_packet3() 1307 cmdbuf->bufsz -= cmdsz * 4; in radeon_emit_packet3() 1357 cmdbuf.bufsz = rmesa->store.cmd_used; in r200SanityCmdBuffer() 1361 while ( cmdbuf.bufsz >= sizeof(header) ) { in r200SanityCmdBuffer() [all …]
|
/external/kernel-headers/original/uapi/linux/ |
D | kexec.h | 53 size_t bufsz; member
|
/external/libmtp/examples/ |
D | sendtr.c | 64 static char *prompt (const char *prompt, char *buffer, size_t bufsz, int required) in prompt() argument 70 if ( fgets(buffer, bufsz, stdin) == NULL ) { in prompt()
|
/external/mesa3d/src/gallium/auxiliary/draw/ |
D | draw_pipe_vbuf.c | 101 overflow( void *map, void *ptr, unsigned bytes, unsigned bufsz ) in overflow() argument 104 return (used + bytes) > bufsz; in overflow()
|
/external/clang/test/CXX/dcl.dcl/dcl.spec/dcl.constexpr/ |
D | p1.cpp | 101 constexpr int bufsz = 1024; variable
|
/external/elfutils/src/ |
D | nm.c | 776 const size_t bufsz = sizeof "[invalid sh_name 0x12345678]"; in show_symbols_sysv() local 777 name = alloca (bufsz); in show_symbols_sysv() 778 snprintf (name, bufsz, "[invalid sh_name %#" PRIx32 "]", in show_symbols_sysv()
|
/external/openssh/ |
D | misc.c | 627 read_keyfile_line(FILE *f, const char *filename, char *buf, size_t bufsz, in read_keyfile_line() argument 630 while (fgets(buf, bufsz, f) != NULL) { in read_keyfile_line()
|
/external/libdrm/include/drm/ |
D | radeon_drm.h | 658 int bufsz; member
|
/external/kernel-headers/original/uapi/drm/ |
D | radeon_drm.h | 660 int bufsz; member
|
/external/libevent/ |
D | evdns.c | 3726 DWORD bufsz = 0, type = 0; in config_nameserver_from_reg_key() local 3730 if (RegQueryValueEx(key, subkey, 0, &type, NULL, &bufsz) in config_nameserver_from_reg_key() 3733 if (!(buf = mm_malloc(bufsz))) in config_nameserver_from_reg_key() 3736 if (RegQueryValueEx(key, subkey, 0, &type, (LPBYTE)buf, &bufsz) in config_nameserver_from_reg_key() 3737 == ERROR_SUCCESS && bufsz > 1) { in config_nameserver_from_reg_key()
|