Lines Matching refs:sess
677 TEE_Result (*to_user)(void *attr, struct ts_session *sess,
737 struct ts_session *sess __unused, in op_attr_secret_value_to_user()
842 struct ts_session *sess __unused, in op_attr_bignum_to_user()
955 struct ts_session *sess __unused, in op_attr_value_to_user()
1018 struct ts_session *sess __unused, in op_attr_25519_to_user()
1176 struct ts_session *sess = ts_get_current_session(); in syscall_cryp_obj_get_info() local
1181 res = tee_obj_get(to_user_ta_ctx(sess->ctx), in syscall_cryp_obj_get_info()
1208 struct ts_session *sess = ts_get_current_session(); in syscall_cryp_obj_restrict_usage() local
1212 res = tee_obj_get(to_user_ta_ctx(sess->ctx), uref_to_vaddr(obj), &o); in syscall_cryp_obj_restrict_usage()
1285 struct ts_session *sess = ts_get_current_session(); in syscall_cryp_obj_get_attr() local
1294 res = tee_obj_get(to_user_ta_ctx(sess->ctx), uref_to_vaddr(obj), &o); in syscall_cryp_obj_get_attr()
1327 return ops->to_user(attr, sess, buffer, size); in syscall_cryp_obj_get_attr()
1660 struct ts_session *sess = ts_get_current_session(); in syscall_cryp_obj_alloc() local
1675 tee_obj_add(to_user_ta_ctx(sess->ctx), o); in syscall_cryp_obj_alloc()
1679 tee_obj_close(to_user_ta_ctx(sess->ctx), o); in syscall_cryp_obj_alloc()
1685 struct ts_session *sess = ts_get_current_session(); in syscall_cryp_obj_close() local
1689 res = tee_obj_get(to_user_ta_ctx(sess->ctx), uref_to_vaddr(obj), &o); in syscall_cryp_obj_close()
1700 tee_obj_close(to_user_ta_ctx(sess->ctx), o); in syscall_cryp_obj_close()
1706 struct ts_session *sess = ts_get_current_session(); in syscall_cryp_obj_reset() local
1710 res = tee_obj_get(to_user_ta_ctx(sess->ctx), uref_to_vaddr(obj), &o); in syscall_cryp_obj_reset()
1994 struct ts_session *sess = ts_get_current_session(); in syscall_cryp_obj_populate() local
2001 res = tee_obj_get(to_user_ta_ctx(sess->ctx), uref_to_vaddr(obj), &o); in syscall_cryp_obj_populate()
2024 res = copy_in_attrs(to_user_ta_ctx(sess->ctx), usr_attrs, attr_count, in syscall_cryp_obj_populate()
2045 struct ts_session *sess = ts_get_current_session(); in syscall_cryp_obj_copy() local
2050 res = tee_obj_get(to_user_ta_ctx(sess->ctx), in syscall_cryp_obj_copy()
2055 res = tee_obj_get(to_user_ta_ctx(sess->ctx), in syscall_cryp_obj_copy()
2423 struct ts_session *sess = ts_get_current_session(); in syscall_obj_generate_key() local
2432 res = tee_obj_get(to_user_ta_ctx(sess->ctx), uref_to_vaddr(obj), &o); in syscall_obj_generate_key()
2460 res = copy_in_attrs(to_user_ta_ctx(sess->ctx), usr_params, param_count, in syscall_obj_generate_key()
2578 static TEE_Result tee_svc_cryp_get_state(struct ts_session *sess, in tee_svc_cryp_get_state() argument
2583 struct user_ta_ctx *utc = to_user_ta_ctx(sess->ctx); in tee_svc_cryp_get_state()
2783 struct ts_session *sess = ts_get_current_session(); in syscall_cryp_state_alloc() local
2784 struct user_ta_ctx *utc = to_user_ta_ctx(sess->ctx); in syscall_cryp_state_alloc()
2909 struct ts_session *sess = ts_get_current_session(); in syscall_cryp_state_copy() local
2914 res = tee_svc_cryp_get_state(sess, uref_to_vaddr(dst), &cs_dst); in syscall_cryp_state_copy()
2918 res = tee_svc_cryp_get_state(sess, uref_to_vaddr(src), &cs_src); in syscall_cryp_state_copy()
2957 struct ts_session *sess = ts_get_current_session(); in syscall_cryp_state_free() local
2961 res = tee_svc_cryp_get_state(sess, uref_to_vaddr(state), &cs); in syscall_cryp_state_free()
2964 cryp_state_free(to_user_ta_ctx(sess->ctx), cs); in syscall_cryp_state_free()
2972 struct ts_session *sess = ts_get_current_session(); in syscall_hash_init() local
2976 res = tee_svc_cryp_get_state(sess, uref_to_vaddr(state), &cs); in syscall_hash_init()
2991 res = tee_obj_get(to_user_ta_ctx(sess->ctx), in syscall_hash_init()
3018 struct ts_session *sess = ts_get_current_session(); in syscall_hash_update() local
3032 res = vm_check_access_rights(&to_user_ta_ctx(sess->ctx)->uctx, in syscall_hash_update()
3039 res = tee_svc_cryp_get_state(sess, uref_to_vaddr(state), &cs); in syscall_hash_update()
3076 struct ts_session *sess = ts_get_current_session(); in syscall_hash_final() local
3090 res = vm_check_access_rights(&to_user_ta_ctx(sess->ctx)->uctx, in syscall_hash_final()
3101 res = vm_check_access_rights(&to_user_ta_ctx(sess->ctx)->uctx, in syscall_hash_final()
3109 res = tee_svc_cryp_get_state(sess, uref_to_vaddr(state), &cs); in syscall_hash_final()
3198 struct ts_session *sess = ts_get_current_session(); in syscall_cipher_init() local
3199 struct user_ta_ctx *utc = to_user_ta_ctx(sess->ctx); in syscall_cipher_init()
3206 res = tee_svc_cryp_get_state(sess, uref_to_vaddr(state), &cs); in syscall_cipher_init()
3253 struct ts_session *sess = ts_get_current_session(); in tee_svc_cipher_update_helper() local
3258 res = tee_svc_cryp_get_state(sess, uref_to_vaddr(state), &cs); in tee_svc_cipher_update_helper()
3268 res = vm_check_access_rights(&to_user_ta_ctx(sess->ctx)->uctx, in tee_svc_cipher_update_helper()
3278 struct user_mode_ctx *uctx = &to_user_ta_ctx(sess->ctx)->uctx; in tee_svc_cipher_update_helper()
3688 struct ts_session *sess = ts_get_current_session(); in syscall_cryp_derive_key() local
3689 struct user_ta_ctx *utc = to_user_ta_ctx(sess->ctx); in syscall_cryp_derive_key()
3699 res = tee_svc_cryp_get_state(sess, uref_to_vaddr(state), &cs); in syscall_cryp_derive_key()
4087 struct ts_session *sess = ts_get_current_session(); in syscall_authenc_init() local
4094 res = tee_svc_cryp_get_state(sess, uref_to_vaddr(state), &cs); in syscall_authenc_init()
4098 res = tee_obj_get(to_user_ta_ctx(sess->ctx), cs->key1, &o); in syscall_authenc_init()
4125 struct ts_session *sess = ts_get_current_session(); in syscall_authenc_update_aad() local
4131 res = vm_check_access_rights(&to_user_ta_ctx(sess->ctx)->uctx, in syscall_authenc_update_aad()
4138 res = tee_svc_cryp_get_state(sess, uref_to_vaddr(state), &cs); in syscall_authenc_update_aad()
4163 struct ts_session *sess = ts_get_current_session(); in syscall_authenc_update_payload() local
4168 res = tee_svc_cryp_get_state(sess, uref_to_vaddr(state), &cs); in syscall_authenc_update_payload()
4181 res = vm_check_access_rights(&to_user_ta_ctx(sess->ctx)->uctx, in syscall_authenc_update_payload()
4192 res = vm_check_access_rights(&to_user_ta_ctx(sess->ctx)->uctx, in syscall_authenc_update_payload()
4225 struct ts_session *sess = ts_get_current_session(); in syscall_authenc_enc_final() local
4226 struct user_mode_ctx *uctx = &to_user_ta_ctx(sess->ctx)->uctx; in syscall_authenc_enc_final()
4232 res = tee_svc_cryp_get_state(sess, uref_to_vaddr(state), &cs); in syscall_authenc_enc_final()
4316 struct ts_session *sess = ts_get_current_session(); in syscall_authenc_dec_final() local
4317 struct user_mode_ctx *uctx = &to_user_ta_ctx(sess->ctx)->uctx; in syscall_authenc_dec_final()
4322 res = tee_svc_cryp_get_state(sess, uref_to_vaddr(state), &cs); in syscall_authenc_dec_final()
4418 struct ts_session *sess = ts_get_current_session(); in syscall_asymm_operate() local
4419 struct user_ta_ctx *utc = to_user_ta_ctx(sess->ctx); in syscall_asymm_operate()
4432 res = tee_svc_cryp_get_state(sess, uref_to_vaddr(state), &cs); in syscall_asymm_operate()
4650 struct ts_session *sess = ts_get_current_session(); in syscall_asymm_verify() local
4651 struct user_ta_ctx *utc = to_user_ta_ctx(sess->ctx); in syscall_asymm_verify()
4661 res = tee_svc_cryp_get_state(sess, uref_to_vaddr(state), &cs); in syscall_asymm_verify()