Lines Matching refs:res
146 TEE_Result res; in propget_get_property() local
155 res = propset_get(h, &eps, &eps_len); in propget_get_property()
156 if (res != TEE_SUCCESS) in propget_get_property()
157 return res; in propget_get_property()
166 res = _utee_get_property_name_to_index((unsigned long)h, name, in propget_get_property()
169 if (res != TEE_SUCCESS) in propget_get_property()
170 return res; in propget_get_property()
171 res = _utee_get_property((unsigned long)h, index, NULL, NULL, in propget_get_property()
180 res = propset_get(pe->prop_set, &eps, &eps_len); in propget_get_property()
181 if (res != TEE_SUCCESS) in propget_get_property()
182 return res; in propget_get_property()
188 res = _utee_get_property((unsigned long)pe->prop_set, idx, in propget_get_property()
190 if (res == TEE_ERROR_ITEM_NOT_FOUND) in propget_get_property()
191 res = TEE_ERROR_BAD_PARAMETERS; in propget_get_property()
195 return res; in propget_get_property()
202 TEE_Result res = TEE_ERROR_GENERIC; in TEE_GetPropertyAsString() local
220 res = TEE_ERROR_OUT_OF_MEMORY; in TEE_GetPropertyAsString()
224 res = propget_get_property(propsetOrEnumerator, name, &type, in TEE_GetPropertyAsString()
226 if (res != TEE_SUCCESS) { in TEE_GetPropertyAsString()
227 if (res == TEE_ERROR_SHORT_BUFFER) { in TEE_GetPropertyAsString()
271 res = TEE_ERROR_GENERIC; in TEE_GetPropertyAsString()
278 res = TEE_ERROR_BAD_FORMAT; in TEE_GetPropertyAsString()
285 res = TEE_ERROR_SHORT_BUFFER; in TEE_GetPropertyAsString()
291 if (res != TEE_SUCCESS && in TEE_GetPropertyAsString()
292 res != TEE_ERROR_ITEM_NOT_FOUND && in TEE_GetPropertyAsString()
293 res != TEE_ERROR_SHORT_BUFFER) in TEE_GetPropertyAsString()
296 return res; in TEE_GetPropertyAsString()
303 TEE_Result res = TEE_SUCCESS; in __GP11_TEE_GetPropertyAsString() local
308 res = TEE_GetPropertyAsString(propsetOrEnumerator, name, valueBuffer, in __GP11_TEE_GetPropertyAsString()
311 return res; in __GP11_TEE_GetPropertyAsString()
317 TEE_Result res; in TEE_GetPropertyAsBool() local
326 res = propget_get_property(propsetOrEnumerator, name, &type, in TEE_GetPropertyAsBool()
329 res = TEE_ERROR_BAD_FORMAT; in TEE_GetPropertyAsBool()
330 if (res != TEE_SUCCESS) in TEE_GetPropertyAsBool()
334 if (res != TEE_SUCCESS && in TEE_GetPropertyAsBool()
335 res != TEE_ERROR_ITEM_NOT_FOUND && in TEE_GetPropertyAsBool()
336 res != TEE_ERROR_BAD_FORMAT) in TEE_GetPropertyAsBool()
339 return res; in TEE_GetPropertyAsBool()
345 TEE_Result res; in TEE_GetPropertyAsU32() local
354 res = propget_get_property(propsetOrEnumerator, name, &type, in TEE_GetPropertyAsU32()
357 res = TEE_ERROR_BAD_FORMAT; in TEE_GetPropertyAsU32()
359 if (res != TEE_SUCCESS && in TEE_GetPropertyAsU32()
360 res != TEE_ERROR_ITEM_NOT_FOUND && in TEE_GetPropertyAsU32()
361 res != TEE_ERROR_BAD_FORMAT) in TEE_GetPropertyAsU32()
364 return res; in TEE_GetPropertyAsU32()
370 TEE_Result res; in TEE_GetPropertyAsU64() local
379 res = propget_get_property(propsetOrEnumerator, name, &type, in TEE_GetPropertyAsU64()
382 res = TEE_ERROR_BAD_FORMAT; in TEE_GetPropertyAsU64()
384 if (res != TEE_SUCCESS && in TEE_GetPropertyAsU64()
385 res != TEE_ERROR_ITEM_NOT_FOUND && in TEE_GetPropertyAsU64()
386 res != TEE_ERROR_BAD_FORMAT) in TEE_GetPropertyAsU64()
389 return res; in TEE_GetPropertyAsU64()
397 TEE_Result res = TEE_SUCCESS; in __GP11_TEE_GetPropertyAsBinaryBlock() local
405 res = propget_get_property(propsetOrEnumerator, name, &type, in __GP11_TEE_GetPropertyAsBinaryBlock()
408 res = TEE_ERROR_BAD_FORMAT; in __GP11_TEE_GetPropertyAsBinaryBlock()
410 if (res != TEE_SUCCESS && in __GP11_TEE_GetPropertyAsBinaryBlock()
411 res != TEE_ERROR_ITEM_NOT_FOUND && in __GP11_TEE_GetPropertyAsBinaryBlock()
412 res != TEE_ERROR_BAD_FORMAT && in __GP11_TEE_GetPropertyAsBinaryBlock()
413 res != TEE_ERROR_SHORT_BUFFER) in __GP11_TEE_GetPropertyAsBinaryBlock()
416 return res; in __GP11_TEE_GetPropertyAsBinaryBlock()
423 TEE_Result res = TEE_SUCCESS; in TEE_GetPropertyAsBinaryBlock() local
428 res = __GP11_TEE_GetPropertyAsBinaryBlock(propsetOrEnumerator, name, in TEE_GetPropertyAsBinaryBlock()
431 return res; in TEE_GetPropertyAsBinaryBlock()
437 TEE_Result res; in TEE_GetPropertyAsUUID() local
446 res = propget_get_property(propsetOrEnumerator, name, &type, in TEE_GetPropertyAsUUID()
449 res = TEE_ERROR_BAD_FORMAT; in TEE_GetPropertyAsUUID()
451 if (res != TEE_SUCCESS && in TEE_GetPropertyAsUUID()
452 res != TEE_ERROR_ITEM_NOT_FOUND && in TEE_GetPropertyAsUUID()
453 res != TEE_ERROR_BAD_FORMAT) in TEE_GetPropertyAsUUID()
456 return res; in TEE_GetPropertyAsUUID()
462 TEE_Result res; in TEE_GetPropertyAsIdentity() local
471 res = propget_get_property(propsetOrEnumerator, name, &type, in TEE_GetPropertyAsIdentity()
474 res = TEE_ERROR_BAD_FORMAT; in TEE_GetPropertyAsIdentity()
476 if (res != TEE_SUCCESS && in TEE_GetPropertyAsIdentity()
477 res != TEE_ERROR_ITEM_NOT_FOUND && in TEE_GetPropertyAsIdentity()
478 res != TEE_ERROR_BAD_FORMAT) in TEE_GetPropertyAsIdentity()
481 return res; in TEE_GetPropertyAsIdentity()
486 TEE_Result res; in TEE_AllocatePropertyEnumerator() local
494 res = TEE_ERROR_OUT_OF_MEMORY; in TEE_AllocatePropertyEnumerator()
504 if (res == TEE_ERROR_OUT_OF_MEMORY) in TEE_AllocatePropertyEnumerator()
505 return res; in TEE_AllocatePropertyEnumerator()
540 TEE_Result res; in __GP11_TEE_GetPropertyName() local
548 res = TEE_ERROR_BAD_PARAMETERS; in __GP11_TEE_GetPropertyName()
554 res = propset_get(pe->prop_set, &eps, &eps_len); in __GP11_TEE_GetPropertyName()
555 if (res != TEE_SUCCESS) in __GP11_TEE_GetPropertyName()
562 res = TEE_ERROR_SHORT_BUFFER; in __GP11_TEE_GetPropertyName()
565 res = _utee_get_property((unsigned long)pe->prop_set, in __GP11_TEE_GetPropertyName()
568 if (res != TEE_SUCCESS) in __GP11_TEE_GetPropertyName()
573 if (res != TEE_SUCCESS && in __GP11_TEE_GetPropertyName()
574 res != TEE_ERROR_ITEM_NOT_FOUND && in __GP11_TEE_GetPropertyName()
575 res != TEE_ERROR_SHORT_BUFFER) in __GP11_TEE_GetPropertyName()
577 return res; in __GP11_TEE_GetPropertyName()
583 TEE_Result res = TEE_SUCCESS; in TEE_GetPropertyName() local
588 res = __GP11_TEE_GetPropertyName(enumerator, nameBuffer, &l); in TEE_GetPropertyName()
590 return res; in TEE_GetPropertyName()
595 TEE_Result res; in TEE_GetNextProperty() local
602 res = TEE_ERROR_BAD_PARAMETERS; in TEE_GetNextProperty()
607 res = TEE_ERROR_ITEM_NOT_FOUND; in TEE_GetNextProperty()
611 res = propset_get(pe->prop_set, &eps, &eps_len); in TEE_GetNextProperty()
612 if (res != TEE_SUCCESS) in TEE_GetNextProperty()
618 res = TEE_SUCCESS; in TEE_GetNextProperty()
620 res = _utee_get_property((unsigned long)pe->prop_set, in TEE_GetNextProperty()
625 if (res != TEE_SUCCESS && in TEE_GetNextProperty()
626 res != TEE_ERROR_ITEM_NOT_FOUND) in TEE_GetNextProperty()
628 return res; in TEE_GetNextProperty()