Home
last modified time | relevance | path

Searched refs:total_size (Results 1 - 25 of 247) sorted by relevance

12345678910

/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/mmap/
H A D3-1.c42 long total_size; in main() local
60 total_size = 2 * page_size; in main()
78 data = malloc(total_size); in main()
80 memset(data, 'a', total_size); in main()
81 if (write(fd, data, total_size) != total_size) { in main()
86 memset(data, 'b', total_size); in main()
87 if (write(fd2, data, total_size) != total_size) { in main()
H A D9-1.c40 long total_size; in main() local
48 total_size = page_size; in main()
49 size = total_size; in main()
60 if (ftruncate(fd, total_size) == -1) { in main()
H A D10-1.c41 long total_size; in main() local
47 total_size = 1024; in main()
48 size = total_size; in main()
58 if (ftruncate(fd, total_size) == -1) { in main()
/third_party/ffmpeg/libavcodec/
H A Dh264_mp4toannexb_bsf.c76 uint32_t total_size = 0; in h264_extradata_to_annexb() local
99 total_size += unit_size + 4; in h264_extradata_to_annexb()
100 av_assert1(total_size <= INT_MAX - padding); in h264_extradata_to_annexb()
107 if ((err = av_reallocp(&out, total_size + padding)) < 0) in h264_extradata_to_annexb()
109 memcpy(out + total_size - unit_size - 4, nalu_header, 4); in h264_extradata_to_annexb()
110 bytestream2_get_bufferu(gb, out + total_size - unit_size, unit_size); in h264_extradata_to_annexb()
114 pps_offset = total_size; in h264_extradata_to_annexb()
119 memset(out + total_size, 0, padding); in h264_extradata_to_annexb()
129 if (pps_offset < total_size) { in h264_extradata_to_annexb()
131 s->pps_size = total_size in h264_extradata_to_annexb()
186 uint64_t total_size = 0; h264_mp4toannexb_modify_encryption_info() local
[all...]
/third_party/mesa3d/src/gallium/drivers/svga/
H A Dsvga_screen_cache.c47 unsigned bw, bh, bpb, total_size, i; in svga_surface_size() local
62 total_size = 0; in svga_surface_size()
69 total_size += img_size; in svga_surface_size()
72 total_size *= key->numFaces * key->arraySize * MAX2(1, key->sampleCount); in svga_surface_size()
74 return total_size; in svga_surface_size()
146 assert(surf_size <= cache->total_size); in svga_screen_cache_lookup()
147 if (surf_size > cache->total_size) in svga_screen_cache_lookup()
148 cache->total_size = 0; /* should never happen, but be safe */ in svga_screen_cache_lookup()
150 cache->total_size -= surf_size; in svga_screen_cache_lookup()
190 cache->total_size in svga_screen_cache_shrink()
[all...]
/third_party/skia/third_party/externals/libwebp/src/utils/
H A Dhuffman_utils.c84 int total_size = 1 << root_bits; // total size root table + 2nd level table in BuildHuffmanTable() local
138 ReplicateValue(table, 1, total_size, code); in BuildHuffmanTable()
140 return total_size; in BuildHuffmanTable()
146 uint32_t mask = total_size - 1; // mask for low bits in BuildHuffmanTable()
186 total_size += table_size; in BuildHuffmanTable()
208 return total_size; in BuildHuffmanTable()
219 const int total_size = in VP8LBuildHuffmanTable() local
222 if (total_size == 0 || root_table == NULL) return total_size; in VP8LBuildHuffmanTable()
224 if (root_table->curr_segment->curr_table + total_size > in VP8LBuildHuffmanTable()
[all...]
/third_party/protobuf/src/google/protobuf/
H A Ddescriptor.pb.cc1503 size_t total_size = 0; in ByteSizeLong() local
1510 total_size += 1UL * this->_internal_file_size(); in ByteSizeLong()
1512 total_size += in ByteSizeLong()
1518 _internal_metadata_, total_size, &_cached_size_); in ByteSizeLong()
1520 int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); in ByteSizeLong()
1522 return total_size; in ByteSizeLong()
2037 size_t total_size = 0; in ByteSizeLong() local
2044 total_size += 1 * in ByteSizeLong()
2047 total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( in ByteSizeLong()
2052 total_size in ByteSizeLong()
2436 size_t total_size = 0; ByteSizeLong() local
2705 size_t total_size = 0; ByteSizeLong() local
3179 size_t total_size = 0; ByteSizeLong() local
3497 size_t total_size = 0; ByteSizeLong() local
4013 size_t total_size = 0; ByteSizeLong() local
4398 size_t total_size = 0; ByteSizeLong() local
4652 size_t total_size = 0; ByteSizeLong() local
5011 size_t total_size = 0; ByteSizeLong() local
5343 size_t total_size = 0; ByteSizeLong() local
5664 size_t total_size = 0; ByteSizeLong() local
6066 size_t total_size = 0; ByteSizeLong() local
6895 size_t total_size = 0; ByteSizeLong() local
7419 size_t total_size = 0; ByteSizeLong() local
7820 size_t total_size = 0; ByteSizeLong() local
8109 size_t total_size = 0; ByteSizeLong() local
8383 size_t total_size = 0; ByteSizeLong() local
8664 size_t total_size = 0; ByteSizeLong() local
8926 size_t total_size = 0; ByteSizeLong() local
9219 size_t total_size = 0; ByteSizeLong() local
9503 size_t total_size = 0; RequiredFieldsByteSizeFallback() local
9521 size_t total_size = 0; ByteSizeLong() local
9907 size_t total_size = 0; ByteSizeLong() local
10313 size_t total_size = 0; ByteSizeLong() local
10580 size_t total_size = 0; ByteSizeLong() local
10868 size_t total_size = 0; ByteSizeLong() local
11124 size_t total_size = 0; ByteSizeLong() local
[all...]
H A Dtype.pb.cc617 size_t total_size = 0; in ByteSizeLong() local
624 total_size += 1UL * this->_internal_fields_size(); in ByteSizeLong()
626 total_size += in ByteSizeLong()
631 total_size += 1 * in ByteSizeLong()
634 total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( in ByteSizeLong()
639 total_size += 1UL * this->_internal_options_size(); in ByteSizeLong()
641 total_size += in ByteSizeLong()
647 total_size += 1 + in ByteSizeLong()
654 total_size += 1 + in ByteSizeLong()
661 total_size in ByteSizeLong()
1061 size_t total_size = 0; ByteSizeLong() local
1468 size_t total_size = 0; ByteSizeLong() local
1759 size_t total_size = 0; ByteSizeLong() local
2027 size_t total_size = 0; ByteSizeLong() local
[all...]
H A Dapi.pb.cc461 size_t total_size = 0; in ByteSizeLong() local
468 total_size += 1UL * this->_internal_methods_size(); in ByteSizeLong()
470 total_size += in ByteSizeLong()
475 total_size += 1UL * this->_internal_options_size(); in ByteSizeLong()
477 total_size += in ByteSizeLong()
482 total_size += 1UL * this->_internal_mixins_size(); in ByteSizeLong()
484 total_size += in ByteSizeLong()
490 total_size += 1 + in ByteSizeLong()
497 total_size += 1 + in ByteSizeLong()
504 total_size in ByteSizeLong()
863 size_t total_size = 0; ByteSizeLong() local
1161 size_t total_size = 0; ByteSizeLong() local
[all...]
H A Dwrappers.pb.cc423 size_t total_size = 0; in ByteSizeLong() local
431 total_size += 1 + 8; in ByteSizeLong()
436 _internal_metadata_, total_size, &_cached_size_); in ByteSizeLong()
438 int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); in ByteSizeLong()
440 return total_size; in ByteSizeLong()
618 size_t total_size = 0; in ByteSizeLong() local
626 total_size += 1 + 4; in ByteSizeLong()
631 _internal_metadata_, total_size, &_cached_size_); in ByteSizeLong()
633 int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); in ByteSizeLong()
635 return total_size; in ByteSizeLong()
813 size_t total_size = 0; ByteSizeLong() local
1010 size_t total_size = 0; ByteSizeLong() local
1207 size_t total_size = 0; ByteSizeLong() local
1404 size_t total_size = 0; ByteSizeLong() local
1601 size_t total_size = 0; ByteSizeLong() local
1808 size_t total_size = 0; ByteSizeLong() local
2012 size_t total_size = 0; ByteSizeLong() local
[all...]
/third_party/libphonenumber/cpp/src/phonenumbers/ohos/
H A Dgeocoding_data.pb.cc415 size_t total_size = 0; in RequiredFieldsByteSizeFallback() local
419 total_size += 1 + in RequiredFieldsByteSizeFallback()
426 total_size += 1 + in RequiredFieldsByteSizeFallback()
431 return total_size; in RequiredFieldsByteSizeFallback()
435 size_t total_size = 0; in ByteSizeLong() local
439 total_size += 1 + in ByteSizeLong()
444 total_size += 1 + in ByteSizeLong()
449 total_size += RequiredFieldsByteSizeFallback(); in ByteSizeLong()
456 total_size += 1UL * this->_internal_prefixes_info_size(); in ByteSizeLong()
458 total_size in ByteSizeLong()
792 size_t total_size = 0; RequiredFieldsByteSizeFallback() local
812 size_t total_size = 0; ByteSizeLong() local
1081 size_t total_size = 0; ByteSizeLong() local
1308 size_t total_size = 0; ByteSizeLong() local
1536 size_t total_size = 0; ByteSizeLong() local
[all...]
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/fsync/
H A D4-1.c35 int total_size = 1024; in main() local
48 data = malloc(total_size); in main()
49 memset(data, 'a', total_size); in main()
50 if (write(fd, data, total_size) != total_size) { in main()
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/munmap/
H A D4-1.c45 int total_size = 1024; in main() local
49 size_t size = total_size; in main()
66 data = malloc(total_size); in main()
67 memset(data, 'a', total_size); in main()
68 if (write(fd, data, total_size) != total_size) { in main()
/third_party/libphonenumber/cpp/src/phonenumbers/
H A Dphonemetadata.pb.cc365 size_t total_size = 0; in RequiredFieldsByteSizeFallback() local
369 total_size += 1 + in RequiredFieldsByteSizeFallback()
376 total_size += 1 + in RequiredFieldsByteSizeFallback()
381 return total_size; in RequiredFieldsByteSizeFallback()
385 size_t total_size = 0; in ByteSizeLong() local
389 total_size += 1 + in ByteSizeLong()
394 total_size += 1 + in ByteSizeLong()
399 total_size += RequiredFieldsByteSizeFallback(); in ByteSizeLong()
406 total_size += 1 * in ByteSizeLong()
409 total_size in ByteSizeLong()
722 size_t total_size = 0; ByteSizeLong() local
1879 size_t total_size = 0; ByteSizeLong() local
2394 size_t total_size = 0; ByteSizeLong() local
[all...]
H A Dphonenumber.pb.cc412 size_t total_size = 0; in RequiredFieldsByteSizeFallback() local
416 total_size += 1 + in RequiredFieldsByteSizeFallback()
423 total_size += 1 + in RequiredFieldsByteSizeFallback()
428 return total_size; in RequiredFieldsByteSizeFallback()
432 size_t total_size = 0; in ByteSizeLong() local
436 total_size += 1 + in ByteSizeLong()
441 total_size += 1 + in ByteSizeLong()
446 total_size += RequiredFieldsByteSizeFallback(); in ByteSizeLong()
456 total_size += 1 + in ByteSizeLong()
463 total_size in ByteSizeLong()
[all...]
/third_party/curl/tests/unit/
H A Dunit1308.c50 size_t total_size = 0; variable
73 rc = curl_formget(post, &total_size, print_httppost_callback);
77 fail_unless(total_size == 518, "curl_formget got wrong size back");
92 rc = curl_formget(post, &total_size, print_httppost_callback);
94 fail_unless(total_size == 899, "curl_formget got wrong size back");
/third_party/alsa-lib/src/topology/
H A Dbuilder.c78 size_t total_size = 0, count = 0, block_size = 0; in write_elem_block() local
125 total_size += wsize; in write_elem_block()
139 if (total_size != size) { in write_elem_block()
141 size, total_size); in write_elem_block()
234 size_t total_size, size; in tplg_write_data() local
238 total_size = calc_manifest_size(tplg); in tplg_write_data()
245 total_size += size; in tplg_write_data()
250 tplg->bin = malloc(total_size); in tplg_write_data()
252 tplg->bin_size = total_size; in tplg_write_data()
291 if (total_size ! in tplg_write_data()
[all...]
/third_party/mesa3d/src/gallium/drivers/svga/include/
H A Dsvga3d_surfacedefs.h1255 uint32 slice_size, total_size; in svga3dsurface_get_image_buffer_size() local
1260 total_size = clamped_umul32(image_blocks.width, in svga3dsurface_get_image_buffer_size()
1262 total_size = clamped_umul32(total_size, image_blocks.depth); in svga3dsurface_get_image_buffer_size()
1263 total_size = clamped_umul32(total_size, desc->bytes_per_block); in svga3dsurface_get_image_buffer_size()
1264 return total_size; in svga3dsurface_get_image_buffer_size()
1271 total_size = clamped_umul32(slice_size, image_blocks.depth); in svga3dsurface_get_image_buffer_size()
1273 return total_size; in svga3dsurface_get_image_buffer_size()
1319 uint64_t total_size in svga3dsurface_get_serialized_size() local
1348 uint64_t total_size = svga3dsurface_get_serialized_size(format, svga3dsurface_get_serialized_size_extended() local
[all...]
/third_party/mesa3d/src/gallium/drivers/iris/
H A Diris_binder.c84 * larger total_size when making the updated reservation. in binder_realloc()
134 unsigned total_size; in iris_binder_reserve_3d() local
152 total_size = 0; in iris_binder_reserve_3d()
155 total_size += sizes[stage]; in iris_binder_reserve_3d()
158 assert(total_size < binder->size); in iris_binder_reserve_3d()
160 if (total_size == 0) in iris_binder_reserve_3d()
163 if (binder_has_space(binder, total_size)) in iris_binder_reserve_3d()
167 * this will flag all bindings dirty, which may increase total_size in iris_binder_reserve_3d()
174 uint32_t offset = binder_insert(binder, total_size); in iris_binder_reserve_3d()
/third_party/jerryscript/jerry-core/api/
H A Dexternal-context-helpers.c21 static void * bms_task_context_alloc (size_t total_size, void *cb_data_p) in bms_task_context_alloc() argument
25 if (total_size > (BMS_TASK_CONTEXT_AND_HEAP_SIZE * CONVERTION_RATIO)) { in bms_task_context_alloc()
47 static void * js_task_context_alloc (size_t total_size, void *cb_data_p) in js_task_context_alloc() argument
51 if (total_size > (JS_TASK_CONTEXT_AND_HEAP_SIZE_BYTE)) { in js_task_context_alloc()
/third_party/mesa3d/src/intel/compiler/
H A Dbrw_ir_allocator.h37 sizes(NULL), offsets(NULL), count(0), total_size(0), capacity(0) in simple_allocator()
58 offsets[count] = total_size; in allocate()
59 total_size += size; in allocate()
81 unsigned total_size; member in brw::simple_allocator
/third_party/ffmpeg/libavformat/
H A Dconcat.c45 uint64_t total_size; member
68 int64_t size, total_size = 0; in concat_open() local
117 total_size += size; in concat_open()
129 data->total_size = total_size; in concat_open()
167 return data->total_size; in concat_seek()
216 int64_t total_size = 0; in concatf_open() local
294 total_size += size; in concatf_open()
304 data->total_size = total_size; in concatf_open()
[all...]
/third_party/unity/extras/memory/src/
H A Dunity_memory.c71 size_t total_size; in unity_malloc() local
73 total_size = sizeof(Guard) + unity_size_round_up(size + sizeof(end)); in unity_malloc()
84 if (heap_index + total_size > UNITY_INTERNAL_HEAP_SIZE_BYTES) in unity_malloc()
92 heap_index += total_size; in unity_malloc()
95 guard = (Guard*)UNITY_MALLOC(total_size); in unity_malloc()
/third_party/protobuf/python/google/protobuf/internal/
H A Dwire_format.py209 total_size = (2 * TagByteSize(1) + TagByteSize(2) + TagByteSize(3))
212 total_size += _VarUInt64ByteSizeNoTag(field_number)
217 total_size += _VarUInt64ByteSizeNoTag(message_size)
220 total_size += message_size
221 return total_size
/third_party/ffmpeg/libavutil/tests/
H A Dimgutils.c41 int i, total_size, w = 64, h = 48, linesizes[4]; in main() local
50 total_size = av_image_fill_pointers(data, pix_fmt, h, (void *)1, linesizes); in main()
51 if (total_size < 0) in main()
70 printf(", total_size: %d\n", total_size); in main()

Completed in 26 milliseconds

12345678910