Home
last modified time | relevance | path

Searched refs:MIN (Results 1 – 25 of 65) sorted by relevance

123

/optee_os/core/drivers/crypto/caam/utils/
A Dutils_sgt.c31 op_size = MIN(rem_length, insgt->buf[idx].length); in caam_sgt_cache_op()
79 rlength -= MIN(rlength, from->buf[idx].length - off); in caam_sgt_derive()
82 rlength -= MIN(rlength, from->buf[idx].length); in caam_sgt_derive()
A Dutils_mem.c221 cpy_size = MIN(cpy_size, src->length - offset); in caam_cpy_block_src()
289 MIN(SMALL_PAGE_SIZE - (va & SMALL_PAGE_MASK), len); in caam_mem_get_pa_area()
341 cpy_size = MIN(dst->length, (src->length - offset)); in caam_mem_cpy_ltrim_buf()
A Dutils_dmaobj.c607 sgtbuf->length = MIN(dmabuf->remind, entry->origbuf.length - off); in entry_sgtbuf_dmabuf()
742 MIN(min_length, obj->orig.length)); in caam_dmaobj_init_output()
866 dst_rlen = MIN(obj->orig.length, obj->sgtbuf.length); in caam_dmaobj_copy_to_orig()
876 copy_size = MIN(dst_rlen, sgtdata->length); in caam_dmaobj_copy_to_orig()
878 copy_size = MIN(dst_rlen, sgtdata->length); in caam_dmaobj_copy_to_orig()
952 copy_size = MIN(dst_rlen, sgtdata->length - offset); in caam_dmaobj_copy_ltrim_to_orig()
956 copy_size = MIN(dst_rlen, sgtdata->length); in caam_dmaobj_copy_ltrim_to_orig()
1119 alloc_size = MIN(priv->dmabuf.require, MAX_BUFFER_ALLOC_SIZE); in get_dma_max_alloc_size()
/optee_os/core/drivers/crypto/crypto_api/math/
A Dmodulus.c36 min = MIN(data->a.length, data->b.length); in drvcrypt_xor_mod_n()
37 min = MIN(min, data->n.length); in drvcrypt_xor_mod_n()
/optee_os/core/crypto/
A Dcbc-mac.c83 nblocks = MIN(len / mc->block_len, in crypto_cbc_mac_update()
89 nblocks = MIN(len / mc->block_len, in crypto_cbc_mac_update()
149 memcpy(digest, mc->digest, MIN(digest_len, mc->block_len)); in crypto_cbc_mac_final()
A Drng_fortuna.c178 uint8_t dl = MIN(RING_BUF_DATA_SIZE, dlen); in push_ring_buffer()
213 dlen = MIN(ring_buffer.elem[ring_buffer.end].dlen, RING_BUF_DATA_SIZE); in pop_ring_buffer()
226 size_t dl = MIN(MAX_EVENT_DATA_LEN, dlen); in add_event()
523 n = MIN(blen - offs, SIZE_1M); in crypto_rng_read()
/optee_os/core/pta/bcm/
A Delog.c165 sz = MIN(params[0].memref.size, DEFAULT_ELOG_BUFFER_SIZE); in pta_elog_nitro_crash_dump()
201 sz = MIN(params[0].memref.size, DEFAULT_ELOG_BUFFER_SIZE); in pta_elog_dump()
/optee_os/core/drivers/clk/sam/
A Dat91_clk.h41 #define CLK_RANGE(MIN, MAX) {.min = MIN, .max = MAX,} argument
/optee_os/core/drivers/
A Dstm32_rng.c103 size_t req_size = MIN(RNG_FIFO_BYTE_DEPTH, *size); in stm32_rng_read_raw()
109 size_t sz = MIN(len, sizeof(uint32_t)); in stm32_rng_read_raw()
A Dbcm_hwrng.c63 num_words = MIN(available_words, words_to_read); in bcm_hwrng_read_rng()
A Datmel_trng.c65 len_to_copy = MIN(len, sizeof(uint32_t)); in crypto_rng_read()
/optee_os/core/kernel/
A Dembedded_ts.c155 strm->avail_out = MIN(len, 1024U); in read_compressed()
185 strm->avail_out = MIN(len - total, 1024U); in read_compressed()
/optee_os/out/arm/export-ta_arm32/host_include/
A Dutil.h25 #define MIN(a, b) \ macro
31 #define MIN(a, b) (((a) < (b)) ? (a) : (b)) macro
/optee_os/out/arm/export-ta_arm64/include/
A Dutil.h25 #define MIN(a, b) \ macro
31 #define MIN(a, b) (((a) < (b)) ? (a) : (b)) macro
/optee_os/out/arm/export-ta_arm64/host_include/
A Dutil.h25 #define MIN(a, b) \ macro
31 #define MIN(a, b) (((a) < (b)) ? (a) : (b)) macro
/optee_os/lib/libutils/ext/include/
A Dutil.h25 #define MIN(a, b) \ macro
31 #define MIN(a, b) (((a) < (b)) ? (a) : (b)) macro
/optee_os/out/arm/export-ta_arm32/include/
A Dutil.h25 #define MIN(a, b) \ macro
31 #define MIN(a, b) (((a) < (b)) ? (a) : (b)) macro
/optee_os/core/drivers/crypto/stm32/
A Dauthenc.c250 size_t len = MIN(dupdate->src.length, dupdate->dst.length); in stm32_ae_update_payload()
275 size_t len = MIN(dfinal->src.length, dfinal->dst.length); in stm32_ae_enc_final()
289 size_t len = MIN(dfinal->src.length, dfinal->dst.length); in stm32_ae_dec_final()
/optee_os/core/lib/libtomcrypt/src/encauth/eax/
A Deax_decrypt_verify_memory.c60 taglen = MIN(taglen, MAXBLOCKSIZE); in eax_decrypt_verify_memory()
/optee_os/core/lib/libtomcrypt/src/encauth/ocb3/
A Docb3_decrypt_verify_memory.c56 taglen = MIN(taglen, MAXBLOCKSIZE); in ocb3_decrypt_verify_memory()
/optee_os/core/lib/libtomcrypt/src/mac/omac/
A Domac_process.c76 n = MIN(inlen, (unsigned long)(omac->blklen - omac->buflen)); in omac_process()
/optee_os/core/tee/
A Dtadb.c455 size_t wl = MIN(rl, TADB_MAX_BUFFER_SIZE); in tee_tadb_ta_write()
726 size_t l = MIN(*len, sz - ta->pos); in tee_tadb_ta_read()
739 size_t b_size = MIN(256U, l); in tee_tadb_ta_read()
746 size_t n = MIN(b_size, l - num_bytes); in tee_tadb_ta_read()
/optee_os/core/lib/libtomcrypt/src/pk/dh/
A Ddh_make_key.c84 key_size = MIN(key_size_p, key_size_q); in dh_make_key()
/optee_os/core/lib/libtomcrypt/src/mac/pmac/
A Dpmac_process.c81 n = MIN(inlen, (unsigned long)(pmac->block_len - pmac->buflen)); in pmac_process()
/optee_os/core/lib/libtomcrypt/src/stream/salsa20/
A Dsalsa20_crypt.c69 j = MIN(st->ksleft, inlen); in salsa20_crypt()

Completed in 24 milliseconds

123