/external/vboot_reference/tests/ |
D | vb21_common_tests.c | 259 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/ |
D | exif-mnote-data-olympus.c | 42 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/compiler-rt/test/msan/Linux/ |
D | xattr.cc | 59 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/libexif/libexif/pentax/ |
D | exif-mnote-data-pentax.c | 78 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/ |
D | bits.c | 54 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/ |
D | os-linux.h | 36 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/ |
D | exif-mnote-data-fuji.c | 80 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/ |
D | ih264_list.c | 251 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/ |
D | exif-mnote-data-canon.c | 118 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/libpcap/ |
D | fad-gifc.c | 143 unsigned buf_size; in pcap_findalldevs_interfaces() local 169 buf_size = 8192; in pcap_findalldevs_interfaces() 171 buf = malloc(buf_size); in pcap_findalldevs_interfaces() 179 ifc.ifc_len = buf_size; in pcap_findalldevs_interfaces() 181 memset(buf, 0, buf_size); in pcap_findalldevs_interfaces() 190 if (ifc.ifc_len < buf_size && in pcap_findalldevs_interfaces() 191 (buf_size - ifc.ifc_len) > sizeof(ifrp->ifr_name) + MAX_SA_LEN) in pcap_findalldevs_interfaces() 194 buf_size *= 2; in pcap_findalldevs_interfaces()
|
D | fad-glifc.c | 86 unsigned buf_size; in pcap_findalldevs_interfaces() local 133 buf_size = ifn.lifn_count * sizeof (struct lifreq); in pcap_findalldevs_interfaces() 134 buf = malloc(buf_size); in pcap_findalldevs_interfaces() 146 ifc.lifc_len = buf_size; in pcap_findalldevs_interfaces() 150 memset(buf, 0, buf_size); in pcap_findalldevs_interfaces()
|
/external/libavc/test/encoder/ |
D | output.c | 67 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/autotest/client/site_tests/platform_CompressedSwapPerf/src/ |
D | hog.c | 32 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/ |
D | hb-buffer-serialize.cc | 102 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/ |
D | if2ip.c | 118 char *buf, int buf_size) in Curl_if2ip() argument 177 snprintf(buf, buf_size, "%s%s", ip, scope); in Curl_if2ip() 207 char *buf, int buf_size) in Curl_if2ip() argument 243 Curl_inet_ntop(s->sin_family, &in, buf, buf_size); in Curl_if2ip() 260 char *buf, int buf_size) in Curl_if2ip() argument 267 (void) buf_size; in Curl_if2ip()
|
/external/valgrind/memcheck/tests/solaris/ |
D | name_service_door.c | 50 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/speex/include/speex/ |
D | speex_bits.h | 56 int buf_size;/**< Allocated size for buffer */ member 65 void speex_bits_init_buffer(SpeexBits *bits, void *buff, int buf_size); 68 void speex_bits_set_bit_buffer(SpeexBits *bits, void *buff, int buf_size);
|
/external/libhevc/decoder/ |
D | ihevcd_job_queue.c | 231 void* ihevcd_jobq_init(void *pv_buf, WORD32 buf_size) in ihevcd_jobq_init() argument 239 buf_size -= sizeof(jobq_t); in ihevcd_jobq_init() 243 buf_size -= ithread_get_mutex_lock_size(); in ihevcd_jobq_init() 245 if(buf_size <= 0) in ihevcd_jobq_init() 253 ps_jobq->pv_buf_end = pu1_buf + buf_size; in ihevcd_jobq_init()
|
/external/libexif/libexif/ |
D | exif-mnote-data.c | 81 unsigned int buf_size) in exif_mnote_data_load() argument 84 d->methods.load (d, buf, buf_size); in exif_mnote_data_load() 89 unsigned int *buf_size) in exif_mnote_data_save() argument 92 d->methods.save (d, buf, buf_size); in exif_mnote_data_save()
|
/external/libpng/contrib/examples/ |
D | simpleover.c | 422 size_t buf_size, tmp; in simpleover_process() local 431 buf_size = sizeof (png_uint_16 [4]); in simpleover_process() 432 buf_size *= sprites[nsprites].width; in simpleover_process() 433 buf_size *= sprites[nsprites].height; in simpleover_process() 436 tmp = buf_size; in simpleover_process() 442 sprites[nsprites].buffer = malloc(buf_size); in simpleover_process() 444 memset(sprites[nsprites].buffer, 0, buf_size); in simpleover_process()
|
/external/libexif/test/ |
D | test-mnote.c | 74 unsigned int buf_size; in main() local 95 exif_data_save_data (d, &buf, &buf_size); in main() 97 d = exif_data_new_from_data (buf, buf_size); in main()
|
/external/libchrome/base/strings/ |
D | stringprintf.cc | 29 size_t buf_size, in vsnprintfT() argument 32 return base::vsnprintf(buffer, buf_size, format, argptr); in vsnprintfT() 37 size_t buf_size, in vsnprintfT() argument 40 return base::vswprintf(buffer, buf_size, format, argptr); in vsnprintfT()
|
/external/wpa_supplicant_8/src/common/ |
D | wpa_helpers.c | 101 char *buf, size_t buf_size) in get_wpa_cli_event2() argument 131 len = buf_size; in get_wpa_cli_event2() 136 if (len == buf_size) in get_wpa_cli_event2() 157 const char *event, char *buf, size_t buf_size) in get_wpa_cli_event() argument 159 return get_wpa_cli_event2(mon, event, NULL, buf, buf_size); in get_wpa_cli_event()
|
/external/opencv3/modules/cudaimgproc/src/ |
D | histogram.cpp | 295 int buf_size; in hist() local 296 get_buf_size(sz, levels, &buf_size); in hist() 299 GpuMat buf = pool.getBuffer(1, buf_size, CV_8UC1); in hist() 329 int buf_size; in hist() local 330 get_buf_size(sz, levels, &buf_size); in hist() 333 GpuMat buf = pool.getBuffer(1, buf_size, CV_8UC1); in hist() 399 int buf_size; in hist() local 400 get_buf_size(sz, levels.cols, &buf_size); in hist() 403 GpuMat buf = pool.getBuffer(1, buf_size, CV_8UC1); in hist() 440 int buf_size; in hist() local [all …]
|
/external/webp/src/dec/ |
D | vp8.c | 247 size_t buf_size; in VP8GetHeaders() local 262 buf_size = io->data_size; in VP8GetHeaders() 263 if (buf_size < 4) { in VP8GetHeaders() 283 buf_size -= 3; in VP8GetHeaders() 289 if (buf_size < 7) { in VP8GetHeaders() 293 if (!VP8CheckSignature(buf, buf_size)) { in VP8GetHeaders() 302 buf_size -= 7; in VP8GetHeaders() 324 if (frm_hdr->partition_length_ > buf_size) { in VP8GetHeaders() 332 buf_size -= frm_hdr->partition_length_; in VP8GetHeaders() 347 status = ParsePartitions(dec, buf, buf_size); in VP8GetHeaders()
|