Home
last modified time | relevance | path

Searched refs:cacheline_size (Results 1 – 3 of 3) sorted by relevance

/optee_os/core/drivers/imx/dcp/
A Ddcp_utils.c24 uint32_t cacheline_size = 0; in dcp_alloc_memalign() local
34 cacheline_size = dcache_get_line_size(); in dcp_alloc_memalign()
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/drivers/crypto/caam/utils/
A Dutils_dmaobj.c348 unsigned int cacheline_size = 0; in check_buffer_alignment() local
359 cacheline_size = dcache_get_line_size(); in check_buffer_alignment()
375 if (entry->origbuf.length < cacheline_size) { in check_buffer_alignment()
381 entry->origbuf.length, cacheline_size); in check_buffer_alignment()
389 va_start_align = ROUNDUP(va_start, cacheline_size); in check_buffer_alignment()
397 if (remlen <= cacheline_size) { in check_buffer_alignment()
405 remlen, cacheline_size); in check_buffer_alignment()
446 va_end_align = ROUNDUP(va_end, cacheline_size); in check_buffer_alignment()
452 va_end_align = ROUNDDOWN(va_end, cacheline_size); in check_buffer_alignment()
455 if (remlen <= cacheline_size) { in check_buffer_alignment()
[all …]
A Dutils_mem.c47 size_t cacheline_size = dcache_get_line_size(); in mem_alloc() local
53 if (ROUNDUP_OVERFLOW(alloc_size, cacheline_size, &alloc_size)) in mem_alloc()
56 ptr = memalign(cacheline_size, alloc_size); in mem_alloc()

Completed in 7 milliseconds