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

1234567891011>>

/freebsd-10-stable/sys/ofed/include/linux/
H A Dmm.h49 * needed for size bytes.
52 get_order(unsigned long size) argument
56 size = (size - 1) >> PAGE_SHIFT;
58 while (size) {
60 size >>= 1;
77 unsigned long addr, unsigned long pfn, unsigned long size,
82 vma->vm_len = size;
76 io_remap_pfn_range(struct vm_area_struct *vma, unsigned long addr, unsigned long pfn, unsigned long size, vm_memattr_t prot) argument
/freebsd-10-stable/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...]
H A Dbsearch.c33 @deftypefn Supplemental void* bsearch (const void *@var{key}, const void *@var{base}, size_t @var{nmemb}, size_t @var{size}, int (*@var{compar})(const void *, const void *))
37 The size of each member is specified by @var{size}. The array contents
71 size_t nmemb, register size_t size,
79 p = base + (lim >> 1) * size;
84 base = (const char *)p + size;
70 bsearch(register const void *key, const void *base0, size_t nmemb, register size_t size, register int (*compar)(const void *, const void *)) argument
/freebsd-10-stable/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...]
H A Dbsearch.c33 @deftypefn Supplemental void* bsearch (const void *@var{key}, const void *@var{base}, size_t @var{nmemb}, size_t @var{size}, int (*@var{compar})(const void *, const void *))
37 The size of each member is specified by @var{size}. The array contents
71 size_t nmemb, register size_t size,
79 p = base + (lim >> 1) * size;
84 base = (const char *)p + size;
70 bsearch(register const void *key, const void *base0, size_t nmemb, register size_t size, register int (*compar)(const void *, const void *)) argument
/freebsd-10-stable/contrib/jemalloc/src/
H A Dchunk_mmap.c7 static void *pages_map(void *addr, size_t size);
8 static void pages_unmap(void *addr, size_t size);
9 static void *chunk_alloc_mmap_slow(size_t size, size_t alignment,
15 pages_map(void *addr, size_t size) argument
19 assert(size != 0);
26 ret = VirtualAlloc(addr, size, MEM_COMMIT | MEM_RESERVE,
33 ret = mmap(addr, size, PROT_READ | PROT_WRITE, MAP_PRIVATE | MAP_ANON,
43 if (munmap(ret, size) == -1) {
61 pages_unmap(void *addr, size_t size) argument
67 if (munmap(addr, size)
86 pages_trim(void *addr, size_t alloc_size, size_t leadsize, size_t size) argument
143 chunk_alloc_mmap_slow(size_t size, size_t alignment, bool *zero) argument
167 chunk_alloc_mmap(size_t size, size_t alignment, bool *zero) argument
203 chunk_dealloc_mmap(void *chunk, size_t size) argument
[all...]
H A Dchunk.c31 size_t arena_maxclass; /* Max size class for arenas. */
37 extent_tree_t *chunks_ad, size_t size, size_t alignment, bool base,
40 extent_tree_t *chunks_ad, void *chunk, size_t size);
45 chunk_recycle(extent_tree_t *chunks_szad, extent_tree_t *chunks_ad, size_t size, argument
64 alloc_size = size + alignment - chunksize;
66 if (alloc_size < size)
69 key.size = alloc_size;
78 assert(node->size >= leadsize + size);
79 trailsize = node->size
145 chunk_alloc(size_t size, size_t alignment, bool base, bool *zero, dss_prec_t dss_prec) argument
213 chunk_record(extent_tree_t *chunks_szad, extent_tree_t *chunks_ad, void *chunk, size_t size) argument
301 chunk_unmap(void *chunk, size_t size) argument
315 chunk_dealloc(void *chunk, size_t size, bool unmap) argument
[all...]
/freebsd-10-stable/contrib/llvm/tools/lldb/source/Plugins/SymbolFile/DWARF/
H A DDWARFLocationDescription.cpp60 int size; local
85 case DW_OP_addr: size = address_size; break;
86 case DW_OP_const1u: size = 1; break;
87 case DW_OP_const1s: size = -1; break;
88 case DW_OP_const2u: size = 2; break;
89 case DW_OP_const2s: size = -2; break;
90 case DW_OP_const4u: size = 4; break;
91 case DW_OP_const4s: size = -4; break;
92 case DW_OP_const8u: size = 8; break;
93 case DW_OP_const8s: size
[all...]
/freebsd-10-stable/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-10-stable/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-10-stable/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-10-stable/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-10-stable/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-10-stable/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...]
/freebsd-10-stable/contrib/libc++/src/
H A Dvalarray.cpp21 valarray<size_t> __indices(__size_.size());
22 size_t __k = __size_.size() != 0;
23 for (size_t __i = 0; __i < __size_.size(); ++__i)
26 if (__1d_.size())
32 size_t __i = __indices.size() - 1;
39 for (size_t __j = __i + 1; __j != __indices.size(); ++__j)
/freebsd-10-stable/contrib/ofed/libmthca/src/
H A Dbuf.c48 static int ibv_dontfork_range(void *base, size_t size) argument
53 static int ibv_dofork_range(void *base, size_t size) argument
60 int mthca_alloc_buf(struct mthca_buf *buf, size_t size, int page_size) argument
64 ret = posix_memalign(&buf->buf, page_size, align(size, page_size));
68 ret = ibv_dontfork_range(buf->buf, size);
73 buf->length = size;
/freebsd-10-stable/contrib/xz/src/liblzma/check/
H A Dcrc64_fast.c30 lzma_crc64(const uint8_t *buf, size_t size, uint64_t crc)
38 if (size > 4) {
41 --size;
44 const uint8_t *const limit = buf + (size & ~(size_t)(3));
45 size &= (size_t)(3);
64 while (size-- != 0)
/freebsd-10-stable/sys/arm/xscale/ixp425/
H A Dixp425_mem.c69 uint32_t size, sdr_config; local
74 size = sdram_64bit[MCU_SDR_CONFIG_MCONF(sdr_config)];
76 size = sdram_other[MCU_SDR_CONFIG_MCONF(sdr_config)];
78 if (size == 0) {
80 size = 32 * 1024 * 1024;
83 return (size);
96 * be programmed to be the same size. We just assume
97 * it's done right and calculate 2x for the memory size.
/freebsd-10-stable/sys/dev/sound/midi/
H A Dmidiq.h40 #define MIDIQ_INIT(head, buf, size) do { \
42 (head).s=size; \
59 #define MIDIQ_ENQ(head, buf, size) do { \
64 MIN( (size), (head).s - (head).h) ), \
65 (size), (head).h, (head).t); \
66 MIDIQ_MOVE(&(head).b[(head).h], (buf), sizeof(*(head).b) * MIN((size), (head).s - (head).h)); \
67 if( (head).s - (head).h < (size) ) { \
69 printf("#2 %p %p bytes copied %jd\n", (head).b, (buf) + (head).s - (head).h, (intmax_t)sizeof(*(head).b) * ((size) - (head).s + (head).h) ); \
70 MIDIQ_MOVE((head).b, (buf) + (head).s - (head).h, sizeof(*(head).b) * ((size) - (head).s + (head).h) ); \
72 (head).h+=(size); \
[all...]
/freebsd-10-stable/libexec/rtld-elf/ia64/
H A Drtld_machdep.h62 #define round(size, align) \
63 (((size) + (align) - 1) & ~((align) - 1))
64 #define calculate_first_tls_offset(size, align) \
66 #define calculate_tls_offset(prev_offset, prev_size, size, align) \
68 #define calculate_tls_end(off, size) ((off) + (size))
/freebsd-10-stable/lib/libc/stdio/
H A Dfwrite.c49 * Write `count' objects (each size `size') from memory to the given file.
53 fwrite(const void * __restrict buf, size_t size, size_t count, FILE * __restrict fp) argument
60 * ANSI and SUSv2 require a return value of 0 if size or count are 0.
62 if ((count == 0) || (size == 0))
67 * at least one of {count, size} is at least 2^16, since if both
71 if (((count | size) > 0xFFFF) &&
72 (count > SIZE_MAX / size)) {
78 n = count * size;
90 * generally slow and since this occurs whenever size
[all...]
/freebsd-10-stable/cddl/contrib/opensolaris/lib/libnvpair/
H A Dnvpair_alloc_system.c34 nv_alloc_sys(nv_alloc_t *nva, size_t size) argument
36 return (malloc(size));
41 nv_free_sys(nv_alloc_t *nva, void *buf, size_t size) argument
/freebsd-10-stable/contrib/gcc/config/i386/
H A Dgmm_malloc.h34 _mm_malloc (size_t size, size_t align) argument
46 if (size == 0)
56 malloc_ptr = malloc (size + align);
H A Dpmm_malloc.h41 _mm_malloc (size_t size, size_t alignment) argument
45 return malloc (size);
48 if (posix_memalign (&ptr, alignment, size) == 0)
/freebsd-10-stable/contrib/pjdfstest/tests/granular/
H A D01.t23 expect 0 lstat ${n0} size
24 expect 0 -u 65534 -g 65534 stat ${n0} size
26 expect 0 lstat ${n0} size
27 expect EACCES -u 65534 -g 65534 stat ${n0} size
29 expect 0 -u 65534 -g 65534 stat ${n0} size
30 expect 0 lstat ${n0} size

Completed in 530 milliseconds

1234567891011>>