Lines Matching refs:ptr
357 struct token_persistent_objs *ptr = NULL; in unregister_persistent_object() local
371 ptr = TEE_Malloc(sizeof(struct token_persistent_objs) + in unregister_persistent_object()
374 if (!ptr) in unregister_persistent_object()
388 TEE_MemMove(ptr, token->db_objs, in unregister_persistent_object()
392 ptr->count--; in unregister_persistent_object()
393 count = ptr->count - idx; in unregister_persistent_object()
395 TEE_MemMove(&ptr->uuids[idx], in unregister_persistent_object()
399 res = TEE_WriteObjectData(db_hdl, ptr, in unregister_persistent_object()
401 ptr->count * sizeof(TEE_UUID)); in unregister_persistent_object()
405 token->db_objs = ptr; in unregister_persistent_object()
406 ptr = NULL; in unregister_persistent_object()
410 TEE_Free(ptr); in unregister_persistent_object()
420 void *ptr = NULL; in register_persistent_object() local
428 ptr = TEE_Realloc(token->db_objs, in register_persistent_object()
431 if (!ptr) in register_persistent_object()
434 token->db_objs = ptr; in register_persistent_object()
586 void *ptr = NULL; in init_persistent_db() local
618 ptr = TEE_Realloc(db_objs, size); in init_persistent_db()
619 if (!ptr) in init_persistent_db()
622 db_objs = ptr; in init_persistent_db()