Home
last modified time | relevance | path

Searched refs:TEE_Result (Results 1 – 25 of 520) sorted by relevance

12345678910>>...21

/optee_os-3.20.0/lib/libutee/include/
A Dutee_syscalls.h50 TEE_Result _utee_open_ta_session(const TEE_UUID *dest,
56 TEE_Result _utee_close_ta_session(unsigned long sess);
59 TEE_Result _utee_invoke_ta_command(unsigned long sess,
77 TEE_Result _utee_wait(unsigned long timeout);
82 TEE_Result _utee_set_ta_time(const TEE_Time *time);
105 TEE_Result _utee_cryp_obj_get_info(unsigned long obj,
116 TEE_Result _utee_cryp_obj_close(unsigned long obj);
117 TEE_Result _utee_cryp_obj_reset(unsigned long obj);
152 TEE_Result _utee_asymm_operate(unsigned long state,
158 TEE_Result _utee_asymm_verify(unsigned long state,
[all …]
A Dtee_internal_api.h51 TEE_Result TEE_GetPropertyName(TEE_PropSetHandle enumerator,
54 TEE_Result TEE_GetNextProperty(TEE_PropSetHandle enumerator);
58 void TEE_Panic(TEE_Result panicCode);
62 TEE_Result TEE_OpenTASession(const TEE_UUID *destination,
71 TEE_Result TEE_InvokeTACommand(TEE_TASessionHandle session,
114 TEE_Result TEE_GetObjectInfo1(TEE_ObjectHandle object,
220 TEE_Result
336 TEE_Result TEE_Wait(uint32_t timeout);
338 TEE_Result TEE_GetTAPersistentTime(TEE_Time *time);
484 TEE_Result TA_EXPORT TA_CreateEntryPoint(void);
[all …]
/optee_os-3.20.0/core/include/tee/
A Dtee_svc_cryp.h14 TEE_Result syscall_cryp_obj_get_info(unsigned long obj,
16 TEE_Result syscall_cryp_obj_restrict_usage(unsigned long obj,
21 TEE_Result syscall_cryp_obj_alloc(unsigned long obj_type,
23 TEE_Result syscall_cryp_obj_close(unsigned long obj);
24 TEE_Result syscall_cryp_obj_reset(unsigned long obj);
25 TEE_Result syscall_cryp_obj_populate(unsigned long obj,
27 TEE_Result syscall_cryp_obj_copy(unsigned long dst_obj,
37 TEE_Result syscall_cryp_state_free(unsigned long state);
55 TEE_Result syscall_cryp_derive_key(unsigned long state,
76 TEE_Result syscall_asymm_operate(unsigned long state,
[all …]
A Dtee_svc_storage.h16 TEE_Result syscall_storage_obj_open(unsigned long storage_id, void *object_id,
25 TEE_Result syscall_storage_obj_del(unsigned long obj);
27 TEE_Result syscall_storage_obj_rename(unsigned long obj, void *object_id,
33 TEE_Result syscall_storage_alloc_enum(uint32_t *obj_enum);
35 TEE_Result syscall_storage_free_enum(unsigned long obj_enum);
37 TEE_Result syscall_storage_reset_enum(unsigned long obj_enum);
39 TEE_Result syscall_storage_start_enum(unsigned long obj_enum,
42 TEE_Result syscall_storage_next_enum(unsigned long obj_enum,
52 TEE_Result syscall_storage_obj_write(unsigned long obj, void *data,
55 TEE_Result syscall_storage_obj_trunc(unsigned long obj, size_t len);
[all …]
A Dtee_svc.h24 TEE_Result (*get_prop_func)(struct ts_session *sess,
40 TEE_Result syscall_not_supported(void);
43 TEE_Result syscall_get_property(unsigned long prop_set,
53 TEE_Result syscall_open_ta_session(const TEE_UUID *dest,
57 TEE_Result syscall_close_ta_session(unsigned long sess);
59 TEE_Result syscall_invoke_ta_command(unsigned long sess,
66 TEE_Result syscall_get_cancellation_flag(uint32_t *cancel);
68 TEE_Result syscall_unmask_cancellation(uint32_t *old_mask);
70 TEE_Result syscall_mask_cancellation(uint32_t *old_mask);
72 TEE_Result syscall_wait(unsigned long timeout);
[all …]
A Dtadb.h32 TEE_Result (*open)(uint32_t file_number, int *fd);
33 TEE_Result (*create)(uint32_t file_number, int *fd);
35 TEE_Result (*remove)(uint32_t file_number);
37 TEE_Result (*read_init)(struct tee_fs_rpc_operation *op, int fd,
39 TEE_Result (*read_final)(struct tee_fs_rpc_operation *op,
42 TEE_Result (*write_init)(struct tee_fs_rpc_operation *op, int fd,
44 TEE_Result (*write_final)(struct tee_fs_rpc_operation *op);
47 TEE_Result tee_tadb_ta_create(const struct tee_tadb_property *property,
52 TEE_Result tee_tadb_ta_close_and_commit(struct tee_tadb_ta_write *ta);
54 TEE_Result tee_tadb_ta_delete(const TEE_UUID *uuid);
[all …]
A Dfs_dirfile.h37 TEE_Result (*open)(bool create, uint8_t *hash, const TEE_UUID *uuid,
41 TEE_Result (*read)(struct tee_file_handle *fh, size_t pos,
43 TEE_Result (*write)(struct tee_file_handle *fh, size_t pos,
45 TEE_Result (*commit_writes)(struct tee_file_handle *fh, uint8_t *hash);
56 TEE_Result tee_fs_dirfile_open(bool create, uint8_t *hash,
83 TEE_Result tee_fs_dirfile_get_tmp(struct tee_fs_dirfile_dirh *dirh,
94 TEE_Result tee_fs_dirfile_find(struct tee_fs_dirfile_dirh *dirh,
118 TEE_Result tee_fs_dirfile_rename(struct tee_fs_dirfile_dirh *dirh,
128 TEE_Result tee_fs_dirfile_remove(struct tee_fs_dirfile_dirh *dirh,
136 TEE_Result tee_fs_dirfile_update_hash(struct tee_fs_dirfile_dirh *dirh,
[all …]
A Dtee_fs_rpc.h27 TEE_Result tee_fs_rpc_open_dfh(uint32_t id,
29 TEE_Result tee_fs_rpc_create_dfh(uint32_t id,
32 TEE_Result tee_fs_rpc_close(uint32_t id, int fd);
34 TEE_Result tee_fs_rpc_read_init(struct tee_fs_rpc_operation *op,
37 TEE_Result tee_fs_rpc_read_final(struct tee_fs_rpc_operation *op,
40 TEE_Result tee_fs_rpc_write_init(struct tee_fs_rpc_operation *op,
43 TEE_Result tee_fs_rpc_write_final(struct tee_fs_rpc_operation *op);
46 TEE_Result tee_fs_rpc_truncate(uint32_t id, int fd, size_t len);
47 TEE_Result tee_fs_rpc_remove_dfh(uint32_t id,
A Dtee_fs.h32 TEE_Result (*open)(struct tee_pobj *po, size_t *size,
34 TEE_Result (*create)(struct tee_pobj *po, bool overwrite,
40 TEE_Result (*read)(struct tee_file_handle *fh, size_t pos,
42 TEE_Result (*write)(struct tee_file_handle *fh, size_t pos,
44 TEE_Result (*rename)(struct tee_pobj *old_po, struct tee_pobj *new_po,
46 TEE_Result (*remove)(struct tee_pobj *po);
47 TEE_Result (*truncate)(struct tee_file_handle *fh, size_t size);
49 TEE_Result (*opendir)(const TEE_UUID *uuid, struct tee_fs_dir **d);
50 TEE_Result (*readdir)(struct tee_fs_dir *d, struct tee_fs_dirent **ent);
60 TEE_Result tee_rpmb_fs_raw_open(const char *fname, bool create,
/optee_os-3.20.0/core/include/crypto/
A Dcrypto_impl.h22 TEE_Result (*init)(struct crypto_hash_ctx *ctx);
33 static inline TEE_Result \
154 TEE_Result (*init)(struct crypto_cipher_ctx *ctx,
279 static inline TEE_Result
291 static inline TEE_Result
303 static inline TEE_Result
316 static inline TEE_Result
377 static inline TEE_Result
397 static inline TEE_Result
414 static inline TEE_Result
[all …]
A Dcrypto.h28 TEE_Result crypto_init(void);
31 TEE_Result crypto_hash_alloc_ctx(void **ctx, uint32_t algo);
32 TEE_Result crypto_hash_init(void *ctx);
39 TEE_Result crypto_cipher_alloc_ctx(void **ctx, uint32_t algo);
40 TEE_Result crypto_cipher_init(void *ctx, TEE_OperationMode mode,
53 TEE_Result crypto_mac_alloc_ctx(void **ctx, uint32_t algo);
86 TEE_Result crypto_storage_obj_del(struct tee_obj *obj);
254 TEE_Result crypto_acipher_rsaes_encrypt(uint32_t algo,
264 TEE_Result crypto_acipher_rsassa_verify(uint32_t algo,
358 TEE_Result crypto_rng_init(const void *data, size_t dlen);
[all …]
/optee_os-3.20.0/core/arch/arm/include/kernel/
A Dtee_l2cc_mutex.h13 TEE_Result tee_enable_l2cc_mutex(void);
14 TEE_Result tee_disable_l2cc_mutex(void);
15 TEE_Result tee_get_l2cc_mutex(paddr_t *mutex);
16 TEE_Result tee_set_l2cc_mutex(paddr_t *mutex);
27 static TEE_Result tee_enable_l2cc_mutex(void);
28 static TEE_Result tee_disable_l2cc_mutex(void);
29 static TEE_Result tee_get_l2cc_mutex(paddr_t *mutex);
30 static TEE_Result tee_set_l2cc_mutex(paddr_t *mutex);
32 static inline TEE_Result tee_enable_l2cc_mutex(void) in tee_enable_l2cc_mutex()
36 static inline TEE_Result tee_disable_l2cc_mutex(void) in tee_disable_l2cc_mutex()
[all …]
/optee_os-3.20.0/core/drivers/crypto/crypto_api/include/
A Ddrvcrypt_acipher.h56 TEE_Result (*mgf)(struct drvcrypt_rsa_mgf *mgf_data);
73 TEE_Result (*mgf)(struct drvcrypt_rsa_mgf *mgf_data);
83 TEE_Result (*alloc_publickey)(struct rsa_public_key *key,
93 TEE_Result (*encrypt)(struct drvcrypt_rsa_ed *rsa_data);
95 TEE_Result (*decrypt)(struct drvcrypt_rsa_ed *rsa_data);
99 TEE_Result (*ssa_sign)(struct drvcrypt_rsa_ssa *ssa_data);
101 TEE_Result (*ssa_verify)(struct drvcrypt_rsa_ssa *ssa_data);
143 TEE_Result (*alloc_publickey)(struct ecc_public_key *key,
150 TEE_Result (*sign)(struct drvcrypt_sign_data *sdata);
152 TEE_Result (*verify)(struct drvcrypt_sign_data *sdata);
[all …]
/optee_os-3.20.0/core/include/drivers/
A Dstm32_bsec.h46 TEE_Result stm32_bsec_shadow_register(uint32_t otp_id);
54 TEE_Result stm32_bsec_read_otp(uint32_t *value, uint32_t otp_id);
62 TEE_Result stm32_bsec_write_otp(uint32_t value, uint32_t otp_id);
71 TEE_Result stm32_bsec_program_otp(uint32_t value, uint32_t otp_id);
85 TEE_Result stm32_bsec_permanent_lock_otp(uint32_t otp_id);
92 TEE_Result stm32_bsec_write_debug_conf(uint32_t value);
102 TEE_Result stm32_bsec_set_sr_lock(uint32_t otp_id);
110 TEE_Result stm32_bsec_read_sr_lock(uint32_t otp_id, bool *locked);
117 TEE_Result stm32_bsec_set_sw_lock(uint32_t otp_id);
132 TEE_Result stm32_bsec_set_sp_lock(uint32_t otp_id);
[all …]
A Dversal_nvm.h226 TEE_Result versal_efuse_read_dna(uint32_t *buf, size_t len);
229 TEE_Result versal_efuse_read_iv(uint32_t *buf, size_t len,
231 TEE_Result versal_efuse_read_ppk(uint32_t *buf, size_t len,
237 TEE_Result versal_efuse_write_iv(struct versal_efuse_ivs *p);
248 TEE_Result versal_efuse_write_revoke_id(uint32_t id);
254 TEE_Result
267 TEE_Result versal_bbram_write_aes_key(uint8_t *key, size_t len);
268 TEE_Result versal_bbram_zeroize(void);
269 TEE_Result versal_bbram_write_user_data(uint32_t data);
270 TEE_Result versal_bbram_read_user_data(uint32_t *data);
[all …]
A Drtc.h40 TEE_Result (*get_time)(struct rtc *rtc, struct optee_rtc_time *tm);
41 TEE_Result (*set_time)(struct rtc *rtc, struct optee_rtc_time *tm);
42 TEE_Result (*get_offset)(struct rtc *rtc, long *offset);
43 TEE_Result (*set_offset)(struct rtc *rtc, long offset);
52 static inline TEE_Result rtc_get_info(uint64_t *features, in rtc_get_info()
67 static inline TEE_Result rtc_get_time(struct optee_rtc_time *tm) in rtc_get_time()
75 static inline TEE_Result rtc_set_time(struct optee_rtc_time *tm) in rtc_set_time()
83 static inline TEE_Result rtc_get_offset(long *offset) in rtc_get_offset()
91 static inline TEE_Result rtc_set_offset(long offset) in rtc_set_offset()
120 static inline TEE_Result rtc_get_offset(long *offset __unused) in rtc_get_offset()
[all …]
A Dls_sfp.h84 TEE_Result ls_sfp_read(struct ls_sfp_data *data);
93 TEE_Result ls_sfp_get_debug_level(uint32_t *dblev);
102 TEE_Result ls_sfp_get_its(uint32_t *its);
111 TEE_Result ls_sfp_get_ouid(uint32_t index, uint32_t *ouid);
120 TEE_Result ls_sfp_get_sb(uint32_t *sb);
129 TEE_Result ls_sfp_get_srkh(uint32_t index, uint32_t *srkh);
138 TEE_Result ls_sfp_set_debug_level(uint32_t dblev);
152 TEE_Result ls_sfp_set_its_wp(void);
161 TEE_Result ls_sfp_set_ouid(uint32_t index, uint32_t ouid);
168 TEE_Result ls_sfp_status(void);
A Drstctrl.h31 TEE_Result (*assert_level)(struct rstctrl *rstctrl, unsigned int to_us);
32 TEE_Result (*deassert_level)(struct rstctrl *rstctrl,
83 static inline TEE_Result rstctrl_assert_to(struct rstctrl *rstctrl, in rstctrl_assert_to()
89 static inline TEE_Result rstctrl_assert(struct rstctrl *rstctrl) in rstctrl_assert()
94 static inline TEE_Result rstctrl_deassert_to(struct rstctrl *rstctrl, in rstctrl_deassert_to()
100 static inline TEE_Result rstctrl_deassert(struct rstctrl *rstctrl) in rstctrl_deassert()
125 TEE_Result rstctrl_get_exclusive(struct rstctrl *rstctrl);
159 static inline TEE_Result rstctrl_dt_get_by_index(const void *fdt, in rstctrl_dt_get_by_index()
164 TEE_Result res = TEE_ERROR_GENERIC; in rstctrl_dt_get_by_index()
196 TEE_Result rstctrl_dt_get_by_name(const void *fdt, int nodeoffset,
[all …]
/optee_os-3.20.0/ldelf/include/
A Dldelf_syscalls.h16 TEE_Result _ldelf_map_zi(vaddr_t *va, size_t num_bytes, size_t pad_begin,
18 TEE_Result _ldelf_unmap(vaddr_t va, size_t num_bytes);
19 TEE_Result _ldelf_open_bin(const TEE_UUID *uuid, size_t uuid_size,
21 TEE_Result _ldelf_close_bin(unsigned long handle);
22 TEE_Result _ldelf_map_bin(vaddr_t *va, size_t num_bytes, unsigned long handle,
25 TEE_Result _ldelf_cp_from_bin(void *dst, size_t offs, size_t num_bytes,
27 TEE_Result _ldelf_set_prot(unsigned long va, size_t num_bytes,
29 TEE_Result _ldelf_remap(unsigned long old_va, vaddr_t *new_va, size_t num_bytes,
31 TEE_Result _ldelf_gen_rnd_num(void *buf, size_t num_bytes);
/optee_os-3.20.0/core/include/kernel/
A Dldelf_syscalls.h22 TEE_Result ldelf_syscall_map_zi(vaddr_t *va, size_t num_bytes, size_t pad_begin,
24 TEE_Result ldelf_syscall_unmap(vaddr_t va, size_t num_bytes);
25 TEE_Result ldelf_syscall_open_bin(const TEE_UUID *uuid, size_t uuid_size,
27 TEE_Result ldelf_syscall_close_bin(unsigned long handle);
28 TEE_Result ldelf_syscall_map_bin(vaddr_t *va, size_t num_bytes,
32 TEE_Result ldelf_syscall_copy_from_bin(void *dst, size_t offs, size_t num_bytes,
34 TEE_Result ldelf_syscall_set_prot(unsigned long va, size_t num_bytes,
36 TEE_Result ldelf_syscall_remap(unsigned long old_va, vaddr_t *new_va,
39 TEE_Result ldelf_syscall_gen_rnd_num(void *buf, size_t num_bytes);
A Ddt_driver.h46 void *data, TEE_Result *res);
61 TEE_Result dt_driver_register_provider(const void *fdt, int nodeoffset,
87 TEE_Result *res);
95 TEE_Result dt_driver_get_crypto(void);
134 TEE_Result dt_driver_probe_device_by_node(const void *fdt, int nodeoffset,
155 TEE_Result dt_driver_maybe_add_probe_node(const void *fdt, int nodeoffset);
163 TEE_Result dt_driver_test_status(void);
165 static inline TEE_Result dt_driver_test_status(void) in dt_driver_test_status()
/optee_os-3.20.0/core/pta/tests/
A Dmisc.h13 TEE_Result core_self_tests(uint32_t nParamTypes,
16 TEE_Result core_fs_htree_tests(uint32_t nParamTypes,
19 TEE_Result core_mutex_tests(uint32_t nParamTypes,
23 TEE_Result core_lockdep_tests(uint32_t nParamTypes,
26 static inline TEE_Result core_lockdep_tests( in core_lockdep_tests()
34 TEE_Result core_aes_perf_tests(uint32_t param_types,
37 TEE_Result core_dt_driver_tests(uint32_t param_types,
/optee_os-3.20.0/core/drivers/crypto/caam/include/
A Dcaam_utils_dmaobj.h35 TEE_Result caam_dmaobj_init_input(struct caamdmaobj *obj, const void *data,
48 TEE_Result caam_dmaobj_input_sgtbuf(struct caamdmaobj *obj, const void *data,
61 TEE_Result caam_dmaobj_init_output(struct caamdmaobj *obj, void *data,
80 TEE_Result caam_dmaobj_output_sgtbuf(struct caamdmaobj *obj, void *data,
126 TEE_Result caam_dmaobj_add_first_block(struct caamdmaobj *obj,
139 TEE_Result caam_dmaobj_derive_sgtbuf(struct caamdmaobj *obj,
159 TEE_Result caam_dmaobj_sgtbuf_inout_build(struct caamdmaobj *input,
177 TEE_Result caam_dmaobj_prepare(struct caamdmaobj *input,
190 TEE_Result caam_dmaobj_sgtbuf_build(struct caamdmaobj *obj, size_t *length,
/optee_os-3.20.0/core/include/mm/
A Dvm.h13 TEE_Result vm_info_init(struct user_mode_ctx *uctx, struct ts_ctx *ts_ctx);
29 TEE_Result vm_map_pad(struct user_mode_ctx *uctx, vaddr_t *va, size_t len,
39 static inline TEE_Result vm_map(struct user_mode_ctx *uctx, vaddr_t *va, in vm_map()
49 TEE_Result vm_get_flags(struct user_mode_ctx *uctx, vaddr_t va, size_t len,
52 TEE_Result vm_get_prot(struct user_mode_ctx *uctx, vaddr_t va, size_t len,
55 TEE_Result vm_set_prot(struct user_mode_ctx *uctx, vaddr_t va, size_t len,
58 TEE_Result vm_unmap(struct user_mode_ctx *uctx, vaddr_t va, size_t len);
69 TEE_Result vm_add_rwmem(struct user_mode_ctx *uctx, struct mobj *mobj,
86 TEE_Result vm_buf_to_mboj_offs(const struct user_mode_ctx *uctx,
91 TEE_Result vm_va2pa(const struct user_mode_ctx *uctx, void *ua, paddr_t *pa);
[all …]
/optee_os-3.20.0/ldelf/
A Dsys.h37 TEE_Result sys_map_zi(size_t num_bytes, uint32_t flags, vaddr_t *va,
39 TEE_Result sys_unmap(vaddr_t va, size_t num_bytes);
40 TEE_Result sys_open_ta_bin(const TEE_UUID *uuid, uint32_t *handle);
41 TEE_Result sys_close_ta_bin(uint32_t handle);
42 TEE_Result sys_map_ta_bin(vaddr_t *va, size_t num_bytes, uint32_t flags,
45 TEE_Result sys_copy_from_ta_bin(void *dst, size_t num_bytes, uint32_t handle,
47 TEE_Result sys_set_prot(vaddr_t va, size_t num_bytes, uint32_t flags);
48 TEE_Result sys_remap(vaddr_t old_va, vaddr_t *new_va, size_t num_bytes,
50 TEE_Result sys_gen_random_num(void *buf, size_t blen);

Completed in 22 milliseconds

12345678910>>...21