Home
last modified time | relevance | path

Searched refs:ref (Results 1 – 17 of 17) sorted by relevance

/optee_os/core/kernel/
H A Dpm.c37 struct pm_callback_handle *ref = NULL; in register_pm_cb() local
55 ref = realloc(pm_cb_ref, sizeof(*ref) * (count + 1)); in register_pm_cb()
56 if (!ref) in register_pm_cb()
59 ref[count] = *pm_hdl; in register_pm_cb()
60 ref[count].flags = 0; in register_pm_cb()
61 ref[count].name = name; in register_pm_cb()
64 pm_cb_ref = ref; in register_pm_cb()
H A Duser_access.c300 uint32_t ref = kaddr_to_uref(kaddr); in copy_kaddr_to_uref() local
302 return copy_to_user_private(uref, &ref, sizeof(ref)); in copy_kaddr_to_uref()
/optee_os/core/pta/tests/
H A Ddt_driver_test.c65 struct dt_test_free_ref *ref = NULL; in dt_test_alloc() local
67 ref = calloc(1, sizeof(*ref) + size); in dt_test_alloc()
68 if (!ref) in dt_test_alloc()
71 ref->p = ref + 1; in dt_test_alloc()
72 SLIST_INSERT_HEAD(&dt_test_free_list, ref, link); in dt_test_alloc()
74 return ref->p; in dt_test_alloc()
79 struct dt_test_free_ref *ref = NULL; in dt_test_free() local
85 SLIST_FOREACH_SAFE(ref, &dt_test_free_list, link, t_ref) { in dt_test_free()
86 if (ref->p == p) { in dt_test_free()
87 SLIST_REMOVE(&dt_test_free_list, ref, in dt_test_free()
[all …]
/optee_os/ta/pkcs11/src/
H A Dattributes.c248 struct obj_attrs *ref) in attributes_match_reference() argument
250 size_t count = ref->attrs_count; in attributes_match_reference()
251 unsigned char *ref_attr = ref->attrs; in attributes_match_reference()
254 if (!ref->attrs_count) { in attributes_match_reference()
259 for (count = 0; count < ref->attrs_count; count++) { in attributes_match_reference()
283 struct obj_attrs *ref) in attributes_match_add_reference() argument
285 size_t count = ref->attrs_count; in attributes_match_add_reference()
286 unsigned char *ref_attr = ref->attrs; in attributes_match_add_reference()
289 if (!ref->attrs_count) in attributes_match_add_reference()
292 for (count = 0; count < ref->attrs_count; count++) { in attributes_match_add_reference()
[all …]
H A Dattributes.h219 bool attributes_match_reference(struct obj_attrs *ref,
228 struct obj_attrs *ref);
315 void trace_attributes(const char *prefix, void *ref);
318 void *ref __unused) in trace_attributes()
H A Dsanitize_object.h44 void trace_attributes_from_api_head(const char *prefix, void *ref, size_t size);
H A Dsanitize_object.c396 void trace_attributes_from_api_head(const char *prefix, void *ref, size_t size) in trace_attributes_from_api_head() argument
402 TEE_MemMove(&head, ref, sizeof(head)); in trace_attributes_from_api_head()
424 __trace_attributes(pre, (char *)ref + offset, in trace_attributes_from_api_head()
425 (char *)ref + offset + head.attrs_size); in trace_attributes_from_api_head()
/optee_os/lib/libmbedtls/mbedtls/library/
H A Dpkparse.c263 mbedtls_ecp_group ref; in pk_group_id_from_group() local
266 mbedtls_ecp_group_init(&ref); in pk_group_id_from_group()
270 mbedtls_ecp_group_free(&ref); in pk_group_id_from_group()
271 MBEDTLS_MPI_CHK(mbedtls_ecp_group_load(&ref, *id)); in pk_group_id_from_group()
274 if (grp->pbits == ref.pbits && grp->nbits == ref.nbits && in pk_group_id_from_group()
275 mbedtls_mpi_cmp_mpi(&grp->P, &ref.P) == 0 && in pk_group_id_from_group()
276 mbedtls_mpi_cmp_mpi(&grp->A, &ref.A) == 0 && in pk_group_id_from_group()
277 mbedtls_mpi_cmp_mpi(&grp->B, &ref.B) == 0 && in pk_group_id_from_group()
278 mbedtls_mpi_cmp_mpi(&grp->N, &ref.N) == 0 && in pk_group_id_from_group()
279 mbedtls_mpi_cmp_mpi(&grp->G.X, &ref.G.X) == 0 && in pk_group_id_from_group()
[all …]
/optee_os/core/tee/
H A Dtee_svc_cryp.c1765 attrs[n].content.ref.buffer = (void *)buf; in copy_in_attrs()
1766 attrs[n].content.ref.length = len; in copy_in_attrs()
1923 res = ops->from_user(attr, attrs[n].content.ref.buffer, in tee_svc_cryp_obj_populate_type()
1924 attrs[n].content.ref.length); in tee_svc_cryp_obj_populate_type()
1951 obj_size = attrs[n].content.ref.length * 8; in tee_svc_cryp_obj_populate_type()
2349 *ctx_len = params[n].content.ref.length; in tee_svc_obj_ed25519_parse_params()
2356 *ctx = params[n].content.ref.buffer; in tee_svc_obj_ed25519_parse_params()
3366 *salt_len = p->content.ref.length; in get_hkdf_params()
3367 res = bb_memdup_user(p->content.ref.buffer, in get_hkdf_params()
3385 *info_len = p->content.ref.length; in get_hkdf_params()
[all …]
/optee_os/core/drivers/
H A Dstm32_gpio.c759 struct stm32_pinctrl *ref = &pinctrl[found]; in get_pinctrl_from_fdt() local
761 ref->bank = (uint8_t)bank; in get_pinctrl_from_fdt()
762 ref->pin = (uint8_t)pin; in get_pinctrl_from_fdt()
763 ref->cfg.mode = mode; in get_pinctrl_from_fdt()
765 ref->cfg.otype = GPIO_OTYPE_OPEN_DRAIN; in get_pinctrl_from_fdt()
767 ref->cfg.otype = GPIO_OTYPE_PUSH_PULL; in get_pinctrl_from_fdt()
768 ref->cfg.ospeed = speed; in get_pinctrl_from_fdt()
769 ref->cfg.pupd = pull; in get_pinctrl_from_fdt()
770 ref->cfg.od = odata; in get_pinctrl_from_fdt()
771 ref->cfg.af = alternate; in get_pinctrl_from_fdt()
[all …]
/optee_os/lib/libutee/include/
H A Dtee_api_types.h128 } ref; member
141 } ref; member
/optee_os/core/arch/arm/dts/
H A Dstm32mp157.dtsi24 clock-names = "pclk", "ref", "px_clk";
/optee_os/lib/libutee/
H A Dtee_api_objects.c25 ua[n].a = (uintptr_t)attrs[n].content.ref.buffer; in __utee_from_attr()
26 ua[n].b = attrs[n].content.ref.length; in __utee_from_attr()
43 ua[n].a = (uintptr_t)attrs[n].content.ref.buffer; in __utee_from_gp11_attr()
44 ua[n].b = attrs[n].content.ref.length; in __utee_from_gp11_attr()
447 attr->content.ref.buffer = (void *)buffer; in TEE_InitRefAttribute()
448 attr->content.ref.length = length; in TEE_InitRefAttribute()
460 attr->content.ref.buffer = (void *)buffer; in __GP11_TEE_InitRefAttribute()
461 attr->content.ref.length = length; in __GP11_TEE_InitRefAttribute()
/optee_os/ta/trusted_keys/
H A Dentry.c173 attr.content.ref.buffer = huk_key; in huk_crypt()
174 attr.content.ref.length = sizeof(huk_key); in huk_crypt()
/optee_os/lib/libmbedtls/mbedtls/include/psa/
H A Dcrypto_values.h1361 #define PSA_ALG_AEAD_WITH_DEFAULT_LENGTH_TAG_CASE(aead_alg, ref) \ argument
1363 PSA_ALG_AEAD_WITH_SHORTENED_TAG(ref, 0) ? \
1364 ref :
/optee_os/lib/libmbedtls/mbedtls/
H A DREADME.md249 - `tests/scripts/test-ref-configs.pl` test builds in various reduced configurations.
H A DChangeLog518 `mbedtls_ssl_ciphersuite_t` structure.Design ref: #8529