Lines Matching refs:cur
65 char *cur = NULL; in _remove_attribute() local
70 cur = (char *)h + sizeof(struct obj_attrs); in _remove_attribute()
71 end = cur + h->attrs_size; in _remove_attribute()
72 for (; cur < end; cur += next_off) { in _remove_attribute()
75 TEE_MemMove(&pkcs11_ref, cur, sizeof(pkcs11_ref)); in _remove_attribute()
84 TEE_MemMove(cur, cur + next_off, end - (cur + next_off)); in _remove_attribute()
107 char *cur = (char *)head + sizeof(struct obj_attrs); in get_attribute_ptrs() local
108 char *end = cur + head->attrs_size; in get_attribute_ptrs()
115 for (; cur < end; cur += next_off) { in get_attribute_ptrs()
119 TEE_MemMove(&pkcs11_ref, cur, sizeof(pkcs11_ref)); in get_attribute_ptrs()
132 *attr_ptr++ = cur + sizeof(pkcs11_ref); in get_attribute_ptrs()
145 if (cur > end) { in get_attribute_ptrs()
210 char *cur = (char *)head + sizeof(struct obj_attrs); in modify_attributes_list() local
211 char *end = cur + head->attrs_size; in modify_attributes_list()
215 for (; cur < end; cur += len) { in modify_attributes_list()
216 struct pkcs11_attribute_head *cli_ref = (void *)cur; in modify_attributes_list()
220 TEE_MemMove(&cli_head, cur, sizeof(cli_head)); in modify_attributes_list()
333 char *cur = src; in __trace_attributes() local
344 for (; cur < (char *)end; cur += next_off) { in __trace_attributes()
348 TEE_MemMove(&pkcs11_ref, cur, sizeof(pkcs11_ref)); in __trace_attributes()
349 TEE_MemMove(&data[0], cur + sizeof(pkcs11_ref), in __trace_attributes()
365 cur + sizeof(pkcs11_ref)), in __trace_attributes()
373 cur + sizeof(pkcs11_ref)), in __trace_attributes()
382 cur + sizeof(pkcs11_ref)), in __trace_attributes()
391 cur + sizeof(pkcs11_ref)), in __trace_attributes()
400 cur + sizeof(pkcs11_ref)), in __trace_attributes()
412 cur + sizeof(pkcs11_ref)); in __trace_attributes()
420 if (cur != end) in __trace_attributes()