Home
last modified time | relevance | path

Searched refs:last (Results 1 – 25 of 33) sorted by relevance

12

/optee_os/lib/libutils/isoc/newlib/
H A Dstrrchr.c75 _CONST char *last = NULL; variable
81 last = s;
87 last = strchr(s, i);
90 return (char *) last;
/optee_os/core/drivers/crypto/caam/
H A Dcaam_desc.c41 uint32_t *last = desc + len; in caam_desc_add_word() local
44 caam_write_val32((void *)last, word); in caam_desc_add_word()
53 uint32_t *last = desc + len; in caam_desc_add_ptr() local
58 struct ptr_addr *ptr_addr = (struct ptr_addr *)(uintptr_t)last; in caam_desc_add_ptr()
68 caam_write_val32((void *)last, ptr); in caam_desc_add_ptr()
/optee_os/core/lib/zlib/
H A Dinffast.c57 z_const unsigned char FAR *last; /* have enough input while in < last */ local
84 last = in + (strm->avail_in - 5);
291 } while (in < last && out < end);
302 strm->avail_in = (unsigned)(in < last ? 5 + (last - in) : 5 - (in - last));
H A Dinflate.c132 state->last = 0;
638 code last; /* parent table entry */ local
864 if (state->last) {
870 state->last = BITS(1);
875 state->last ? " (last)" : ""));
881 state->last ? " (last)" : ""));
890 state->last ? " (last)" : ""));
1078 last = here;
1080 here = state->lencode[last.val +
1081 (BITS(last.bits + last.op) >> last.bits)];
[all …]
H A Dinflate.h86 int last; /* true if processing last block */ member
/optee_os/core/drivers/crypto/aspeed/
H A Dhace_ast2600.c220 uint32_t last = 0; in ast2600_hace_final() local
240 last = hctx->total[0] & (hctx->blk_size - 1); in ast2600_hace_final()
245 if (last < 56) in ast2600_hace_final()
246 padn = 56 - last; in ast2600_hace_final()
248 padn = 120 - last; in ast2600_hace_final()
261 if (last < 112) in ast2600_hace_final()
262 padn = 112 - last; in ast2600_hace_final()
264 padn = 240 - last; in ast2600_hace_final()
/optee_os/lib/libmbedtls/mbedtls/library/
H A Dssl_cache.c141 mbedtls_ssl_cache_entry *cur, *last; in ssl_cache_pick_writing_slot() local
151 last = NULL; in ssl_cache_pick_writing_slot()
158 last = cur; in ssl_cache_pick_writing_slot()
192 if (last == NULL) { in ssl_cache_pick_writing_slot()
195 last->next = cur; in ssl_cache_pick_writing_slot()
221 last->next = old; in ssl_cache_pick_writing_slot()
H A Dripemd160.c331 uint32_t last, padn; in mbedtls_ripemd160_finish() local
342 last = ctx->total[0] & 0x3F; in mbedtls_ripemd160_finish()
343 padn = (last < 56) ? (56 - last) : (120 - last); in mbedtls_ripemd160_finish()
/optee_os/core/mm/
H A Dpgt_cache.c161 static bool pgt_entry_matches(struct pgt *p, vaddr_t begin, vaddr_t last) in pgt_entry_matches() argument
165 if (last <= begin) in pgt_entry_matches()
168 last - begin); in pgt_entry_matches()
171 void pgt_flush_range(struct user_mode_ctx *uctx, vaddr_t begin, vaddr_t last) in pgt_flush_range() argument
182 while (pgt_entry_matches(p, begin, last)) { in pgt_flush_range()
203 if (pgt_entry_matches(next_p, begin, last)) { in pgt_flush_range()
659 vaddr_t last) in pgt_entry_matches() argument
665 if (last <= begin) in pgt_entry_matches()
668 last - begin)) in pgt_entry_matches()
675 vaddr_t begin, vaddr_t last) in flush_ctx_range_from_list() argument
[all …]
/optee_os/core/kernel/
H A Dasan.c223 int8_t last = (addr & ASAN_BLOCK_MASK) + 1; in asan_shadow_1byte_isvalid() local
226 if (*byte == 0 || last <= *byte) in asan_shadow_1byte_isvalid()
238 int8_t last = ((addr + 1) & ASAN_BLOCK_MASK) + 1; in asan_shadow_2byte_isvalid() local
241 if (*byte == 0 || last <= *byte) in asan_shadow_2byte_isvalid()
254 int8_t last = ((addr + 3) & ASAN_BLOCK_MASK) + 1; in asan_shadow_4byte_isvalid() local
257 if (*byte == 0 || last <= *byte) in asan_shadow_4byte_isvalid()
270 int8_t last = ((addr + 7) & ASAN_BLOCK_MASK) + 1; in asan_shadow_8byte_isvalid() local
273 if (*byte == 0 || last <= *byte) in asan_shadow_8byte_isvalid()
H A Dtee_ta_manager.c578 struct tee_ta_session *last = NULL; in new_session_id()
582 last = TAILQ_LAST(open_sessions, tee_ta_session_head); in new_session_id()
583 if (last) { in new_session_id()
585 id = last->id + 1; in new_session_id()
572 struct tee_ta_session *last = NULL; new_session_id() local
/optee_os/core/drivers/crypto/caam/cipher/
H A Dcaam_cipher_mac.c178 if (dupdate->last) in do_update_mac()
197 if (dupdate->last) { in do_update_mac()
244 if (dupdate->last) { in do_update_mac()
298 struct caamdmaobj *dst, bool last) in run_cmac_desc() argument
318 CIPHER_TRACE("%s operation", last ? "Final" : "Update"); in run_cmac_desc()
323 if (last) in run_cmac_desc()
329 } else if (last) { in run_cmac_desc()
368 if (last && !ctx->blockbuf.filled) { in run_cmac_desc()
381 if (last) { in run_cmac_desc()
437 if (!dupdate->last) { in do_update_cmac()
[all …]
/optee_os/core/drivers/crypto/versal/
H A Dauthenc.c567 struct drvcrypt_authenc_update_payload last = { }; in do_enc_final() local
586 last.ctx = dfinal->ctx; in do_enc_final()
587 last.dst = dfinal->dst; in do_enc_final()
588 last.encrypt = true; in do_enc_final()
589 last.src = dfinal->src; in do_enc_final()
591 ret = update_payload(&last, true); in do_enc_final()
595 memcpy(dfinal->dst.data, last.dst.data, dfinal->dst.length); in do_enc_final()
621 struct drvcrypt_authenc_update_payload last = { }; in do_dec_final() local
640 last.encrypt = false; in do_dec_final()
641 last.ctx = dfinal->ctx; in do_dec_final()
[all …]
/optee_os/core/drivers/imx/dcp/
H A Ddcp.c280 uint8_t last[DCP_AES128_BLOCK_SIZE] = { }; in dcp_cmac() local
318 memcpy(last, input + offset, input_size - offset); in dcp_cmac()
321 dcp_xor(last, key1, last, DCP_AES128_BLOCK_SIZE); in dcp_cmac()
323 dcp_cmac_padding(last, input_size % DCP_AES128_BLOCK_SIZE); in dcp_cmac()
324 dcp_xor(last, key2, last, DCP_AES128_BLOCK_SIZE); in dcp_cmac()
327 dcp_xor(x, last, y, DCP_AES128_BLOCK_SIZE); in dcp_cmac()
/optee_os/core/crypto/
H A Dsm3.c230 uint32_t last, padn; in sm3_final() local
240 last = ctx->total[0] & 0x3F; in sm3_final()
241 padn = (last < 56) ? (56 - last) : (120 - last); in sm3_final()
/optee_os/core/drivers/crypto/crypto_api/include/
H A Ddrvcrypt_cipher.h39 bool last; /* Last block to handle */ member
/optee_os/core/drivers/crypto/caam/ae/
H A Dlocal.h86 struct drvcrypt_buf *dst, bool last);
H A Dcaam_ae.c726 bool last) in caam_ae_do_update() argument
788 if (!last) { in caam_ae_do_update()
808 if (!last) { in caam_ae_do_update()
895 if (last && size_todo == size_done) in caam_ae_do_update()
/optee_os/core/lib/libfdt/
H A Dfdt.c273 const char *last = strtab + tabsize - len; in fdt_find_string_() local
276 for (p = strtab; p <= last; p++) in fdt_find_string_()
/optee_os/core/drivers/crypto/se050/core/
H A Dcipher.c34 return ctx->ops->update(ctx, dupdate->last, dupdate->src.data, in do_update()
/optee_os/core/include/mm/
H A Dpgt_cache.h71 void pgt_flush_range(struct user_mode_ctx *uctx, vaddr_t begin, vaddr_t last);
/optee_os/core/include/kernel/
H A Dtransfer_list.h169 struct transfer_list_entry *last);
/optee_os/core/drivers/crypto/crypto_api/cipher/
H A Dcipher.c135 .last = last_block, in cipher_update()
/optee_os/
H A D.clang-format6 # Please note that the maintainers have the last word if there's
/optee_os/core/arch/arm/crypto/
H A Daes_modes_armv8a_ce_a32.S149 vld1.8 {q14}, [ip] @ load last round key
264 vmov q15, q14 @ preserve last round key
267 veor q14, q15, q6 @ combine prev ct with last key

12