Searched refs:bufsize (Results 1 - 25 of 387) sorted by relevance

1234567891011>>

/external/libvncserver/libvncserver/
H A Drfbssl.h9 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);
H A Drfbssl_none.c36 int rfbssl_write(rfbClientPtr cl, const char *buf, int bufsize) argument
41 int rfbssl_peek(rfbClientPtr cl, char *buf, int bufsize) argument
46 int rfbssl_read(rfbClientPtr cl, char *buf, int bufsize) argument
H A Drfbssl_gnutls.c148 static int rfbssl_do_read(rfbClientPtr cl, char *buf, int bufsize) argument
153 while ((ret = gnutls_record_recv(ctx->session, buf, bufsize)) < 0) {
172 int rfbssl_write(rfbClientPtr cl, const char *buf, int bufsize) argument
177 while ((ret = gnutls_record_send(ctx->session, buf, bufsize)) < 0) {
193 static void rfbssl_gc_peekbuf(struct rfbssl_ctx *ctx, int bufsize) argument
197 if (spaceleft < bufsize) {
204 static int __rfbssl_read(rfbClientPtr cl, char *buf, int bufsize, int peek) argument
209 rfbssl_gc_peekbuf(ctx, bufsize);
213 ret = bufsize < ctx->peeklen ? bufsize
241 rfbssl_read(rfbClientPtr cl, char *buf, int bufsize) argument
246 rfbssl_peek(rfbClientPtr cl, char *buf, int bufsize) argument
[all...]
H A Drfbssl_openssl.c86 int rfbssl_write(rfbClientPtr cl, const char *buf, int bufsize) argument
91 while ((ret = SSL_write(ctx->ssl, buf, bufsize)) <= 0) {
98 int rfbssl_peek(rfbClientPtr cl, char *buf, int bufsize) argument
103 while ((ret = SSL_peek(ctx->ssl, buf, bufsize)) <= 0) {
110 int rfbssl_read(rfbClientPtr cl, char *buf, int bufsize) argument
115 while ((ret = SSL_read(ctx->ssl, buf, bufsize)) <= 0) {
/external/dtc/libfdt/
H A Dfdt_empty_tree.c58 int fdt_create_empty_tree(void *buf, int bufsize) argument
62 err = fdt_create(buf, bufsize);
82 return fdt_open_into(buf, buf, bufsize);
/external/vboot_reference/utility/include/
H A Dimage_types.h17 ImageFormat identify_image_type(const void *buf, uint32_t bufsize,
/external/ltp/testcases/kernel/fs/mongo/
H A Dmongo_read.c22 int bufsize = 4096; local
30 buf = malloc(bufsize);
32 printf("Malloc failed on %d\n", bufsize);
47 while ((rd = read(fd, buf, bufsize)) == bufsize) ;
/external/python/cpython2/Lib/
H A Dpopen2.py40 def __init__(self, cmd, capturestderr=False, bufsize=-1):
47 process. The default is false. If the 'bufsize' parameter is
65 self.tochild = os.fdopen(p2cwrite, 'w', bufsize)
67 self.fromchild = os.fdopen(c2pread, 'r', bufsize)
70 self.childerr = os.fdopen(errout, 'r', bufsize)
119 def __init__(self, cmd, bufsize=-1):
132 self.tochild = os.fdopen(p2cwrite, 'w', bufsize)
134 self.fromchild = os.fdopen(c2pread, 'r', bufsize)
141 def popen2(cmd, bufsize=-1, mode='t'):
146 'bufsize' i
[all...]
/external/tensorflow/tensorflow/core/lib/jpeg/
H A Djpeg_handle.h34 int bufsize; member in struct:tensorflow::jpeg::__anon26688
50 // size "bufsize", if the buffer overflows, we will be in trouble.
51 void SetDest(j_compress_ptr cinfo, void *buffer, int bufsize);
54 void SetDest(j_compress_ptr cinfo, void *buffer, int bufsize,
/external/python/cpython3/Tools/freeze/
H A Dbkfile.py3 def open(file, mode='r', bufsize=-1):
5 return _orig_open(file, mode, bufsize)
15 return _orig_open(file, mode, bufsize)
16 f = _orig_open(file, mode, bufsize)
/external/libcups/cups/
H A Dppd-attr.c144 size_t bufsize) /* I - Size of string buffer */
149 if (!make_and_model || !buffer || bufsize < 1)
170 strlcpy(buffer, make_and_model + 1, bufsize);
181 snprintf(buffer, bufsize, "Xerox %s", make_and_model);
189 snprintf(buffer, bufsize, "Kodak %s", make_and_model + 7);
197 snprintf(buffer, bufsize, "Apple LaserWriter%s", make_and_model + 11);
205 snprintf(buffer, bufsize, "Seiko %s", make_and_model);
213 snprintf(buffer, bufsize, "EFI %s", make_and_model);
222 snprintf(buffer, bufsize, "Canon %s", make_and_model);
231 snprintf(buffer, bufsize, "H
141 _ppdNormalizeMakeAndModel( const char *make_and_model, char *buffer, size_t bufsize) argument
[all...]
/external/syslinux/core/fs/
H A Dchdir.c21 static size_t copy_string(char *buf, size_t ix, size_t bufsize, const char *src) argument
26 if (ix+1 < bufsize)
31 if (ix < bufsize)
37 static size_t generic_inode_to_path(struct inode *inode, char *dst, size_t bufsize) argument
47 s = generic_inode_to_path(inode->parent, dst, bufsize);
51 s = copy_string(dst, s, bufsize, "/");
52 s = copy_string(dst, s, bufsize, inode->name);
58 __export size_t realpath(char *dst, const char *src, size_t bufsize) argument
67 s = this_fs->fs_ops->realpath(this_fs, dst, src, bufsize);
76 s = generic_inode_to_path(file->inode, dst, bufsize);
[all...]
/external/dtc/tests/
H A Dmove_and_save.c37 int bufsize; local
47 bufsize = fdt_totalsize(fdt) + shuntsize;
48 buf = xmalloc(bufsize);
51 err = fdt_move(fdt, fdt1, bufsize);
59 err = fdt_move(fdt1, fdt2, bufsize-shuntsize);
67 err = fdt_move(fdt2, fdt3, bufsize);
H A Dopen_pack.c36 int oldsize, bufsize, packsize; local
47 bufsize = oldsize * 2;
49 buf = xmalloc(bufsize);
51 memset(buf, 0, bufsize);
54 err = fdt_open_into(fdt, fdt1, bufsize);
68 verbose_printf("oldsize = %d, bufsize = %d, packsize = %d\n",
69 oldsize, bufsize, packsize);
/external/fec/
H A Dsumsq_test.c30 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/ltp/utils/sctp/lib/
H A Daddrs.c42 size_t bufsize = 4096; /*enough for most cases*/ local
44 struct sctp_getaddrs *getaddrs = (struct sctp_getaddrs*)malloc(bufsize);
51 len = bufsize;
64 if (bufsize > 128*1024) {
70 new_buf = realloc(getaddrs, bufsize+4096);
75 bufsize += 4096;
/external/javaparser/javaparser-symbol-solver-testing/src/test/test_sourcecode/javaparser_new_src/javaparser-generated-sources/com/github/javaparser/
H A DJavaCharStream.java79 int bufsize; field in class:JavaCharStream
106 char[] newbuffer = new char[bufsize + 2048];
107 int newbufline[] = new int[bufsize + 2048];
108 int newbufcolumn[] = new int[bufsize + 2048];
114 System.arraycopy(buffer, tokenBegin, newbuffer, 0, bufsize - tokenBegin);
115 System.arraycopy(buffer, 0, newbuffer, bufsize - tokenBegin, bufpos);
118 System.arraycopy(bufline, tokenBegin, newbufline, 0, bufsize - tokenBegin);
119 System.arraycopy(bufline, 0, newbufline, bufsize - tokenBegin, bufpos);
122 System.arraycopy(bufcolumn, tokenBegin, newbufcolumn, 0, bufsize - tokenBegin);
123 System.arraycopy(bufcolumn, 0, newbufcolumn, bufsize
[all...]
/external/vboot_reference/firmware/lib/
H A Dutility_string.c13 uint32_t Uint64ToString(char *buf, uint32_t bufsize, uint64_t value, argument
38 if (++usedsize > bufsize)
45 if (++usedsize > bufsize)
/external/python/cpython2/Python/
H A Dgetargs.c425 int *levels, char *msgbuf, size_t bufsize, int toplevel,
453 PyOS_snprintf(msgbuf, bufsize,
463 PyOS_snprintf(msgbuf, bufsize,
479 strncpy(msgbuf, "is not retrievable", bufsize);
483 msgbuf, bufsize, freelist);
501 int *levels, char *msgbuf, size_t bufsize, PyObject **freelist)
509 bufsize, 0, freelist);
515 msgbuf, bufsize, freelist);
532 converterr(const char *expected, PyObject *arg, char *msgbuf, size_t bufsize) argument
537 PyOS_snprintf(msgbuf, bufsize,
424 converttuple(PyObject *arg, const char **p_format, va_list *p_va, int flags, int *levels, char *msgbuf, size_t bufsize, int toplevel, PyObject **freelist) argument
500 convertitem(PyObject *arg, const char **p_format, va_list *p_va, int flags, int *levels, char *msgbuf, size_t bufsize, PyObject **freelist) argument
600 convertsimple(PyObject *arg, const char **p_format, va_list *p_va, int flags, char *msgbuf, size_t bufsize, PyObject **freelist) argument
[all...]
/external/tensorflow/tensorflow/core/util/
H A Dcuda_kernel_helper_test.cu.cc46 __global__ void Count1D(CudaLaunchConfig config, int bufsize, int* outbuf) { argument
51 atomicAdd(&outbuf[x % bufsize], 1);
54 __global__ void Count2D(Cuda2DLaunchConfig config, int bufsize, int* outbuf) { argument
64 atomicAdd(&outbuf[idx % bufsize], 1);
68 __global__ void Count3D(Cuda3DLaunchConfig config, int bufsize, int* outbuf) { argument
84 atomicAdd(&outbuf[idx % bufsize], 1);
132 const int bufsize = 1024; member in class:tensorflow::CudaLaunchConfigTest
138 cudaError_t err = cudaMallocManaged(&outbuf, sizeof(int) * bufsize);
154 cfg = GetCudaLaunchConfig(bufsize, d); \
160 cfg, bufsize, outbu
[all...]
/external/javaparser/javaparser-symbol-solver-testing/src/test/test_sourcecode/javaparser_src/generated/com/github/javaparser/
H A DJavaCharStream.java77 int bufsize; field in class:JavaCharStream
103 char[] newbuffer = new char[bufsize + 2048];
104 int newbufline[] = new int[bufsize + 2048];
105 int newbufcolumn[] = new int[bufsize + 2048];
111 System.arraycopy(buffer, tokenBegin, newbuffer, 0, bufsize - tokenBegin);
112 System.arraycopy(buffer, 0, newbuffer, bufsize - tokenBegin, bufpos);
115 System.arraycopy(bufline, tokenBegin, newbufline, 0, bufsize - tokenBegin);
116 System.arraycopy(bufline, 0, newbufline, bufsize - tokenBegin, bufpos);
119 System.arraycopy(bufcolumn, tokenBegin, newbufcolumn, 0, bufsize - tokenBegin);
120 System.arraycopy(bufcolumn, 0, newbufcolumn, bufsize
[all...]
/external/ltp/testcases/kernel/io/direct_io/
H A Ddiotest1.c20 * and direct write. The input file size is numblks*bufsize.
21 * The read and write calls use bufsize to perform IO. Input and output
26 * diotest1 [-b bufsize] [-n numblks] [-i infile] [-o outfile]
65 "Usage: diotest1 [-b bufsize] [-n numblks] [-i infile] [-o outfile]\n");
81 int bufsize = BUFSIZE; /* Buffer size. Default 8k */ local
92 if ((bufsize = atoi(optarg)) <= 0) {
93 fprintf(stderr, "bufsize must be > 0\n");
96 if (bufsize % 4096 != 0) {
98 "bufsize must be multiple of 4k\n");
133 buf = valloc(bufsize);
[all...]
/external/python/cpython2/Tools/freeze/
H A Dbkfile.py4 def __init__(self, file, mode, bufsize):
16 self.__file = _orig_open(file, mode, bufsize)
44 def open(file, mode = 'r', bufsize = -1):
46 return _orig_open(file, mode, bufsize)
47 return _BkFile(file, mode, bufsize)
/external/libjpeg-turbo/
H A Djdatadst-tj.c44 size_t bufsize; member in struct:__anon11670
96 nextsize = dest->bufsize * 2;
102 MEMCOPY(nextbuffer, dest->buffer, dest->bufsize);
109 dest->pub.next_output_byte = nextbuffer + dest->bufsize;
110 dest->pub.free_in_buffer = dest->bufsize;
113 dest->bufsize = nextsize;
134 *dest->outsize = (unsigned long)(dest->bufsize - dest->pub.free_in_buffer);
200 dest->bufsize = *outsize;
201 dest->pub.free_in_buffer = dest->bufsize;
/external/ltp/testcases/kernel/io/aio/aio01/
H A Daio01.c79 size_t bufsize; /* Size of I/O, 8k default */ variable
116 bufsize = (bflag ? atoi(optb) : 8192);
129 io_prep_pwrite(iocbs[0], fd, srcbuf, bufsize, pos);
160 io_prep_pread(iocbs[0], fd, dstbuf, bufsize, pos);
192 io_prep_pwrite(iocbs[0], fd, srcbuf, bufsize, pos);
223 io_prep_pread(iocbs[0], fd, dstbuf, bufsize, pos);
254 io_prep_pwrite(iocbs[0], fd, srcbuf, bufsize, pos);
268 io_prep_pread(iocbs[0], fd, dstbuf, bufsize, pos);
300 io_prep_pwrite(iocbs[0], fd, srcbuf, bufsize, pos);
314 io_prep_pread(iocbs[0], fd, dstbuf, bufsize, po
[all...]

Completed in 1547 milliseconds

1234567891011>>