Home
last modified time | relevance | path

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

/drivers/tee/optee/
Ddevice.c107 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()
/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()
/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()
/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()
/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()