Lines Matching refs:attr_count
103 void xtest_add_attr(size_t *attr_count, TEE_Attribute *attrs, uint32_t attr_id, in xtest_add_attr() argument
106 attrs[*attr_count].attributeID = attr_id; in xtest_add_attr()
107 attrs[*attr_count].content.ref.buffer = (void *)buf; in xtest_add_attr()
108 attrs[*attr_count].content.ref.length = len; in xtest_add_attr()
109 (*attr_count)++; in xtest_add_attr()
112 void xtest_add_attr_value(size_t *attr_count, TEE_Attribute *attrs, in xtest_add_attr_value() argument
115 attrs[*attr_count].attributeID = attr_id; in xtest_add_attr_value()
116 attrs[*attr_count].content.value.a = value_a; in xtest_add_attr_value()
117 attrs[*attr_count].content.value.b = value_b; in xtest_add_attr_value()
118 (*attr_count)++; in xtest_add_attr_value()
127 TEE_Result pack_attrs(const TEE_Attribute *attrs, uint32_t attr_count, in pack_attrs() argument
137 if (attr_count == 0) in pack_attrs()
140 bl = sizeof(uint32_t) + sizeof(struct tee_attr_packed) * attr_count; in pack_attrs()
141 for (n = 0; n < attr_count; n++) { in pack_attrs()
159 *(uint32_t *)(void *)b = attr_count; in pack_attrs()
162 b += sizeof(struct tee_attr_packed) * attr_count; in pack_attrs()
164 for (n = 0; n < attr_count; n++) { in pack_attrs()
196 uint32_t attr_count) in ta_crypt_cmd_populate_transient_object() argument
204 res = pack_attrs(attrs, attr_count, &buf, &blen); in ta_crypt_cmd_populate_transient_object()