Home
last modified time | relevance | path

Searched refs:sess_arg (Results 1 – 6 of 6) sorted by relevance

/linux-5.19.10/drivers/tee/optee/
Ddevice.c94 struct tee_ioctl_open_session_arg sess_arg; in __optee_enumerate_devices() local
101 memset(&sess_arg, 0, sizeof(sess_arg)); in __optee_enumerate_devices()
109 export_uuid(sess_arg.uuid, &pta_uuid); in __optee_enumerate_devices()
110 sess_arg.clnt_login = TEE_IOCTL_LOGIN_PUBLIC; in __optee_enumerate_devices()
111 sess_arg.num_params = 0; in __optee_enumerate_devices()
113 rc = tee_client_open_session(ctx, &sess_arg, NULL); in __optee_enumerate_devices()
114 if ((rc < 0) || (sess_arg.ret != TEEC_SUCCESS)) { in __optee_enumerate_devices()
120 rc = get_devices(ctx, sess_arg.session, NULL, &shm_size, func); in __optee_enumerate_devices()
131 rc = get_devices(ctx, sess_arg.session, device_shm, &shm_size, func); in __optee_enumerate_devices()
153 tee_client_close_session(ctx, sess_arg.session); in __optee_enumerate_devices()
/linux-5.19.10/drivers/firmware/broadcom/
Dtee_bnxt_fw.c188 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-5.19.10/drivers/char/hw_random/
Doptee-rng.c218 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-5.19.10/security/keys/trusted-keys/
Dtrusted_tee.c232 struct tee_ioctl_open_session_arg sess_arg; in trusted_key_probe() local
234 memset(&sess_arg, 0, sizeof(sess_arg)); in trusted_key_probe()
241 memcpy(sess_arg.uuid, rng_device->id.uuid.b, TEE_IOCTL_UUID_LEN); in trusted_key_probe()
242 sess_arg.clnt_login = TEE_IOCTL_LOGIN_REE_KERNEL; in trusted_key_probe()
243 sess_arg.num_params = 0; in trusted_key_probe()
245 ret = tee_client_open_session(pvt_data.ctx, &sess_arg, NULL); in trusted_key_probe()
246 if ((ret < 0) || (sess_arg.ret != 0)) { in trusted_key_probe()
248 sess_arg.ret); in trusted_key_probe()
252 pvt_data.session_id = sess_arg.session; in trusted_key_probe()
/linux-5.19.10/drivers/char/tpm/
Dtpm_ftpm_tee.c222 struct tee_ioctl_open_session_arg sess_arg; in ftpm_tee_probe() local
242 memset(&sess_arg, 0, sizeof(sess_arg)); in ftpm_tee_probe()
243 export_uuid(sess_arg.uuid, &ftpm_ta_uuid); in ftpm_tee_probe()
244 sess_arg.clnt_login = TEE_IOCTL_LOGIN_PUBLIC; in ftpm_tee_probe()
245 sess_arg.num_params = 0; in ftpm_tee_probe()
247 rc = tee_client_open_session(pvt_data->ctx, &sess_arg, NULL); in ftpm_tee_probe()
248 if ((rc < 0) || (sess_arg.ret != 0)) { in ftpm_tee_probe()
250 __func__, sess_arg.ret); in ftpm_tee_probe()
254 pvt_data->session = sess_arg.session; in ftpm_tee_probe()
/linux-5.19.10/drivers/rtc/
Drtc-optee.c244 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()