/freebsd-11.0-release/contrib/gcc/config/ |
H A D | host-linux.c | 97 linux_gt_pch_get_address (size_t size, int fd) argument 104 addr = mmap ((void *)TRY_EMPTY_VM_SPACE, size, PROT_READ | PROT_WRITE, 111 munmap (addr, size); 145 addr = mmap (0, size, PROT_READ | PROT_WRITE, MAP_PRIVATE, fd, 0); 150 munmap (addr, size); 171 linux_gt_pch_use_address (void *base, size_t size, int fd, size_t offset) argument 175 /* We're called with size == 0 if we're not planning to load a PCH 178 if (size == 0) 182 addr = mmap (base, size, PROT_READ | PROT_WRITE, MAP_PRIVATE, fd, offset); 188 munmap (addr, size); [all...] |
/freebsd-11.0-release/contrib/compiler-rt/lib/asan/ |
H A D | asan_rtl.cc | 91 uptr size = end - beg + 1; local 92 DecreaseTotalMmap(size); // Don't count the shadow against mmap_limit_mb. 93 void *res = MmapFixedNoReserve(beg, size, name); 96 "Perhaps you're using ulimit -v\n", size); 100 NoHugePagesInRegion(beg, size); 102 DontDumpShadowMemory(beg, size); 106 static void OnLowLevelAllocate(uptr ptr, uptr size) { argument 107 PoisonShadow(ptr, size, kAsanInternalHeapMagic); 112 #define ASAN_REPORT_ERROR(type, is_write, size) \ 114 void __asan_report_ ## type ## size(upt 205 __asan_loadN(uptr addr, uptr size) argument 214 __asan_exp_loadN(uptr addr, uptr size, u32 exp) argument 223 __asan_loadN_noabort(uptr addr, uptr size) argument 232 __asan_storeN(uptr addr, uptr size) argument 241 __asan_exp_storeN(uptr addr, uptr size, u32 exp) argument 250 __asan_storeN_noabort(uptr addr, uptr size) argument 328 ProtectGap(uptr addr, uptr size) argument [all...] |
/freebsd-11.0-release/sys/arm/include/ |
H A D | cpu-v4.h | 123 * and size values which are not aligned to cacheline boundaries; the armv4 and 135 icache_sync(vm_offset_t va, vm_size_t size) argument 137 cpu_icache_sync_range(va, size); 141 dcache_inv_poc(vm_offset_t va, vm_paddr_t pa, vm_size_t size) argument 144 cpu_dcache_inv_range(va, size); 146 cpu_l2cache_inv_range(pa, size); 148 cpu_l2cache_inv_range(va, size); 153 dcache_inv_poc_dma(vm_offset_t va, vm_paddr_t pa, vm_size_t size) argument 158 cpu_l2cache_inv_range(pa, size); 160 cpu_l2cache_inv_range(va, size); 166 dcache_wb_poc(vm_offset_t va, vm_paddr_t pa, vm_size_t size) argument [all...] |
/freebsd-11.0-release/contrib/sendmail/libsm/ |
H A D | fwrite.c | 30 ** size -- number of bytes to be written 39 sm_io_write(fp, timeout, buf, size) 43 size_t size; 57 uio.uio_resid = iov.iov_len = size; 63 return size; 66 return size - uio.uio_resid;
|
/freebsd-11.0-release/contrib/ofed/libmlx4/src/ |
H A D | buf.c | 50 static int ibv_dontfork_range(void *base, size_t size) argument 55 static int ibv_dofork_range(void *base, size_t size) argument 62 int mlx4_alloc_buf(struct mlx4_buf *buf, size_t size, int page_size) argument 66 buf->length = align(size, page_size); 72 ret = ibv_dontfork_range(buf->buf, size);
|
/freebsd-11.0-release/contrib/openpam/lib/libpam/ |
H A D | openpam_straddch.c | 52 openpam_straddch(char **str, size_t *size, size_t *len, int ch) argument 66 *size = tmpsize; 68 } else if (ch != 0 && *len + 1 >= *size) { 70 tmpsize = *size * 2; 76 *size = tmpsize; 96 * The =size and =len argument point to variables used to hold the size 105 * make room for the additional character, =str and =size are updated 113 * Otherwise, it leaves the variables pointed to by =str, =size and =len
|
/freebsd-11.0-release/contrib/llvm/lib/DebugInfo/CodeView/ |
H A D | MemoryTypeTableBuilder.cpp | 17 : Size(RData.size()), Data(new char[RData.size()]) { 18 memcpy(Data.get(), RData.data(), RData.size()); 29 TypeIndex TI(static_cast<uint32_t>(Records.size()) + 31 HashedRecords.insert(std::make_pair(StringRef(R->data(), R->size()), TI));
|
/freebsd-11.0-release/contrib/compiler-rt/lib/safestack/ |
H A D | safestack.cc | 68 /// Default size of the unsafe stack. This value is only used if the stack 69 /// size rlimit is set to infinity. 72 /// Runtime page size obtained through sysconf 95 static inline void *unsafe_stack_alloc(size_t size, size_t guard) { argument 96 CHECK_GE(size + guard, size); 97 void *addr = MmapOrDie(size + guard, "unsafe_stack_alloc"); 102 static inline void unsafe_stack_setup(void *start, size_t size, size_t guard) { argument 103 CHECK_GE((char *)start + size, (char *)start); 105 void *stack_ptr = (char *)start + size; 175 size_t size = 0; local 213 size_t size = kDefaultUnsafeStackSize; local [all...] |
/freebsd-11.0-release/sys/cddl/compat/opensolaris/sys/ |
H A D | kobj.h | 46 void kobj_free(void *address, size_t size); 47 void *kobj_alloc(size_t size, int flag); 48 void *kobj_zalloc(size_t size, int flag); 56 int kobj_get_filesize(struct _buf *file, uint64_t *size); 57 int kobj_read_file(struct _buf *file, char *buf, unsigned size, unsigned off);
|
/freebsd-11.0-release/sys/boot/arm/at91/libat91/ |
H A D | lib.h | 36 /* from data_add for size bytes. */ 37 int ReadEEPROM(unsigned eeoff, unsigned char *data_addr, unsigned size); 38 void WriteEEPROM(unsigned eeoff, char *data_addr, unsigned size); 58 void p_memset(char *buffer, char value, int size); 61 void memcpy(void *to, const void *from, unsigned size); 62 int p_memcmp(const char *to, const char *from, unsigned size);
|
/freebsd-11.0-release/sys/powerpc/include/ |
H A D | mmuvar.h | 87 #define MMU_DEF(name, ident, methods, size) \ 90 ident, methods, size, NULL \ 94 #define MMU_DEF_INHERIT(name, ident, methods, size, base1) \ 99 ident, methods, size, name ## _baseclasses \ 106 ident, methods, size, name ## _baseclasses \
|
/freebsd-11.0-release/libexec/tftpd/ |
H A D | tftp-options.c | 170 /* maximum size of an UDP packet according to the system */ 178 int size = atoi(options[OPT_BLKSIZE].o_request); local 179 if (size < BLKSIZE_MIN || size > BLKSIZE_MAX) { 183 size); 189 size); 194 if (size > (int)maxdgram) { 199 "%ld bytes.\n", size, maxdgram); 206 "%ld bytes.\n", size, maxdgram); 207 size 226 int size, i; local 280 make_options(int peer __unused, char *buffer, uint16_t size) argument 324 parse_options(int peer, char *buffer, uint16_t size) argument [all...] |
/freebsd-11.0-release/sbin/hastd/ |
H A D | ebuf.c | 64 static int ebuf_head_extend(struct ebuf *eb, size_t size); 65 static int ebuf_tail_extend(struct ebuf *eb, size_t size); 68 ebuf_alloc(size_t size) argument 76 size += PAGE_SIZE; 77 eb->eb_start = malloc(size); 84 eb->eb_end = eb->eb_start + size; 109 ebuf_add_head(struct ebuf *eb, const void *data, size_t size) argument 114 if (size > (size_t)(eb->eb_used - eb->eb_start)) { 119 if (ebuf_head_extend(eb, size) == -1) 122 PJDLOG_ASSERT(size < 136 ebuf_add_tail(struct ebuf *eb, const void *data, size_t size) argument 163 ebuf_del_head(struct ebuf *eb, size_t size) argument 174 ebuf_del_tail(struct ebuf *eb, size_t size) argument 213 ebuf_head_extend(struct ebuf *eb, size_t size) argument 241 ebuf_tail_extend(struct ebuf *eb, size_t size) argument [all...] |
/freebsd-11.0-release/sys/vm/ |
H A D | vm_kern.c | 121 kva_alloc(size) 122 vm_size_t size; 126 size = round_page(size); 127 if (vmem_alloc(kernel_arena, size, M_BESTFIT | M_NOWAIT, &addr)) 143 kva_free(addr, size) 145 vm_size_t size; 148 size = round_page(size); 149 vmem_free(kernel_arena, addr, size); 161 kmem_alloc_attr(vmem_t *vmem, vm_size_t size, int flags, vm_paddr_t low, vm_paddr_t high, vm_memattr_t memattr) argument 215 kmem_alloc_contig(struct vmem *vmem, vm_size_t size, int flags, vm_paddr_t low, vm_paddr_t high, u_long alignment, vm_paddr_t boundary, vm_memattr_t memattr) argument 278 kmem_suballoc(vm_map_t parent, vm_offset_t *min, vm_offset_t *max, vm_size_t size, boolean_t superpage_align) argument 307 kmem_malloc(struct vmem *vmem, vm_size_t size, int flags) argument 331 kmem_back(vm_object_t object, vm_offset_t addr, vm_size_t size, int flags) argument 386 kmem_unback(vm_object_t object, vm_offset_t addr, vm_size_t size) argument 412 kmem_free(struct vmem *vmem, vm_offset_t addr, vm_size_t size) argument [all...] |
/freebsd-11.0-release/contrib/llvm/tools/lldb/source/Plugins/SymbolFile/DWARF/ |
H A D | NameToDIE.cpp | 53 const size_t initial_size = info_array.size(); 54 const uint32_t size = m_map.GetSize(); local 55 for (uint32_t i=0; i<size; ++i) 61 return info_array.size() - initial_size; 67 const uint32_t size = m_map.GetSize(); local 68 for (uint32_t i=0; i<size; ++i) 79 const uint32_t size = m_map.GetSize(); local 80 for (uint32_t i=0; i<size; ++i) 90 const uint32_t size = other.m_map.GetSize(); local 91 for (uint32_t i = 0; i < size; [all...] |
/freebsd-11.0-release/crypto/openssh/ |
H A D | monitor_mm.c | 66 void *address, size_t size) 75 tmp->size = size; 80 mm, tmp2, address, size); 85 /* Creates a shared memory area of a certain size */ 88 mm_create(struct mm_master *mmalloc, size_t size) argument 105 address = xmmap(size); 107 fatal("mmap(%zu): %s", size, strerror(errno)); 110 mm->size = size; 65 mm_make_entry(struct mm_master *mm, struct mmtree *head, void *address, size_t size) argument 160 mm_xmalloc(struct mm_master *mm, size_t size) argument 175 mm_malloc(struct mm_master *mm, size_t size) argument 347 mm_memvalid(struct mm_master *mm, void *address, size_t size) argument [all...] |
/freebsd-11.0-release/sys/contrib/vchiq/interface/vchiq_arm/ |
H A D | vchiq_util.c | 41 int vchiu_queue_init(VCHIU_QUEUE_T *queue, int size) argument 43 WARN_ON(!is_pow2(size)); 45 queue->size = size; 53 queue->storage = kzalloc(size * sizeof(VCHIQ_HEADER_T *), GFP_KERNEL); 74 return queue->write == queue->read + queue->size; 82 while (queue->write == queue->read + queue->size) { 94 queue->storage[queue->write & (queue->size - 1)] = header; 123 return queue->storage[queue->read & (queue->size - 1)]; 142 header = queue->storage[queue->read & (queue->size [all...] |
/freebsd-11.0-release/contrib/binutils/bfd/ |
H A D | bfdio.c | 113 bfd_bread (void *ptr, bfd_size_type size, bfd *abfd) argument 122 if (size > maxbytes) 123 size = maxbytes; 132 get = size; 133 if (abfd->where + get > bim->size) 135 if (bim->size < (bfd_size_type) abfd->where) 138 get = bim->size - abfd->where; 147 nread = abfd->iovec->bread (abfd, ptr, size); 157 bfd_bwrite (const void *ptr, bfd_size_type size, bfd *abfd) argument 165 size [all...] |
/freebsd-11.0-release/contrib/compiler-rt/lib/lsan/ |
H A D | lsan_interceptors.cc | 51 INTERCEPTOR(void*, malloc, uptr size) { argument 54 return Allocate(stack, size, 1, kAlwaysClearMemory); 62 INTERCEPTOR(void*, calloc, uptr nmemb, uptr size) { argument 68 uptr size_in_words = ((nmemb * size) + kWordSize - 1) / kWordSize; 74 if (CallocShouldReturnNullDueToOverflow(size, nmemb)) return nullptr; 77 size *= nmemb; 78 return Allocate(stack, size, 1, true); 81 INTERCEPTOR(void*, realloc, void *q, uptr size) { 84 return Reallocate(stack, q, size, 1); 87 INTERCEPTOR(void*, memalign, uptr alignment, uptr size) { [all...] |
/freebsd-11.0-release/sys/dev/drm2/ |
H A D | drm_mm.h | 55 unsigned long size; member in struct:drm_mm_node 106 unsigned long size, 112 unsigned long size, 119 unsigned long size, 122 return drm_mm_get_block_generic(parent, size, alignment, 0, 0); 125 unsigned long size, 128 return drm_mm_get_block_generic(parent, size, alignment, 0, 1); 132 unsigned long size, 137 return drm_mm_get_block_range_generic(parent, size, alignment, 0, 142 unsigned long size, 118 drm_mm_get_block(struct drm_mm_node *parent, unsigned long size, unsigned alignment) argument 124 drm_mm_get_block_atomic(struct drm_mm_node *parent, unsigned long size, unsigned alignment) argument 130 drm_mm_get_block_range( struct drm_mm_node *parent, unsigned long size, unsigned alignment, unsigned long start, unsigned long end) argument 140 drm_mm_get_color_block_range( struct drm_mm_node *parent, unsigned long size, unsigned alignment, unsigned long color, unsigned long start, unsigned long end) argument 151 drm_mm_get_block_atomic_range( struct drm_mm_node *parent, unsigned long size, unsigned alignment, unsigned long start, unsigned long end) argument 200 drm_mm_search_free(const struct drm_mm *mm, unsigned long size, unsigned alignment, bool best_match) argument 207 drm_mm_search_free_in_range( const struct drm_mm *mm, unsigned long size, unsigned alignment, unsigned long start, unsigned long end, bool best_match) argument 218 drm_mm_search_free_color(const struct drm_mm *mm, unsigned long size, unsigned alignment, unsigned long color, bool best_match) argument 226 drm_mm_search_free_in_range_color( const struct drm_mm *mm, unsigned long size, unsigned alignment, unsigned long color, unsigned long start, unsigned long end, bool best_match) argument [all...] |
/freebsd-11.0-release/contrib/ofed/management/opensm/complib/ |
H A D | cl_vector.c | 51 * Define the maximum size for array pages in an cl_vector_t. 52 * This size is in objects, not bytes. 60 * copy operator used when size of the user object doesn't fit one of the 75 IN const void *const p_src, IN const size_t size) 77 memcpy(p_dest, p_src, size); 98 IN const void *const p_src, IN const size_t size) 100 CL_ASSERT(size == sizeof(uint8_t)); 101 UNUSED_PARAM(size); 124 IN const void *const p_src, IN const size_t size) 126 CL_ASSERT(size 74 cl_vector_copy_general(OUT void *const p_dest, IN const void *const p_src, IN const size_t size) argument 97 cl_vector_copy8(OUT void *const p_dest, IN const void *const p_src, IN const size_t size) argument 123 cl_vector_copy16(OUT void *const p_dest, IN const void *const p_src, IN const size_t size) argument 149 cl_vector_copy32(OUT void *const p_dest, IN const void *const p_src, IN const size_t size) argument 175 cl_vector_copy64(OUT void *const p_dest, IN const void *const p_src, IN const size_t size) argument 410 cl_vector_set_size(IN cl_vector_t * const p_vector, IN const size_t size) argument [all...] |
/freebsd-11.0-release/sys/dev/drm/ |
H A D | drm_mm.c | 62 return entry->size; 65 int drm_mm_remove_space_from_tail(struct drm_mm *mm, unsigned long size) argument 75 if (entry->size <= size) 78 entry->size -= size; 131 unsigned long size, int atomic) 140 child->size = size; 150 int drm_mm_add_space_to_tail(struct drm_mm *mm, unsigned long size, in argument 129 drm_mm_create_tail_node(struct drm_mm *mm, unsigned long start, unsigned long size, int atomic) argument 165 drm_mm_split_at_start(struct drm_mm_node *parent, unsigned long size, int atomic) argument 191 drm_mm_get_block_generic(struct drm_mm_node *node, unsigned long size, unsigned alignment, int atomic) argument 281 drm_mm_search_free(const struct drm_mm *mm, unsigned long size, unsigned alignment, int best_match) argument 328 drm_mm_init(struct drm_mm * mm, unsigned long start, unsigned long size) argument [all...] |
/freebsd-11.0-release/contrib/groff/src/include/ |
H A D | ptable.h | 59 unsigned size; \ 84 v = new PASSOC(T)[size = INITIAL_SIZE]; \ 90 for (unsigned i = 0; i < size; i++) { \ 102 for (n = unsigned(h % size); \ 104 n = (n == 0 ? size - 1 : n - 1)) \ 112 if (used*FULL_DEN >= size*FULL_NUM) { \ 114 unsigned old_size = size; \ 115 size = next_ptable_size(size); \ 116 v = new PASSOC(T)[size]; \ [all...] |
/freebsd-11.0-release/lib/libufs/ |
H A D | block.c | 51 bread(struct uufsd *disk, ufs2_daddr_t blockno, void *data, size_t size) argument 66 p2 = malloc(size); 72 cnt = pread(disk->d_fd, p2, size, (off_t)(blockno * disk->d_bsize)); 81 if ((size_t)cnt != size) { 86 memcpy(data, p2, size); 90 fail: memset(data, 0, size); 98 bwrite(struct uufsd *disk, ufs2_daddr_t blockno, const void *data, size_t size) argument 119 p2 = malloc(size); 124 memcpy(p2, data, size); 127 cnt = pwrite(disk->d_fd, data, size, (off_ 145 berase_helper(struct uufsd *disk, ufs2_daddr_t blockno, ufs2_daddr_t size) argument 157 berase_helper(struct uufsd *disk, ufs2_daddr_t blockno, ufs2_daddr_t size) argument 190 berase(struct uufsd *disk, ufs2_daddr_t blockno, ufs2_daddr_t size) argument [all...] |
/freebsd-11.0-release/contrib/libstdc++/include/ext/pb_ds/detail/binary_heap_/ |
H A D | resize_policy.hpp | 80 resize_needed_for_grow(size_type size) const; 83 resize_needed_for_shrink(size_type size) const; 86 grow_needed(size_type size) const; 89 shrink_needed(size_type size) const; 98 get_new_size_for_arbitrary(size_type size) const; 151 resize_needed_for_grow(size_type size) const 153 _GLIBCXX_DEBUG_ASSERT(size <= m_next_grow_size); 154 return size == m_next_grow_size; 160 resize_needed_for_shrink(size_type size) const 162 _GLIBCXX_DEBUG_ASSERT(size < [all...] |