/src/sys/arch/hpcmips/stand/libsa/ |
alloc.c | 40 void *malloc(size_t size); 43 alloc(size_t size); 45 return malloc(size);
|
/src/lib/libusbhid/ |
usbvar.h | 30 unsigned int size; member in struct:report_desc
|
/src/sys/dev/iscsi/ |
base64.h | 32 /* size of result string including term. zero and "0b" prefix */ 33 #define base64_enclen(size) ((size) * 4 / 3 + 4 + 2) 35 /* encode "size" bytes of "data" into "buffer" returning length */
|
/src/sys/arch/evbarm/stand/board/ |
integrator_mem.c | 54 uint32_t heap, size; local in function:mem_init 60 size = 16 * 1024 * 1024; 64 size = 32 * 1024 * 1024; 68 size = 64 * 1024 * 1024; 72 size = 128 * 1024 * 1024; 76 size = 256 * 1024 * 1024; 81 size = 16 * 1024 * 1024; 86 heap = size - BOARD_HEAP_SIZE; 88 printf(">> RAM 0x%x - 0x%x, heap at 0x%x\n", 0, size - 1, heap); 89 setheap((void *)heap, (void *)(size - 1)) [all...] |
gemini_mem.c | 54 * Gemini CPU Remap Control remapped-private memory size 63 uint32_t heap, size; local in function:mem_init 65 size = MEMSIZE; 68 heap = size - BOARD_HEAP_SIZE; 70 printf(">> RAM 0x%x - 0x%x, heap at 0x%x\n", 0, size - 1, heap); 71 setheap((void *)heap, (void *)(size - 1));
|
/src/sys/arch/hpc/stand/libsa/ |
alloc.c | 43 alloc(size_t size) 45 return malloc(size); 49 dealloc(void *ptr, size_t size)
|
/src/lib/libc/rpc/ |
rpc_dtablesize.c | 57 static int size; local in function:_rpc_dtablesize 58 if (size == 0) 59 size = (int)sysconf(_SC_OPEN_MAX); 60 return (size);
|
/src/sys/arch/atari/stand/tostools/libtos/ |
xalloc.c | 37 xmalloc(size_t size) 39 void * p = malloc(size); 41 if (p || !size) 48 xrealloc(void *ptr, size_t size) 50 void * p = realloc(ptr, size); 52 if (p || !size)
|
/src/common/lib/libppath/ |
ppath_malloc.c | 40 ppath_alloc(size_t size) 42 return calloc(1, size); 47 ppath_free(void *p, size_t size)
|
ppath_kmem_alloc.c | 39 ppath_alloc(size_t size) 41 return kmem_zalloc(size, KM_NOSLEEP); 45 ppath_free(void *p, size_t size) 47 kmem_free(p, size);
|
/src/lib/libppath/ |
ppath_malloc.c | 40 ppath_alloc(size_t size) 42 return calloc(1, size); 47 ppath_free(void *p, size_t size)
|
/src/sys/arch/amiga/stand/bootblock/ppcboot/ |
hex2c.awk | 33 BEGIN{size = 0} 34 { printf("\t"); for(i=2;i<=NF;i++) {printf("0x%s, ",$i);size += 2};printf("\n");} 36 END{print "const size_t kicksize = ", size ";"}
|
/src/usr.sbin/timed/timed/ |
tspname.c | 49 get_tsp_name(const struct tsp *tsp, char *name, size_t size) 51 size = MIN(size, sizeof(tsp->tsp_name)); 52 if (size > 0) { 53 (void)strncpy(name, tsp->tsp_name, size); 54 name[size - 1] = '\0';
|
/src/sys/external/bsd/drm2/dist/drm/nouveau/nvkm/subdev/fb/ |
nouveau_nvkm_subdev_fb_ramnv04.c | 41 u64 size; local in function:nv04_ram_new 45 size = ((boot0 >> 12) & 0xf) * 2 + 2; 46 size *= 1024 * 1024; 50 size = 32 * 1024 * 1024; 53 size = 16 * 1024 * 1024; 56 size = 8 * 1024 * 1024; 59 size = 4 * 1024 * 1024; 69 return nvkm_ram_new_(&nv04_ram_func, fb, type, size, pram);
|
/src/sys/external/isc/libsodium/include/ |
randombytes.h | 6 randombytes_buf(void * const buf, const size_t size) 9 cprng_strong(kern_cprng, buf, size, 0);
|
/src/sys/external/bsd/compiler_rt/dist/lib/tsan/rtl/ |
tsan_malloc_mac.cc | 28 #define COMMON_MALLOC_MEMALIGN(alignment, size) \ 30 user_memalign(cur_thread(), StackTrace::GetCurrentPc(), alignment, size) 31 #define COMMON_MALLOC_MALLOC(size) \ 32 if (cur_thread()->in_symbolizer) return InternalAlloc(size); \ 33 SCOPED_INTERCEPTOR_RAW(malloc, size); \ 34 void *p = user_alloc(thr, pc, size) 35 #define COMMON_MALLOC_REALLOC(ptr, size) \ 36 if (cur_thread()->in_symbolizer) return InternalRealloc(ptr, size); \ 37 SCOPED_INTERCEPTOR_RAW(realloc, ptr, size); \ 38 void *p = user_realloc(thr, pc, ptr, size) [all...] |
/src/sys/arch/powerpc/powerpc/ |
db_memrw.c | 37 * specific size, then the read/write functions have to 57 db_read_bytes(vaddr_t addr, size_t size, char *data) 61 if (size == 4) { 66 if (size == 2) { 71 while (size > 0) { 72 --size; 81 db_write_bytes(vaddr_t addr, size_t size, const char *data) 85 if (size == 4) { 89 } else if (size == 2) { 95 while (size > 0) [all...] |
/src/sys/external/bsd/compiler_rt/dist/include/sanitizer/ |
hwasan_interface.h | 35 // Mark region of memory with the given tag. Both address and size need to be 38 size_t size); 60 void __hwasan_print_shadow(const volatile void *x, size_t size); 65 int __sanitizer_posix_memalign(void **memptr, size_t alignment, size_t size); 66 void * __sanitizer_memalign(size_t alignment, size_t size); 67 void * __sanitizer_aligned_alloc(size_t alignment, size_t size); 68 void * __sanitizer___libc_memalign(size_t alignment, size_t size); 69 void * __sanitizer_valloc(size_t size); 70 void * __sanitizer_pvalloc(size_t size); 77 void * __sanitizer_calloc(size_t nmemb, size_t size); [all...] |
msan_interface.h | 23 void __msan_set_origin(const volatile void *a, size_t size, uint32_t origin); 40 void __msan_unpoison(const volatile void *a, size_t size); 49 void __msan_poison(const volatile void *a, size_t size); 54 size_t size); 58 intptr_t __msan_test_shadow(const volatile void *x, size_t size); 62 void __msan_check_mem_is_initialized(const volatile void *x, size_t size); 78 void __msan_print_shadow(const volatile void *x, size_t size); 82 void __msan_dump_shadow(const volatile void *x, size_t size); 89 void __msan_allocated_memory(const volatile void* data, size_t size); 92 void __sanitizer_dtor_callback(const volatile void* data, size_t size); [all...] |
/src/sys/external/bsd/sljit/dist/sljit_src/ |
sljitExecAllocator.c | 43 header contains the size of the previous and the next block. These sizes 45 Block size: 46 0 - The block is a free_block, with a different size member. 48 n - The block is used at the moment, and the value contains its size. 49 Previous block size: 51 n - The size of the previous block. 53 Using these size values we can go forward or backward on the block chain. 76 * the size is always divisible by CHUNK_SIZE 86 static SLJIT_INLINE void* alloc_chunk(sljit_uw size) 88 return VirtualAlloc(NULL, size, MEM_COMMIT | MEM_RESERVE, PAGE_EXECUTE_READWRITE) 147 sljit_uw size; member in struct:block_header 155 sljit_uw size; member in struct:free_block [all...] |
/src/tests/lib/libc/db/ |
h_lfsr.c | 83 key.size = (len & 0xff) + 1; 85 memset(kb, c, key.size); 86 val.size = (next(&len) & 0xff) + 1; 90 key.size, val.size, c); 94 key.size, val.size, c); 97 key.size, val.size, c); 105 key.size = (len & 0xff) + 1 [all...] |
/src/sys/arch/macppc/stand/ofwboot/ |
alloc.c | 87 * Each block actually has ALIGN(struct ml) + ALIGN(size) bytes allocated 91 * allocated or unallocated: holds size of user-data part of block. 98 * ALIGN(data size) - 1) 103 * However, note that ALIGN(sizeof(struct ml)) + ALIGN(data size) must 112 unsigned size; member in struct:ml 122 alloc(size_t size) 126 unsigned bestsize = 0xffffffff; /* greater than any real size */ 132 printf("alloc(%zu)", size); 139 size = ALIGN(size) + OVERHEAD [all...] |
/src/sys/arch/shark/stand/ofwboot/ |
alloc.c | 88 * Each block actually has ALIGN(struct ml) + ALIGN(size) bytes allocated 92 * allocated or unallocated: holds size of user-data part of block. 99 * ALIGN(data size) - 1) 104 * However, note that ALIGN(sizeof(struct ml)) + ALIGN(data size) must 113 unsigned size; member in struct:ml 123 alloc(size_t size) 127 unsigned bestsize = 0xffffffff; /* greater than any real size */ 133 printf("alloc(%zu)", size); 140 size = ALIGN(size) + OVERHEAD [all...] |
/src/sys/arch/sparc/stand/ofwboot/ |
alloc.c | 88 * Each block actually has ALIGN(struct ml) + ALIGN(size) bytes allocated 92 * allocated or unallocated: holds size of user-data part of block. 99 * ALIGN(data size) - 1) 104 * However, note that ALIGN(sizeof(struct ml)) + ALIGN(data size) must 113 unsigned size; member in struct:ml 123 alloc(size_t size) 127 unsigned bestsize = 0xffffffff; /* greater than any real size */ 133 printf("alloc(%zu)", size); 140 size = ALIGN(size) + OVERHEAD [all...] |
/src/sys/arch/amd64/include/ |
rbus_machdep.h | 33 #define md_space_map(bt, physaddr, size, flags, bshp) \ 34 _x86_memio_map((bt), (physaddr), (size), (flags), (bshp)) 36 #define md_space_unmap(bt, bsh, size, adrp) \ 37 _x86_memio_unmap((bt), (bsh), (size), (adrp))
|