Home
last modified time | relevance | path

Searched refs:memref (Results 1 – 7 of 7) sorted by relevance

/Linux-v5.4/drivers/tee/optee/
Dcore.c68 p->u.memref.size = mp->u.tmem.size; in optee_from_msg_param()
72 p->u.memref.shm_offs = 0; in optee_from_msg_param()
73 p->u.memref.shm = NULL; in optee_from_msg_param()
79 p->u.memref.shm_offs = mp->u.tmem.buf_ptr - pa; in optee_from_msg_param()
80 p->u.memref.shm = shm; in optee_from_msg_param()
83 if (p->u.memref.size) { in optee_from_msg_param()
84 size_t o = p->u.memref.shm_offs + in optee_from_msg_param()
85 p->u.memref.size - 1; in optee_from_msg_param()
97 p->u.memref.size = mp->u.rmem.size; in optee_from_msg_param()
102 p->u.memref.shm_offs = 0; in optee_from_msg_param()
[all …]
Ddevice.c51 param[0].u.memref.shm = device_shm; in get_devices()
52 param[0].u.memref.size = *shm_size; in get_devices()
53 param[0].u.memref.shm_offs = 0; in get_devices()
63 *shm_size = param[0].u.memref.size; in get_devices()
Dsupp.c198 if (tee_param_is_memref(params + n) && params[n].u.memref.shm) in supp_check_recv_params()
199 tee_shm_put(params[n].u.memref.shm); in supp_check_recv_params()
370 p->u.memref.size = param[n + num_meta].u.memref.size; in optee_supp_send()
/Linux-v5.4/drivers/tee/
Dtee_core.c257 params[n].u.memref.shm_offs = ip.a; in params_from_user()
258 params[n].u.memref.size = ip.b; in params_from_user()
259 params[n].u.memref.shm = shm; in params_from_user()
288 if (put_user((u64)p->u.memref.size, &up->b)) in params_to_user()
361 params[n].u.memref.shm) in tee_ioctl_open_session()
362 tee_shm_put(params[n].u.memref.shm); in tee_ioctl_open_session()
423 params[n].u.memref.shm) in tee_ioctl_invoke()
424 tee_shm_put(params[n].u.memref.shm); in tee_ioctl_invoke()
481 ip.b = p->u.memref.size; in params_to_supp()
482 if (!p->u.memref.shm) { in params_to_supp()
[all …]
/Linux-v5.4/drivers/char/hw_random/
Doptee-rng.c92 param[0].u.memref.shm = pvt_data->entropy_shm_pool; in get_optee_rng_data()
93 param[0].u.memref.size = req_size; in get_optee_rng_data()
94 param[0].u.memref.shm_offs = 0; in get_optee_rng_data()
109 rng_size = param[0].u.memref.size; in get_optee_rng_data()
/Linux-v5.4/drivers/char/tpm/
Dtpm_ftpm_tee.c105 .u.memref = { in ftpm_tee_tpm_op_send()
123 .u.memref = { in ftpm_tee_tpm_op_send()
138 temp_buf = tee_shm_get_va(shm, command_params[1].u.memref.shm_offs); in ftpm_tee_tpm_op_send()
/Linux-v5.4/include/linux/
Dtee_drv.h74 struct tee_param_memref memref; member