Searched refs:total_size (Results 1 – 3 of 3) sorted by relevance
| /devicemodel/core/ |
| A D | hugetlb.c | 142 static size_t total_size; variable 658 total_size = ctx->highmem_gpa_base + ctx->highmem; in hugetlb_setup_memory() 707 total_size += hugetlb_priv[level].pg_size; in hugetlb_setup_memory() 722 pr_info("total_size 0x%lx\n\n", total_size); in hugetlb_setup_memory() 725 ptr = mmap(NULL, total_size, PROT_NONE, in hugetlb_setup_memory() 838 munmap(ptr, total_size); in hugetlb_setup_memory() 852 if (total_size > 0) { in hugetlb_unsetup_memory() 853 munmap(ptr, total_size); in hugetlb_unsetup_memory() 854 total_size = 0; in hugetlb_unsetup_memory()
|
| A D | sbuf.c | 115 void sbuf_init(struct shared_buf *sbuf, uint32_t total_size, uint32_t ele_size) in sbuf_init() argument 119 sbuf->ele_num = (total_size - SBUF_HEAD_SIZE) / sbuf->ele_size; in sbuf_init()
|
| /devicemodel/include/ |
| A D | sbuf.h | 37 void sbuf_init(struct shared_buf *sbuf, uint32_t total_size, uint32_t ele_size);
|
Completed in 6 milliseconds