/linux-6.6.21/drivers/tee/optee/ |
D | device.c | 107 struct tee_ioctl_open_session_arg sess_arg; in __optee_enumerate_devices() local 114 memset(&sess_arg, 0, sizeof(sess_arg)); in __optee_enumerate_devices() 122 export_uuid(sess_arg.uuid, &pta_uuid); in __optee_enumerate_devices() 123 sess_arg.clnt_login = TEE_IOCTL_LOGIN_PUBLIC; in __optee_enumerate_devices() 124 sess_arg.num_params = 0; in __optee_enumerate_devices() 126 rc = tee_client_open_session(ctx, &sess_arg, NULL); in __optee_enumerate_devices() 127 if ((rc < 0) || (sess_arg.ret != TEEC_SUCCESS)) { in __optee_enumerate_devices() 133 rc = get_devices(ctx, sess_arg.session, NULL, &shm_size, func); in __optee_enumerate_devices() 144 rc = get_devices(ctx, sess_arg.session, device_shm, &shm_size, func); in __optee_enumerate_devices() 166 tee_client_close_session(ctx, sess_arg.session); in __optee_enumerate_devices()
|
/linux-6.6.21/drivers/firmware/broadcom/ |
D | tee_bnxt_fw.c | 188 struct tee_ioctl_open_session_arg sess_arg; in tee_bnxt_fw_probe() local 191 memset(&sess_arg, 0, sizeof(sess_arg)); in tee_bnxt_fw_probe() 200 export_uuid(sess_arg.uuid, &bnxt_device->id.uuid); in tee_bnxt_fw_probe() 201 sess_arg.clnt_login = TEE_IOCTL_LOGIN_PUBLIC; in tee_bnxt_fw_probe() 202 sess_arg.num_params = 0; in tee_bnxt_fw_probe() 204 ret = tee_client_open_session(pvt_data.ctx, &sess_arg, NULL); in tee_bnxt_fw_probe() 205 if (ret < 0 || sess_arg.ret != 0) { in tee_bnxt_fw_probe() 207 sess_arg.ret); in tee_bnxt_fw_probe() 211 pvt_data.session_id = sess_arg.session; in tee_bnxt_fw_probe()
|
/linux-6.6.21/drivers/char/hw_random/ |
D | optee-rng.c | 218 struct tee_ioctl_open_session_arg sess_arg; in optee_rng_probe() local 220 memset(&sess_arg, 0, sizeof(sess_arg)); in optee_rng_probe() 229 export_uuid(sess_arg.uuid, &rng_device->id.uuid); in optee_rng_probe() 230 sess_arg.clnt_login = TEE_IOCTL_LOGIN_PUBLIC; in optee_rng_probe() 231 sess_arg.num_params = 0; in optee_rng_probe() 233 ret = tee_client_open_session(pvt_data.ctx, &sess_arg, NULL); in optee_rng_probe() 234 if ((ret < 0) || (sess_arg.ret != 0)) { in optee_rng_probe() 236 sess_arg.ret); in optee_rng_probe() 240 pvt_data.session_id = sess_arg.session; in optee_rng_probe()
|
/linux-6.6.21/drivers/nvmem/ |
D | stm32-bsec-optee-ta.c | 73 struct tee_ioctl_open_session_arg sess_arg; in stm32_bsec_ta_open_session() local 76 memset(&sess_arg, 0, sizeof(sess_arg)); in stm32_bsec_ta_open_session() 77 export_uuid(sess_arg.uuid, &stm32mp_bsec_ta_uuid); in stm32_bsec_ta_open_session() 78 sess_arg.clnt_login = TEE_IOCTL_LOGIN_REE_KERNEL; in stm32_bsec_ta_open_session() 79 sess_arg.num_params = 0; in stm32_bsec_ta_open_session() 81 rc = tee_client_open_session(ctx, &sess_arg, NULL); in stm32_bsec_ta_open_session() 82 if ((rc < 0) || (sess_arg.ret != 0)) { in stm32_bsec_ta_open_session() 84 __func__, sess_arg.ret, rc); in stm32_bsec_ta_open_session() 88 *id = sess_arg.session; in stm32_bsec_ta_open_session()
|
/linux-6.6.21/security/keys/trusted-keys/ |
D | trusted_tee.c | 209 struct tee_ioctl_open_session_arg sess_arg; in trusted_key_probe() local 211 memset(&sess_arg, 0, sizeof(sess_arg)); in trusted_key_probe() 218 memcpy(sess_arg.uuid, rng_device->id.uuid.b, TEE_IOCTL_UUID_LEN); in trusted_key_probe() 219 sess_arg.clnt_login = TEE_IOCTL_LOGIN_REE_KERNEL; in trusted_key_probe() 220 sess_arg.num_params = 0; in trusted_key_probe() 222 ret = tee_client_open_session(pvt_data.ctx, &sess_arg, NULL); in trusted_key_probe() 223 if ((ret < 0) || (sess_arg.ret != 0)) { in trusted_key_probe() 225 sess_arg.ret); in trusted_key_probe() 229 pvt_data.session_id = sess_arg.session; in trusted_key_probe()
|
/linux-6.6.21/drivers/char/tpm/ |
D | tpm_ftpm_tee.c | 221 struct tee_ioctl_open_session_arg sess_arg; in ftpm_tee_probe() local 241 memset(&sess_arg, 0, sizeof(sess_arg)); in ftpm_tee_probe() 242 export_uuid(sess_arg.uuid, &ftpm_ta_uuid); in ftpm_tee_probe() 243 sess_arg.clnt_login = TEE_IOCTL_LOGIN_PUBLIC; in ftpm_tee_probe() 244 sess_arg.num_params = 0; in ftpm_tee_probe() 246 rc = tee_client_open_session(pvt_data->ctx, &sess_arg, NULL); in ftpm_tee_probe() 247 if ((rc < 0) || (sess_arg.ret != 0)) { in ftpm_tee_probe() 249 __func__, sess_arg.ret); in ftpm_tee_probe() 253 pvt_data->session = sess_arg.session; in ftpm_tee_probe()
|
/linux-6.6.21/drivers/rtc/ |
D | rtc-optee.c | 244 struct tee_ioctl_open_session_arg sess_arg; in optee_rtc_probe() local 250 memset(&sess_arg, 0, sizeof(sess_arg)); in optee_rtc_probe() 266 export_uuid(sess_arg.uuid, &rtc_device->id.uuid); in optee_rtc_probe() 267 sess_arg.clnt_login = TEE_IOCTL_LOGIN_REE_KERNEL; in optee_rtc_probe() 269 ret = tee_client_open_session(priv->ctx, &sess_arg, NULL); in optee_rtc_probe() 270 if (ret < 0 || sess_arg.ret != 0) { in optee_rtc_probe() 271 dev_err(dev, "tee_client_open_session failed, err: %x\n", sess_arg.ret); in optee_rtc_probe() 275 priv->session_id = sess_arg.session; in optee_rtc_probe()
|