Lines Matching refs:tee
15 static int tee_params_to_amd_params(struct tee_param *tee, u32 count, in tee_params_to_amd_params() argument
24 if (!tee || !amd || count > TEE_MAX_PARAMS) in tee_params_to_amd_params()
30 if (tee[i].attr > TEE_IOCTL_PARAM_ATTR_TYPE_MEMREF_INOUT) in tee_params_to_amd_params()
33 amd->param_types |= ((tee[i].attr & 0xF) << i * 4); in tee_params_to_amd_params()
48 u32 buf_id = get_buffer_id(tee[i].u.memref.shm); in tee_params_to_amd_params()
51 amd->params[i].mref.offset = tee[i].u.memref.shm_offs; in tee_params_to_amd_params()
52 amd->params[i].mref.size = tee[i].u.memref.size; in tee_params_to_amd_params()
59 if (tee[i].u.value.c) in tee_params_to_amd_params()
62 amd->params[i].val.a = tee[i].u.value.a; in tee_params_to_amd_params()
63 amd->params[i].val.b = tee[i].u.value.b; in tee_params_to_amd_params()
72 static int amd_params_to_tee_params(struct tee_param *tee, u32 count, in amd_params_to_tee_params() argument
81 if (!tee || !amd || count > TEE_MAX_PARAMS) in amd_params_to_tee_params()
103 tee[i].u.memref.shm_offs = amd->params[i].mref.offset; in amd_params_to_tee_params()
104 tee[i].u.memref.size = amd->params[i].mref.size; in amd_params_to_tee_params()
112 tee[i].u.value.a = amd->params[i].val.a; in amd_params_to_tee_params()
113 tee[i].u.value.b = amd->params[i].val.b; in amd_params_to_tee_params()
114 tee[i].u.value.c = 0; in amd_params_to_tee_params()