Searched defs:bufsize (Results 1 - 25 of 226) sorted by relevance

12345678910

/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);
H A Dfdt.c242 int fdt_move(const void *fdt, void *buf, int bufsize) argument
246 if (fdt_totalsize(fdt) > bufsize)
/external/syslinux/com32/lib/sys/
H A Dline_input.c38 ssize_t __line_input(struct file_info * fp, char *buf, size_t bufsize, argument
81 if (n < bufsize - 1) {
/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/dtc/tests/
H A Dincbin.c37 int bufsize = 0, n; local
46 if (bufsize < (*len + CHUNKSIZE)) {
48 bufsize = *len + CHUNKSIZE;
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);
H A Ddtb_reverse.c136 int bufsize; local
146 bufsize = fdt_totalsize(in);
147 out = xmalloc(bufsize);
149 CHECK(fdt_create(out, 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...]
H A Dtls.c81 httpCredentialsString(cups_array_t *credentials, char *buffer, size_t bufsize) argument
84 (void)bufsize;
H A Dsnprintf.c30 size_t bufsize, /* O - Size of output buffer */
55 bufend = buffer + bufsize - 1;
339 size_t bufsize, /* O - Size of output buffer */
348 bytes = vsnprintf(buffer, bufsize, format, ap);
29 _cups_vsnprintf(char *buffer, size_t bufsize, const char *format, va_list ap) argument
338 _cups_snprintf(char *buffer, size_t bufsize, const char *format, ...) argument
/external/libvncserver/libvncserver/
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_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/python/cpython2/Tools/scripts/
H A Dmd5sum.py7 bufsize = 8096 variable
12 usage: sum5 [-b] [-t] [-l] [-s bufsize] [file ...]
16 -s bufsize: read buffer size (default %d)
18 """ % bufsize
59 data = fp.read(bufsize)
70 global fnfilter, rmode, bufsize
84 bufsize = int(a)
/external/python/cpython3/Tools/scripts/
H A Dmd5sum.py7 bufsize = 8096 variable
12 usage: md5sum.py [-b] [-t] [-l] [-s bufsize] [file ...]
16 -s bufsize: read buffer size (default %d)
18 """ % bufsize
60 data = fp.read(bufsize)
73 global fnfilter, rmode, bufsize
87 bufsize = int(a)
/external/skia/tests/
H A DReader32Test.cpp45 const size_t bufsize = sizeof(data) > sizeof(data2) ? local
47 char buffer[bufsize];
/external/skqp/tests/
H A DReader32Test.cpp45 const size_t bufsize = sizeof(data) > sizeof(data2) ? local
47 char buffer[bufsize];
/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/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/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/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/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/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/capstone/suite/fuzz/
H A Dfuzz_harness.c113 long bufsize = 0; local
120 bufsize = ftell(fp);
122 if (bufsize == -1) return 1;
124 buf = malloc(bufsize + 1);
129 size_t len = fread(buf, sizeof(char), bufsize, fp);
141 if (bufsize < 3) return 0;
147 long buf_ptr_size = bufsize - 1;
/external/e2fsprogs/debugfs/
H A Dzap.c235 void do_byte_hexdump(FILE *fp, unsigned char *buf, size_t bufsize) argument
240 for (i = 0; i < bufsize; i += 16) {

Completed in 523 milliseconds

12345678910