Home
last modified time | relevance | path

Searched refs:alloc_size (Results 1 – 6 of 6) sorted by relevance

/optee_os/core/drivers/crypto/caam/utils/
A Dutils_mem.c42 size_t alloc_size = size; in mem_alloc() local
49 if (ROUNDUP_OVERFLOW(alloc_size, CFG_CAAM_SIZE_ALIGN, in mem_alloc()
50 &alloc_size)) in mem_alloc()
53 if (ROUNDUP_OVERFLOW(alloc_size, cacheline_size, &alloc_size)) in mem_alloc()
56 ptr = memalign(cacheline_size, alloc_size); in mem_alloc()
58 ptr = malloc(alloc_size); in mem_alloc()
67 memset(ptr, 0, alloc_size); in mem_alloc()
A Dutils_dmaobj.c1110 size_t alloc_size = 0; in get_dma_max_alloc_size() local
1120 if (alloc_size > 1024) in get_dma_max_alloc_size()
1121 alloc_size = ROUNDDOWN(alloc_size, 1024); in get_dma_max_alloc_size()
1123 return alloc_size; in get_dma_max_alloc_size()
1142 size_t alloc_size = 0; in try_allocate_dmabuf_max_size() local
1147 alloc_size = get_dma_max_alloc_size(obj); in try_allocate_dmabuf_max_size()
1148 if (alloc_size) { in try_allocate_dmabuf_max_size()
1160 ret = try_allocate_dmabuf(priv, alloc_size); in try_allocate_dmabuf_max_size()
1164 if (alloc_size > min_size) in try_allocate_dmabuf_max_size()
1165 alloc_size = MAX(min_size, alloc_size / 2); in try_allocate_dmabuf_max_size()
[all …]
/optee_os/core/drivers/imx/dcp/
A Ddcp_utils.c23 size_t alloc_size = 0; in dcp_alloc_memalign() local
35 if (ROUNDUP_OVERFLOW(size, cacheline_size, &alloc_size)) in dcp_alloc_memalign()
38 ptr = memalign(cacheline_size, alloc_size); in dcp_alloc_memalign()
/optee_os/core/tee/
A Dtee_svc_cryp.c57 uint32_t alloc_size; member
1293 key->alloc_size = type_props->alloc_size - in tee_obj_set_type()
1651 size_t alloc_size = 0; in syscall_cryp_obj_populate() local
1886 size_t alloc_size = 0; in syscall_obj_generate_key() local
2931 size_t alloc_size = 0; in syscall_cryp_derive_key() local
3019 alloc_size = 192; in syscall_cryp_derive_key()
3022 alloc_size = 224; in syscall_cryp_derive_key()
3025 alloc_size = 256; in syscall_cryp_derive_key()
3028 alloc_size = 384; in syscall_cryp_derive_key()
3031 alloc_size = 521; in syscall_cryp_derive_key()
[all …]
/optee_os/core/drivers/clk/sam/
A Dat91_pmc.c92 unsigned int alloc_size = sizeof(struct pmc_data) + in pmc_data_allocate() local
96 pmc_data = calloc(1, alloc_size); in pmc_data_allocate()
/optee_os/lib/libutee/
A Dtee_api_arith_mpi.c54 uint16_t alloc_size; member
69 if (hdr->alloc_size < n) in copy_mpi_to_bigint()
126 hdr->alloc_size = len - BIGINT_HDR_SIZE_IN_U32; in TEE_BigIntInit()

Completed in 15 milliseconds