Home
last modified time | relevance | path

Searched refs:nbytes (Results 1 – 25 of 42) sorted by relevance

12

/external/dropbear/libtomcrypt/src/pk/asn1/der/bit/
Dder_length_bit_string.c27 unsigned long nbytes; in der_length_bit_string() local
31 nbytes = (nbits >> 3) + ((nbits & 7) ? 1 : 0) + 1; in der_length_bit_string()
33 if (nbytes < 128) { in der_length_bit_string()
35 *outlen = 2 + nbytes; in der_length_bit_string()
36 } else if (nbytes < 256) { in der_length_bit_string()
38 *outlen = 3 + nbytes; in der_length_bit_string()
39 } else if (nbytes < 65536) { in der_length_bit_string()
41 *outlen = 4 + nbytes; in der_length_bit_string()
/external/bluetooth/glib/tests/
Dgio-test.c67 guint nbytes, in read_all() argument
70 guint left = nbytes; in read_all()
138 guint nbytes; in recv_message() local
155 g_assert (nb == sizeof (nbytes)); in recv_message()
170 error = read_all (fd, channel, (gchar *) &nbytes, sizeof (nbytes), &nb); in recv_message()
185 g_assert (nb == sizeof (nbytes)); in recv_message()
187 if (nbytes >= BUFSIZE) in recv_message()
189 g_print ("gio-test: ...from %d: nbytes = %d (%#x)!\n", fd, nbytes, nbytes); in recv_message()
192 g_assert (nbytes >= 0 && nbytes < BUFSIZE); in recv_message()
194 g_print ("gio-test: ...from %d: %d bytes\n", fd, nbytes); in recv_message()
[all …]
/external/expat/xmlwf/
Dreadfilemap.c48 size_t nbytes; in filemap() local
67 nbytes = sb.st_size; in filemap()
69 if (nbytes == 0) { in filemap()
75 p = malloc(nbytes); in filemap()
81 n = read(fd, p, nbytes); in filemap()
88 if (n != nbytes) { in filemap()
94 processor(p, nbytes, name, arg); in filemap()
Dunixfilemap.c26 size_t nbytes; in filemap() local
46 nbytes = sb.st_size; in filemap()
48 if (nbytes == 0) { in filemap()
54 p = (void *)mmap((caddr_t)0, (size_t)nbytes, PROT_READ, in filemap()
61 processor(p, nbytes, name, arg); in filemap()
62 munmap((caddr_t)p, nbytes); in filemap()
/external/elfutils/libasm/
Dasm_adduleb128.c62 size_t nbytes = dest - tmpbuf; local
65 if (__libasm_ensure_section_space (asmscn, nbytes) != 0)
70 memcpy (&asmscn->content->data[asmscn->content->len], tmpbuf, nbytes);
73 asmscn->content->len += nbytes;
76 asmscn->offset += nbytes;
Dasm_addsleb128.c66 size_t nbytes = dest - tmpbuf; local
69 if (__libasm_ensure_section_space (asmscn, nbytes) != 0)
74 memcpy (&asmscn->content->data[asmscn->content->len], tmpbuf, nbytes);
77 asmscn->content->len += nbytes;
80 asmscn->offset += nbytes;
/external/oprofile/libabi/
Dopimport.cpp80 size_t nbytes = theabi.need(sz); in extract() local
82 if (nbytes == 0) in extract()
85 assert(nbytes <= sizeof(T)); in extract()
87 assert(src + nbytes <= end); in extract()
90 cerr << hex << "get " << sz << " = " << nbytes in extract()
96 while(nbytes--) in extract()
97 targ = (targ << 8) | src[nbytes]; in extract()
99 for(size_t i = 0; i < nbytes; ++i) in extract()
/external/qemu/
Dloader.c84 int fread_targphys(target_phys_addr_t dst_addr, size_t nbytes, FILE *f) in fread_targphys() argument
90 while (nbytes) { in fread_targphys()
91 want = nbytes > sizeof(buf) ? sizeof(buf) : nbytes; in fread_targphys()
96 nbytes -= did; in fread_targphys()
104 int fread_targphys_ok(target_phys_addr_t dst_addr, size_t nbytes, FILE *f) in fread_targphys_ok() argument
106 return fread_targphys(dst_addr, nbytes, f) == nbytes; in fread_targphys_ok()
110 int read_targphys(int fd, target_phys_addr_t dst_addr, size_t nbytes) in read_targphys() argument
116 while (nbytes) { in read_targphys()
117 want = nbytes > sizeof(buf) ? sizeof(buf) : nbytes; in read_targphys()
123 nbytes -= did; in read_targphys()
Dsysemu.h262 int fread_targphys(target_phys_addr_t dst_addr, size_t nbytes, FILE *f);
263 int fread_targphys_ok(target_phys_addr_t dst_addr, size_t nbytes, FILE *f);
264 int read_targphys(int fd, target_phys_addr_t dst_addr, size_t nbytes);
/external/jpeg/
Djdatasrc.c93 size_t nbytes; in fill_input_buffer() local
95 nbytes = JFREAD(src->infile, src->buffer, INPUT_BUF_SIZE); in fill_input_buffer()
97 if (nbytes <= 0) { in fill_input_buffer()
104 nbytes = 2; in fill_input_buffer()
108 src->pub.bytes_in_buffer = nbytes; in fill_input_buffer()
/external/libvpx/examples/
Dencoder_tmpl.c54 size_t nbytes, to_read; in read_frame() local
58 nbytes = fread(img->planes[0], 1, to_read, f); in read_frame()
59 if(nbytes != to_read) { in read_frame()
61 if(nbytes > 0) in read_frame()
/external/bluetooth/glib/gio/
Dgwin32appinfo.c399 DWORD name_len, nbytes; in enumerate_open_with_list() local
407 nbytes = sizeof (data) - 2; in enumerate_open_with_list()
415 &nbytes) == ERROR_SUCCESS) in enumerate_open_with_list()
417 data[nbytes/2] = '\0'; in enumerate_open_with_list()
422 data_alloc = (wchar_t *)g_memdup (data, nbytes + 2); in enumerate_open_with_list()
423 data_alloc[nbytes/2] = 0; in enumerate_open_with_list()
428 nbytes = sizeof (data) - 2; in enumerate_open_with_list()
/external/e2fsprogs/lib/ext2fs/
Dfileio.c251 unsigned int nbytes, unsigned int *written) in ext2fs_file_write() argument
264 while (nbytes > 0) { in ext2fs_file_write()
271 if (c > nbytes) in ext2fs_file_write()
272 c = nbytes; in ext2fs_file_write()
287 nbytes -= c; in ext2fs_file_write()
/external/blktrace/btreplay/
Dbtreplay.c129 int nbytes; member
323 static inline void *buf_alloc(size_t nbytes) in buf_alloc() argument
327 if (posix_memalign(&buf, pgsize, nbytes)) { in buf_alloc()
701 iocbp->nbytes = 0; in iocb_init()
721 if (iocbp->nbytes) { in iocb_setup()
722 if (iocbp->nbytes >= n) { in iocb_setup()
732 iocbp->nbytes = n; in iocb_setup()
841 if (iocbp->nbytes) in tip_release()
1057 if (evp->res != iocbp->iocb.u.c.nbytes) { in reclaim_ios()
1062 (long)iocbp->iocb.u.c.nbytes / nb_sec); in reclaim_ios()
[all …]
/external/speex/libspeex/
Dkiss_fft.h28 #define KISS_FFT_MALLOC(nbytes) memalign(16,nbytes) argument
/external/chromium/base/
Dsha1.cc40 void Update(const void* data, size_t nbytes);
120 void SecureHashAlgorithm::Update(const void* data, size_t nbytes) { in Update() argument
122 while (nbytes--) { in Update()
/external/blktrace/btt/
Dinlines.h340 static inline int histo_idx(__u64 nbytes) in histo_idx() argument
342 int idx = (nbytes >> 9) - 1; in histo_idx()
346 static inline void update_q_histo(__u64 nbytes) in update_q_histo() argument
348 q_histo[histo_idx(nbytes)]++; in update_q_histo()
351 static inline void update_d_histo(__u64 nbytes) in update_d_histo() argument
353 d_histo[histo_idx(nbytes)]++; in update_d_histo()
/external/bison/lib/
Dmbswidth.c108 mbsnwidth (const char *string, size_t nbytes, int flags) in mbsnwidth() argument
111 const char *plimit = p + nbytes; in mbsnwidth()
Dobstack.c393 register int nbytes = 0; in strong_alias() local
397 nbytes += lp->limit - (char *) lp; in strong_alias()
399 return nbytes; in strong_alias()
Dmbswidth.h56 extern int mbsnwidth (const char *buf, size_t nbytes, int flags);
/external/e2fsprogs/lib/uuid/
Dgen_uuid.c135 static void get_random_bytes(void *buf, int nbytes) in get_random_bytes() argument
137 int i, n = nbytes, fd = get_random_fd(); in get_random_bytes()
160 for (cp = buf, i = 0; i < nbytes; i++) in get_random_bytes()
165 for (cp = buf, i = 0; i < nbytes; i++) in get_random_bytes()
/external/e2fsprogs/misc/
Ddumpe2fs.c75 unsigned long nbytes, unsigned long offset) in print_free() argument
81 offset += group * nbytes; in print_free()
82 for (i = 0; i < nbytes; i++) in print_free()
88 for (j = i; j < nbytes && !in_use (bitmap, j); j++) in print_free()
/external/e2fsprogs/debugfs/
Ddump.c107 int nbytes; in dump_file() local
124 nbytes = write(fd, buf, got); in dump_file()
125 if ((unsigned) nbytes != got) in dump_file()
/external/libvpx/
Dvpxenc.c141 size_t nbytes; in stats_open_file() local
163 nbytes = fread(stats->buf.buf, 1, stats->buf.sz, stats->file); in stats_open_file()
164 res = (nbytes == stats->buf.sz); in stats_open_file()
1339 unsigned long nbytes = 0; in main() local
1559 arg_passes, frames_in, frames_out, nbytes); in main()
1603 nbytes += pkt->data.raw.sz; in main()
1612 nbytes += pkt->data.raw.sz; in main()
1642 arg_passes, frames_in, frames_out, nbytes, nbytes * 8 / frames_in, in main()
1643 nbytes * 8 *(int64_t)arg_framerate.num / arg_framerate.den / frames_in, in main()
/external/kernel-headers/original/linux/sunrpc/
Dxdr.h191 extern uint32_t *xdr_reserve_space(struct xdr_stream *xdr, size_t nbytes);
195 extern uint32_t *xdr_inline_decode(struct xdr_stream *xdr, size_t nbytes);

12