Lines Matching refs:n
133 size_t n = 0; in pack_attrs() local
141 for (n = 0; n < attr_count; n++) { in pack_attrs()
142 if ((attrs[n].attributeID & TEE_ATTR_BIT_VALUE) != 0) in pack_attrs()
145 if (!attrs[n].content.ref.buffer) in pack_attrs()
149 bl += ROUNDUP(attrs[n].content.ref.length, 4); in pack_attrs()
164 for (n = 0; n < attr_count; n++) { in pack_attrs()
165 a[n].attr_id = attrs[n].attributeID; in pack_attrs()
166 if (attrs[n].attributeID & TEE_ATTR_BIT_VALUE) { in pack_attrs()
167 a[n].a = attrs[n].content.value.a; in pack_attrs()
168 a[n].b = attrs[n].content.value.b; in pack_attrs()
172 a[n].b = attrs[n].content.ref.length; in pack_attrs()
174 if (!attrs[n].content.ref.buffer) { in pack_attrs()
175 a[n].a = 0; in pack_attrs()
179 memcpy(b, attrs[n].content.ref.buffer, in pack_attrs()
180 attrs[n].content.ref.length); in pack_attrs()
183 a[n].a = (uint32_t)(uintptr_t)(b - *buf); in pack_attrs()
186 b += ROUNDUP(attrs[n].content.ref.length, 4); in pack_attrs()