Home
last modified time | relevance | path

Searched refs:total_size (Results 1 – 25 of 198) sorted by relevance

12345678

/external/tpm2/
Dtpm_generated.c442 UINT16 total_size = 0; in TPM2B_ATTEST_Marshal() local
444 total_size += UINT16_Marshal(&source->t.size, buffer, size); in TPM2B_ATTEST_Marshal()
446 total_size += BYTE_Marshal(&source->t.attestationData[i], buffer, size); in TPM2B_ATTEST_Marshal()
448 return total_size; in TPM2B_ATTEST_Marshal()
476 UINT16 total_size = 0; in TPM2B_DIGEST_Marshal() local
478 total_size += UINT16_Marshal(&source->t.size, buffer, size); in TPM2B_DIGEST_Marshal()
480 total_size += BYTE_Marshal(&source->t.buffer[i], buffer, size); in TPM2B_DIGEST_Marshal()
482 return total_size; in TPM2B_DIGEST_Marshal()
520 UINT16 total_size = 0; in TPM2B_CONTEXT_DATA_Marshal() local
522 total_size += UINT16_Marshal(&source->t.size, buffer, size); in TPM2B_CONTEXT_DATA_Marshal()
[all …]
DMarshal_CreatePrimary.c14 UINT16 total_size = 0; in CreatePrimary_Out_Marshal() local
20 total_size += TPM_HANDLE_Marshal(&source->objectHandle, buffer, size); in CreatePrimary_Out_Marshal()
29 total_size += TPM2B_PUBLIC_Marshal(&source->outPublic, buffer, size); in CreatePrimary_Out_Marshal()
30 total_size += in CreatePrimary_Out_Marshal()
32 total_size += TPM2B_DIGEST_Marshal(&source->creationHash, buffer, size); in CreatePrimary_Out_Marshal()
33 total_size += TPMT_TK_CREATION_Marshal(&source->creationTicket, buffer, size); in CreatePrimary_Out_Marshal()
34 total_size += TPM2B_NAME_Marshal(&source->name, buffer, size); in CreatePrimary_Out_Marshal()
37 parameter_size = total_size - num_response_handles * sizeof(TPM_HANDLE); in CreatePrimary_Out_Marshal()
41 return total_size; in CreatePrimary_Out_Marshal()
DMarshal_Create.c14 UINT16 total_size = 0; in Create_Out_Marshal() local
27 total_size += TPM2B_PRIVATE_Marshal(&source->outPrivate, buffer, size); in Create_Out_Marshal()
28 total_size += TPM2B_PUBLIC_Marshal(&source->outPublic, buffer, size); in Create_Out_Marshal()
29 total_size += in Create_Out_Marshal()
31 total_size += TPM2B_DIGEST_Marshal(&source->creationHash, buffer, size); in Create_Out_Marshal()
32 total_size += TPMT_TK_CREATION_Marshal(&source->creationTicket, buffer, size); in Create_Out_Marshal()
35 parameter_size = total_size - num_response_handles * sizeof(TPM_HANDLE); in Create_Out_Marshal()
39 return total_size; in Create_Out_Marshal()
DMarshal_PCR_Allocate.c14 UINT16 total_size = 0; in PCR_Allocate_Out_Marshal() local
27 total_size += TPMI_YES_NO_Marshal(&source->allocationSuccess, buffer, size); in PCR_Allocate_Out_Marshal()
28 total_size += UINT32_Marshal(&source->maxPCR, buffer, size); in PCR_Allocate_Out_Marshal()
29 total_size += UINT32_Marshal(&source->sizeNeeded, buffer, size); in PCR_Allocate_Out_Marshal()
30 total_size += UINT32_Marshal(&source->sizeAvailable, buffer, size); in PCR_Allocate_Out_Marshal()
33 parameter_size = total_size - num_response_handles * sizeof(TPM_HANDLE); in PCR_Allocate_Out_Marshal()
37 return total_size; in PCR_Allocate_Out_Marshal()
DMarshal_Commit.c14 UINT16 total_size = 0; in Commit_Out_Marshal() local
27 total_size += TPM2B_ECC_POINT_Marshal(&source->K, buffer, size); in Commit_Out_Marshal()
28 total_size += TPM2B_ECC_POINT_Marshal(&source->L, buffer, size); in Commit_Out_Marshal()
29 total_size += TPM2B_ECC_POINT_Marshal(&source->E, buffer, size); in Commit_Out_Marshal()
30 total_size += UINT16_Marshal(&source->counter, buffer, size); in Commit_Out_Marshal()
33 parameter_size = total_size - num_response_handles * sizeof(TPM_HANDLE); in Commit_Out_Marshal()
37 return total_size; in Commit_Out_Marshal()
DMarshal_ReadPublic.c14 UINT16 total_size = 0; in ReadPublic_Out_Marshal() local
27 total_size += TPM2B_PUBLIC_Marshal(&source->outPublic, buffer, size); in ReadPublic_Out_Marshal()
28 total_size += TPM2B_NAME_Marshal(&source->name, buffer, size); in ReadPublic_Out_Marshal()
29 total_size += TPM2B_NAME_Marshal(&source->qualifiedName, buffer, size); in ReadPublic_Out_Marshal()
32 parameter_size = total_size - num_response_handles * sizeof(TPM_HANDLE); in ReadPublic_Out_Marshal()
36 return total_size; in ReadPublic_Out_Marshal()
DMarshal_PCR_Read.c14 UINT16 total_size = 0; in PCR_Read_Out_Marshal() local
27 total_size += UINT32_Marshal(&source->pcrUpdateCounter, buffer, size); in PCR_Read_Out_Marshal()
28 total_size += in PCR_Read_Out_Marshal()
30 total_size += TPML_DIGEST_Marshal(&source->pcrValues, buffer, size); in PCR_Read_Out_Marshal()
33 parameter_size = total_size - num_response_handles * sizeof(TPM_HANDLE); in PCR_Read_Out_Marshal()
37 return total_size; in PCR_Read_Out_Marshal()
DMarshal_Duplicate.c14 UINT16 total_size = 0; in Duplicate_Out_Marshal() local
27 total_size += TPM2B_DATA_Marshal(&source->encryptionKeyOut, buffer, size); in Duplicate_Out_Marshal()
28 total_size += TPM2B_PRIVATE_Marshal(&source->duplicate, buffer, size); in Duplicate_Out_Marshal()
29 total_size += in Duplicate_Out_Marshal()
33 parameter_size = total_size - num_response_handles * sizeof(TPM_HANDLE); in Duplicate_Out_Marshal()
37 return total_size; in Duplicate_Out_Marshal()
DMarshal_GetTestResult.c14 UINT16 total_size = 0; in GetTestResult_Out_Marshal() local
27 total_size += TPM2B_MAX_BUFFER_Marshal(&source->outData, buffer, size); in GetTestResult_Out_Marshal()
28 total_size += TPM_RC_Marshal(&source->testResult, buffer, size); in GetTestResult_Out_Marshal()
31 parameter_size = total_size - num_response_handles * sizeof(TPM_HANDLE); in GetTestResult_Out_Marshal()
35 return total_size; in GetTestResult_Out_Marshal()
DMarshal_NV_ReadPublic.c14 UINT16 total_size = 0; in NV_ReadPublic_Out_Marshal() local
27 total_size += TPM2B_NV_PUBLIC_Marshal(&source->nvPublic, buffer, size); in NV_ReadPublic_Out_Marshal()
28 total_size += TPM2B_NAME_Marshal(&source->nvName, buffer, size); in NV_ReadPublic_Out_Marshal()
31 parameter_size = total_size - num_response_handles * sizeof(TPM_HANDLE); in NV_ReadPublic_Out_Marshal()
35 return total_size; in NV_ReadPublic_Out_Marshal()
DMarshal_ECDH_KeyGen.c14 UINT16 total_size = 0; in ECDH_KeyGen_Out_Marshal() local
27 total_size += TPM2B_ECC_POINT_Marshal(&source->zPoint, buffer, size); in ECDH_KeyGen_Out_Marshal()
28 total_size += TPM2B_ECC_POINT_Marshal(&source->pubPoint, buffer, size); in ECDH_KeyGen_Out_Marshal()
31 parameter_size = total_size - num_response_handles * sizeof(TPM_HANDLE); in ECDH_KeyGen_Out_Marshal()
35 return total_size; in ECDH_KeyGen_Out_Marshal()
/external/chromium-trace/catapult/third_party/gsutil/third_party/apitools/apitools/base/py/
Dtransfer.py187 total_size = kwds.pop('total_size', None)
191 self.__total_size = total_size
216 def FromStream(cls, stream, auto_transfer=True, total_size=None, **kwds): argument
218 return cls(stream, auto_transfer=auto_transfer, total_size=total_size,
248 'total_size': self.total_size,
253 def total_size(self): member in Download
261 self.progress, self.total_size, self.url)
280 if self.total_size is None:
323 elif start >= self.total_size:
326 end = min(end, self.total_size - 1)
[all …]
Dtransfer_test.py35 total_size = 100
38 six.StringIO(), chunksize=chunksize, total_size=total_size)
48 total_size = 100
50 six.StringIO(), chunksize=10, total_size=total_size)
53 total_size - 1,
71 total_size = 100
73 total_size=total_size)
75 self.assertEqual(total_size - 1,
85 total_size=26,
113 download = transfer.Download.FromStream(download_stream, total_size=52)
[all …]
/external/libavc/encoder/
Dih264e_api.c2796 WORD32 total_size = 0; in ih264e_fill_num_mem_rec() local
2799 total_size += sizeof(WORD32); in ih264e_fill_num_mem_rec()
2800 total_size = ALIGN8(total_size); in ih264e_fill_num_mem_rec()
2803 total_size += (max_mb_cols * max_mb_rows); in ih264e_fill_num_mem_rec()
2805 total_size += max_mb_cols; in ih264e_fill_num_mem_rec()
2806 total_size = ALIGN128(total_size); in ih264e_fill_num_mem_rec()
2809 total_size += sizeof(bitstrm_t); in ih264e_fill_num_mem_rec()
2810 total_size = ALIGN128(total_size); in ih264e_fill_num_mem_rec()
2813 total_size += (max_mb_cols * 4 * sizeof(UWORD8)); in ih264e_fill_num_mem_rec()
2814 total_size = ALIGN128(total_size); in ih264e_fill_num_mem_rec()
[all …]
/external/vboot_reference/tests/
Dvb21_common_tests.c62 c->total_size = sizeof(cbuf); in test_common_header_functions()
69 c2->total_size = c->total_size - desc_end; in test_common_header_functions()
82 c->total_size += 4; in test_common_header_functions()
88 c->fixed_size = c->total_size + 4; in test_common_header_functions()
94 c->desc_size = c->total_size - c->fixed_size + 4; in test_common_header_functions()
100 c->total_size--; in test_common_header_functions()
132 TEST_SUCC(vb2_verify_common_member(cbuf, &m, c->total_size - 8, 4), in test_common_header_functions()
134 TEST_EQ(m, c->total_size - 4, " new minimum"); in test_common_header_functions()
142 TEST_EQ(vb2_verify_common_member(cbuf, &m, c->total_size - 8, -4), in test_common_header_functions()
147 TEST_EQ(vb2_verify_common_member(cbuf, &m, c->total_size - 7, 4), in test_common_header_functions()
[all …]
Dvb21_host_sig_tests.c89 TEST_EQ(size, sig->c.total_size, " size"); in sig_tests()
104 TEST_EQ(size, sig->c.total_size, " size"); in sig_tests()
125 c->total_size = bufsize; in sig_tests()
142 c->total_size = bufsize; in sig_tests()
149 sig2 = (struct vb2_signature *)(buf + c_sig_offs + sig->c.total_size); in sig_tests()
153 c->total_size -= 4; in sig_tests()
157 TEST_EQ(size, sig->c.total_size + sig2->c.total_size, in sig_tests()
/external/mesa3d/src/gallium/drivers/svga/
Dsvga_screen_cache.c46 unsigned bw, bh, bpb, total_size, i; in surface_size() local
60 total_size = 0; in surface_size()
67 total_size += img_size; in surface_size()
70 total_size *= key->numFaces; in surface_size()
72 return total_size; in surface_size()
135 assert(surf_size <= cache->total_size); in svga_screen_cache_lookup()
136 if (surf_size > cache->total_size) in svga_screen_cache_lookup()
137 cache->total_size = 0; /* should never happen, but be safe */ in svga_screen_cache_lookup()
139 cache->total_size -= surf_size; in svga_screen_cache_lookup()
179 cache->total_size -= surface_size(&entry->key); in svga_screen_cache_shrink()
[all …]
/external/chromium-trace/catapult/third_party/gsutil/gslib/
Dprogress_callback.py38 def __init__(self, total_size, callback_func, argument
57 self._total_size = total_size
143 total_size): argument
156 total_size = self._override_total_size
158 if total_size:
159 total_size_string = '/%s' % MakeHumanReadable(total_size)
169 if total_size and last_byte_processed - self._start_byte == total_size:
/external/vboot_reference/firmware/lib21/
Dmisc.c49 buf = vb2_workbuf_alloc(wb, c.total_size); in vb2_read_resource_object()
54 rv = vb2ex_read_resource(ctx, index, offset, buf, c.total_size); in vb2_read_resource_object()
56 vb2_workbuf_free(wb, c.total_size); in vb2_read_resource_object()
106 rv = vb2_verify_keyblock(kb, kb->c.total_size, &root_key, &wb); in vb2_load_fw_keyblock()
113 sd->vblock_preamble_offset = kb->c.total_size; in vb2_load_fw_keyblock()
139 memmove(key_data, packed_key, packed_key->c.total_size); in vb2_load_fw_keyblock()
144 sd->workbuf_data_key_size = packed_key->c.total_size; in vb2_load_fw_keyblock()
187 rv = vb2_verify_fw_preamble(pre, pre->c.total_size, &data_key, &wb); in vb2_load_fw_preamble()
194 memmove(key_data, pre, pre->c.total_size); in vb2_load_fw_preamble()
232 sd->workbuf_preamble_size = pre->c.total_size; in vb2_load_fw_preamble()
/external/mesa3d/src/gallium/state_trackers/d3d1x/d3d1xshader/src/
Ddxbc_assemble.cpp37 size_t total_size = sizeof(dxbc_container_header) + data_size; in dxbc_assemble() local
38 dxbc_container_header* header = (dxbc_container_header*)malloc(total_size); in dxbc_assemble()
45 header->total_size = bswap_le32(total_size); in dxbc_assemble()
58 return std::make_pair((void*)header, total_size); in dxbc_assemble()
/external/curl/tests/unit/
Dunit1308.c47 size_t total_size = 0; variable
70 rc = curl_formget(post, &total_size, print_httppost_callback);
74 fail_unless(total_size == 486, "curl_formget got wrong size back");
89 rc = curl_formget(post, &total_size, print_httppost_callback);
91 fail_unless(total_size == 847, "curl_formget got wrong size back");
/external/vboot_reference/host/lib21/
Dhost_signature.c117 s.c.total_size = s.sig_offset + s.sig_size; in vb2_sign_data()
155 buf = calloc(1, s.c.total_size); in vb2_sign_data()
232 if (sig_offset + sig->c.total_size > c->total_size) { in vb2_sign_object()
237 memcpy(buf + sig_offset, sig, sig->c.total_size); in vb2_sign_object()
259 if (sig_next + sig->c.total_size > c->total_size) { in vb2_sign_object_multiple()
264 memcpy(buf + sig_next, sig, sig->c.total_size); in vb2_sign_object_multiple()
265 sig_next += sig->c.total_size; in vb2_sign_object_multiple()
Dhost_fw_preamble.c49 hash_next += hash_list[i]->c.total_size; in vb2_fw_preamble_create()
56 fp.c.total_size = fp.sig_offset + sig_size; in vb2_fw_preamble_create()
59 buf = calloc(fp.c.total_size, 1); in vb2_fw_preamble_create()
70 hash_list[i]->c.total_size); in vb2_fw_preamble_create()
71 hash_next += hash_list[i]->c.total_size; in vb2_fw_preamble_create()
/external/chromium-trace/catapult/telemetry/telemetry/internal/image_processing/
Dbitmaptools.cc97 total_size = size; in Read()
105 if (box.bottom * row_stride > total_size || in Read()
118 total_size = (box.bottom - box.top) * row_stride; in Read()
129 row < data + total_size; in WriteCroppedPixels()
146 int total_size; member
180 for (const unsigned char* row = bmp.data; row < bmp.data + bmp.total_size; in Histogram()
207 box.left = bmp.total_size; in BoundingBox()
208 box.top = bmp.total_size; in BoundingBox()
214 for (const unsigned char* row = bmp.data; row < bmp.data + bmp.total_size; in BoundingBox()
/external/protobuf/src/google/protobuf/
Ddescriptor.pb.cc913 int total_size = 0; in ByteSize() local
916 total_size += 1 * this->file_size(); in ByteSize()
918 total_size += in ByteSize()
924 total_size += in ByteSize()
929 _cached_size_ = total_size; in ByteSize()
931 return total_size; in ByteSize()
1493 int total_size = 0; in ByteSize() local
1498 total_size += 1 + in ByteSize()
1505 total_size += 1 + in ByteSize()
1514 total_size += 1 + in ByteSize()
[all …]

12345678