Lines Matching full:amd
16 struct tee_operation *amd) in tee_params_to_amd_params() argument
24 if (!tee || !amd || count > TEE_MAX_PARAMS) in tee_params_to_amd_params()
27 amd->param_types = 0; in tee_params_to_amd_params()
29 /* AMD TEE does not support meta parameter */ in tee_params_to_amd_params()
33 amd->param_types |= ((tee[i].attr & 0xF) << i * 4); in tee_params_to_amd_params()
37 type = TEE_PARAM_TYPE_GET(amd->param_types, i); in tee_params_to_amd_params()
50 amd->params[i].mref.buf_id = buf_id; 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()
55 i, amd->params[i].mref.buf_id, in tee_params_to_amd_params()
56 i, amd->params[i].mref.offset, in tee_params_to_amd_params()
57 i, amd->params[i].mref.size); 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()
65 i, amd->params[i].val.a, in tee_params_to_amd_params()
66 i, amd->params[i].val.b); in tee_params_to_amd_params()
73 struct tee_operation *amd) in amd_params_to_tee_params() argument
81 if (!tee || !amd || count > TEE_MAX_PARAMS) in amd_params_to_tee_params()
84 /* Assumes amd->param_types is valid */ in amd_params_to_tee_params()
86 type = TEE_PARAM_TYPE_GET(amd->param_types, i); 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()
107 i, amd->params[i].mref.buf_id, in amd_params_to_tee_params()
108 i, amd->params[i].mref.offset, in amd_params_to_tee_params()
109 i, amd->params[i].mref.size); in amd_params_to_tee_params()
111 /* field 'c' not supported by AMD TEE */ 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()
117 i, amd->params[i].val.a, in amd_params_to_tee_params()
118 i, amd->params[i].val.b); in amd_params_to_tee_params()