Home
last modified time | relevance | path

Searched refs:value (Results 1 – 25 of 168) sorted by relevance

1234567

/optee_os/core/drivers/bnxt/
H A Dbnxt.c102 static void bnxt_write(uint32_t addr, uint32_t value) in bnxt_write() argument
105 io_write32(bnxt_indirect_tgt_addr(addr), value); in bnxt_write()
108 static void bnxt_write_ctrl(uint32_t offset, uint32_t value) in bnxt_write_ctrl() argument
110 bnxt_write(BNXT_CTRL_ADDR(offset), value); in bnxt_write_ctrl()
115 uint32_t value = bnxt_read(BNXT_REG_ECO_RESERVED); in bnxt_handshake_clear() local
117 value = value & ~BIT(BNXT_FLASH_ACCESS_DONE_BIT); in bnxt_handshake_clear()
118 bnxt_write(BNXT_REG_ECO_RESERVED, value); in bnxt_handshake_clear()
123 uint32_t value = 0; in bnxt_handshake_done() local
125 value = bnxt_read(BNXT_REG_ECO_RESERVED); in bnxt_handshake_done()
126 value &= BIT(BNXT_FLASH_ACCESS_DONE_BIT); in bnxt_handshake_done()
[all …]
/optee_os/core/pta/tests/
H A Dinvoke.c114 p[0].value.a = p[0].value.a + p[0].value.b; in test_entry_params()
122 p[1].value.a = p[1].value.a + p[1].value.b; in test_entry_params()
130 p[2].value.a = p[2].value.a + p[2].value.b; in test_entry_params()
138 p[3].value.a = p[3].value.a + p[3].value.b; in test_entry_params()
147 p[0].value.a = p[1].value.a + p[2].value.a + p[3].value.a; in test_entry_params()
148 p[0].value.b = p[1].value.b + p[2].value.b + p[3].value.b; in test_entry_params()
156 p[1].value.a = p[0].value.a + p[2].value.a + p[3].value.a; in test_entry_params()
157 p[1].value.b = p[0].value.b + p[2].value.b + p[3].value.b; in test_entry_params()
165 p[2].value.a = p[0].value.a + p[1].value.a + p[3].value.a; in test_entry_params()
166 p[2].value.b = p[0].value.b + p[1].value.b + p[3].value.b; in test_entry_params()
[all …]
H A Dmutex.c27 params[1].value.a = atomic_inc32(&before_lock_writers); in mutex_test_writer()
33 params[1].value.b = atomic_inc32(&during_lock_writers); in mutex_test_writer()
35 for (n = 0; n < params[0].value.b; n++) { in mutex_test_writer()
52 params[1].value.a = atomic_inc32(&before_lock_readers); in mutex_test_reader()
58 params[1].value.b = atomic_inc32(&during_lock_readers); in mutex_test_reader()
60 for (n = 0; n < params[0].value.b; n++) { in mutex_test_reader()
84 switch (params[0].value.a) { in core_mutex_tests()
/optee_os/core/pta/stm32mp/
H A Dremoteproc_pta.c55 if (!stm32_rproc_get(params[0].value.a)) in rproc_pta_capabilities()
59 params[1].value.a = PTA_RPROC_HWCAP_FMT_ELF; in rproc_pta_capabilities()
66 params[2].value.a = PTA_RPROC_HWCAP_PROT_HASH_TABLE; in rproc_pta_capabilities()
84 paddr_t da = (paddr_t)reg_pair_to_64(params[2].value.b, in rproc_pta_load_segment()
85 params[2].value.a); in rproc_pta_load_segment()
97 res = stm32_rproc_da_to_pa(params[0].value.a, da, size, &pa); in rproc_pta_load_segment()
101 if (stm32_rproc_map(params[0].value.a, pa, size, &dst)) { in rproc_pta_load_segment()
114 stm32_rproc_unmap(params[0].value.a, dst, size); in rproc_pta_load_segment()
129 paddr_t da = params[1].value.a; in rproc_pta_set_memory()
130 size_t size = params[2].value.a; in rproc_pta_set_memory()
[all …]
/optee_os/core/pta/k3/
H A Dotp.c28 ret = ti_sci_write_otp_row(params[0].value.a, params[1].value.a, in write_otp_row()
29 params[1].value.b); in write_otp_row()
33 DMSG("Written the value: 0x%08"PRIx32, params[1].value.a); in write_otp_row()
52 ret = ti_sci_read_otp_mmr(params[0].value.a, &params[1].value.a); in read_otp_mmr()
56 DMSG("Got the value: 0x%08"PRIx32, params[1].value.a); in read_otp_mmr()
77 if (params[0].value.b & K3_OTP_KEYWRITING_SOFT_LOCK) in lock_otp_row()
79 if (params[0].value.b & K3_OTP_KEYWRITING_HW_READ_LOCK) in lock_otp_row()
81 if (params[0].value.b & K3_OTP_KEYWRITING_HW_WRITE_LOCK) in lock_otp_row()
88 ret = ti_sci_lock_otp_row(params[0].value.a, hw_write_lock, in lock_otp_row()
94 DMSG("Locked the row: 0x%08"PRIx32, params[1].value.a); in lock_otp_row()
/optee_os/core/include/drivers/
H A Dstm32_shared_io.h17 void io_mask32_stm32shregs(vaddr_t va, uint32_t value, uint32_t mask);
19 static inline void io_setbits32_stm32shregs(vaddr_t va, uint32_t value) in io_setbits32_stm32shregs() argument
21 io_mask32_stm32shregs(va, value, value); in io_setbits32_stm32shregs()
24 static inline void io_clrbits32_stm32shregs(vaddr_t va, uint32_t value) in io_clrbits32_stm32shregs() argument
26 io_mask32_stm32shregs(va, 0, value); in io_clrbits32_stm32shregs()
H A Dgpio.h91 enum gpio_level value);
132 static inline void gpio_set_value(struct gpio *gpio, enum gpio_level value) in gpio_set_value() argument
135 value = !value; in gpio_set_value()
137 gpio->chip->ops->set_value(gpio->chip, gpio->pin, value); in gpio_set_value()
142 enum gpio_level value = GPIO_LEVEL_LOW; in gpio_get_value() local
144 value = gpio->chip->ops->get_value(gpio->chip, gpio->pin); in gpio_get_value()
147 value = !value; in gpio_get_value()
149 return value; in gpio_get_value()
H A Dstm32_bsec.h39 TEE_Result stm32_bsec_shadow_read_otp(uint32_t *value, uint32_t otp_id);
54 TEE_Result stm32_bsec_read_otp(uint32_t *value, uint32_t otp_id);
62 TEE_Result stm32_bsec_write_otp(uint32_t value, uint32_t otp_id);
71 TEE_Result stm32_bsec_program_otp(uint32_t value, uint32_t otp_id);
73 static inline TEE_Result stm32_bsec_program_otp(uint32_t value __unused, in stm32_bsec_program_otp()
99 TEE_Result stm32_bsec_write_debug_conf(uint32_t value);
/optee_os/lib/libutee/
H A Dtee_api_property.c101 l = strlen(ep->value) + 1; in propget_get_ext_prop()
111 if (!base64_dec(ep->value, strlen(ep->value), buf, &l) && in propget_get_ext_prop()
131 memcpy(buf, ep->value, l); in propget_get_ext_prop()
199 const char *name, char *value, in TEE_GetPropertyAsString() argument
213 __utee_check_outstring_annotation(value, value_len); in TEE_GetPropertyAsString()
244 l = strlcpy(value, (bool_val ? "true" : "false"), *value_len); in TEE_GetPropertyAsString()
249 l = snprintf(value, *value_len, "%u", uint32_val); in TEE_GetPropertyAsString()
253 l = snprintk(value, *value_len, "%pUl", tmp_buf); in TEE_GetPropertyAsString()
258 l = snprintk(value, *value_len, "%u:%pUl", in TEE_GetPropertyAsString()
264 l = strlcpy(value, tmp_buf, *value_len); in TEE_GetPropertyAsString()
[all …]
H A Dtee_system_pta.c41 params[0].value.a = len; in tee_map_zi()
42 if (params[0].value.a != len) in tee_map_zi()
48 params[0].value.b = PTA_SYSTEM_MAP_FLAG_SHAREABLE; in tee_map_zi()
58 return (void *)(vaddr_t)reg_pair_to_64(params[1].value.a, in tee_map_zi()
59 params[1].value.b); in tee_map_zi()
71 params[0].value.a = len; in tee_unmap()
72 reg_pair_from_64((vaddr_t)buf, &params[1].value.a, &params[1].value.b); in tee_unmap()
97 params[1].value.a = cmd; in tee_invoke_supp_plugin()
98 params[1].value.b = sub_cmd; in tee_invoke_supp_plugin()
108 *outlen = params[3].value.a; in tee_invoke_supp_plugin()
H A Dtee_socket_pta.c51 params[0].value.a = ip_vers; in __tee_socket_pta_open()
57 params[0].value.b = port; in __tee_socket_pta_open()
67 params[2].value.a = protocol; in __tee_socket_pta_open()
75 *handle = params[3].value.a; in __tee_socket_pta_open()
89 params[0].value.a = handle; in __tee_socket_pta_close()
106 params[0].value.a = handle; in __tee_socket_pta_send()
107 params[0].value.b = timeout; in __tee_socket_pta_send()
113 *len = params[2].value.a; in __tee_socket_pta_send()
130 params[0].value.a = handle; in __tee_socket_pta_recv()
131 params[0].value.b = timeout; in __tee_socket_pta_recv()
[all …]
H A Duser_ta_entry_compat.c19 gp11_params[n].value.a = params[n].value.a; in to_gp11_param()
20 gp11_params[n].value.b = params[n].value.b; in to_gp11_param()
45 params[n].value.a = gp11_params[n].value.a; in from_gp11_param()
46 params[n].value.b = gp11_params[n].value.b; in from_gp11_param()
/optee_os/core/pta/
H A Dstats.c42 pool_id = p[0].value.a; in get_alloc_stats()
66 if (p[0].value.b) in get_alloc_stats()
77 phys_mem_stats(stats, p[0].value.b); in get_alloc_stats()
86 if (p[0].value.b) in get_alloc_stats()
94 if (rpmb_mem_stats(stats, p[0].value.b)) in get_alloc_stats()
126 p[0].value.a = stats.npages; in get_pager_stats()
127 p[0].value.b = stats.npages_all; in get_pager_stats()
128 p[1].value.a = stats.ro_hits; in get_pager_stats()
129 p[1].value.b = stats.rw_hits; in get_pager_stats()
130 p[2].value.a = stats.hidden_hits; in get_pager_stats()
[all …]
H A Dsystem.c156 if (params[0].value.b & ~PTA_SYSTEM_MAP_FLAG_SHAREABLE) in system_map_zi()
159 if (params[0].value.b & PTA_SYSTEM_MAP_FLAG_SHAREABLE) in system_map_zi()
162 num_bytes = params[0].value.a; in system_map_zi()
163 va = reg_pair_to_64(params[1].value.a, params[1].value.b); in system_map_zi()
164 pad_begin = params[2].value.a; in system_map_zi()
165 pad_end = params[2].value.b; in system_map_zi()
178 reg_pair_from_64(va, &params[1].value.a, &params[1].value.b); in system_map_zi()
199 if (params[0].value.b) in system_unmap()
202 va = reg_pair_to_64(params[1].value.a, params[1].value.b); in system_unmap()
203 sz = ROUNDUP(params[0].value.a, SMALL_PAGE_SIZE); in system_unmap()
[all …]
H A Dwidevine.c76 const void *value = NULL; in init_widevine_dt_data() local
86 value = fdt_getprop(fdt, node, "tcg,tpm-auth-public-key", &len); in init_widevine_dt_data()
87 if (!value) in init_widevine_dt_data()
93 memcpy(tpm_auth_pub, value, len); in init_widevine_dt_data()
96 value = fdt_getprop(fdt, node, "google,widevine-root-of-trust-ecc-p256", in init_widevine_dt_data()
98 if (!value) in init_widevine_dt_data()
104 memcpy(widevine_priv, value, len); in init_widevine_dt_data()
/optee_os/core/include/kernel/
H A Dnotif.h108 TEE_Result notif_alloc_async_value(uint32_t *value);
109 void notif_free_async_value(uint32_t value);
114 TEE_Result notif_wait(uint32_t value);
119 TEE_Result notif_wait_timeout(uint32_t value, uint32_t timeout_ms);
125 void notif_send_async(uint32_t value, uint16_t guest_id);
127 static inline void notif_send_async(uint32_t value __unused, in notif_send_async()
138 TEE_Result notif_send_sync(uint32_t value);
/optee_os/lib/libutils/compiler-rt/lib/builtins/
H A Dint_lib.h122 static int __inline __builtin_ctz(uint32_t value) { in __builtin_ctz() argument
124 if (_BitScanForward(&trailing_zero, value)) in __builtin_ctz()
129 static int __inline __builtin_clz(uint32_t value) { in __builtin_clz() argument
131 if (_BitScanReverse(&leading_zero, value)) in __builtin_clz()
137 static int __inline __builtin_clzll(uint64_t value) { in __builtin_clzll() argument
139 if (_BitScanReverse64(&leading_zero, value)) in __builtin_clzll()
144 static int __inline __builtin_clzll(uint64_t value) { in __builtin_clzll() argument
145 if (value == 0) in __builtin_clzll()
147 uint32_t msh = (uint32_t)(value >> 32); in __builtin_clzll()
148 uint32_t lsh = (uint32_t)(value & 0xFFFFFFFF); in __builtin_clzll()
/optee_os/ta/avb/
H A Dentry.c87 res = get_slot_offset(params[0].value.a, &slot_offset); in read_rb_idx()
120 params[1].value.a = idx >> 32; in read_rb_idx()
121 params[1].value.b = idx; in read_rb_idx()
143 res = get_slot_offset(params[0].value.a, &slot_offset); in write_rb_idx()
146 widx = ((uint64_t)params[1].value.a << 32) | params[1].value.b; in write_rb_idx()
207 params[0].value.a = lock_state; in read_lock_state()
229 wlock_state = params[0].value.a; in write_lock_state()
268 char *value = NULL; in write_persist_value() local
276 value = TEE_Malloc(value_sz, 0); in write_persist_value()
277 if (!value) in write_persist_value()
[all …]
/optee_os/core/tee/
H A Dsocket.c51 params[0].value.b, /* server port number */ in socket_open()
52 params[2].value.a, /* protocol */ in socket_open()
53 params[0].value.a /* ip version */); in socket_open()
59 params[3].value.a = tpm[3].u.value.a; in socket_open()
80 params[0].value.a); in socket_close()
115 params[0].value.a /* handle */); in socket_send()
117 tpm[2] = THREAD_PARAM_VALUE(INOUT, params[0].value.b, /* timeout */ in socket_send()
121 params[2].value.a = tpm[2].u.value.b; /* transmitted bytes */ in socket_send()
153 params[0].value.a /* handle */); in socket_recv()
155 tpm[2] = THREAD_PARAM_VALUE(IN, params[0].value.b /* timeout */, 0, 0); in socket_recv()
[all …]
/optee_os/core/drivers/
H A Drockchip_otp.c43 TEE_Result rockchip_otp_read_secure(uint32_t *value, uint32_t index, in rockchip_otp_read_secure() argument
58 if (!value || !count || count > BURST_SIZE || in rockchip_otp_read_secure()
100 value[i] = val; in rockchip_otp_read_secure()
106 TEE_Result rockchip_otp_write_secure(const uint32_t *value, uint32_t index, in rockchip_otp_write_secure() argument
118 if (!value || !count || count > BURST_SIZE || in rockchip_otp_write_secure()
139 if (~*value & old_val) { in rockchip_otp_write_secure()
145 new_val = *value & ~old_val; in rockchip_otp_write_secure()
146 value++; in rockchip_otp_write_secure()
H A Dwidevine_huk.c19 const void *value = NULL; in init_widevine_huk_dt_data() local
32 value = fdt_getprop(fdt, node, "op-tee,hardware-unique-key", &len); in init_widevine_huk_dt_data()
33 if (!value) in init_widevine_huk_dt_data()
41 memcpy(dt_huk, value, len); in init_widevine_huk_dt_data()
/optee_os/lib/libmbedtls/mbedtls/library/
H A Dbase64.c27 unsigned char mbedtls_ct_base64_enc_char(unsigned char value) in mbedtls_ct_base64_enc_char() argument
33 digit |= mbedtls_ct_uchar_in_range_if(0, 25, value, 'A' + value); in mbedtls_ct_base64_enc_char()
34 digit |= mbedtls_ct_uchar_in_range_if(26, 51, value, 'a' + value - 26); in mbedtls_ct_base64_enc_char()
35 digit |= mbedtls_ct_uchar_in_range_if(52, 61, value, '0' + value - 52); in mbedtls_ct_base64_enc_char()
36 digit |= mbedtls_ct_uchar_in_range_if(62, 62, value, '+'); in mbedtls_ct_base64_enc_char()
37 digit |= mbedtls_ct_uchar_in_range_if(63, 63, value, '/'); in mbedtls_ct_base64_enc_char()
H A Doid.c928 unsigned int value = 0; in FN_OID_TYPED_FROM_ASN1() local
942 if (value > (UINT_MAX >> 7)) { in FN_OID_TYPED_FROM_ASN1()
945 if ((value == 0) && ((oid->p[i]) == 0x80)) { in FN_OID_TYPED_FROM_ASN1()
950 value <<= 7; in FN_OID_TYPED_FROM_ASN1()
951 value |= oid->p[i] & 0x7F; in FN_OID_TYPED_FROM_ASN1()
959 if (value >= 80) { in FN_OID_TYPED_FROM_ASN1()
961 component2 = value - 80; in FN_OID_TYPED_FROM_ASN1()
962 } else if (value >= 40) { in FN_OID_TYPED_FROM_ASN1()
964 component2 = value - 40; in FN_OID_TYPED_FROM_ASN1()
967 component2 = value; in FN_OID_TYPED_FROM_ASN1()
[all …]
/optee_os/core/pta/imx/
H A Docotp.c49 params[1].value.a = 0; in read_fuse()
50 params[1].value.b = 0; in read_fuse()
52 ret = imx_ocotp_read(params[0].value.a, params[0].value.b, &val); in read_fuse()
54 params[1].value.a = val; in read_fuse()
/optee_os/core/drivers/rstctrl/
H A Dstm32mp1_rstctrl.c72 uint32_t value = 0; in reset_assert() local
74 if (IO_READ32_POLL_TIMEOUT(rcc_base + offset, value, in reset_assert()
75 value & bit_mask, 0, to_us)) in reset_assert()
116 uint32_t value = 0; in reset_deassert() local
118 if (IO_READ32_POLL_TIMEOUT(rcc_base + offset, value, in reset_deassert()
119 !(value & bit_mask), 0, to_us)) in reset_deassert()

1234567