Searched refs:size (Results 76 - 100 of 6422) sorted by relevance

1234567891011>>

/freebsd-11.0-release/sys/dev/ncr/
H A Dlocate.pl30 my ($label, $size) = /ncrcmd\s+(\S+)\s+\[([^]]+)/;
31 $size = eval($size);
34 if ($ofs + $size > $errpos) {
39 $ofs += $size;
/freebsd-11.0-release/sbin/hastd/
H A Debuf.h39 struct ebuf *ebuf_alloc(size_t size);
42 int ebuf_add_head(struct ebuf *eb, const void *data, size_t size);
43 int ebuf_add_tail(struct ebuf *eb, const void *data, size_t size);
45 void ebuf_del_head(struct ebuf *eb, size_t size);
46 void ebuf_del_tail(struct ebuf *eb, size_t size);
/freebsd-11.0-release/sys/contrib/ncsw/etc/
H A Dmemcpy.c104 void * MemCpy32(void* pDst,void* pSrc, uint32_t size) argument
121 while((PTR_TO_UINT(p_Src8) & 3) && size) /* (pSrc mod 4) > 0 and size > 0 */
124 size--;
128 while((PTR_TO_UINT(p_Dst8) & 3) && size) /* (pDst mod 4) > 0 and size > 0 */
131 size--;
144 while (size >> 2) /* size >= 4 */
147 size
178 IO2IOCpy32(void* pDst,void* pSrc, uint32_t size) argument
257 Mem2IOCpy32(void* pDst,void* pSrc, uint32_t size) argument
335 IO2MemCpy32(void* pDst,void* pSrc, uint32_t size) argument
414 MemCpy64(void* pDst,void* pSrc, uint32_t size) argument
488 MemSet32(void* pDst, uint8_t val, uint32_t size) argument
524 IOMemSet32(void* pDst, uint8_t val, uint32_t size) argument
565 MemSet64(void* pDst, uint8_t val, uint32_t size) argument
603 MemDisp(uint8_t *p, int size) argument
[all...]
/freebsd-11.0-release/contrib/libcxxrt/
H A Dmemory.cc84 void* operator new(size_t size) BADALLOC
86 if (0 == size)
88 size = 1;
90 void * mem = malloc(size);
102 mem = malloc(size);
109 void* operator new(size_t size, const std::nothrow_t &) NOEXCEPT
112 return :: operator new(size);
129 void * operator new[](size_t size) BADALLOC
131 return ::operator new(size);
136 void * operator new[](size_t size, cons
[all...]
/freebsd-11.0-release/contrib/compiler-rt/lib/asan/
H A Dasan_malloc_mac.cc29 #define COMMON_MALLOC_MEMALIGN(alignment, size) \
31 void *p = asan_memalign(alignment, size, &stack, FROM_MALLOC)
32 #define COMMON_MALLOC_MALLOC(size) \
34 void *p = asan_malloc(size, &stack)
35 #define COMMON_MALLOC_REALLOC(ptr, size) \
37 void *p = asan_realloc(ptr, size, &stack);
38 #define COMMON_MALLOC_CALLOC(count, size) \
40 void *p = asan_calloc(count, size, &stack);
41 #define COMMON_MALLOC_VALLOC(size) \
43 void *p = asan_memalign(GetPageSizeCached(), size,
[all...]
H A Dasan_malloc_win.cc57 void *malloc(size_t size) { argument
59 return asan_malloc(size, &stack);
63 void *_malloc_dbg(size_t size, int, const char *, int) { argument
64 return malloc(size);
68 void *calloc(size_t nmemb, size_t size) { argument
70 return asan_calloc(nmemb, size, &stack);
74 void *_calloc_dbg(size_t nmemb, size_t size, int, const char *, int) { argument
75 return calloc(nmemb, size);
79 void *_calloc_impl(size_t nmemb, size_t size, int *errno_tmp) { argument
80 return calloc(nmemb, size);
84 realloc(void *ptr, size_t size) argument
90 _realloc_dbg(void *ptr, size_t size, int) argument
99 const size_t size = n * elem_size; local
113 _expand(void *memblock, size_t size) argument
120 _expand_dbg(void *memblock, size_t size) argument
[all...]
H A Dasan_new_delete.cc42 return asan_memalign(0, size, &stack, type);
62 void *operator new(size_t size) { OPERATOR_NEW_BODY(FROM_NEW); } argument
64 void *operator new[](size_t size) { OPERATOR_NEW_BODY(FROM_NEW_BR); } argument
66 void *operator new(size_t size, std::nothrow_t const&) argument
69 void *operator new[](size_t size, std::nothrow_t const&) argument
73 INTERCEPTOR(void *, _Znwm, size_t size) {
76 INTERCEPTOR(void *, _Znam, size_t size) {
79 INTERCEPTOR(void *, _ZnwmRKSt9nothrow_t, size_t size, std::nothrow_t const&) {
82 INTERCEPTOR(void *, _ZnamRKSt9nothrow_t, size_t size, std::nothrow_t const&) {
109 void operator delete(void *ptr, size_t size) NOEXCEP
[all...]
H A Dasan_malloc_linux.cc51 INTERCEPTOR(void*, malloc, uptr size) { argument
53 return asan_malloc(size, &stack);
56 INTERCEPTOR(void*, calloc, uptr nmemb, uptr size) { argument
60 uptr size_in_words = ((nmemb * size) + kWordSize - 1) / kWordSize;
67 return asan_calloc(nmemb, size, &stack);
70 INTERCEPTOR(void*, realloc, void *ptr, uptr size) {
74 uptr copy_size = Min(size, kCallocPoolSize - offset);
75 void *new_ptr = asan_malloc(size, &stack);
79 return asan_realloc(ptr, size, &stack);
82 INTERCEPTOR(void*, memalign, uptr boundary, uptr size) {
[all...]
/freebsd-11.0-release/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/
H A Dzfs_debug.c47 int size = sizeof (zfs_dbgmsg_t) + strlen(zdm->zdm_msg); local
48 kmem_free(zdm, size);
49 zfs_dbgmsg_size -= size;
68 int size; local
73 size = vsnprintf(NULL, 0, fmt, adx);
80 zdm = kmem_alloc(sizeof (zfs_dbgmsg_t) + size, KM_SLEEP);
84 (void) vsnprintf(zdm->zdm_msg, size + 1, fmt, adx);
91 zfs_dbgmsg_size += sizeof (zfs_dbgmsg_t) + size;
94 size = sizeof (zfs_dbgmsg_t) + strlen(zdm->zdm_msg);
95 kmem_free(zdm, size);
[all...]
/freebsd-11.0-release/lib/libkiconv/
H A Dkiconv_sysctl.c41 size_t size; local
43 if (sysctlbyname("kern.iconv.drvlist", NULL, &size, NULL, 0) == -1)
45 if (size > 0) {
48 drivers = malloc(size);
51 if (sysctlbyname("kern.iconv.drvlist", drivers, &size, NULL, 0) == -1) {
67 size_t i, size; local
70 if (sysctlbyname("kern.iconv.cslist", NULL, &size, NULL, 0) == -1)
72 if (size > 0) {
73 csi = malloc(size);
76 if (sysctlbyname("kern.iconv.cslist", csi, &size, NUL
[all...]
/freebsd-11.0-release/sys/ddb/
H A Ddb_access.c57 db_get_value(db_addr_t addr, int size, bool is_signed) argument
63 if (db_read_bytes(addr, size, data) != 0) {
71 for (i = 0; i < size; i++)
73 for (i = size - 1; i >= 0; i--)
79 if (size < 4) {
80 if (is_signed && (value & db_extend[size]) != 0)
81 value |= db_extend[size];
87 db_put_value(db_addr_t addr, int size, db_expr_t value) argument
93 for (i = size - 1; i >= 0; i--)
95 for (i = 0; i < size;
[all...]
/freebsd-11.0-release/contrib/gcc/config/
H A Dhost-solaris.c36 sol_gt_pch_use_address (void *base, size_t size, int fd, size_t offset) argument
40 /* We're called with size == 0 if we're not planning to load a PCH
43 if (size == 0)
46 addr = mmap (base, size, PROT_READ | PROT_WRITE, MAP_PRIVATE,
59 munmap (addr, size);
62 for (i = 0; i < size; i += page_size)
69 if (i >= size)
70 addr = mmap (base, size,
/freebsd-11.0-release/cddl/contrib/opensolaris/tools/ctf/common/
H A Dmemory.c48 xmalloc(size_t size) argument
52 if ((mem = malloc(size)) == NULL)
59 xcalloc(size_t size) argument
63 mem = xmalloc(size);
64 bzero(mem, size);
95 xrealloc(void *ptr, size_t size) argument
99 if ((mem = realloc(ptr, size)) == NULL)
/freebsd-11.0-release/contrib/gcclibs/libiberty/
H A Dxmalloc.c32 @deftypefn Replacement void* xrealloc (void *@var{ptr}, size_t @var{size})
117 xmalloc_failed (size_t size) argument
130 (unsigned long) size, (unsigned long) allocated);
135 (unsigned long) size);
141 xmalloc (size_t size) argument
145 if (size == 0)
146 size = 1;
147 newmem = malloc (size);
149 xmalloc_failed (size);
170 xrealloc (PTR oldmem, size_t size) argument
[all...]
/freebsd-11.0-release/contrib/binutils/libiberty/
H A Dxmalloc.c32 @deftypefn Replacement void* xrealloc (void *@var{ptr}, size_t @var{size})
117 xmalloc_failed (size_t size) argument
130 (unsigned long) size, (unsigned long) allocated);
135 (unsigned long) size);
141 xmalloc (size_t size) argument
145 if (size == 0)
146 size = 1;
147 newmem = malloc (size);
149 xmalloc_failed (size);
170 xrealloc (PTR oldmem, size_t size) argument
[all...]
/freebsd-11.0-release/contrib/gperf/src/
H A Dhash-table.cc38 /* We make the size of the hash table a power of 2. This allows for two
43 Hash_Table::Hash_Table (unsigned int size, bool ignore_length) argument
48 size = size * size_factor;
50 /* Find smallest power of 2 that is >= size. */
52 if ((size >> 16) > 0)
54 size = size >> 16;
57 if ((size >> 8) > 0)
59 size
[all...]
/freebsd-11.0-release/contrib/compiler-rt/lib/sanitizer_common/
H A Dsanitizer_persistent_allocator.h26 void *alloc(uptr size);
29 void *tryAlloc(uptr size);
35 inline void *PersistentAllocator::tryAlloc(uptr size) { argument
40 if (cmp == 0 || cmp + size > end) return nullptr;
41 if (atomic_compare_exchange_weak(&region_pos, &cmp, cmp + size,
47 inline void *PersistentAllocator::alloc(uptr size) { argument
49 void *s = tryAlloc(size);
54 s = tryAlloc(size);
58 if (allocsz < size) allocsz = size;
[all...]
/freebsd-11.0-release/contrib/groff/src/libs/libgroff/
H A Dputenv.c53 SIZE_T size; local
59 size = strlen(string);
61 if (!strncmp(*ep, string, size) && (*ep)[size] == '=')
73 size = 0;
79 ++size;
84 char **new_environ = (char **) malloc((size + 2) * sizeof(char *));
87 (void) memcpy((PTR) new_environ, (PTR) environ, size * sizeof(char *));
88 new_environ[size] = (char *) string;
89 new_environ[size
[all...]
/freebsd-11.0-release/contrib/jemalloc/src/
H A Dchunk_mmap.c7 chunk_alloc_mmap_slow(size_t size, size_t alignment, bool *zero, bool *commit) argument
12 alloc_size = size + alignment - PAGE;
14 if (alloc_size < size)
24 ret = pages_trim(pages, alloc_size, leadsize, size, commit);
33 chunk_alloc_mmap(void *new_addr, size_t size, size_t alignment, bool *zero, argument
55 ret = pages_map(new_addr, size, commit);
61 pages_unmap(ret, size);
62 return (chunk_alloc_mmap_slow(size, alignment, zero, commit));
71 chunk_dalloc_mmap(void *chunk, size_t size) argument
75 pages_unmap(chunk, size);
[all...]
H A Dpages.c21 pages_map(void *addr, size_t size, bool *commit) argument
25 assert(size != 0);
35 ret = VirtualAlloc(addr, size, MEM_RESERVE | (*commit ? MEM_COMMIT : 0),
45 ret = mmap(addr, size, prot, mmap_flags, -1, 0);
55 pages_unmap(ret, size);
65 pages_unmap(void *addr, size_t size) argument
71 if (munmap(addr, size) == -1)
90 pages_trim(void *addr, size_t alloc_size, size_t leadsize, size_t size, argument
95 assert(alloc_size >= leadsize + size);
101 new_addr = pages_map(ret, size, commi
122 pages_commit_impl(void *addr, size_t size, bool commit) argument
152 pages_commit(void *addr, size_t size) argument
159 pages_decommit(void *addr, size_t size) argument
166 pages_purge(void *addr, size_t size) argument
[all...]
/freebsd-11.0-release/sys/dev/drm/
H A Ddrm_mm.h47 unsigned long size; member in struct:drm_mm_node
64 unsigned long size,
68 unsigned long size,
71 return drm_mm_get_block_generic(parent, size, alignment, 0);
74 unsigned long size,
77 return drm_mm_get_block_generic(parent, size, alignment, 1);
81 unsigned long size,
85 unsigned long size);
90 unsigned long size);
92 unsigned long size, in
67 drm_mm_get_block(struct drm_mm_node *parent, unsigned long size, unsigned alignment) argument
73 drm_mm_get_block_atomic(struct drm_mm_node *parent, unsigned long size, unsigned alignment) argument
[all...]
/freebsd-11.0-release/usr.bin/grep/regex/
H A Dxmalloc.h14 void *xmalloc_impl(size_t size, const char *file, int line, const char *func);
15 void *xcalloc_impl(size_t nmemb, size_t size, const char *file, int line,
48 #define xmalloc(size) xmalloc_impl(size, __FILE__, __LINE__, \
50 #define xcalloc(nmemb, size) xcalloc_impl(nmemb, size, __FILE__, __LINE__, \
69 #define xmalloc(size) malloc(size)
70 #define xcalloc(nmemb, size) calloc(nmemb, size)
[all...]
/freebsd-11.0-release/contrib/compiler-rt/lib/tsan/rtl/
H A Dtsan_new_delete.cc24 DECLARE_REAL(void *, malloc, uptr size)
33 return __libc_malloc(size); \
36 SCOPED_INTERCEPTOR_RAW(mangled_name, size); \
37 p = user_alloc(thr, pc, size); \
39 invoke_malloc_hook(p, size); \
43 void *operator new(__sanitizer::uptr size);
44 void *operator new(__sanitizer::uptr size) { argument
49 void *operator new[](__sanitizer::uptr size);
50 void *operator new[](__sanitizer::uptr size) { argument
55 void *operator new(__sanitizer::uptr size, st
56 operator new(__sanitizer::uptr size, std::nothrow_t const&) argument
62 operator new[](__sanitizer::uptr size, std::nothrow_t const&) argument
[all...]
/freebsd-11.0-release/crypto/heimdal/lib/krb5/
H A Dstore_mem.c39 size_t size; member in struct:mem_storage
44 mem_fetch(krb5_storage *sp, void *data, size_t size) argument
47 if(size > (size_t)(s->base + s->size - s->ptr))
48 size = s->base + s->size - s->ptr;
49 memmove(data, s->ptr, size);
50 sp->seek(sp, size, SEEK_CUR);
51 return size;
55 mem_store(krb5_storage *sp, const void *data, size_t size) argument
66 mem_no_store(krb5_storage *sp, const void *data, size_t size) argument
[all...]
/freebsd-11.0-release/contrib/ntp/lib/isc/
H A Dstring.c99 isc_string_copy(char *target, size_t size, const char *source) { argument
100 REQUIRE(size > 0U);
102 if (strlcpy(target, source, size) >= size) {
103 memset(target, ISC_STRING_MAGIC, size);
107 ENSURE(strlen(target) < size);
113 isc_string_copy_truncate(char *target, size_t size, const char *source) { argument
114 REQUIRE(size > 0U);
116 strlcpy(target, source, size);
118 ENSURE(strlen(target) < size);
122 isc_string_append(char *target, size_t size, const char *source) argument
137 isc_string_append_truncate(char *target, size_t size, const char *source) argument
147 isc_string_printf(char *target, size_t size, const char *format, ...) argument
168 isc_string_printf_truncate(char *target, size_t size, const char *format, ...) argument
220 isc_string_strlcpy(char *dst, const char *src, size_t size) argument
246 isc_string_strlcat(char *dst, const char *src, size_t size) argument
[all...]

Completed in 139 milliseconds

1234567891011>>