| /trueos/sys/ofed/include/linux/ |
| HD | bitops.h | 81 find_first_bit(unsigned long *addr, unsigned long size) in find_first_bit() argument 86 for (bit = 0; size >= BITS_PER_LONG; in find_first_bit() 87 size -= BITS_PER_LONG, bit += BITS_PER_LONG, addr++) { in find_first_bit() 92 if (size) { in find_first_bit() 93 mask = (*addr) & BIT_MASK(size); in find_first_bit() 97 bit += size; in find_first_bit() 103 find_first_zero_bit(unsigned long *addr, unsigned long size) in find_first_zero_bit() argument 108 for (bit = 0; size >= BITS_PER_LONG; in find_first_zero_bit() 109 size -= BITS_PER_LONG, bit += BITS_PER_LONG, addr++) { in find_first_zero_bit() 114 if (size) { in find_first_zero_bit() [all …]
|
| HD | slab.h | 42 #define kmalloc(size, flags) malloc((size), M_KMALLOC, (flags)) argument 43 #define kvmalloc(size) kmalloc((size), 0) argument 44 #define kzalloc(size, flags) kmalloc((size), (flags) | M_ZERO) argument 45 #define kzalloc_node(size, flags, node) kzalloc(size, flags) argument 47 #define krealloc(ptr, size, flags) realloc((ptr), (size), M_KMALLOC, (flags)) argument 48 #define kcalloc(n, size, flags) kmalloc((n) * (size), flags | M_ZERO) argument 49 #define vzalloc(size) kzalloc(size, GFP_KERNEL | __GFP_NOWARN) argument 52 #define vmalloc(size) kmalloc(size, GFP_KERNEL) argument 53 #define vmalloc_node(size, node) kmalloc(size, GFP_KERNEL) argument 63 kmem_ctor(void *mem, int size, void *arg, int flags) in kmem_ctor() argument [all …]
|
| /trueos/lib/libc/stdlib/ |
| HD | heapsort.c | 50 #define SWAP(a, b, count, size, tmp) { \ argument 51 count = size; \ 60 #define COPY(a, b, count, size, tmp1, tmp2) { \ argument 61 count = size; \ 76 #define CREATE(initval, nmemb, par_i, child_i, par, child, size, count, tmp) { \ argument 79 child = base + child_i * size; \ 80 if (child_i < nmemb && compar(child, child + size) < 0) { \ 81 child += size; \ 84 par = base + par_i * size; \ 87 SWAP(par, child, count, size, tmp); \ [all …]
|
| HD | merge.c | 98 mergesort(base, nmemb, size, cmp) in mergesort() argument 101 size_t size; 110 if (size < PSIZE / 2) { /* Pointers must fit into 2 * size. */ 123 if (!(size % ISIZE) && !(((char *)base - (char *)0) % ISIZE)) 126 if ((list2 = malloc(nmemb * size + PSIZE)) == NULL) 130 setup(list1, list2, nmemb, size, cmp); 131 last = list2 + nmemb * size; 154 while ((b += size) < t && cmp(q, b) >sense) 160 EXPONENTIAL: for (i = size; ; i <<= 1) 162 if ((p = t - size) > b && [all …]
|
| /trueos/sys/mips/rmi/ |
| HD | msgring.cfg | 44 * across all sending agents should not exceed the bucket size. 69 * The bucket size of a bucket should be aligned to the bucket's starting index in that 71 * are 32 and 32, bucket2's size has to be 64. bucket size 0 is valid. 73 * The format of the file is pretty straight forward. Each bucket definition has the size 76 * Undefined buckets have a size of 0 and Tx stations have 0 credits to send to that bucket. 234 size 32; 241 size 32; 248 size 32; 255 size 32; 262 size 32; [all …]
|
| /trueos/contrib/jemalloc/src/ |
| HD | chunk.c | 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, in chunk_recycle() argument 64 alloc_size = size + alignment - chunksize; in chunk_recycle() 66 if (alloc_size < size) in chunk_recycle() 69 key.size = alloc_size; in chunk_recycle() 78 assert(node->size >= leadsize + size); in chunk_recycle() 79 trailsize = node->size - leadsize - size; in chunk_recycle() 89 node->size = leadsize; in chunk_recycle() 107 chunk_dealloc(ret, size, true); in chunk_recycle() [all …]
|
| /trueos/sbin/hastd/ |
| HD | hast_compression.c | 44 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 …]
|
| HD | 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) in ebuf_alloc() argument 76 size += PAGE_SIZE; in ebuf_alloc() 77 eb->eb_start = malloc(size); in ebuf_alloc() 84 eb->eb_end = eb->eb_start + size; in ebuf_alloc() 109 ebuf_add_head(struct ebuf *eb, const void *data, size_t size) in ebuf_add_head() argument 114 if (size > (size_t)(eb->eb_used - eb->eb_start)) { in ebuf_add_head() 119 if (ebuf_head_extend(eb, size) == -1) in ebuf_add_head() 122 PJDLOG_ASSERT(size <= (size_t)(eb->eb_used - eb->eb_start)); in ebuf_add_head() [all …]
|
| /trueos/sys/vm/ |
| HD | vm_kern.c | 118 kva_alloc(size) in kva_alloc() argument 119 vm_size_t size; in kva_alloc() 123 size = round_page(size); 124 if (vmem_alloc(kernel_arena, size, M_BESTFIT | M_NOWAIT, &addr)) 140 kva_free(addr, size) in kva_free() argument 142 vm_size_t size; 145 size = round_page(size); 146 vmem_free(kernel_arena, addr, size); 158 kmem_alloc_attr(vmem_t *vmem, vm_size_t size, int flags, vm_paddr_t low, in kmem_alloc_attr() argument 168 size = round_page(size); in kmem_alloc_attr() [all …]
|
| /trueos/contrib/apr/encoding/ |
| HD | apr_escape.c | 86 apr_size_t size = 1; in apr_escape_shell() local 111 size++; in apr_escape_shell() 115 size++; in apr_escape_shell() 122 size++; in apr_escape_shell() 125 size++; in apr_escape_shell() 131 *len = size; in apr_escape_shell() 183 apr_size_t size = 1; in apr_unescape_url() local 224 size += 2; in apr_unescape_url() 234 size++; in apr_unescape_url() 262 size += 2; in apr_unescape_url() [all …]
|
| /trueos/crypto/heimdal/lib/asn1/ |
| HD | der_get.c | 46 unsigned *ret, size_t *size) in der_get_unsigned() argument 59 if(size) *size = oldlen; in der_get_unsigned() 65 int *ret, size_t *size) in der_get_integer() argument 79 if(size) *size = oldlen; in der_get_integer() 85 size_t *val, size_t *size) in der_get_length() argument 95 if(size) *size = 1; in der_get_length() 103 if(size) *size = 1; in der_get_length() 112 if(size) *size = l + 1; in der_get_length() 118 der_get_boolean(const unsigned char *p, size_t len, int *data, size_t *size) in der_get_boolean() argument 126 *size = 1; in der_get_boolean() [all …]
|
| HD | der_put.c | 47 der_put_unsigned (unsigned char *p, size_t len, const unsigned *v, size_t *size) in der_put_unsigned() argument 66 *size = base - p; in der_put_unsigned() 73 *size = 1; in der_put_unsigned() 79 der_put_integer (unsigned char *p, size_t len, const int *v, size_t *size) in der_put_integer() argument 114 *size = base - p; in der_put_integer() 120 der_put_length (unsigned char *p, size_t len, size_t val, size_t *size) in der_put_length() argument 127 *size = 1; in der_put_length() 140 if(size) in der_put_length() 141 *size = l + 1; in der_put_length() 147 der_put_boolean(unsigned char *p, size_t len, const int *data, size_t *size) in der_put_boolean() argument [all …]
|
| /trueos/usr.sbin/fifolog/fifolog_create/ |
| HD | fifolog_create.c | 53 int64_t size; in main() local 59 size = 0; in main() 72 if (expand_number(optarg, &size)) in main() 84 if (size != 0 && reccnt != 0 && recsize != 0) { /* N N N */ in main() 85 if (size != reccnt * recsize) in main() 87 } else if (size != 0 && reccnt != 0 && recsize == 0) { /* N N Z */ in main() 88 if (size % reccnt) in main() 91 recsize = size / reccnt; in main() 92 } else if (size != 0 && reccnt == 0 && recsize != 0) { /* N Z N */ in main() 93 if (size % recsize) in main() [all …]
|
| /trueos/sbin/pfctl/ |
| HD | pfctl_radix.c | 77 pfr_add_tables(struct pfr_table *tbl, int size, int *nadd, int flags) in pfr_add_tables() argument 81 if (size < 0 || (size && tbl == NULL)) { in pfr_add_tables() 89 io.pfrio_size = size; in pfr_add_tables() 98 pfr_del_tables(struct pfr_table *tbl, int size, int *ndel, int flags) in pfr_del_tables() argument 102 if (size < 0 || (size && tbl == NULL)) { in pfr_del_tables() 110 io.pfrio_size = size; in pfr_del_tables() 119 pfr_get_tables(struct pfr_table *filter, struct pfr_table *tbl, int *size, in pfr_get_tables() argument 124 if (size == NULL || *size < 0 || (*size && tbl == NULL)) { in pfr_get_tables() 134 io.pfrio_size = *size; in pfr_get_tables() 137 *size = io.pfrio_size; in pfr_get_tables() [all …]
|
| /trueos/contrib/netbsd-tests/ipf/expected/ |
| HD | ip1 | 11 table role=ipf type=hash number=2 size=1 13 table role=ipf type=hash number=200 size=5 15 table role=nat type=hash number=210 size=5 17 table role=auth type=hash number=220 size=5 19 table role=count type=hash number=230 size=5 21 table role=ipf type=hash number=240 size=5 seed=101 23 table role=nat type=hash number=250 size=5 seed=101 25 table role=auth type=hash number=260 size=5 seed=101 27 table role=count type=hash number=270 size=5 seed=101 29 table role=ipf type=hash number=2000 size=1001 [all …]
|
| /trueos/sys/sys/mach/ |
| HD | vm_map_server.h | 67 (target_task, address, size, flavor, info, infoCnt, object_name) in vm_region() argument 70 vm_size_t *size; 75 { return vm_region(target_task, address, size, flavor, info, infoCnt, object_name); } 80 vm_size_t *size, 96 (target_task, address, size, flags) in vm_allocate() argument 99 vm_size_t size; 101 { return vm_allocate(target_task, address, size, flags); } 106 vm_size_t size, 119 (target_task, address, size) in vm_deallocate() argument 122 vm_size_t size; [all …]
|
| HD | mach_vm_server.h | 66 (target_task, address, size, set_maximum, new_protection) in mach_vm_protect() argument 69 mach_vm_size_t size; 72 { return mach_vm_protect(target_task, address, size, set_maximum, new_protection); } 77 mach_vm_size_t size, 91 (target_task, address, size, new_inheritance) in mach_vm_inherit() argument 94 mach_vm_size_t size; 96 { return mach_vm_inherit(target_task, address, size, new_inheritance); } 101 mach_vm_size_t size, 114 (target_task, address, size, data, dataCnt) in mach_vm_read() argument 117 mach_vm_size_t size; [all …]
|
| /trueos/lib/libdispatch/src/ |
| HD | data.c | 82 _dispatch_data_destroy_buffer(const void* buffer, size_t size, in _dispatch_data_destroy_buffer() argument 90 mach_vm_size_t vm_size = size; in _dispatch_data_destroy_buffer() 104 _dispatch_data_init(dispatch_data_t data, const void *buffer, size_t size, in _dispatch_data_init() argument 108 data->size = size; in _dispatch_data_init() 121 dispatch_data_init(dispatch_data_t data, const void *buffer, size_t size, in dispatch_data_init() argument 124 if (!buffer || !size) { in dispatch_data_init() 126 _dispatch_data_destroy_buffer(buffer, size, NULL, in dispatch_data_init() 130 size = 0; in dispatch_data_init() 133 _dispatch_data_init(data, buffer, size, NULL, destructor); in dispatch_data_init() 137 dispatch_data_create(const void* buffer, size_t size, dispatch_queue_t queue, in dispatch_data_create() argument [all …]
|
| /trueos/tools/regression/fsx/ |
| HD | fsx.c | 374 check_buffers(unsigned offset, unsigned size) in check_buffers() argument 382 if (memcmp(good_buf + offset, temp_buf, size) != 0) { in check_buffers() 384 offset, size); in check_buffers() 386 while (size > 0) { in check_buffers() 401 size--; in check_buffers() 454 doread(unsigned offset, unsigned size) in doread() argument 460 if (size == 0) { in doread() 463 log4(OP_SKIPPED, OP_READ, offset, size); in doread() 466 if (size + offset > file_size) { in doread() 469 log4(OP_SKIPPED, OP_READ, offset, size); in doread() [all …]
|
| /trueos/contrib/llvm/tools/lldb/source/Plugins/SymbolFile/DWARF/ |
| HD | DWARFLocationDescription.cpp | 60 int size; in print_dwarf_exp_op() local 85 case DW_OP_addr: size = address_size; break; in print_dwarf_exp_op() 86 case DW_OP_const1u: size = 1; break; in print_dwarf_exp_op() 87 case DW_OP_const1s: size = -1; break; in print_dwarf_exp_op() 88 case DW_OP_const2u: size = 2; break; in print_dwarf_exp_op() 89 case DW_OP_const2s: size = -2; break; in print_dwarf_exp_op() 90 case DW_OP_const4u: size = 4; break; in print_dwarf_exp_op() 91 case DW_OP_const4s: size = -4; break; in print_dwarf_exp_op() 92 case DW_OP_const8u: size = 8; break; in print_dwarf_exp_op() 93 case DW_OP_const8s: size = -8; break; in print_dwarf_exp_op() [all …]
|
| /trueos/lib/libc/posix1e/ |
| HD | acl_to_text_nfs4.c | 47 format_who(char *str, size_t size, const acl_entry_t entry, int numeric) in format_who() argument 61 snprintf(str, size, "owner@"); in format_who() 74 snprintf(str, size, "user:%d", (unsigned int)*id); in format_who() 76 snprintf(str, size, "user:%s", pwd->pw_name); in format_who() 80 snprintf(str, size, "group@"); in format_who() 93 snprintf(str, size, "group:%d", (unsigned int)*id); in format_who() 95 snprintf(str, size, "group:%s", grp->gr_name); in format_who() 99 snprintf(str, size, "everyone@"); in format_who() 110 format_entry_type(char *str, size_t size, const acl_entry_t entry) in format_entry_type() argument 121 snprintf(str, size, "allow"); in format_entry_type() [all …]
|
| /trueos/sys/ddb/ |
| HD | db_examine.c | 72 int size; in db_examine() local 78 size = 4; in db_examine() 82 size = 1; in db_examine() 85 size = 2; in db_examine() 88 size = 4; in db_examine() 91 size = 8; in db_examine() 94 size = sizeof(void *); in db_examine() 110 width = size * 4; in db_examine() 113 value = db_get_value(addr, size, TRUE); in db_examine() 114 addr += size; in db_examine() [all …]
|
| /trueos/crypto/openssh/ |
| HD | monitor_mm.c | 64 void *address, size_t size) in RB_GENERATE() 73 tmp->size = size; in RB_GENERATE() 78 mm, tmp2, address, size); in RB_GENERATE() 86 mm_create(struct mm_master *mmalloc, size_t size) in mm_create() argument 103 address = xmmap(size); in mm_create() 105 fatal("mmap(%zu): %s", size, strerror(errno)); in mm_create() 108 mm->size = size; in mm_create() 113 mm_make_entry(mm, &mm->rb_free, address, size); in mm_create() 144 if (munmap(mm->address, mm->size) == -1) in mm_destroy() 145 fatal("munmap(%p, %zu): %s", mm->address, mm->size, in mm_destroy() [all …]
|
| /trueos/usr.sbin/ypserv/ |
| HD | yp_dblookup.c | 76 int size; member 208 key.size = inter_sz; in yp_setflags() 214 key.size = secure_sz; in yp_setflags() 260 yp_cache_db(DB *dbp, char *name, int size) in yp_cache_db() argument 281 qptr->dbptr->size = size; in yp_cache_db() 319 yp_find_db(const char *name, const char *key, int size) in yp_find_db() argument 325 if (size) { in yp_find_db() 326 if (size != qptr->dbptr->size || in yp_find_db() 327 strncmp(qptr->dbptr->key, key, size)) in yp_find_db() 330 if (qptr->dbptr->size) in yp_find_db() [all …]
|
| /trueos/sys/dev/drm2/ |
| HD | drm_mm.h | 55 unsigned long size; member 106 unsigned long size, 112 unsigned long size, 119 unsigned long size, in drm_mm_get_block() argument 122 return drm_mm_get_block_generic(parent, size, alignment, 0, 0); in drm_mm_get_block() 125 unsigned long size, in drm_mm_get_block_atomic() argument 128 return drm_mm_get_block_generic(parent, size, alignment, 0, 1); in drm_mm_get_block_atomic() 132 unsigned long size, in drm_mm_get_block_range() argument 137 return drm_mm_get_block_range_generic(parent, size, alignment, 0, in drm_mm_get_block_range() 142 unsigned long size, in drm_mm_get_color_block_range() argument [all …]
|