Lines Matching refs:res

138 	TEE_Result res;  in propget_get_property()  local
147 res = propset_get(h, &eps, &eps_len); in propget_get_property()
148 if (res != TEE_SUCCESS) in propget_get_property()
149 return res; in propget_get_property()
158 res = _utee_get_property_name_to_index((unsigned long)h, name, in propget_get_property()
161 if (res != TEE_SUCCESS) in propget_get_property()
162 return res; in propget_get_property()
163 res = _utee_get_property((unsigned long)h, index, NULL, NULL, in propget_get_property()
172 res = propset_get(pe->prop_set, &eps, &eps_len); in propget_get_property()
173 if (res != TEE_SUCCESS) in propget_get_property()
174 return res; in propget_get_property()
180 res = _utee_get_property((unsigned long)pe->prop_set, idx, in propget_get_property()
182 if (res == TEE_ERROR_ITEM_NOT_FOUND) in propget_get_property()
183 res = TEE_ERROR_BAD_PARAMETERS; in propget_get_property()
187 return res; in propget_get_property()
194 TEE_Result res; in TEE_GetPropertyAsString() local
212 res = TEE_ERROR_OUT_OF_MEMORY; in TEE_GetPropertyAsString()
216 res = propget_get_property(propsetOrEnumerator, name, &type, in TEE_GetPropertyAsString()
218 if (res != TEE_SUCCESS) { in TEE_GetPropertyAsString()
219 if (res == TEE_ERROR_SHORT_BUFFER) { in TEE_GetPropertyAsString()
263 res = TEE_ERROR_GENERIC; in TEE_GetPropertyAsString()
270 res = TEE_ERROR_BAD_FORMAT; in TEE_GetPropertyAsString()
277 res = TEE_ERROR_SHORT_BUFFER; in TEE_GetPropertyAsString()
283 if (res != TEE_SUCCESS && in TEE_GetPropertyAsString()
284 res != TEE_ERROR_ITEM_NOT_FOUND && in TEE_GetPropertyAsString()
285 res != TEE_ERROR_SHORT_BUFFER) in TEE_GetPropertyAsString()
288 return res; in TEE_GetPropertyAsString()
294 TEE_Result res; in TEE_GetPropertyAsBool() local
303 res = propget_get_property(propsetOrEnumerator, name, &type, in TEE_GetPropertyAsBool()
306 res = TEE_ERROR_BAD_FORMAT; in TEE_GetPropertyAsBool()
307 if (res != TEE_SUCCESS) in TEE_GetPropertyAsBool()
311 if (res != TEE_SUCCESS && in TEE_GetPropertyAsBool()
312 res != TEE_ERROR_ITEM_NOT_FOUND && in TEE_GetPropertyAsBool()
313 res != TEE_ERROR_BAD_FORMAT) in TEE_GetPropertyAsBool()
316 return res; in TEE_GetPropertyAsBool()
322 TEE_Result res; in TEE_GetPropertyAsU32() local
331 res = propget_get_property(propsetOrEnumerator, name, &type, in TEE_GetPropertyAsU32()
334 res = TEE_ERROR_BAD_FORMAT; in TEE_GetPropertyAsU32()
336 if (res != TEE_SUCCESS && in TEE_GetPropertyAsU32()
337 res != TEE_ERROR_ITEM_NOT_FOUND && in TEE_GetPropertyAsU32()
338 res != TEE_ERROR_BAD_FORMAT) in TEE_GetPropertyAsU32()
341 return res; in TEE_GetPropertyAsU32()
348 TEE_Result res; in TEE_GetPropertyAsBinaryBlock() local
356 res = propget_get_property(propsetOrEnumerator, name, &type, in TEE_GetPropertyAsBinaryBlock()
359 res = TEE_ERROR_BAD_FORMAT; in TEE_GetPropertyAsBinaryBlock()
361 if (res != TEE_SUCCESS && in TEE_GetPropertyAsBinaryBlock()
362 res != TEE_ERROR_ITEM_NOT_FOUND && in TEE_GetPropertyAsBinaryBlock()
363 res != TEE_ERROR_BAD_FORMAT && in TEE_GetPropertyAsBinaryBlock()
364 res != TEE_ERROR_SHORT_BUFFER) in TEE_GetPropertyAsBinaryBlock()
367 return res; in TEE_GetPropertyAsBinaryBlock()
373 TEE_Result res; in TEE_GetPropertyAsUUID() local
382 res = propget_get_property(propsetOrEnumerator, name, &type, in TEE_GetPropertyAsUUID()
385 res = TEE_ERROR_BAD_FORMAT; in TEE_GetPropertyAsUUID()
387 if (res != TEE_SUCCESS && in TEE_GetPropertyAsUUID()
388 res != TEE_ERROR_ITEM_NOT_FOUND && in TEE_GetPropertyAsUUID()
389 res != TEE_ERROR_BAD_FORMAT) in TEE_GetPropertyAsUUID()
392 return res; in TEE_GetPropertyAsUUID()
398 TEE_Result res; in TEE_GetPropertyAsIdentity() local
407 res = propget_get_property(propsetOrEnumerator, name, &type, in TEE_GetPropertyAsIdentity()
410 res = TEE_ERROR_BAD_FORMAT; in TEE_GetPropertyAsIdentity()
412 if (res != TEE_SUCCESS && in TEE_GetPropertyAsIdentity()
413 res != TEE_ERROR_ITEM_NOT_FOUND && in TEE_GetPropertyAsIdentity()
414 res != TEE_ERROR_BAD_FORMAT) in TEE_GetPropertyAsIdentity()
417 return res; in TEE_GetPropertyAsIdentity()
422 TEE_Result res; in TEE_AllocatePropertyEnumerator() local
430 res = TEE_ERROR_OUT_OF_MEMORY; in TEE_AllocatePropertyEnumerator()
440 if (res == TEE_ERROR_OUT_OF_MEMORY) in TEE_AllocatePropertyEnumerator()
441 return res; in TEE_AllocatePropertyEnumerator()
476 TEE_Result res; in TEE_GetPropertyName() local
484 res = TEE_ERROR_BAD_PARAMETERS; in TEE_GetPropertyName()
490 res = propset_get(pe->prop_set, &eps, &eps_len); in TEE_GetPropertyName()
491 if (res != TEE_SUCCESS) in TEE_GetPropertyName()
498 res = TEE_ERROR_SHORT_BUFFER; in TEE_GetPropertyName()
501 res = _utee_get_property((unsigned long)pe->prop_set, in TEE_GetPropertyName()
504 if (res != TEE_SUCCESS) in TEE_GetPropertyName()
509 if (res != TEE_SUCCESS && in TEE_GetPropertyName()
510 res != TEE_ERROR_ITEM_NOT_FOUND && in TEE_GetPropertyName()
511 res != TEE_ERROR_SHORT_BUFFER) in TEE_GetPropertyName()
513 return res; in TEE_GetPropertyName()
518 TEE_Result res; in TEE_GetNextProperty() local
525 res = TEE_ERROR_BAD_PARAMETERS; in TEE_GetNextProperty()
530 res = TEE_ERROR_ITEM_NOT_FOUND; in TEE_GetNextProperty()
534 res = propset_get(pe->prop_set, &eps, &eps_len); in TEE_GetNextProperty()
535 if (res != TEE_SUCCESS) in TEE_GetNextProperty()
541 res = TEE_SUCCESS; in TEE_GetNextProperty()
543 res = _utee_get_property((unsigned long)pe->prop_set, in TEE_GetNextProperty()
548 if (res != TEE_SUCCESS && in TEE_GetNextProperty()
549 res != TEE_ERROR_ITEM_NOT_FOUND) in TEE_GetNextProperty()
551 return res; in TEE_GetNextProperty()