Searched refs:local_offset (Results 1 – 7 of 7) sorted by relevance
/external/tpm2-tss/src/tss2-mu/ |
D | tpmt-types.c | 29 size_t local_offset = 0; \ 35 local_offset = *offset; \ 41 " at index 0x%zx", (uintptr_t)src, (uintptr_t)buffer, local_offset); \ 43 ret = fn1(op1 src->m1, buffer, buffer_size, &local_offset); \ 47 ret = fn2(op2 src->m2, src->sel, buffer, buffer_size, &local_offset); \ 50 *offset = local_offset; \ 61 size_t local_offset = 0; \ 65 local_offset = *offset; \ 71 " at index 0x%zx", (uintptr_t)dest, (uintptr_t)buffer, local_offset); \ 75 ret = fn1(buffer, buffer_size, &local_offset, dest ? &dest->m1 : &tmp.m1); \ [all …]
|
D | tpm2b-types.c | 26 size_t local_offset = 0; \ 35 local_offset = *offset; \ 45 } else if (buffer_size < local_offset || \ 46 buffer_size - local_offset < (sizeof(src->size) + src->size)) { \ 51 local_offset, \ 68 local_offset, \ 72 rc = Tss2_MU_UINT16_Marshal(src->size, buffer, buffer_size, &local_offset); \ 77 memcpy(&buffer[local_offset], ((TPM2B *)src)->buffer, src->size); \ 78 local_offset += src->size; \ 82 *offset = local_offset; \ [all …]
|
D | tpms-types.c | 31 size_t local_offset = 0; \ 40 local_offset = *offset; \ 60 ret = Tss2_MU_UINT8_Marshal(src->sizeofSelect, buffer, buffer_size, &local_offset); \ 66 &local_offset); \ 72 *offset = local_offset; \ 81 Tss2_MU_TPMI_ALG_HASH_Marshal(src->hash, buffer, buffer_size, &local_offset)) 84 Tss2_MU_UINT32_Marshal(src->tag, buffer, buffer_size, &local_offset)) 92 size_t local_offset = 0; \ 101 local_offset = *offset; \ 113 ret = Tss2_MU_UINT8_Unmarshal(buffer, buffer_size, &local_offset, \ [all …]
|
D | tpma-types.c | 25 size_t local_offset = 0; \ 29 local_offset = *offset; \ 40 } else if (buffer_size < local_offset || \ 41 buffer_size - local_offset < sizeof (src)) \ 47 local_offset, \ 57 local_offset); \ 73 memcpy (&buffer [local_offset], &src, sizeof(src)); \ 75 *offset = local_offset + sizeof (src); \ 86 size_t local_offset = 0; \ 91 local_offset = *offset; \ [all …]
|
D | base-types.c | 29 size_t local_offset = 0; \ 33 local_offset = *offset; \ 44 } else if (buffer_size < local_offset || \ 45 buffer_size - local_offset < sizeof (src)) \ 51 local_offset, \ 61 local_offset); \ 77 memcpy (&buffer [local_offset], &src, sizeof (src)); \ 79 *offset = local_offset + sizeof (src); \ 94 size_t local_offset = 0; \ 99 local_offset = *offset; \ [all …]
|
D | tpml-types.c | 29 size_t local_offset = 0; \ 35 local_offset = *offset; \ 46 } else if (buffer_size < local_offset || \ 47 buffer_size - local_offset < sizeof(count)) { \ 52 local_offset, \ 67 local_offset); \ 69 ret = Tss2_MU_UINT32_Marshal(src->count, buffer, buffer_size, &local_offset); \ 75 ret = marshal_func(op src->buf_name[i], buffer, buffer_size, &local_offset); \ 80 *offset = local_offset; \ 91 size_t local_offset = 0; \ [all …]
|
D | tpmu-types.c | 27 size_t local_offset = 0; in marshal_tab() local 36 local_offset = *offset; in marshal_tab() 47 } else if (buffer_size < local_offset || buffer_size - local_offset < size) { in marshal_tab() 49 "object of size %zu", buffer_size, local_offset, size); in marshal_tab() 55 local_offset); in marshal_tab() 57 memcpy(&buffer[local_offset], src, size); in marshal_tab() 58 local_offset += size; in marshal_tab() 61 *offset = local_offset; in marshal_tab() 135 size_t local_offset = 0; in unmarshal_tab() local 139 local_offset = *offset; in unmarshal_tab() [all …]
|