Home
last modified time | relevance | path

Searched refs:size (Results 1 – 25 of 6413) sorted by relevance

12345678910>>...257

/freebsd/contrib/processor-trace/libipt/src/
H A Dpt_packet_decoder.c215 static inline int pkt_to_user(struct pt_packet *upkt, size_t size, in pkt_to_user() argument
225 if (sizeof(*pkt) < size) { in pkt_to_user()
226 memset(upkt + sizeof(*pkt), 0, size - sizeof(*pkt)); in pkt_to_user()
228 size = sizeof(*pkt); in pkt_to_user()
231 memcpy(upkt, pkt, size); in pkt_to_user()
241 int errcode, size; in pt_pkt_next() local
258 size = dfun->packet(decoder, ppkt); in pt_pkt_next()
259 if (size < 0) in pt_pkt_next()
260 return size; in pt_pkt_next()
266 decoder->pos += size; in pt_pkt_next()
[all …]
/freebsd/contrib/llvm-project/compiler-rt/lib/asan_abi/
H A Dasan_abi_shim.cpp45 void *__asan_memcpy(void *dst, const void *src, uptr size) { in __asan_memcpy() argument
46 return __asan_abi_memcpy(dst, src, size); in __asan_memcpy()
87 void __asan_report_load_n(uptr addr, uptr size) { in __asan_report_load_n() argument
88 __asan_abi_report_load_n((void *)addr, size, true); in __asan_report_load_n()
105 void __asan_report_store_n(uptr addr, uptr size) { in __asan_report_store_n() argument
106 __asan_abi_report_store_n((void *)addr, size, true); in __asan_report_store_n()
125 void __asan_report_exp_load_n(uptr addr, uptr size, u32 exp) { in __asan_report_exp_load_n() argument
126 __asan_abi_report_exp_load_n((void *)addr, size, exp, true); in __asan_report_exp_load_n()
143 void __asan_report_exp_store_n(uptr addr, uptr size, u32 exp) { in __asan_report_exp_store_n() argument
144 __asan_abi_report_exp_store_n((void *)addr, size, exp, true); in __asan_report_exp_store_n()
[all …]
/freebsd/sys/compat/linuxkpi/common/include/linux/
H A Dslab.h50 #define kvzalloc(size, flags) kvmalloc(size, (flags) | __GFP_ZERO) argument
51 #define kvcalloc(n, size, flags) kvmalloc_array(n, size, (flags) | __GFP_ZERO) argument
52 #define kzalloc(size, flags) kmalloc(size, (flags) | __GFP_ZERO) argument
53 #define kzalloc_node(size, flags, node) kmalloc_node(size, (flags) | __GFP_ZERO, node) argument
56 #define vzalloc(size) __vmalloc(size, GFP_KERNEL | __GFP_NOWARN | __GFP_ZERO, 0) argument
59 #define vmalloc_node(size, node) __vmalloc_node(size, GFP_KERNEL, node) argument
60 #define vmalloc_user(size) __vmalloc(size, GFP_KERNEL | __GFP_ZERO, 0) argument
61 #define vmalloc(size) __vmalloc(size, GFP_KERNEL, 0) argument
97 size_t size, size_t align, unsigned flags, linux_kmem_ctor_t *ctor);
129 kmalloc(size_t size, gfp_t flags) in kmalloc() argument
[all …]
H A Dbitmap.h34 bitmap_zero(unsigned long *addr, const unsigned int size) in bitmap_zero() argument
36 memset(addr, 0, BITS_TO_LONGS(size) * sizeof(long)); in bitmap_zero()
40 bitmap_fill(unsigned long *addr, const unsigned int size) in bitmap_fill() argument
42 const unsigned int tail = size & (BITS_PER_LONG - 1); in bitmap_fill()
44 memset(addr, 0xff, BIT_WORD(size) * sizeof(long)); in bitmap_fill()
47 addr[BIT_WORD(size)] = BITMAP_LAST_WORD_MASK(tail); in bitmap_fill()
51 bitmap_full(unsigned long *addr, const unsigned int size) in bitmap_full() argument
53 const unsigned int end = BIT_WORD(size); in bitmap_full()
54 const unsigned int tail = size & (BITS_PER_LONG - 1); in bitmap_full()
72 bitmap_empty(unsigned long *addr, const unsigned int size) in bitmap_empty() argument
[all …]
/freebsd/sys/contrib/ncsw/etc/
H A Dmemcpy.c39 void * MemCpy8(void* pDst, void* pSrc, uint32_t size) in MemCpy8() argument
43 for(i = 0; i < size; ++i) in MemCpy8()
49 void * MemSet8(void* pDst, int c, uint32_t size) in MemSet8() argument
53 for(i = 0; i < size; ++i) in MemSet8()
59 void * MemCpy32(void* pDst,void* pSrc, uint32_t size) in MemCpy32() argument
76 while((PTR_TO_UINT(p_Src8) & 3) && size) /* (pSrc mod 4) > 0 and size > 0 */ in MemCpy32()
79 size--; in MemCpy32()
83 while((PTR_TO_UINT(p_Dst8) & 3) && size) /* (pDst mod 4) > 0 and size > 0 */ in MemCpy32()
86 size--; in MemCpy32()
99 while (size >> 2) /* size >= 4 */ in MemCpy32()
[all …]
/freebsd/sys/contrib/device-tree/src/arm/aspeed/
H A Daspeed-bmc-facebook-cmm.dts334 #size-cells = <0>;
341 #size-cells = <0>;
347 #size-cells = <0>;
353 #size-cells = <0>;
358 #size-cells = <0>;
363 #size-cells = <0>;
368 #size-cells = <0>;
373 #size-cells = <0>;
378 #size-cells = <0>;
383 #size
[all...]
H A Daspeed-bmc-facebook-fuji.dts219 data-size = <16>;
239 #size-cells = <0>;
245 #size-cells = <0>;
252 #size-cells = <0>;
259 #size-cells = <0>;
265 #size-cells = <0>;
271 #size-cells = <0>;
277 #size-cells = <0>;
283 #size-cells = <0>;
289 #size
[all...]
H A Daspeed-bmc-facebook-minipack.dts249 #size-cells = <1>;
299 #size-cells = <1>;
350 #size-cells = <0>;
356 #size-cells = <0>;
362 #size-cells = <0>;
368 #size-cells = <0>;
374 #size-cells = <0>;
380 #size-cells = <0>;
386 #size-cells = <0>;
392 #size
[all...]
/freebsd/contrib/jemalloc/src/
H A Djemalloc_cpp.cpp27 void *operator new(std::size_t size);
28 void *operator new[](std::size_t size);
29 void *operator new(std::size_t size, const std::nothrow_t &) noexcept;
30 void *operator new[](std::size_t size, const std::nothrow_t &) noexcept;
38 void operator delete(void *ptr, std::size_t size) noexcept;
39 void operator delete[](void *ptr, std::size_t size) noexcept;
44 void *operator new(std::size_t size, std::align_val_t);
45 void *operator new(std::size_t size, std::align_val_t, const std::nothrow_t &) noexcept;
46 void *operator new[](std::size_t size, std::align_val_t);
47 void *operator new[](std::size_t size, std::align_val_t, const std::nothrow_t &) noexcept;
[all …]
H A Dpages.c30 /* Actual operating system page size, detected during bootstrap, <= PAGE. */
67 size_t size = PAGE; in os_pages_map()
69 void * addr = mmap(NULL, size, PROT_READ|PROT_WRITE, in os_pages_map()
80 memset(addr, 'A', size); in os_pages_map()
81 if (madvise(addr, size, MADV_DONTNEED) == 0) { in os_pages_map()
82 works = memchr(addr, 'A', size) == NULL; in os_pages_map()
91 if (munmap(addr, size) != 0) { in os_pages_map()
109 static void os_pages_unmap(void *addr, size_t size); in os_pages_trim()
114 os_pages_map(void *addr, size_t size, size_t alignment, bool *commit) { in os_pages_trim()
116 assert(ALIGNMENT_CEILING(size, os_pag in os_pages_trim()
56 os_pages_map(void * addr,size_t size,size_t alignment,bool * commit) os_pages_map() argument
101 os_pages_trim(void * addr,size_t alloc_size,size_t leadsize,size_t size,bool * commit) os_pages_trim() argument
130 os_pages_unmap(void * addr,size_t size) os_pages_unmap() argument
157 pages_map_slow(size_t size,size_t alignment,bool * commit) pages_map_slow() argument
181 pages_map(void * addr,size_t size,size_t alignment,bool * commit) pages_map() argument
243 pages_unmap(void * addr,size_t size) pages_unmap() argument
251 pages_commit_impl(void * addr,size_t size,bool commit) pages_commit_impl() argument
284 pages_commit(void * addr,size_t size) pages_commit() argument
289 pages_decommit(void * addr,size_t size) pages_decommit() argument
294 pages_purge_lazy(void * addr,size_t size) pages_purge_lazy() argument
329 pages_purge_forced(void * addr,size_t size) pages_purge_forced() argument
349 pages_huge_impl(void * addr,size_t size,bool aligned) pages_huge_impl() argument
362 pages_huge(void * addr,size_t size) pages_huge() argument
367 pages_huge_unaligned(void * addr,size_t size) pages_huge_unaligned() argument
372 pages_nohuge_impl(void * addr,size_t size,bool aligned) pages_nohuge_impl() argument
386 pages_nohuge(void * addr,size_t size) pages_nohuge() argument
391 pages_nohuge_unaligned(void * addr,size_t size) pages_nohuge_unaligned() argument
396 pages_dontdump(void * addr,size_t size) pages_dontdump() argument
407 pages_dodump(void * addr,size_t size) pages_dodump() argument
537 pages_set_thp_state(void * ptr,size_t size) pages_set_thp_state() argument
[all...]
/freebsd/contrib/netbsd-tests/lib/libc/db/
H A Dh_lfsr.c83 key.size = (len & 0xff) + 1; in main()
85 memset(kb, c, key.size); in main()
86 val.size = (next(&len) & 0xff) + 1; in main()
90 key.size, val.size, c); in main()
94 key.size, val.size, c); in main()
97 key.size, val.size, c); in main()
105 key.size = (len & 0xff) + 1; in main()
107 memset(kb, c, key.size); in main()
112 key.size, val.size, c); in main()
116 key.size, val.size, c); in main()
[all …]
/freebsd/contrib/llvm-project/compiler-rt/lib/memprof/
H A Dmemprof_interceptors_memintrinsics.cpp26 #define MEMPROF_MEMCPY_IMPL(to, from, size) \ argument
29 return internal_memcpy(to, from, size); \
31 return REAL(memcpy)(to, from, size); \
34 MEMPROF_READ_RANGE(from, size); \
35 MEMPROF_WRITE_RANGE(to, size); \
36 return REAL(memcpy)(to, from, size); \
40 #define MEMPROF_MEMSET_IMPL(block, c, size) \ argument
43 return internal_memset(block, c, size); \
45 return REAL(memset)(block, c, size); \
48 MEMPROF_WRITE_RANGE(block, size); \
[all …]
/freebsd/sys/dev/qlnx/qlnxe/
H A Decore_iro.h34 #define YSTORM_FLOW_CONTROL_MODE_SIZE (IRO[0].size)
37 #define TSTORM_PORT_STAT_SIZE (IRO[1].size)
40 #define TSTORM_LL2_PORT_STAT_SIZE (IRO[2].size)
43 #define USTORM_VF_PF_CHANNEL_READY_SIZE (IRO[3].size)
46 #define USTORM_FLR_FINAL_ACK_SIZE (IRO[4].size)
49 #define USTORM_EQE_CONS_SIZE (IRO[5].size)
52 #define USTORM_ETH_QUEUE_ZONE_SIZE (IRO[6].size)
55 #define USTORM_COMMON_QUEUE_CONS_SIZE (IRO[7].size)
58 #define XSTORM_INTEG_TEST_DATA_SIZE (IRO[8].size)
61 #define YSTORM_INTEG_TEST_DATA_SIZE (IRO[9].size)
[all …]
/freebsd/contrib/llvm-project/compiler-rt/lib/dfsan/
H A Ddfsan_allocator.cpp32 void OnMap(uptr p, uptr size) const { dfsan_set_label(0, (void *)p, size); } in OnMap()
33 void OnMapSecondary(uptr p, uptr size, uptr user_begin, in OnMapSecondary()
35 OnMap(p, size); in OnMapSecondary()
37 void OnUnmap(uptr p, uptr size) const { dfsan_set_label(0, (void *)p, size); } in OnUnmap()
91 static void *DFsanAllocate(uptr size, uptr alignment, bool zeroise) { in DFsanAllocate() argument
92 if (size > max_malloc_size) { in DFsanAllocate()
95 size); in DFsanAllocate()
99 ReportAllocationSizeTooBig(size, max_malloc_size, &stack); in DFsanAllocate()
111 allocated = allocator.Allocate(cache, size, alignment); in DFsanAllocate()
115 allocated = allocator.Allocate(cache, size, alignment); in DFsanAllocate()
[all …]
/freebsd/sys/kern/
H A Dkern_malloc.c266 u_long size; in sysctl_kmem_map_size() local
268 size = uma_size(); in sysctl_kmem_map_size()
269 return (sysctl_handle_long(oidp, &size, 0, req)); in sysctl_kmem_map_size()
275 u_long size, limit; in sysctl_kmem_map_free() local
278 size = uma_size(); in sysctl_kmem_map_free()
280 if (size > limit) in sysctl_kmem_map_free()
281 size = 0; in sysctl_kmem_map_free()
283 size = limit - size; in sysctl_kmem_map_free()
284 return (sysctl_handle_long(oidp, &size, 0, req)); in sysctl_kmem_map_free()
388 malloc_type_zone_allocated(struct malloc_type *mtp, unsigned long size, in malloc_type_zone_allocated() argument
[all …]
/freebsd/contrib/llvm-project/compiler-rt/lib/hwasan/
H A Dhwasan_allocation_functions.cpp26 static void OnAllocate(const void *ptr, uptr size) { in OnAllocate()
30 __lsan_register_root_region(ptr, size); in OnAllocate()
33 static void OnFree(const void *ptr, uptr size) { in OnFree()
35 __lsan_unregister_root_region(ptr, size); in OnFree()
43 int __sanitizer_posix_memalign(void **memptr, uptr alignment, uptr size) { in __sanitizer_posix_memalign() argument
46 int res = hwasan_posix_memalign(memptr, alignment, size, &stack); in __sanitizer_posix_memalign()
51 void *__sanitizer_memalign(uptr alignment, uptr size) { in __sanitizer_memalign() argument
53 return hwasan_memalign(alignment, size, &stack); in __sanitizer_memalign()
57 void *__sanitizer_aligned_alloc(uptr alignment, uptr size) { in __sanitizer_aligned_alloc() argument
59 return hwasan_aligned_alloc(alignment, size, &stack); in __sanitizer_aligned_alloc()
[all …]
/freebsd/crypto/krb5/src/lib/gssapi/generic/
H A Dgssapi_alloc.h25 gssalloc_malloc(size_t size) in gssalloc_malloc() argument
27 return HeapAlloc(GetProcessHeap(), 0, size); in gssalloc_malloc()
31 gssalloc_calloc(size_t count, size_t size) in gssalloc_calloc() argument
33 return HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, count * size); in gssalloc_calloc()
37 gssalloc_realloc(void *value, size_t size) in gssalloc_realloc() argument
41 return HeapAlloc(GetProcessHeap(), 0, size); in gssalloc_realloc()
42 return HeapReAlloc(GetProcessHeap(), 0, value, size); in gssalloc_realloc()
63 gssalloc_malloc(size_t size) in gssalloc_malloc() argument
65 char *p = calloc(size + 8, 1); in gssalloc_malloc()
72 gssalloc_calloc(size_t count, size_t size) in gssalloc_calloc() argument
[all …]
/freebsd/contrib/llvm-project/compiler-rt/lib/tsan/rtl/
H A Dtsan_malloc_mac.cpp28 #define COMMON_MALLOC_MEMALIGN(alignment, size) \ argument
30 user_memalign(cur_thread(), StackTrace::GetCurrentPc(), alignment, size)
31 #define COMMON_MALLOC_MALLOC(size) \ argument
32 if (in_symbolizer()) return InternalAlloc(size); \
35 SCOPED_INTERCEPTOR_RAW(malloc, size); \
36 p = user_alloc(thr, pc, size); \
38 invoke_malloc_hook(p, size)
39 #define COMMON_MALLOC_REALLOC(ptr, size) \ argument
40 if (in_symbolizer()) return InternalRealloc(ptr, size); \
45 SCOPED_INTERCEPTOR_RAW(realloc, ptr, size); \
[all …]
/freebsd/lib/libc/stdlib/
H A Dheapsort.c56 #define SWAP(a, b, count, size, tmp) { \ argument
57 count = size; \
66 #define COPY(a, b, count, size, tmp1, tmp2) { \ argument
67 count = size; \
82 #define CREATE(initval, nmemb, par_i, child_i, par, child, size, count, tmp) { \ argument
85 child = base + child_i * size; \
86 if (child_i < nmemb && COMPAR(child, child + size) < 0) { \
87 child += size; \
90 par = base + par_i * size; \
93 SWAP(par, child, count, size, tmp); \
[all …]
/freebsd/contrib/arm-optimized-routines/string/bench/
H A Dmemcpy.c36 typedef struct { uint16_t size; uint16_t freq; } freq_data_t; member
109 int i, j, freq, size, n; in init_copy_distribution() local
112 for (j = 0, size = size_freq[i].size; j < freq; j++) in init_copy_distribution()
113 size_arr[n++] = size; in init_copy_distribution()
117 for (j = 0, size = src_align_freq[i].align; j < freq; j++) in init_copy_distribution()
118 src_align_arr[n++] = size - 1; in init_copy_distribution()
122 for (j = 0, size = dst_align_freq[i].align; j < freq; j++) in init_copy_distribution()
123 dst_align_arr[n++] = size - 1; in init_copy_distribution()
151 for (int size = MIN_SIZE; size <= MAX_SIZE; size *= 2) in memcpy_random() local
153 uint64_t copy_size = init_copies (size) * ITERS; in memcpy_random()
[all …]
/freebsd/sys/contrib/device-tree/src/arm64/amazon/
H A Dalpine-v3.dtsi17 #size-cells = <2>;
21 #size-cells = <0>;
28 d-cache-size = <0x8000>;
29 d-cache-line-size = <64>;
31 i-cache-size = <0xc000>;
32 i-cache-line-size = <64>;
42 d-cache-size = <0x8000>;
43 d-cache-line-size = <64>;
45 i-cache-size = <0xc000>;
46 i-cache-line-size = <64>;
[all …]
/freebsd/sys/contrib/device-tree/src/arm64/amd/
H A Damd-seattle-cpus.dtsi6 #size-cells = <0x0>;
49 i-cache-size = <0xC000>;
50 i-cache-line-size = <64>;
52 d-cache-size = <0x8000>;
53 d-cache-line-size = <64>;
65 i-cache-size = <0xC000>;
66 i-cache-line-size = <64>;
68 d-cache-size = <0x8000>;
69 d-cache-line-size = <64>;
80 i-cache-size = <0xC000>;
[all …]
/freebsd/sbin/hastd/
H A Dhast_compression.c44 allzeros(const void *data, size_t size) in allzeros() argument
50 PJDLOG_ASSERT((size % sizeof(*p)) == 0); in allzeros()
62 size >>= 3; /* divide by 8 */ in allzeros()
63 if ((p[0] | p[size >> 1] | p[size - 1]) != 0) in allzeros()
66 for (i = 0; i < size; i++) in allzeros()
74 uint32_t size; in hast_hole_compress() local
80 newbuf = malloc(sizeof(size)); in hast_hole_compress()
86 size = htole32((uint32_t)*sizep); in hast_hole_compress()
87 bcopy(&size, newbuf, sizeof(size)); in hast_hole_compress()
88 *sizep = sizeof(size); in hast_hole_compress()
[all …]
/freebsd/sys/contrib/device-tree/src/arm64/broadcom/
H A Dbcm2712.dtsi8 #size-cells = <2>;
45 #size-cells = <0>;
47 /* Source for L1 d/i cache-line-size, cache-sets, cache-size
49 * Source for L2 cache-line-size and cache-sets:
51 * and for cache-size:
59 d-cache-size = <0x10000>;
60 d-cache-line-size = <64>;
61 d-cache-sets = <256>; // 64KiB(size)/64(line-size)=1024ways/4-way set
62 i-cache-size = <0x10000>;
63 i-cache-line-size = <64>;
[all …]
/freebsd/contrib/llvm-project/compiler-rt/lib/nsan/
H A Dnsan_malloc_linux.cpp30 INTERCEPTOR(void *, aligned_alloc, uptr align, uptr size) { in INTERCEPTOR() argument
31 void *res = REAL(aligned_alloc)(align, size); in INTERCEPTOR()
33 __nsan_set_value_unknown(static_cast<u8 *>(res), size); in INTERCEPTOR()
37 INTERCEPTOR(void *, calloc, uptr nmemb, uptr size) { in INTERCEPTOR() argument
39 return DlsymAlloc::Callocate(nmemb, size); in INTERCEPTOR()
41 void *res = REAL(calloc)(nmemb, size); in INTERCEPTOR()
43 __nsan_set_value_unknown(static_cast<u8 *>(res), nmemb * size); in INTERCEPTOR()
53 INTERCEPTOR(void *, malloc, uptr size) { in INTERCEPTOR() argument
55 return DlsymAlloc::Allocate(size); in INTERCEPTOR()
56 void *res = REAL(malloc)(size); in INTERCEPTOR()
[all …]

12345678910>>...257