Lines Matching defs:bytes
28 typedef void *(*morecore_alloc_func_t)(size_t bytes, size_t *retbytes);
31 typedef void (*morecore_free_func_t)(void *base, size_t bytes);
39 * be smaller than bytes if we were able to allocate a smaller memory
42 static void *morecore_alloc(size_t bytes, size_t *retbytes)
49 if (bytes < LARGE_PAGE_SIZE) {
50 bytes = LARGE_PAGE_SIZE;
53 bytes = ROUND_UP(bytes, LARGE_PAGE_SIZE);
58 size_t step = bytes;
59 while (mapped < bytes) {
91 static void morecore_free(void *base, size_t bytes)
95 (lvaddr_t)base, bytes);