| /optee_os/lib/libutee/include/ |
| H A D | utee_syscalls.h | 40 TEE_Result _utee_get_property(unsigned long prop_set, unsigned long index, 44 TEE_Result _utee_get_property_name_to_index(unsigned long prop_set, 50 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, 65 TEE_Result _utee_check_access_rights(uint32_t flags, const void *buf, 69 TEE_Result _utee_get_cancellation_flag(uint32_t *cancel); 72 TEE_Result _utee_unmask_cancellation(uint32_t *old_mask); 75 TEE_Result _utee_mask_cancellation(uint32_t *old_mask); 77 TEE_Result _utee_wait(unsigned long timeout); [all …]
|
| H A D | tee_internal_api.h | 22 TEE_Result TEE_GetPropertyAsString(TEE_PropSetHandle propsetOrEnumerator, 25 TEE_Result __GP11_TEE_GetPropertyAsString(TEE_PropSetHandle propsetOrEnumerator, 29 TEE_Result TEE_GetPropertyAsBool(TEE_PropSetHandle propsetOrEnumerator, 32 TEE_Result TEE_GetPropertyAsU32(TEE_PropSetHandle propsetOrEnumerator, 35 TEE_Result TEE_GetPropertyAsU64(TEE_PropSetHandle propsetOrEnumerator, 38 TEE_Result TEE_GetPropertyAsBinaryBlock(TEE_PropSetHandle propsetOrEnumerator, 41 TEE_Result 46 TEE_Result TEE_GetPropertyAsUUID(TEE_PropSetHandle propsetOrEnumerator, 49 TEE_Result TEE_GetPropertyAsIdentity(TEE_PropSetHandle propsetOrEnumerator, 52 TEE_Result TEE_AllocatePropertyEnumerator(TEE_PropSetHandle *enumerator); [all …]
|
| /optee_os/core/include/crypto/ |
| H A D | crypto_impl.h | 22 TEE_Result (*init)(struct crypto_hash_ctx *ctx); 23 TEE_Result (*update)(struct crypto_hash_ctx *ctx, const uint8_t *data, 25 TEE_Result (*final)(struct crypto_hash_ctx *ctx, uint8_t *digest, 33 static inline TEE_Result \ 38 TEE_Result crypto_md5_alloc_ctx(struct crypto_hash_ctx **ctx); 44 TEE_Result crypto_sha1_alloc_ctx(struct crypto_hash_ctx **ctx); 50 TEE_Result crypto_sha224_alloc_ctx(struct crypto_hash_ctx **ctx); 56 TEE_Result crypto_sha256_alloc_ctx(struct crypto_hash_ctx **ctx); 62 TEE_Result crypto_sha384_alloc_ctx(struct crypto_hash_ctx **ctx); 68 TEE_Result crypto_sha512_alloc_ctx(struct crypto_hash_ctx **ctx); [all …]
|
| H A D | crypto.h | 28 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); 33 TEE_Result crypto_hash_update(void *ctx, const uint8_t *data, size_t len); 34 TEE_Result crypto_hash_final(void *ctx, uint8_t *digest, size_t len); 39 TEE_Result crypto_cipher_alloc_ctx(void **ctx, uint32_t algo); 40 TEE_Result crypto_cipher_init(void *ctx, TEE_OperationMode mode, 44 TEE_Result crypto_cipher_update(void *ctx, TEE_OperationMode mode, 48 TEE_Result crypto_cipher_get_block_size(uint32_t algo, size_t *size); 53 TEE_Result crypto_mac_alloc_ctx(void **ctx, uint32_t algo); [all …]
|
| /optee_os/core/include/tee/ |
| H A D | tee_svc_cryp.h | 14 TEE_Result syscall_cryp_obj_get_info(unsigned long obj, 16 TEE_Result syscall_cryp_obj_restrict_usage(unsigned long obj, 18 TEE_Result syscall_cryp_obj_get_attr(unsigned long obj, unsigned long attr_id, 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, 29 TEE_Result syscall_obj_generate_key(unsigned long obj, unsigned long key_size, 33 TEE_Result syscall_cryp_state_alloc(unsigned long algo, unsigned long op_mode, [all …]
|
| H A D | tee_svc_storage.h | 18 TEE_Result syscall_storage_obj_open(unsigned long storage_id, void *object_id, 22 TEE_Result syscall_storage_obj_create(unsigned long storage_id, void *object_id, 27 TEE_Result syscall_storage_obj_del(unsigned long obj); 29 TEE_Result syscall_storage_obj_rename(unsigned long obj, void *object_id, 35 TEE_Result syscall_storage_alloc_enum(uint32_t *obj_enum); 37 TEE_Result syscall_storage_free_enum(unsigned long obj_enum); 39 TEE_Result syscall_storage_reset_enum(unsigned long obj_enum); 41 TEE_Result syscall_storage_start_enum(unsigned long obj_enum, 44 TEE_Result syscall_storage_next_enum(unsigned long obj_enum, 51 TEE_Result syscall_storage_obj_read(unsigned long obj, void *data, size_t len, [all …]
|
| H A D | tee_svc.h | 24 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, 48 TEE_Result syscall_get_property_name_to_index(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, 63 TEE_Result syscall_check_access_rights(unsigned long flags, const void *buf, 66 TEE_Result syscall_get_cancellation_flag(uint32_t *cancel); 68 TEE_Result syscall_unmask_cancellation(uint32_t *old_mask); [all …]
|
| H A D | tadb.h | 32 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, 49 TEE_Result tee_tadb_ta_write(struct tee_tadb_ta_write *ta, const void *buf, 52 TEE_Result tee_tadb_ta_close_and_commit(struct tee_tadb_ta_write *ta); [all …]
|
| H A D | tee_fs.h | 34 TEE_Result (*open)(struct tee_pobj *po, size_t *size, 36 TEE_Result (*create)(struct tee_pobj *po, bool overwrite, 42 TEE_Result (*read)(struct tee_file_handle *fh, size_t pos, 44 TEE_Result (*write)(struct tee_file_handle *fh, size_t pos, 47 TEE_Result (*rename)(struct tee_pobj *old_po, struct tee_pobj *new_po, 49 TEE_Result (*remove)(struct tee_pobj *po); 50 TEE_Result (*truncate)(struct tee_file_handle *fh, size_t size); 52 TEE_Result (*opendir)(const TEE_UUID *uuid, struct tee_fs_dir **d); 53 TEE_Result (*readdir)(struct tee_fs_dir *d, struct tee_fs_dirent **ent); 63 TEE_Result tee_rpmb_fs_raw_open(const char *fname, bool create, [all …]
|
| H A D | fs_dirfile.h | 37 TEE_Result (*open)(bool create, uint8_t *hash, uint32_t min_counter, 42 TEE_Result (*read)(struct tee_file_handle *fh, size_t pos, void *buf, 44 TEE_Result (*write)(struct tee_file_handle *fh, size_t pos, 46 TEE_Result (*commit_writes)(struct tee_file_handle *fh, uint8_t *hash, 59 TEE_Result tee_fs_dirfile_open(bool create, uint8_t *hash, uint32_t min_counter, 77 TEE_Result tee_fs_dirfile_commit_writes(struct tee_fs_dirfile_dirh *dirh, 87 TEE_Result tee_fs_dirfile_get_tmp(struct tee_fs_dirfile_dirh *dirh, 98 TEE_Result tee_fs_dirfile_find(struct tee_fs_dirfile_dirh *dirh, 108 TEE_Result tee_fs_dirfile_fileh_to_fname(const struct tee_fs_dirfile_fileh *dfh, 122 TEE_Result tee_fs_dirfile_rename(struct tee_fs_dirfile_dirh *dirh, [all …]
|
| /optee_os/core/drivers/crypto/crypto_api/include/ |
| H A D | drvcrypt_acipher.h | 56 TEE_Result (*mgf)(struct drvcrypt_rsa_mgf *mgf_data); 75 TEE_Result (*mgf)(struct drvcrypt_rsa_mgf *mgf_data); 83 TEE_Result (*alloc_keypair)(struct rsa_keypair *key, size_t size_bits); 85 TEE_Result (*alloc_publickey)(struct rsa_public_key *key, 92 TEE_Result (*gen_keypair)(struct rsa_keypair *key, size_t size_bits); 95 TEE_Result (*encrypt)(struct drvcrypt_rsa_ed *rsa_data); 97 TEE_Result (*decrypt)(struct drvcrypt_rsa_ed *rsa_data); 101 TEE_Result (*ssa_sign)(struct drvcrypt_rsa_ssa *ssa_data); 103 TEE_Result (*ssa_verify)(struct drvcrypt_rsa_ssa *ssa_data); 112 static inline TEE_Result drvcrypt_register_rsa(const struct drvcrypt_rsa *ops) in drvcrypt_register_rsa() [all …]
|
| /optee_os/core/include/drivers/ |
| H A D | stm32_bsec.h | 39 TEE_Result stm32_bsec_shadow_read_otp(uint32_t *value, uint32_t otp_id); 46 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); 73 static inline TEE_Result stm32_bsec_program_otp(uint32_t value __unused, in stm32_bsec_program_otp() 86 TEE_Result stm32_bsec_permanent_lock_otp(uint32_t otp_id); 88 static inline TEE_Result stm32_bsec_permanent_lock_otp(uint32_t otp_id __unused) in stm32_bsec_permanent_lock_otp() 99 TEE_Result stm32_bsec_write_debug_conf(uint32_t value); 109 TEE_Result stm32_bsec_set_sr_lock(uint32_t otp_id); [all …]
|
| H A D | versal_nvm.h | 226 TEE_Result versal_efuse_read_dna(uint32_t *buf, size_t len); 227 TEE_Result versal_efuse_read_user_data(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, 233 TEE_Result versal_efuse_write_user_data(uint32_t *buf, size_t len, 235 TEE_Result versal_efuse_write_aes_keys(struct versal_efuse_aes_keys *keys); 236 TEE_Result versal_efuse_write_ppk_hash(struct versal_efuse_ppk_hash *hash); 237 TEE_Result versal_efuse_write_iv(struct versal_efuse_ivs *p); 238 TEE_Result versal_efuse_write_dec_only(struct versal_efuse_dec_only *p); 239 TEE_Result versal_efuse_write_sec(struct versal_efuse_sec_ctrl_bits *p); [all …]
|
| H A D | rtc.h | 106 TEE_Result (*get_time)(struct rtc *rtc, struct optee_rtc_time *tm); 107 TEE_Result (*set_time)(struct rtc *rtc, struct optee_rtc_time *tm); 108 TEE_Result (*get_offset)(struct rtc *rtc, long *offset); 109 TEE_Result (*set_offset)(struct rtc *rtc, long offset); 110 TEE_Result (*read_alarm)(struct rtc *rtc, struct optee_rtc_alarm *alrm); 111 TEE_Result (*set_alarm)(struct rtc *rtc, struct optee_rtc_alarm *alrm); 112 TEE_Result (*enable_alarm)(struct rtc *rtc, bool enable); 113 TEE_Result (*wait_alarm)(struct rtc *rtc, 115 TEE_Result (*cancel_wait)(struct rtc *rtc); 116 TEE_Result (*set_alarm_wakeup_status)(struct rtc *rtc, bool status); [all …]
|
| H A D | regulator.h | 134 TEE_Result (*set_state)(struct regulator *r, bool enabled); 135 TEE_Result (*get_state)(struct regulator *r, bool *enabled); 136 TEE_Result (*set_voltage)(struct regulator *r, int level_uv); 137 TEE_Result (*get_voltage)(struct regulator *r, int *level_uv); 138 TEE_Result (*supported_voltages)(struct regulator *r, 141 TEE_Result (*supplied_init)(struct regulator *r, const void *fdt, 150 TEE_Result regulator_enable(struct regulator *regulator); 156 TEE_Result regulator_disable(struct regulator *regulator); 170 TEE_Result regulator_set_voltage(struct regulator *regulator, int level_uv); 176 TEE_Result regulator_register(struct regulator *regulator); [all …]
|
| H A D | firewall_device.h | 46 TEE_Result firewall_dt_get_by_index(const void *fdt, int node, 63 TEE_Result firewall_dt_get_by_name(const void *fdt, int node, const char *name, 72 TEE_Result firewall_set_configuration(struct firewall_query *fw); 82 TEE_Result firewall_check_access(struct firewall_query *fw); 91 TEE_Result firewall_acquire_access(struct firewall_query *fw); 105 TEE_Result firewall_check_memory_access(struct firewall_query *fw, 121 TEE_Result firewall_acquire_memory_access(struct firewall_query *fw, 154 TEE_Result firewall_set_memory_configuration(struct firewall_query *fw, 167 static inline TEE_Result 175 static inline TEE_Result [all …]
|
| H A D | stm32_rtc.h | 18 TEE_Result stm32_rtc_set_tamper_timestamp(void); 25 TEE_Result stm32_rtc_is_timestamp_enabled(bool *ret); 33 TEE_Result stm32_rtc_get_timestamp(struct optee_rtc_time *tm); 41 TEE_Result stm32_rtc_driver_is_initialized(void); 43 static inline TEE_Result stm32_rtc_set_tamper_timestamp(void) in stm32_rtc_set_tamper_timestamp() 48 static inline TEE_Result stm32_rtc_is_timestamp_enabled(bool *ret __unused) in stm32_rtc_is_timestamp_enabled() 53 static inline TEE_Result 59 static inline TEE_Result stm32_rtc_driver_is_initialized(void) in stm32_rtc_driver_is_initialized()
|
| H A D | i2c.h | 23 static TEE_Result __name ## _probe_i2c_dev(const void *fdt, int node, \ 27 TEE_Result res = TEE_ERROR_GENERIC; \ 79 TEE_Result (*read)(struct i2c_dev *i2c_dev, uint8_t *buf, size_t len); 80 TEE_Result (*write)(struct i2c_dev *i2c_dev, const uint8_t *buf, 82 TEE_Result (*smbus)(struct i2c_dev *i2c_dev, enum i2c_smbus_dir dir, 118 static inline TEE_Result i2c_write(struct i2c_dev *i2c_dev, const uint8_t *buf, in i2c_write() 136 static inline TEE_Result i2c_read(struct i2c_dev *i2c_dev, uint8_t *buf, in i2c_read() 157 static inline TEE_Result i2c_smbus_raw(struct i2c_dev *i2c_dev, in i2c_smbus_raw() 185 static inline TEE_Result i2c_dt_get_dev(const void *fdt, int nodeoffset, in i2c_dt_get_dev() 188 TEE_Result res = TEE_ERROR_GENERIC; in i2c_dt_get_dev() [all …]
|
| H A D | pinctrl.h | 47 TEE_Result (*conf_apply)(struct pinconf *conf); 60 typedef TEE_Result (*pinctrl_dt_get_func)(struct dt_pargs *pargs, void *data, 73 static inline TEE_Result pinctrl_register_provider(const void *fdt, in pinctrl_register_provider() 93 TEE_Result pinctrl_get_state_by_name(const void *fdt, int nodeoffset, 107 TEE_Result pinctrl_get_state_by_idx(const void *fdt, int nodeoffset, 124 TEE_Result pinctrl_apply_state(struct pinctrl_state *state); 133 TEE_Result pinctrl_parse_dt_pin_modes(const void *fdt, int nodeoffset, 136 static inline TEE_Result 143 static inline TEE_Result 151 static inline TEE_Result [all …]
|
| H A D | rstctrl.h | 30 TEE_Result (*assert_level)(struct rstctrl *rstctrl, unsigned int to_us); 31 TEE_Result (*deassert_level)(struct rstctrl *rstctrl, 82 static inline TEE_Result rstctrl_assert_to(struct rstctrl *rstctrl, in rstctrl_assert_to() 88 static inline TEE_Result rstctrl_assert(struct rstctrl *rstctrl) in rstctrl_assert() 93 static inline TEE_Result rstctrl_deassert_to(struct rstctrl *rstctrl, in rstctrl_deassert_to() 99 static inline TEE_Result rstctrl_deassert(struct rstctrl *rstctrl) in rstctrl_deassert() 124 TEE_Result rstctrl_get_exclusive(struct rstctrl *rstctrl); 158 static inline TEE_Result rstctrl_dt_get_by_index(const void *fdt, in rstctrl_dt_get_by_index() 163 TEE_Result res = TEE_ERROR_GENERIC; in rstctrl_dt_get_by_index() 175 static inline TEE_Result rstctrl_dt_get_by_index(const void *fdt __unused, in rstctrl_dt_get_by_index() [all …]
|
| H A D | ls_sfp.h | 86 TEE_Result ls_sfp_read(struct ls_sfp_data *data); 95 TEE_Result ls_sfp_get_debug_level(uint32_t *dblev); 104 TEE_Result ls_sfp_get_its(uint32_t *its); 113 TEE_Result ls_sfp_get_ouid(uint32_t index, uint32_t *ouid); 122 TEE_Result ls_sfp_get_sb(uint32_t *sb); 131 TEE_Result ls_sfp_get_srkh(uint32_t index, uint32_t *srkh); 140 TEE_Result ls_sfp_set_debug_level(uint32_t dblev); 154 TEE_Result ls_sfp_set_its_wp(void); 163 TEE_Result ls_sfp_set_ouid(uint32_t index, uint32_t ouid); 170 TEE_Result ls_sfp_status(void);
|
| /optee_os/core/arch/arm/include/kernel/ |
| H A D | tee_l2cc_mutex.h | 14 TEE_Result tee_enable_l2cc_mutex(void); 15 TEE_Result tee_disable_l2cc_mutex(void); 16 TEE_Result tee_get_l2cc_mutex(paddr_t *mutex); 17 TEE_Result tee_set_l2cc_mutex(paddr_t *mutex); 28 static TEE_Result tee_enable_l2cc_mutex(void); 29 static TEE_Result tee_disable_l2cc_mutex(void); 30 static TEE_Result tee_get_l2cc_mutex(paddr_t *mutex); 31 static TEE_Result tee_set_l2cc_mutex(paddr_t *mutex); 33 static inline TEE_Result tee_enable_l2cc_mutex(void) in tee_enable_l2cc_mutex() 37 static inline TEE_Result tee_disable_l2cc_mutex(void) in tee_disable_l2cc_mutex() [all …]
|
| /optee_os/core/include/kernel/ |
| H A D | user_access.h | 15 TEE_Result check_user_access(uint32_t flags, const void *uaddr, size_t len); 16 TEE_Result copy_from_user_private(void *kaddr, const void *uaddr, size_t len); 17 TEE_Result copy_from_user(void *kaddr, const void *uaddr, size_t len); 18 TEE_Result copy_to_user_private(void *uaddr, const void *kaddr, size_t len); 19 TEE_Result copy_to_user(void *uaddr, const void *kaddr, size_t len); 21 static inline TEE_Result check_user_access(uint32_t flags __unused, in check_user_access() 28 static inline TEE_Result copy_from_user_private(void *kaddr __unused, in copy_from_user_private() 35 static inline TEE_Result copy_from_user(void *kaddr __unused, in copy_from_user() 42 static inline TEE_Result copy_to_user_private(void *uaddr __unused, in copy_to_user_private() 49 static inline TEE_Result copy_to_user(void *uaddr __unused, in copy_to_user() [all …]
|
| H A D | dt_driver.h | 57 typedef TEE_Result (*dt_driver_probe_func)(const void *fdt, int nodeoffset, 74 TEE_Result (*probe)(const void *fdt, int node, const void *compat_data); 119 typedef TEE_Result (*get_of_device_func)(struct dt_pargs *parg, void *data, 135 TEE_Result dt_driver_register_provider(const void *fdt, int nodeoffset, 158 TEE_Result dt_driver_device_from_node_idx_prop(const char *prop_name, 180 TEE_Result dt_driver_device_from_parent(const void *fdt, int nodeoffset, 193 TEE_Result dt_driver_device_from_node_idx_prop_phandle(const char *prop_name, 207 TEE_Result dt_driver_get_crypto(void); 251 TEE_Result dt_driver_probe_device_by_node(const void *fdt, int nodeoffset, 272 TEE_Result dt_driver_maybe_add_probe_node(const void *fdt, int nodeoffset); [all …]
|
| /optee_os/core/pta/tests/ |
| H A D | misc.h | 13 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, 41 TEE_Result core_transfer_list_tests(uint32_t nParamTypes, 44 static inline TEE_Result
|