Home
last modified time | relevance | path

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

/kernel/linux/linux-5.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 memcpy(sess_arg.uuid, pta_uuid.b, TEE_IOCTL_UUID_LEN); 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()
132 rc = get_devices(ctx, sess_arg.session, device_shm, &shm_size, func); in __optee_enumerate_devices()
154 tee_client_close_session(ctx, sess_arg.session); in __optee_enumerate_devices()
/kernel/linux/linux-5.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 memcpy(sess_arg.uuid, bnxt_device->id.uuid.b, TEE_IOCTL_UUID_LEN); 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()
/kernel/linux/linux-5.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()
/kernel/linux/linux-5.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()