Home
last modified time | relevance | path

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

/optee_os-3.20.0/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-3.20.0/core/kernel/
A Dtee_misc.c127 size_t alloc_size = 0; in alloc_cache_aligned() local
131 if (ROUNDUP_OVERFLOW(size, cacheline_size, &alloc_size)) in alloc_cache_aligned()
134 ptr = memalign(cacheline_size, alloc_size); in alloc_cache_aligned()
/optee_os-3.20.0/core/tee/
A Dtee_svc_cryp.c59 uint32_t alloc_size; member
1540 key->alloc_size = type_props->alloc_size - in tee_obj_set_type()
1904 size_t alloc_size = 0; in syscall_cryp_obj_populate() local
2294 size_t alloc_size = 0; in syscall_obj_generate_key() local
3377 size_t alloc_size = 0; in syscall_cryp_derive_key() local
3465 alloc_size = 192; in syscall_cryp_derive_key()
3468 alloc_size = 224; in syscall_cryp_derive_key()
3471 alloc_size = 256; in syscall_cryp_derive_key()
3474 alloc_size = 384; in syscall_cryp_derive_key()
3477 alloc_size = 521; in syscall_cryp_derive_key()
[all …]
/optee_os-3.20.0/core/drivers/clk/sam/
A Dat91_pmc.c98 unsigned int alloc_size = sizeof(struct pmc_data) + in pmc_data_allocate() local
102 pmc_data = calloc(1, alloc_size); in pmc_data_allocate()
/optee_os-3.20.0/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 16 milliseconds