Home
last modified time | relevance | path

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

12345678910>>...265

/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/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/compat/linuxkpi/common/include/linux/
H A Dslab.h44 #define kmalloc(size, flags) lkpi_kmalloc(size, flags) argument
45 #define kvmalloc(size, flags) kmalloc(size, flags) argument
46 #define kvzalloc(size, flags) kmalloc(size, (flags) | __GFP_ZERO) argument
47 #define kvcalloc(n, size, flags) kvmalloc_array(n, size, (flags) | __GFP_ZERO) argument
48 #define kzalloc(size, flags) kmalloc(size, (flag argument
49 kzalloc_node(size,flags,node) global() argument
51 vzalloc(size) global() argument
54 vmalloc_node(size,node) global() argument
55 vmalloc_user(size) global() argument
56 vmalloc(size) global() argument
112 __kmalloc(size_t size,gfp_t flags) __kmalloc() argument
119 kmalloc_node(size_t size,gfp_t flags,int node) kmalloc_node() argument
126 kcalloc(size_t n,size_t size,gfp_t flags) kcalloc() argument
133 kcalloc_node(size_t n,size_t size,gfp_t flags,int node) kcalloc_node() argument
141 __vmalloc(size_t size,gfp_t flags,int other) __vmalloc() argument
147 __vmalloc_node(size_t size,gfp_t flags,int node) __vmalloc_node() argument
154 vmalloc_32(size_t size) vmalloc_32() argument
160 kmalloc_array(size_t n,size_t size,gfp_t flags) kmalloc_array() argument
166 kmalloc_array_node(size_t n,size_t size,gfp_t flags,int node) kmalloc_array_node() argument
173 kvmalloc_array(size_t n,size_t size,gfp_t flags) kvmalloc_array() argument
179 krealloc(void * ptr,size_t size,gfp_t flags) krealloc() argument
185 krealloc_array(void * ptr,size_t n,size_t size,gfp_t flags) krealloc_array() argument
241 kmalloc_size_roundup(size_t size) kmalloc_size_roundup() 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/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/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/jemalloc/src/
H A Dpages.c51 static void os_pages_unmap(void *addr, size_t size);
56 os_pages_map(void *addr, size_t size, size_t alignment, bool *commit) { in os_pages_map() argument
58 assert(ALIGNMENT_CEILING(size, os_page) == size); in os_pages_map()
59 assert(size != 0); in os_pages_map()
71 ret = VirtualAlloc(addr, size, MEM_RESERVE | (*commit ? MEM_COMMIT : 0), in os_pages_map()
81 ret = mmap(addr, size, prot, mmap_flags, -1, 0); in os_pages_map()
91 os_pages_unmap(ret, size); in os_pages_map()
101 os_pages_trim(void *addr, size_t alloc_size, size_t leadsize, size_t size, in os_pages_trim() argument
105 assert(alloc_size >= leadsize + size); in os_pages_trim()
108 void *new_addr = os_pages_map(ret, size, PAGE, commit); in os_pages_trim()
[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/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/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/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 …]
H A Dstrlen.c37 typedef struct { uint16_t size; uint16_t freq; } freq_data_t; member
74 int i, j, freq, size, n; in init_strlen_distribution() local
77 for (j = 0, size = strlen_len_freq[i].size; j < freq; j++) in init_strlen_distribution()
78 strlen_len_arr[n++] = size; in init_strlen_distribution()
82 for (j = 0, size = string_align_freq[i].align; j < freq; j++) in init_strlen_distribution()
83 strlen_align_arr[n++] = size; in init_strlen_distribution()
152 for (int size = 1; size <= 64; size *= 2) in strlen_small_aligned() local
154 memset (a, 'x', size); in strlen_small_aligned()
155 a[size - 1] = 0; in strlen_small_aligned()
161 printf ("%d%c: %5.2f ", size < 1024 ? size : size / 1024, in strlen_small_aligned()
[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 …]
/freebsd/sys/contrib/device-tree/src/arm/broadcom/
H A Dbcm2836.dtsi40 #size-cells = <0>;
43 /* Source for d/i-cache-line-size and d/i-cache-sets
47 * Source for d/i-cache-size
56 d-cache-size = <0x8000>;
57 d-cache-line-size = <64>;
58 d-cache-sets = <128>; // 32KiB(size)/64(line-size)=512ways/4-way set
59 i-cache-size = <0x8000>;
60 i-cache-line-size = <32>;
61 i-cache-sets = <512>; // 32KiB(size)/32(line-size)=1024ways/2-way set
70 d-cache-size = <0x8000>;
[all …]

12345678910>>...265