Home
last modified time | relevance | path

Searched refs:op (Results 1 – 25 of 110) sorted by relevance

12345

/optee_os/core/lib/zlib/
H A Dinffast.c75 unsigned op; /* code bits, operation, extra bits, or */ local
113 op = (unsigned)(here->bits);
114 hold >>= op;
115 bits -= op;
116 op = (unsigned)(here->op);
117 if (op == 0) { /* literal */
123 else if (op & 16) { /* length base */
125 op &= 15; /* number of extra bits */
126 if (op) {
127 if (bits < op) {
[all …]
H A Dinftrees.c119 here.op = (unsigned char)64; /* invalid code marker */
219 here.op = (unsigned char)0;
223 here.op = (unsigned char)(extra[work[sym] - match]);
227 here.op = (unsigned char)(32 + 64); /* end of block */
285 (*table)[low].op = (unsigned char)curr;
295 here.op = (unsigned char)64; /* invalid code marker */
/optee_os/core/tee/
H A Dtee_fs_rpc.c43 static TEE_Result operation_commit(struct tee_fs_rpc_operation *op) in operation_commit() argument
45 return thread_rpc_cmd(op->id, op->num_params, op->params); in operation_commit()
52 struct tee_fs_rpc_operation op = { }; in operation_open_dfh() local
67 op = (struct tee_fs_rpc_operation){ in operation_open_dfh()
74 res = operation_commit(&op); in operation_open_dfh()
76 *fd = op.params[2].u.value.a; in operation_open_dfh()
98 struct tee_fs_rpc_operation op = { in tee_fs_rpc_close() local
104 return operation_commit(&op); in tee_fs_rpc_close()
107 TEE_Result tee_fs_rpc_read_init(struct tee_fs_rpc_operation *op, in tee_fs_rpc_read_init() argument
123 *op = (struct tee_fs_rpc_operation){ in tee_fs_rpc_read_init()
[all …]
/optee_os/core/drivers/crypto/crypto_api/authenc/
H A Dauthenc.c40 if (authenc->op && authenc->op->free_ctx) in authenc_free_ctx()
41 authenc->op->free_ctx(authenc->ctx); in authenc_free_ctx()
58 if (authenc_src->op && authenc_src->op->copy_state) in authenc_copy_state()
59 authenc_src->op->copy_state(authenc_dst->ctx, authenc_src->ctx); in authenc_copy_state()
91 if (authenc->op && authenc->op->init) { in authenc_init()
104 ret = authenc->op->init(&dinit); in authenc_init()
129 if (authenc->op && authenc->op->update_aad) { in authenc_update_aad()
136 ret = authenc->op->update_aad(&dupdate); in authenc_update_aad()
169 if (authenc->op && authenc->op->update_payload) { in authenc_update_payload()
179 ret = authenc->op->update_payload(&dupdate); in authenc_update_payload()
[all …]
/optee_os/core/drivers/crypto/crypto_api/cipher/
H A Dcipher.c38 if (cipher->op && cipher->op->free_ctx) in cipher_free_ctx()
39 cipher->op->free_ctx(cipher->ctx); in cipher_free_ctx()
56 if (cipher_src->op && cipher_src->op->copy_state) in cipher_copy_state()
57 cipher_src->op->copy_state(cipher_dst->ctx, cipher_src->ctx); in cipher_copy_state()
88 if (cipher->op && cipher->op->init) { in cipher_init()
100 ret = cipher->op->init(&dinit); in cipher_init()
132 if (cipher->op && cipher->op->update) { in cipher_update()
142 ret = cipher->op->update(&dupdate); in cipher_update()
158 if (cipher->op && cipher->op->final) in cipher_final()
159 cipher->op->final(cipher->ctx); in cipher_final()
[all …]
/optee_os/lib/libmbedtls/mbedtls/library/
H A Dlmots.c125 psa_hash_operation_t op = PSA_HASH_OPERATION_INIT; in create_digit_array_with_checksum() local
130 status = psa_hash_setup(&op, PSA_ALG_SHA_256); in create_digit_array_with_checksum()
135 status = psa_hash_update(&op, params->I_key_identifier, in create_digit_array_with_checksum()
141 status = psa_hash_update(&op, params->q_leaf_identifier, in create_digit_array_with_checksum()
147 status = psa_hash_update(&op, D_MESSAGE_CONSTANT_BYTES, D_CONST_LEN); in create_digit_array_with_checksum()
152 status = psa_hash_update(&op, C_random_value, in create_digit_array_with_checksum()
158 status = psa_hash_update(&op, msg, msg_len); in create_digit_array_with_checksum()
163 status = psa_hash_finish(&op, out, in create_digit_array_with_checksum()
174 psa_hash_abort(&op); in create_digit_array_with_checksum()
220 psa_hash_operation_t op = PSA_HASH_OPERATION_INIT; in hash_digit_array() local
[all …]
H A Dlms.c99 psa_hash_operation_t op; in create_merkle_leaf_value() local
107 op = psa_hash_operation_init(); in create_merkle_leaf_value()
108 status = psa_hash_setup(&op, PSA_ALG_SHA_256); in create_merkle_leaf_value()
113 status = psa_hash_update(&op, params->I_key_identifier, in create_merkle_leaf_value()
120 status = psa_hash_update(&op, r_node_idx_bytes, 4); in create_merkle_leaf_value()
125 status = psa_hash_update(&op, D_LEAF_CONSTANT_BYTES, D_CONST_LEN); in create_merkle_leaf_value()
130 status = psa_hash_update(&op, pub_key, in create_merkle_leaf_value()
136 status = psa_hash_finish(&op, out, MBEDTLS_LMS_M_NODE_BYTES(params->type), in create_merkle_leaf_value()
143 psa_hash_abort(&op); in create_merkle_leaf_value()
176 psa_hash_operation_t op; in create_merkle_internal_value() local
[all …]
/optee_os/core/kernel/
H A Dpm.c91 static TEE_Result do_pm_callback(enum pm_op op, uint32_t pm_hint, in do_pm_callback() argument
95 bool suspending = op == PM_OP_SUSPEND; in do_pm_callback()
102 res = hdl->callback(op, pm_hint, hdl); in do_pm_callback()
117 static TEE_Result call_callbacks(enum pm_op op, uint32_t pm_hint, in call_callbacks() argument
128 if (op == PM_OP_SUSPEND) in call_callbacks()
135 res = do_pm_callback(op, pm_hint, hdl); in call_callbacks()
140 if (op == PM_OP_SUSPEND) in call_callbacks()
149 TEE_Result pm_change_state(enum pm_op op, uint32_t pm_hint) in pm_change_state() argument
154 switch (op) { in pm_change_state()
157 res = call_callbacks(op, pm_hint, cnt); in pm_change_state()
[all …]
H A Dldelf_syscalls.c23 const struct ts_store_ops *op; member
115 if (binh->op && binh->h) in bin_close()
116 binh->op->close(binh->h); in bin_close()
161 SCATTERED_ARRAY_FOREACH(binh->op, ta_stores, in ldelf_syscall_open_bin()
164 (void *)bb_uuid, binh->op->description); in ldelf_syscall_open_bin()
166 res = binh->op->open(bb_uuid, &binh->h); in ldelf_syscall_open_bin()
173 SCATTERED_ARRAY_FOREACH(binh->op, sp_stores, in ldelf_syscall_open_bin()
176 (void *)bb_uuid, binh->op->description); in ldelf_syscall_open_bin()
178 res = binh->op->open(bb_uuid, &binh->h); in ldelf_syscall_open_bin()
191 res = binh->op->get_size(binh->h, &binh->size_bytes); in ldelf_syscall_open_bin()
[all …]
/optee_os/lib/libutee/
H A Dtee_api_operations.c43 TEE_OperationHandle op = TEE_HANDLE_NULL; in TEE_AllocateOperation() local
313 op = TEE_Malloc(sizeof(*op), TEE_MALLOC_FILL_ZERO); in TEE_AllocateOperation()
314 if (!op) in TEE_AllocateOperation()
317 op->info.algorithm = algorithm; in TEE_AllocateOperation()
318 op->info.operationClass = TEE_ALG_GET_CLASS(algorithm); in TEE_AllocateOperation()
321 op->info.operationClass = TEE_OPERATION_ASYMMETRIC_SIGNATURE; in TEE_AllocateOperation()
323 op->info.mode = mode; in TEE_AllocateOperation()
324 op->info.digestLength = TEE_ALG_GET_DIGEST_SIZE(algorithm); in TEE_AllocateOperation()
325 op->info.maxKeySize = maxKeySize; in TEE_AllocateOperation()
326 op->info.requiredKeyUsage = req_key_usage; in TEE_AllocateOperation()
[all …]
H A Dtee_api_arith_mpi.c262 int32_t TEE_BigIntCmpS32(const TEE_BigInt *op, int32_t shortVal) in TEE_BigIntCmpS32() argument
267 get_mpi(&mpi, op); in TEE_BigIntCmpS32()
276 void TEE_BigIntShiftRight(TEE_BigInt *dest, const TEE_BigInt *op, size_t bits) in TEE_BigIntShiftRight() argument
283 if (dest == op) { in TEE_BigIntShiftRight()
288 get_mpi(&mpi_op, op); in TEE_BigIntShiftRight()
317 void __GP11_TEE_BigIntShiftRight(TEE_BigInt *dest, const TEE_BigInt *op, in __GP11_TEE_BigIntShiftRight() argument
320 TEE_BigIntShiftRight(dest, op, bits); in __GP11_TEE_BigIntShiftRight()
351 TEE_Result TEE_BigIntSetBit(TEE_BigInt *op, uint32_t bitIndex, bool value) in TEE_BigIntSetBit() argument
357 get_mpi(&mpi, op); in TEE_BigIntSetBit()
363 res = copy_mpi_to_bigint(&mpi, op); in TEE_BigIntSetBit()
[all …]
/optee_os/core/include/tee/
H A Dtee_fs_rpc.h34 TEE_Result tee_fs_rpc_read_init(struct tee_fs_rpc_operation *op,
37 TEE_Result tee_fs_rpc_read_final(struct tee_fs_rpc_operation *op,
40 TEE_Result tee_fs_rpc_write_init(struct tee_fs_rpc_operation *op,
43 TEE_Result tee_fs_rpc_write_final(struct tee_fs_rpc_operation *op);
H A Dtadb.h37 TEE_Result (*read_init)(struct tee_fs_rpc_operation *op, int fd,
39 TEE_Result (*read_final)(struct tee_fs_rpc_operation *op,
42 TEE_Result (*write_init)(struct tee_fs_rpc_operation *op, int fd,
44 TEE_Result (*write_final)(struct tee_fs_rpc_operation *op);
H A Dfs_htree.h89 TEE_Result (*rpc_read_init)(void *aux, struct tee_fs_rpc_operation *op,
92 TEE_Result (*rpc_read_final)(struct tee_fs_rpc_operation *op,
94 TEE_Result (*rpc_write_init)(void *aux, struct tee_fs_rpc_operation *op,
97 TEE_Result (*rpc_write_final)(struct tee_fs_rpc_operation *op);
/optee_os/core/arch/arm/crypto/
H A Dsha1_armv8a_ce_a64.S33 .macro add_only, op, ev, rc, s0, dg1
38 sha1\op dg0q, \dg1, t0.4s
40 sha1\op dg0q, dg1s, t0.4s
47 sha1\op dg0q, dg2s, t1.4s
51 .macro add_update, op, ev, rc, s0, s1, s2, s3, dg1
53 add_only \op, \ev, \rc, \s1, \dg1
H A Dsha1_armv8a_ce_a32.S33 .macro add_only, op, ev, rc, s0, dg1
39 sha1\op\().32 dg0, dg1a\ev, ta\ev
41 sha1\op\().32 dg0, \dg1, ta\ev
45 .macro add_update, op, ev, rc, s0, s1, s2, s3, dg1
47 add_only \op, \ev, \rc, \s1, \dg1
/optee_os/core/pta/tests/
H A Dfs_htree.c92 static TEE_Result test_read_init(void *aux, struct tee_fs_rpc_operation *op, in test_read_init() argument
103 memset(op, 0, sizeof(*op)); in test_read_init()
104 op->params[0].u.value.a = (vaddr_t)aux; in test_read_init()
105 op->params[0].u.value.b = offs; in test_read_init()
106 op->params[0].u.value.c = sz; in test_read_init()
118 static TEE_Result test_read_final(struct tee_fs_rpc_operation *op, in test_read_final() argument
121 struct test_aux *a = uint_to_ptr(op->params[0].u.value.a); in test_read_final()
122 size_t offs = op->params[0].u.value.b; in test_read_final()
123 size_t sz = op->params[0].u.value.c; in test_read_final()
136 static TEE_Result test_write_init(void *aux, struct tee_fs_rpc_operation *op, in test_write_init() argument
[all …]
/optee_os/core/arch/riscv/kernel/
H A Dcsr_detect.S44 .macro detect_csr csr, op, reg0, reg1, reg2
48 .if \op == DETECT_OP_CSRR
50 .elseif \op == DETECT_OP_CSRRW
/optee_os/core/arch/arm/tee/
H A Dsvc_cache.c12 TEE_Result syscall_cache_operation(void *va, size_t len, unsigned long op) in syscall_cache_operation() argument
37 return cache_operation(op, va, len); in syscall_cache_operation()
H A Dcache.c18 TEE_Result cache_operation(enum utee_cache_operation op, void *va, size_t len) in cache_operation() argument
27 switch (op) { in cache_operation()
/optee_os/core/drivers/
H A Dzynqmp_pm.c102 static TEE_Result efuse_op(enum efuse_op op, uint8_t *buf, size_t buf_sz, in efuse_op() argument
132 if (op == EFUSE_WRITE) in efuse_op()
139 efuse_op->flag = op; in efuse_op()
157 if (op == EFUSE_READ) { in efuse_op()
/optee_os/core/arch/arm/mm/
H A Dcore_mmu.c64 TEE_Result cache_op_inner(enum cache_op op, void *va, size_t len) in cache_op_inner() argument
66 switch (op) { in cache_op_inner()
98 TEE_Result cache_op_outer(enum cache_op op, paddr_t pa, size_t len) in cache_op_outer() argument
124 switch (op) { in cache_op_outer()
/optee_os/core/arch/arm/include/mm/
H A Dcore_mmu_arch.h151 TEE_Result cache_op_inner(enum cache_op op, void *va, size_t len);
153 TEE_Result cache_op_outer(enum cache_op op, paddr_t pa, size_t len);
155 static inline TEE_Result cache_op_outer(enum cache_op op __unused, in cache_op_outer()
/optee_os/core/arch/arm/plat-imx/
H A Dtzc380.c87 pm_enter_resume(enum pm_op op, uint32_t pm_hint __unused, in pm_enter_resume() argument
90 if (op == PM_OP_RESUME) in pm_enter_resume()
/optee_os/core/drivers/crypto/ele/
H A Dmemutils.c11 static void imx_ele_buf_cache_op(enum utee_cache_operation op, in imx_ele_buf_cache_op() argument
15 cache_operation(op, ele_buf->data, ele_buf->size); in imx_ele_buf_cache_op()

12345