/dflybsd-src/contrib/mdocml/ |
H A D | dba_array.c | 46 struct dba_array *array; in dba_array_new() local 49 array = mandoc_malloc(sizeof(*array)); in dba_array_new() 50 array->ep = mandoc_reallocarray(NULL, ea, sizeof(*array->ep)); in dba_array_new() 51 array->em = mandoc_reallocarray(NULL, ea, sizeof(*array->em)); in dba_array_new() 52 array->ea = ea; in dba_array_new() 53 array->eu = 0; in dba_array_new() 54 array->ed = 0; in dba_array_new() 55 array->ec = 0; in dba_array_new() 56 array->flags = flags; in dba_array_new() 57 array->pos = 0; in dba_array_new() [all …]
|
/dflybsd-src/sys/dev/drm/ |
H A D | linux_fence-array.c | 44 static void dma_fence_array_set_pending_error(struct dma_fence_array *array, in dma_fence_array_set_pending_error() argument 52 cmpxchg(&array->base.error, PENDING_ERROR, error); in dma_fence_array_set_pending_error() 55 static void dma_fence_array_clear_pending_error(struct dma_fence_array *array) in dma_fence_array_clear_pending_error() argument 58 cmpxchg(&array->base.error, PENDING_ERROR, 0); in dma_fence_array_clear_pending_error() 63 struct dma_fence_array *array = container_of(wrk, typeof(*array), work); in irq_dma_fence_array_work() local 65 dma_fence_array_clear_pending_error(array); in irq_dma_fence_array_work() 67 dma_fence_signal(&array->base); in irq_dma_fence_array_work() 68 dma_fence_put(&array->base); in irq_dma_fence_array_work() 76 struct dma_fence_array *array = array_cb->array; in dma_fence_array_cb_func() local 78 dma_fence_array_set_pending_error(array, f->error); in dma_fence_array_cb_func() [all …]
|
/dflybsd-src/contrib/ldns/ |
H A D | radix.c | 56 static int ldns_radix_str_create(ldns_radix_array_t* array, uint8_t* key, 61 static int ldns_radix_array_split(ldns_radix_array_t* array, uint8_t* key, 104 node->array = NULL; in ldns_radix_new_node() 205 LDNS_FREE(prefix->array); in ldns_radix_insert() 212 prefix->array[0].edge = add; in ldns_radix_insert() 216 len, &prefix->array[0].str, in ldns_radix_insert() 217 &prefix->array[0].len)) { in ldns_radix_insert() 219 LDNS_FREE(prefix->array); in ldns_radix_insert() 259 &prefix->array[byte], key, pos+1, in ldns_radix_insert() 268 prefix->array[byte].edge = add; in ldns_radix_insert() [all …]
|
/dflybsd-src/usr.bin/dc/ |
H A D | stack.c | 30 static struct array *array_new(void); 31 static __inline void array_free(struct array *); 32 static struct array * array_dup(const struct array *); 33 static __inline void array_grow(struct array *, size_t); 34 static __inline void array_assign(struct array *, size_t, const struct value *); 35 static __inline struct value *array_retrieve(const struct array *, size_t); 68 if (v->array != NULL) { in stack_free_value() 69 array_free(v->array); in stack_free_value() 70 v->array = NULL; in stack_free_value() 93 copy->array = a->array == NULL ? NULL : array_dup(a->array); in stack_dup_value() [all …]
|
/dflybsd-src/contrib/gcc-4.7/libobjc/ |
H A D | sarray.c | 100 sarray_at_put (struct sarray *array, sidx index, void *element) in sarray_at_put() argument 132 assert (soffset_decode (index) < array->capacity); /* Range check */ in sarray_at_put() 135 the_index = &(array->indices[ioffset]); in sarray_at_put() 138 the_bucket = &(array->buckets[boffset]); in sarray_at_put() 148 if ((*the_index) == array->empty_index) in sarray_at_put() 152 memcpy (new_index, array->empty_index, sizeof (struct sindex)); in sarray_at_put() 153 new_index->version.version = array->version.version; in sarray_at_put() 159 else if ((*the_index)->version.version != array->version.version) in sarray_at_put() 165 new_index->version.version = array->version.version; in sarray_at_put() 175 if ((*the_bucket) == array->empty_bucket) in sarray_at_put() [all …]
|
/dflybsd-src/sys/dev/raid/hptmv/ |
H A D | gui_lib.c | 92 if ((pVDevice->u.array.dArStamp != 0) && (pVDevice == p)) in check_VDevice_valid() 128 if(pVDevice->u.array.rf_need_rebuild && !pVDevice->u.array.rf_duplicate_and_create) in get_array_flag() 132 if(pVDevice->u.array.rf_rebuilding) in get_array_flag() 136 if(pVDevice->u.array.rf_verifying) in get_array_flag() 140 if(pVDevice->u.array.rf_initializing) in get_array_flag() 144 if(pVDevice->u.array.rf_broken) in get_array_flag() 152 if(pVDevice->u.array.rf_newly_created) in get_array_flag() 160 if(pVDevice->u.array.rf_auto_rebuild) in get_array_flag() 163 for(i = 0; i < pVDevice->u.array.bArnMember; i++) in get_array_flag() 165 PVDevice pMember = pVDevice->u.array.pMember[i]; in get_array_flag() [all …]
|
H A D | ioctl.c | 123 memcpy(e.Data, ((PVDevice)param)->u.array.ArrayName, MAX_ARRAY_NAME); in ioctl_ReportEvent() 169 if (pArray->u.array.rf_rebuilding || pArray->u.array.rf_verifying || in hpt_delete_array() 170 pArray->u.array.rf_initializing) in hpt_delete_array() 173 for(i=0; i<pArray->u.array.bArnMember; i++) { in hpt_delete_array() 174 pa = pArray->u.array.pMember[i]; in hpt_delete_array() 176 if (pa->u.array.rf_rebuilding || pa->u.array.rf_verifying || in hpt_delete_array() 177 pa->u.array.rf_initializing) in hpt_delete_array() 387 (ID_TO_VDEV(*(DEVICEID *)lpOutBuffer))->u.array.rf_auto_rebuild = 0; in Kernel_DeviceIoControl() 408 (ID_TO_VDEV(*(DEVICEID *)lpOutBuffer))->u.array.rf_auto_rebuild = 0; in Kernel_DeviceIoControl() 422 if(pArray->u.array.rf_rebuilding == 0) in Kernel_DeviceIoControl() [all …]
|
H A D | hptproc.c | 78 if ((pArray=ArrayTables(i))->u.array.dArStamp==0) in hpt_set_asc_info() 81 if (pArray->u.array.rf_need_rebuild && !pArray->u.array.rf_rebuilding) in hpt_set_asc_info() 83 …(UCHAR)((pArray->u.array.CriticalMembers || pArray->VDeviceType == VD_RAID_1)? DUPLICATE : REBUILD… in hpt_set_asc_info() 92 if ((pArray=ArrayTables(i))->u.array.dArStamp==0) in hpt_set_asc_info() 95 if (pArray->u.array.rf_rebuilding) in hpt_set_asc_info() 96 pArray->u.array.rf_abort_rebuild = 1; in hpt_set_asc_info() 146 pSubArray->u.array.rf_auto_rebuild = 0; in hpt_set_asc_info() 147 pSubArray->u.array.rf_abort_rebuild = 0; in hpt_set_asc_info() 153 for (i = 0; (UCHAR)i < pArray->u.array.bArnMember; i++) in hpt_set_asc_info() 154 if(pArray->u.array.pMember[i] && mIsArray(pArray->u.array.pMember[i]) && in hpt_set_asc_info() [all …]
|
/dflybsd-src/contrib/binutils-2.34/bfd/ |
H A D | elf-strtab.c | 57 struct elf_strtab_hash_entry **array; member 115 table->array = ((struct elf_strtab_hash_entry **) in _bfd_elf_strtab_init() 117 if (table->array == NULL) in _bfd_elf_strtab_init() 123 table->array[0] = NULL; in _bfd_elf_strtab_init() 134 free (tab->array); in _bfd_elf_strtab_free() 170 tab->array = (struct elf_strtab_hash_entry **) in _bfd_elf_strtab_add() 171 bfd_realloc_or_free (tab->array, tab->alloced * amt); in _bfd_elf_strtab_add() 172 if (tab->array == NULL) in _bfd_elf_strtab_add() 177 tab->array[entry->u.index] = entry; in _bfd_elf_strtab_add() 189 ++tab->array[idx]->refcount; in _bfd_elf_strtab_addref() [all …]
|
/dflybsd-src/contrib/gdb-7/bfd/ |
H A D | elf-strtab.c | 58 struct elf_strtab_hash_entry **array; member 116 table->array = (struct elf_strtab_hash_entry **) in _bfd_elf_strtab_init() 118 if (table->array == NULL) in _bfd_elf_strtab_init() 124 table->array[0] = NULL; in _bfd_elf_strtab_init() 135 free (tab->array); in _bfd_elf_strtab_free() 171 tab->array = (struct elf_strtab_hash_entry **) in _bfd_elf_strtab_add() 172 bfd_realloc_or_free (tab->array, tab->alloced * amt); in _bfd_elf_strtab_add() 173 if (tab->array == NULL) in _bfd_elf_strtab_add() 178 tab->array[entry->u.index] = entry; in _bfd_elf_strtab_add() 190 ++tab->array[idx]->refcount; in _bfd_elf_strtab_addref() [all …]
|
/dflybsd-src/contrib/binutils-2.27/bfd/ |
H A D | elf-strtab.c | 57 struct elf_strtab_hash_entry **array; member 115 table->array = ((struct elf_strtab_hash_entry **) in _bfd_elf_strtab_init() 117 if (table->array == NULL) in _bfd_elf_strtab_init() 123 table->array[0] = NULL; in _bfd_elf_strtab_init() 134 free (tab->array); in _bfd_elf_strtab_free() 170 tab->array = (struct elf_strtab_hash_entry **) in _bfd_elf_strtab_add() 171 bfd_realloc_or_free (tab->array, tab->alloced * amt); in _bfd_elf_strtab_add() 172 if (tab->array == NULL) in _bfd_elf_strtab_add() 177 tab->array[entry->u.index] = entry; in _bfd_elf_strtab_add() 189 ++tab->array[idx]->refcount; in _bfd_elf_strtab_addref() [all …]
|
/dflybsd-src/sys/libprop/ |
H A D | prop_array_util.c | 45 prop_array_get_bool(prop_array_t array, in prop_array_get_bool() argument 51 b = prop_array_get(array, indx); in prop_array_get_bool() 61 prop_array_set_bool(prop_array_t array, in prop_array_set_bool() argument 71 rv = prop_array_set(array, indx, b); in prop_array_set_bool() 79 prop_array_get_int ## size (prop_array_t array, \ 85 num = prop_array_get(array, indx); \ 106 prop_array_get_uint ## size (prop_array_t array, \ 112 num = prop_array_get(array, indx); \ 131 prop_array_set_int ## size (prop_array_t array, \ 141 rv = prop_array_set(array, indx, num); \ [all …]
|
H A D | prop_array.c | 262 prop_object_t *array; in _prop_array_alloc() local 265 array = _PROP_CALLOC(capacity * sizeof(prop_object_t), in _prop_array_alloc() 267 if (array == NULL) in _prop_array_alloc() 270 array = NULL; in _prop_array_alloc() 278 pa->pa_array = array; in _prop_array_alloc() 284 } else if (array != NULL) in _prop_array_alloc() 285 _PROP_FREE(array, M_PROP_ARRAY); in _prop_array_alloc() 293 prop_object_t *array, *oarray; in _prop_array_expand() local 301 array = _PROP_CALLOC(capacity * sizeof(*array), M_PROP_ARRAY); in _prop_array_expand() 302 if (array == NULL) in _prop_array_expand() [all …]
|
/dflybsd-src/games/sail/ |
H A D | array.h | 45 struct array { struct 50 struct array *array_create(void); argument 51 void array_destroy(struct array *); 52 void array_init(struct array *); 53 void array_cleanup(struct array *); 54 unsigned array_num(const struct array *); 55 void *array_get(const struct array *, unsigned index_); 56 void array_set(const struct array *, unsigned index_, void *val); 57 int array_setsize(struct array *, unsigned num); 58 int array_add(struct array *, void *val, unsigned *index_ret); [all …]
|
/dflybsd-src/contrib/gcc-8.0/libgomp/ |
H A D | ordered.c | 322 doacross->array = (unsigned char *) in gomp_doacross_init() 335 *(unsigned long *) (doacross->array + ent * elt_sz) = 0; in gomp_doacross_init() 339 memset (doacross->array + ent * elt_sz, '\0', in gomp_doacross_init() 375 unsigned long *array = (unsigned long *) (doacross->array in GOMP_doacross_post() local 387 if (flattened == __atomic_load_n (array, MEMMODEL_ACQUIRE)) in GOMP_doacross_post() 390 __atomic_store_n (array, flattened, MEMMODEL_RELEASE); in GOMP_doacross_post() 397 if (counts[i] + 1UL != __atomic_load_n (&array[i], MEMMODEL_RELAXED)) in GOMP_doacross_post() 398 __atomic_store_n (&array[i], counts[i] + 1UL, MEMMODEL_RELEASE); in GOMP_doacross_post() 437 unsigned long *array = (unsigned long *) (doacross->array in GOMP_doacross_wait() local 450 cur = __atomic_load_n (array, MEMMODEL_ACQUIRE); in GOMP_doacross_wait() [all …]
|
/dflybsd-src/usr.sbin/makefs/hammer2/ |
H A D | hammer2_cluster.c | 171 cluster->array[0].chain = chain; in hammer2_dummy_xop_from_chain() 172 cluster->array[0].flags = HAMMER2_CITEM_FEMOD; in hammer2_dummy_xop_from_chain() 218 chain = cluster->array[i].chain; in hammer2_cluster_drop() 221 cluster->array[i].chain = NULL; /* safety */ in hammer2_cluster_drop() 259 chain = cluster->array[i].chain; in hammer2_cluster_lock() 273 chain = cluster->array[i].chain; in hammer2_cluster_unhold() 287 chain = cluster->array[i].chain; in hammer2_cluster_rehold() 366 cluster->array[i].flags &= ~HAMMER2_CITEM_FEMOD; in hammer2_cluster_check() 367 cluster->array[i].flags |= HAMMER2_CITEM_INVALID; in hammer2_cluster_check() 369 chain = cluster->array[i].chain; in hammer2_cluster_check() [all …]
|
/dflybsd-src/sys/vfs/hammer2/ |
H A D | hammer2_cluster.c | 166 cluster->array[0].chain = chain; in hammer2_dummy_xop_from_chain() 167 cluster->array[0].flags = HAMMER2_CITEM_FEMOD; in hammer2_dummy_xop_from_chain() 213 chain = cluster->array[i].chain; in hammer2_cluster_drop() 216 cluster->array[i].chain = NULL; /* safety */ in hammer2_cluster_drop() 254 chain = cluster->array[i].chain; in hammer2_cluster_lock() 268 chain = cluster->array[i].chain; in hammer2_cluster_unhold() 282 chain = cluster->array[i].chain; in hammer2_cluster_rehold() 361 cluster->array[i].flags &= ~HAMMER2_CITEM_FEMOD; in hammer2_cluster_check() 362 cluster->array[i].flags |= HAMMER2_CITEM_INVALID; in hammer2_cluster_check() 364 chain = cluster->array[i].chain; in hammer2_cluster_check() [all …]
|
/dflybsd-src/contrib/gcc-8.0/libstdc++-v3/include/std/ |
H A D | array | 1 // <array> -*- C++ -*- 25 /** @file include/array 94 struct array 120 swap(array& __other) 196 std::__throw_out_of_range_fmt(__N("array::at: __n (which is %zu) " 208 : (std::__throw_out_of_range_fmt(__N("array::at: __n (which is %zu) " 244 array(_Tp, _Up...) 245 -> array<enable_if_t<(is_same_v<_Tp, _Up> && ...), _Tp>, 252 operator==(const array<_Tp, _Nm>& __one, const array<_Tp, _Nm>& __two) 257 operator!=(const array<_Tp, _Nm>& __one, const array<_Tp, _Nm>& __two) [all …]
|
H A D | valarray | 78 template<class _Tp> class valarray; // An array of type _Tp 79 class slice; // BLAS-like slice out of an array 81 class gslice; // generalized slice out of an array 83 template<class _Tp> class mask_array; // masked array 84 template<class _Tp> class indirect_array; // indirected array 105 * @brief Smart array designed to support numeric processing. 107 * A valarray is an array that provides constraints intended to allow for 108 * effective optimization of numeric array processing by reducing the 110 * one-dimensional array from which different multidimensional subsets can 113 * @tparam _Tp Type of object in the array. [all …]
|
/dflybsd-src/contrib/gcc-4.7/libstdc++-v3/include/tr1/ |
H A D | array | 1 // class template array -*- C++ -*- 26 /** @file tr1/array 58 struct array 80 swap(array& __other) 139 std::__throw_out_of_range(__N("array::at")); 147 std::__throw_out_of_range(__N("array::at")); 179 operator==(const array<_Tp, _Nm>& __one, const array<_Tp, _Nm>& __two) 184 operator!=(const array<_Tp, _Nm>& __one, const array<_Tp, _Nm>& __two) 189 operator<(const array<_Tp, _Nm>& __a, const array<_Tp, _Nm>& __b) 197 operator>(const array<_Tp, _Nm>& __one, const array<_Tp, _Nm>& __two) [all …]
|
/dflybsd-src/contrib/gcc-8.0/libstdc++-v3/include/tr1/ |
H A D | array | 1 // class template array -*- C++ -*- 25 /** @file tr1/array 57 struct array 79 swap(array& __other) 138 std::__throw_out_of_range(__N("array::at")); 146 std::__throw_out_of_range(__N("array::at")); 178 operator==(const array<_Tp, _Nm>& __one, const array<_Tp, _Nm>& __two) 183 operator!=(const array<_Tp, _Nm>& __one, const array<_Tp, _Nm>& __two) 188 operator<(const array<_Tp, _Nm>& __a, const array<_Tp, _Nm>& __b) 196 operator>(const array<_Tp, _Nm>& __one, const array<_Tp, _Nm>& __two) [all …]
|
/dflybsd-src/contrib/gcc-8.0/libstdc++-v3/include/debug/ |
H A D | array | 1 // Debugging array implementation -*- C++ -*- 25 /** @file debug/array 34 #include <array> 44 struct array 88 swap(array& __other) 171 std::__throw_out_of_range_fmt(__N("array::at: __n (which is %zu) " 183 : (std::__throw_out_of_range_fmt(__N("array::at: __n (which is %zu) " 230 array(_Tp, _Up...) 231 -> array<std::enable_if_t<(std::is_same_v<_Tp, _Up> && ...), _Tp>, 238 operator==(const array<_Tp, _Nm>& __one, const array<_Tp, _Nm>& __two) [all …]
|
/dflybsd-src/contrib/gcc-8.0/libstdc++-v3/include/profile/ |
H A D | array | 1 // Profile array implementation -*- C++ -*- 25 /** @file profile/array 34 #include <array> 41 struct array 67 swap(array& __other) 143 std::__throw_out_of_range_fmt(__N("array::at: __n " 156 : (std::__throw_out_of_range_fmt(__N("array::at: __n (which is %zu) " 193 operator==(const array<_Tp, _Nm>& __one, const array<_Tp, _Nm>& __two) 198 operator!=(const array<_Tp, _Nm>& __one, const array<_Tp, _Nm>& __two) 203 operator<(const array<_Tp, _Nm>& __a, const array<_Tp, _Nm>& __b) [all …]
|
/dflybsd-src/contrib/gcc-4.7/libstdc++-v3/include/std/ |
H A D | array | 1 // <array> -*- C++ -*- 26 /** @file include/array 62 struct array 87 swap(array& __other) 163 std::__throw_out_of_range(__N("array::at")); 173 : (std::__throw_out_of_range(__N("array::at")), _M_instance[0]); 204 operator==(const array<_Tp, _Nm>& __one, const array<_Tp, _Nm>& __two) 209 operator!=(const array<_Tp, _Nm>& __one, const array<_Tp, _Nm>& __two) 214 operator<(const array<_Tp, _Nm>& __a, const array<_Tp, _Nm>& __b) 222 operator>(const array<_Tp, _Nm>& __one, const array<_Tp, _Nm>& __two) [all …]
|
H A D | valarray | 80 template<class _Tp> class valarray; // An array of type _Tp 81 class slice; // BLAS-like slice out of an array 83 class gslice; // generalized slice out of an array 85 template<class _Tp> class mask_array; // masked array 86 template<class _Tp> class indirect_array; // indirected array 107 * @brief Smart array designed to support numeric processing. 109 * A valarray is an array that provides constraints intended to allow for 110 * effective optimization of numeric array processing by reducing the 112 * one-dimensional array from which different multidimensional subsets can 115 * @tparam _Tp Type of object in the array. [all …]
|