Lines Matching refs:res

41 	TEE_Result res;  in delete_object()  local
61 res = TEE_OpenPersistentObject(TEE_STORAGE_PRIVATE, in delete_object()
66 if (res != TEE_SUCCESS) { in delete_object()
67 EMSG("Failed to open persistent object, res=0x%08x", res); in delete_object()
69 return res; in delete_object()
75 return res; in delete_object()
86 TEE_Result res; in create_raw_object() local
120 res = TEE_CreatePersistentObject(TEE_STORAGE_PRIVATE, in create_raw_object()
126 if (res != TEE_SUCCESS) { in create_raw_object()
127 EMSG("TEE_CreatePersistentObject failed 0x%08x", res); in create_raw_object()
130 return res; in create_raw_object()
133 res = TEE_WriteObjectData(object, data, data_sz); in create_raw_object()
134 if (res != TEE_SUCCESS) { in create_raw_object()
135 EMSG("TEE_WriteObjectData failed 0x%08x", res); in create_raw_object()
142 return res; in create_raw_object()
154 TEE_Result res; in read_raw_object() local
183 res = TEE_OpenPersistentObject(TEE_STORAGE_PRIVATE, in read_raw_object()
188 if (res != TEE_SUCCESS) { in read_raw_object()
189 EMSG("Failed to open persistent object, res=0x%08x", res); in read_raw_object()
192 return res; in read_raw_object()
195 res = TEE_GetObjectInfo1(object, &object_info); in read_raw_object()
196 if (res != TEE_SUCCESS) { in read_raw_object()
197 EMSG("Failed to create persistent object, res=0x%08x", res); in read_raw_object()
207 res = TEE_ERROR_SHORT_BUFFER; in read_raw_object()
211 res = TEE_ReadObjectData(object, data, object_info.dataSize, in read_raw_object()
213 if (res == TEE_SUCCESS) in read_raw_object()
215 if (res != TEE_SUCCESS || read_bytes != object_info.dataSize) { in read_raw_object()
217 res, read_bytes, object_info.dataSize); in read_raw_object()
227 return res; in read_raw_object()