Lines Matching refs:rc

27 	TEE_Result rc = TEE_ERROR_GENERIC;  in cmd_inject()  local
50 rc = TEE_CheckMemoryAccessRights(TEE_MEMORY_ACCESS_ANY_OWNER | in cmd_inject()
55 if (rc != TEE_SUCCESS) { in cmd_inject()
56 EMSG("TEE_CheckMemoryAccessRights(nsec) failed %x", rc); in cmd_inject()
57 return rc; in cmd_inject()
60 rc = TEE_CheckMemoryAccessRights(TEE_MEMORY_ACCESS_ANY_OWNER | in cmd_inject()
65 if (rc != TEE_SUCCESS) { in cmd_inject()
66 EMSG("TEE_CheckMemoryAccessRights(secure) failed %x", rc); in cmd_inject()
67 return rc; in cmd_inject()
78 rc = TEE_CacheFlush(params[sec_idx].memref.buffer, in cmd_inject()
80 if (rc != TEE_SUCCESS) { in cmd_inject()
83 params[sec_idx].memref.size, rc); in cmd_inject()
84 return rc; in cmd_inject()
94 rc = TEE_CacheFlush(params[sec_idx].memref.buffer, in cmd_inject()
96 if (rc != TEE_SUCCESS) { in cmd_inject()
99 params[sec_idx].memref.size, rc); in cmd_inject()
100 return rc; in cmd_inject()
104 return rc; in cmd_inject()
110 TEE_Result rc = TEE_ERROR_GENERIC; in cmd_transform() local
128 rc = TEE_CheckMemoryAccessRights(TEE_MEMORY_ACCESS_ANY_OWNER | in cmd_transform()
134 if (rc != TEE_SUCCESS) { in cmd_transform()
135 EMSG("TEE_CheckMemoryAccessRights(secure) failed %x", rc); in cmd_transform()
136 return rc; in cmd_transform()
147 rc = TEE_CacheFlush(params[0].memref.buffer, in cmd_transform()
149 if (rc != TEE_SUCCESS) { in cmd_transform()
152 params[0].memref.size, rc); in cmd_transform()
153 return rc; in cmd_transform()
164 rc = TEE_CacheFlush(params[0].memref.buffer, in cmd_transform()
166 if (rc != TEE_SUCCESS) { in cmd_transform()
169 params[0].memref.size, rc); in cmd_transform()
170 return rc; in cmd_transform()
174 return rc; in cmd_transform()
180 TEE_Result rc = TEE_ERROR_GENERIC; in cmd_dump() local
201 rc = TEE_CheckMemoryAccessRights(TEE_MEMORY_ACCESS_ANY_OWNER | in cmd_dump()
206 if (rc != TEE_SUCCESS) { in cmd_dump()
207 EMSG("TEE_CheckMemoryAccessRights(nsec) failed %x", rc); in cmd_dump()
208 return rc; in cmd_dump()
211 rc = TEE_CheckMemoryAccessRights(TEE_MEMORY_ACCESS_ANY_OWNER | in cmd_dump()
216 if (rc != TEE_SUCCESS) { in cmd_dump()
217 EMSG("TEE_CheckMemoryAccessRights(secure) failed %x", rc); in cmd_dump()
218 return rc; in cmd_dump()
228 rc = TEE_CacheFlush(params[sec_idx].memref.buffer, in cmd_dump()
230 if (rc != TEE_SUCCESS) { in cmd_dump()
233 params[sec_idx].memref.size, rc); in cmd_dump()
234 return rc; in cmd_dump()
243 return rc; in cmd_dump()