Home
last modified time | relevance | path

Searched refs:buf_size (Results 1 – 25 of 172) sorted by relevance

1234567

/external/vboot_reference/tests/
Dvb21_common_tests.c259 uint32_t buf_size; in test_verify_keyblock() local
283 buf_size = kbuf->c.total_size; in test_verify_keyblock()
286 buf2 = malloc(buf_size); in test_verify_keyblock()
287 memcpy(buf2, buf, buf_size); in test_verify_keyblock()
292 TEST_SUCC(vb2_verify_keyblock(kbuf, buf_size, &pubk, &wb), in test_verify_keyblock()
295 memcpy(buf, buf2, buf_size); in test_verify_keyblock()
296 TEST_SUCC(vb2_verify_keyblock(kbuf, buf_size, &pubk2, &wb), in test_verify_keyblock()
299 memcpy(buf, buf2, buf_size); in test_verify_keyblock()
300 TEST_EQ(vb2_verify_keyblock(kbuf, buf_size, &pubk3, &wb), in test_verify_keyblock()
304 memcpy(buf, buf2, buf_size); in test_verify_keyblock()
[all …]
/external/libexif/libexif/olympus/
Dexif-mnote-data-olympus.c42 unsigned int buf_size);
100 unsigned char **buf, unsigned int *buf_size) in exif_mnote_data_olympus_save() argument
108 if (!n || !buf || !buf_size) return; in exif_mnote_data_olympus_save()
113 *buf_size = 6 + 2 + 2 + n->count * 12; in exif_mnote_data_olympus_save()
118 *buf = exif_mem_alloc (ne->mem, *buf_size); in exif_mnote_data_olympus_save()
120 EXIF_LOG_NO_MEMORY(ne->log, "ExifMnoteDataOlympus", *buf_size); in exif_mnote_data_olympus_save()
132 *buf_size += 8-6 + 4; in exif_mnote_data_olympus_save()
133 *buf = exif_mem_alloc (ne->mem, *buf_size); in exif_mnote_data_olympus_save()
135 EXIF_LOG_NO_MEMORY(ne->log, "ExifMnoteDataOlympus", *buf_size); in exif_mnote_data_olympus_save()
155 *buf_size -= 8 + 2; in exif_mnote_data_olympus_save()
[all …]
/external/swiftshader/third_party/subzero/crosstest/
Dtest_bitmanip.cpp24 const size_t buf_size = 8; \
25 type buf[buf_size]; \
26 for (size_t i = 0; i < buf_size; ++i) { \
30 for (size_t i = 0; i < buf_size; ++i) { \
45 const size_t buf_size = 8; \
46 type buf[buf_size]; \
47 for (size_t i = 0; i < buf_size; ++i) { \
51 for (size_t i = 0; i < buf_size; ++i) { \
Dtest_sync_atomic.cpp31 const size_t buf_size = 8; \
32 type buf[buf_size]; \
33 for (size_t i = 0; i < buf_size; ++i) { \
41 for (size_t i = 0; i < buf_size; ++i) { \
/external/compiler-rt/test/msan/Linux/
Dxattr.cc59 int buf_size = 1024; in test_list() local
61 *buf = (char *)malloc(buf_size); in test_list()
62 assert(__msan_test_shadow(*buf, buf_size) != -1); in test_list()
63 ssize_t res = fun(*buf, buf_size); in test_list()
65 assert(__msan_test_shadow(*buf, buf_size) == res); in test_list()
74 buf_size *= 2; in test_list()
83 int buf_size = 1024; in test_get_single_attr() local
85 buf = (char *)malloc(buf_size); in test_get_single_attr()
86 assert(__msan_test_shadow(buf, buf_size) != -1); in test_get_single_attr()
87 ssize_t res = fun(attr_name, buf, buf_size); in test_get_single_attr()
[all …]
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/aio_suspend/
D9-1.c49 static int do_test(int num_aiocbs, size_t buf_size) in do_test() argument
76 int file_size = num_aiocbs * buf_size; in do_test()
103 aiocbs[i]->aio_offset = i * buf_size; in do_test()
104 aiocbs[i]->aio_buf = &bufs[i * buf_size]; in do_test()
105 aiocbs[i]->aio_nbytes = buf_size; in do_test()
173 if ((err != 0) && ((size_t)ret != buf_size)) { in do_test()
197 int buf_size = 1024 * 64; in main() local
205 ret = do_test(aio_cbs, buf_size); in main()
206 buf_size += buf_size / 4; in main()
212 printf("(buf_size = %i)\nTest PASSED\n", buf_size); in main()
/external/ltp/testcases/kernel/syscalls/fallocate/
Dfallocate04.c43 static size_t buf_size; variable
71 buf_size = NUM_OF_BLOCKS * block_size; in get_blocksize()
123 tst_resm(TINFO, "allocate '%zu' bytes", buf_size); in test01()
125 if (fallocate(fd, 0, 0, buf_size) == -1) { in test01()
131 char buf[buf_size]; in test01()
135 SAFE_WRITE(cleanup, 1, fd, buf, buf_size); in test01()
188 char exp_buf[buf_size]; in test02()
193 check_file_data(exp_buf, buf_size); in test02()
230 char exp_buf[buf_size]; in test03()
235 check_file_data(exp_buf, buf_size); in test03()
[all …]
Dfallocate03.c135 int buf_size; variable
189 buf_size = block_size; in get_blocksize()
206 char buf[buf_size + 1]; in populate_file()
211 for (index = 0; index < buf_size; index++) in populate_file()
213 buf[buf_size] = '\0'; in populate_file()
214 if ((data = write(fd, buf, buf_size)) < 0) in populate_file()
Dfallocate01.c117 int buf_size; variable
175 buf_size = block_size; in get_blocksize()
184 char buf[buf_size + 1]; in populate_files()
190 for (index = 0; index < buf_size; index++) in populate_files()
192 buf[buf_size] = '\0'; in populate_files()
193 if ((data = write(fd, buf, buf_size)) == -1) in populate_files()
/external/libexif/libexif/pentax/
Dexif-mnote-data-pentax.c78 unsigned char **buf, unsigned int *buf_size) in exif_mnote_data_pentax_save() argument
87 if (!n || !buf || !buf_size) return; in exif_mnote_data_pentax_save()
93 *buf_size = o2 + 2 + n->count * 12 + 4; in exif_mnote_data_pentax_save()
97 *buf = exif_mem_alloc (ne->mem, *buf_size); in exif_mnote_data_pentax_save()
99 EXIF_LOG_NO_MEMORY(ne->log, "ExifMnoteDataPentax", *buf_size); in exif_mnote_data_pentax_save()
110 *buf = exif_mem_alloc (ne->mem, *buf_size); in exif_mnote_data_pentax_save()
112 EXIF_LOG_NO_MEMORY(ne->log, "ExifMnoteDataPentax", *buf_size); in exif_mnote_data_pentax_save()
126 *buf = exif_mem_alloc (ne->mem, *buf_size); in exif_mnote_data_pentax_save()
128 EXIF_LOG_NO_MEMORY(ne->log, "ExifMnoteDataPentax", *buf_size); in exif_mnote_data_pentax_save()
140 *buf_size -= 6; in exif_mnote_data_pentax_save()
[all …]
/external/speex/libspeex/
Dbits.c54 bits->buf_size = MAX_CHARS_PER_FRAME; in speex_bits_init()
61 EXPORT void speex_bits_init_buffer(SpeexBits *bits, void *buff, int buf_size) in speex_bits_init_buffer() argument
64 bits->buf_size = buf_size; in speex_bits_init_buffer()
71 EXPORT void speex_bits_set_bit_buffer(SpeexBits *bits, void *buff, int buf_size) in speex_bits_set_bit_buffer() argument
74 bits->buf_size = buf_size; in speex_bits_set_bit_buffer()
78 bits->nbBits=buf_size<<LOG2_BITS_PER_CHAR; in speex_bits_set_bit_buffer()
113 if (nchars > bits->buf_size) in speex_bits_read_from()
121 bits->buf_size=nchars; in speex_bits_read_from()
124 nchars=bits->buf_size; in speex_bits_read_from()
129 nchars=bits->buf_size; in speex_bits_read_from()
[all …]
/external/libunwind/src/
Dos-linux.h36 size_t buf_size; member
81 mi->buf_size = getpagesize (); in maps_init()
82 cp = mmap (NULL, mi->buf_size, PROT_READ | PROT_WRITE, in maps_init()
93 mi->buf = mi->buf_end = cp + mi->buf_size; in maps_init()
185 scan_string (char *cp, char *valp, size_t buf_size) in scan_string() argument
194 if ((valp != NULL) && (i < buf_size - 1)) in scan_string()
198 if (i == 0 || i >= buf_size) in scan_string()
235 memmove (mi->buf_end - mi->buf_size, mi->buf, bytes_left); in maps_next()
237 mi->buf = mi->buf_end - mi->buf_size; in maps_next()
239 mi->buf_size - bytes_left); in maps_next()
[all …]
/external/libexif/libexif/fuji/
Dexif-mnote-data-fuji.c80 unsigned int *buf_size) in exif_mnote_data_fuji_save() argument
87 if (!n || !buf || !buf_size) return; in exif_mnote_data_fuji_save()
93 *buf_size = 8 + 4 + 2 + n->count * 12 + 4; in exif_mnote_data_fuji_save()
94 *buf = exif_mem_alloc (ne->mem, *buf_size); in exif_mnote_data_fuji_save()
96 *buf_size = 0; in exif_mnote_data_fuji_save()
126 ts = *buf_size + s; in exif_mnote_data_fuji_save()
135 *buf_size = ts; in exif_mnote_data_fuji_save()
136 doff = *buf_size - s; in exif_mnote_data_fuji_save()
137 if (s & 1) { doff--; *(*buf + *buf_size - 1) = '\0'; } in exif_mnote_data_fuji_save()
153 const unsigned char *buf, unsigned int buf_size) in exif_mnote_data_fuji_load() argument
[all …]
/external/libavc/common/
Dih264_list.c251 WORD32 buf_size, in ih264_list_init() argument
263 buf_size -= sizeof(list_t); in ih264_list_init()
267 buf_size -= ithread_get_mutex_lock_size(); in ih264_list_init()
269 if (buf_size <= 0) in ih264_list_init()
278 ASSERT((num_entries * entry_size) <= buf_size); in ih264_list_init()
434 WORD32 buf_size = ps_list->i4_entry_size; in ih264_list_queue() local
454 pv_buf_wr = (UWORD8 *)ps_list->pv_buf_base + wr_idx * buf_size; in ih264_list_queue()
456 memcpy(pv_buf_wr, pv_buf, buf_size); in ih264_list_queue()
518 WORD32 buf_size = ps_list->i4_entry_size; in ih264_list_dequeue() local
541 pv_buf_rd = (UWORD8 *)ps_list->pv_buf_base + rd_idx * buf_size; in ih264_list_dequeue()
[all …]
/external/libexif/libexif/canon/
Dexif-mnote-data-canon.c118 unsigned char **buf, unsigned int *buf_size) in exif_mnote_data_canon_save() argument
125 if (!n || !buf || !buf_size) return; in exif_mnote_data_canon_save()
131 *buf_size = 2 + n->count * 12 + 4; in exif_mnote_data_canon_save()
132 *buf = exif_mem_alloc (ne->mem, sizeof (char) * *buf_size); in exif_mnote_data_canon_save()
134 EXIF_LOG_NO_MEMORY(ne->log, "ExifMnoteCanon", *buf_size); in exif_mnote_data_canon_save()
158 ts = *buf_size + s; in exif_mnote_data_canon_save()
169 *buf_size = ts; in exif_mnote_data_canon_save()
170 doff = *buf_size - s; in exif_mnote_data_canon_save()
171 if (s & 1) { doff--; *(*buf + *buf_size - 1) = '\0'; } in exif_mnote_data_canon_save()
200 const unsigned char *buf, unsigned int buf_size) in exif_mnote_data_canon_load() argument
[all …]
/external/libavc/test/encoder/
Doutput.c67 WORD32 buf_size; in allocate_output() local
71 buf_size = ps_app_ctxt->s_get_buf_info_op.s_ive_op.au4_min_out_buf_size[0]; in allocate_output()
77 pu1_buf = (UWORD8 *)ih264a_aligned_malloc(16, buf_size); in allocate_output()
82 buf_size); in allocate_output()
86 ps_app_ctxt->as_output_buf[i].u4_buf_size = buf_size; in allocate_output()
/external/fmtlib/fmt/
Dostream.h36 size_t buf_size = size(); variable
37 buffer_.resize(buf_size);
38 buffer_.reserve(buf_size * 2);
41 start_[buf_size] = traits_type::to_char_type(ch);
42 this->setp(start_+ buf_size + 1, start_ + buf_size * 2);
/external/libpcap/
Dfad-gifc.c144 unsigned buf_size; in pcap_findalldevs_interfaces() local
170 buf_size = 8192; in pcap_findalldevs_interfaces()
172 buf = malloc(buf_size); in pcap_findalldevs_interfaces()
180 ifc.ifc_len = buf_size; in pcap_findalldevs_interfaces()
182 memset(buf, 0, buf_size); in pcap_findalldevs_interfaces()
191 if (ifc.ifc_len < buf_size && in pcap_findalldevs_interfaces()
192 (buf_size - ifc.ifc_len) > sizeof(ifrp->ifr_name) + MAX_SA_LEN) in pcap_findalldevs_interfaces()
195 buf_size *= 2; in pcap_findalldevs_interfaces()
/external/selinux/libselinux/src/
Dregex.c483 size_t buf_size) in regex_format_error() argument
485 unsigned the_end_length = buf_size > 4 ? 4 : buf_size; in regex_format_error()
486 char *ptr = &buffer[buf_size - the_end_length]; in regex_format_error()
489 if (!buffer || !buf_size) in regex_format_error()
491 rc = snprintf(buffer, buf_size, "REGEX back-end error: "); in regex_format_error()
500 if (pos >= buf_size) in regex_format_error()
505 rc = snprintf(buffer + pos, buf_size - pos, "At offset %zu: ", in regex_format_error()
508 rc = snprintf(buffer + pos, buf_size - pos, "At offset %d: ", in regex_format_error()
515 if (pos >= buf_size) in regex_format_error()
521 buf_size - pos); in regex_format_error()
[all …]
/external/autotest/client/site_tests/platform_CompressedSwapPerf/src/
Dhog.c32 size_t buf_size = 0; variable
54 global_buf[index % buf_size] = 0x00; in TouchMemory()
56 dummy = global_buf[index % buf_size]; in TouchMemory()
64 size_t new_buf_size = buf_size + balloon_size * CHUNK_SIZE; in BalloonMemory()
69 char *new_chunk = global_buf + buf_size + chunk * CHUNK_SIZE; in BalloonMemory()
73 buf_size = new_buf_size; in BalloonMemory()
/external/harfbuzz_ng/src/
Dhb-buffer-serialize.cc102 unsigned int buf_size, in _hb_buffer_serialize_glyphs_json() argument
167 if (buf_size > l) in _hb_buffer_serialize_glyphs_json()
171 buf_size -= l; in _hb_buffer_serialize_glyphs_json()
186 unsigned int buf_size, in _hb_buffer_serialize_glyphs_text() argument
237 if (buf_size > l) in _hb_buffer_serialize_glyphs_text()
241 buf_size -= l; in _hb_buffer_serialize_glyphs_text()
302 unsigned int buf_size, in hb_buffer_serialize_glyphs() argument
331 buf, buf_size, buf_consumed, in hb_buffer_serialize_glyphs()
336 buf, buf_size, buf_consumed, in hb_buffer_serialize_glyphs()
/external/curl/lib/
Dif2ip.c117 char *buf, int buf_size) in Curl_if2ip() argument
178 snprintf(buf, buf_size, "%s%s", ip, scope); in Curl_if2ip()
208 char *buf, int buf_size) in Curl_if2ip() argument
244 Curl_inet_ntop(s->sin_family, &in, buf, buf_size); in Curl_if2ip()
261 char *buf, int buf_size) in Curl_if2ip() argument
268 (void) buf_size; in Curl_if2ip()
/external/valgrind/memcheck/tests/solaris/
Dname_service_door.c50 size_t buf_size = sizeof(uint32_t); in test_app_small_request() local
51 char *buf = malloc(buf_size); in test_app_small_request()
59 params.data_size = buf_size; in test_app_small_request()
63 params.rsize = buf_size; in test_app_small_request()
77 size_t buf_size = sizeof(nss_pheader_t) + sizeof(nss_dbd_t); in test_app_uninitialized_request() local
78 char *buf = malloc(buf_size); in test_app_uninitialized_request()
96 params.data_size = buf_size; in test_app_uninitialized_request()
100 params.rsize = buf_size; in test_app_uninitialized_request()
/external/syslinux/gpxe/src/drivers/net/
Dmtnic.c192 ring->buf_size = ring->size * ((is_rx) ? sizeof(struct mtnic_rx_desc) : in mtnic_alloc_ring()
194 err = mtnic_alloc_aligned(ring->buf_size, (void *)&ring->buf, in mtnic_alloc_ring()
198 ring->buf_size); in mtnic_alloc_ring()
201 memset(ring->buf, 0, ring->buf_size); in mtnic_alloc_ring()
206 ring->buf_size, ring->dma); in mtnic_alloc_ring()
215 free_memblock(ring->buf, ring->buf_size); in mtnic_alloc_ring()
233 free_memblock(ring->buf, ring->buf_size); in mtnic_alloc_ring()
254 free_memblock(ring->buf, ring->buf_size); in mtnic_alloc_ring()
294 cq->buf_size = size * sizeof(struct mtnic_cqe); in mtnic_alloc_cq()
295 err = mtnic_alloc_aligned(cq->buf_size, in mtnic_alloc_cq()
[all …]
/external/ltp/testcases/kernel/syscalls/readlink/
Dreadlink03.c69 size_t buf_size; member
157 if (tc->buf_size == 1) in readlink_verify()
158 tc->buf_size = sizeof(buffer); in readlink_verify()
160 TEST(readlink(tc->link, buffer, tc->buf_size)); in readlink_verify()

1234567