Home
last modified time | relevance | path

Searched refs:nelems (Results 1 – 25 of 31) sorted by relevance

12

/src/crypto/krb5/src/lib/krb5/krb/
H A Dcopy_auth.c68 unsigned int nelems = 0, nelems2 = 0; in krb5_merge_authdata() local
77 while (inauthdat1[nelems]) nelems++; in krb5_merge_authdata()
82 if (!(tempauthdat = (krb5_authdata **) calloc(nelems+nelems2+1, in krb5_merge_authdata()
87 for (nelems = 0; inauthdat1[nelems]; nelems++) { in krb5_merge_authdata()
88 retval = krb5int_copy_authdatum(context, inauthdat1[nelems], in krb5_merge_authdata()
89 &tempauthdat[nelems]); in krb5_merge_authdata()
100 &tempauthdat[nelems++]); in krb5_merge_authdata()
H A Dcopy_addrs.c54 size_t nelems = 0; in krb5_copy_addresses() local
61 while (inaddr[nelems]) nelems++; in krb5_copy_addresses()
64 if (!(tempaddr = (krb5_address **) calloc(nelems+1, sizeof(*tempaddr)))) in krb5_copy_addresses()
67 for (nelems = 0; inaddr[nelems]; nelems++) { in krb5_copy_addresses()
68 retval = krb5_copy_addr(context, inaddr[nelems], &tempaddr[nelems]); in krb5_copy_addresses()
/src/sys/dev/vmm/
H A Dvmm_stat.h48 int nelems; /* standalone or array */ member
60 .nelems = _nelems, \
68 #define VMM_STAT_DEFINE(type, nelems, desc, pred) \ argument
69 VMM_STAT_FDEFINE(type, nelems, desc, NULL, pred)
80 #define VMM_STAT_ARRAY(type, nelems, desc) \ argument
81 VMM_STAT_DEFINE(type, nelems, desc, NULL)
100 if (vst->index >= 0 && statidx < vst->nelems) in vmm_stat_array_incr()
114 if (vst->index >= 0 && statidx < vst->nelems) in vmm_stat_array_set()
H A Dvmm_stat.c65 if (vst_num_elems + vst->nelems >= MAX_VMM_STAT_ELEMS) { in vmm_stat_register()
71 vst_num_elems += vst->nelems; in vmm_stat_register()
139 if (index >= vst->index && index < vst->index + vst->nelems) { in vmm_stat_desc_copy()
140 if (vst->nelems > 1) { in vmm_stat_desc_copy()
/src/sys/contrib/openzfs/module/zcommon/
H A Dzfs_valstr.c55 valstr_bitfield_bits(const valstr_bit_t *table, const size_t nelems, in valstr_bitfield_bits() argument
60 for (int b = 0; b < nelems; b++) { in valstr_bitfield_bits()
77 valstr_bitfield_pairs(const valstr_bit_t *table, const size_t nelems, in valstr_bitfield_pairs() argument
82 for (int b = 0; b < nelems; b++) { in valstr_bitfield_pairs()
108 valstr_bitfield_str(const valstr_bit_t *table, const size_t nelems, in valstr_bitfield_str() argument
113 for (int b = 0; b < nelems; b++) { in valstr_bitfield_str()
141 valstr_enum_str(const char **table, const size_t nelems, in valstr_enum_str() argument
145 ASSERT3U(v, <, nelems); in valstr_enum_str()
146 if (v >= nelems) in valstr_enum_str()
/src/contrib/llvm-project/lldb/source/Plugins/SymbolFile/CTF/
H A DCTFTypes.h107 uint32_t index, uint32_t nelems) in CTFArray()
108 : CTFType(eArray, uid, name), type(type), index(index), nelems(nelems) {} in CTFArray()
114 uint32_t nelems; member
124 CTFEnum(lldb::user_id_t uid, llvm::StringRef name, uint32_t nelems, in CTFEnum()
126 : CTFType(eEnum, uid, name), nelems(nelems), size(size), in CTFEnum()
128 assert(this->values.size() == nelems); in CTFEnum()
133 uint32_t nelems; member
H A DSymbolFileCTF.cpp446 uint64_t size = ctf_array.nelems * *element_size; in CreateArray()
449 element_type->GetFullCompilerType(), ctf_array.nelems, in CreateArray()
642 const uint32_t nelems = m_data.GetU32(&offset); in ParseType() local
643 return std::make_unique<CTFArray>(uid, name, type, index, nelems); in ParseType()
/src/sys/contrib/openzfs/include/sys/
H A Dbtree.h148 NAME(zfs_btree_t *tree, uint8_t *buf, uint32_t nelems, \
154 while (nelems > 1) { \
155 uint32_t half = nelems / 2; \
156 nelems -= half; \
/src/sys/dev/ofw/
H A Dofw_bus_subr.c978 int rv, i, j, nelems, cnt; in ofw_bus_parse_xref_list_internal() local
981 nelems = OF_getencprop_alloc_multi(node, list_name, sizeof(*elems), in ofw_bus_parse_xref_list_internal()
983 if (nelems <= 0) in ofw_bus_parse_xref_list_internal()
986 for (i = 0, cnt = 0; i < nelems; i += pcells, cnt++) { in ofw_bus_parse_xref_list_internal()
995 if ((i + pcells) > nelems) { in ofw_bus_parse_xref_list_internal()
1073 int rv, i, cnt, nelems; in ofw_bus_find_string_index() local
1076 nelems = OF_getprop_alloc(node, list_name, (void **)&elems); in ofw_bus_find_string_index()
1077 if (nelems <= 0) in ofw_bus_find_string_index()
1081 for (i = 0, cnt = 0; i < nelems; cnt++) { in ofw_bus_find_string_index()
1104 int i, cnt, nelems, len; in ofw_bus_string_list_to_array() local
[all …]
/src/usr.sbin/moused/moused/
H A Dutil.c104 size_t l, nelems = 0; in strv_from_string() local
106 nelems++; in strv_from_string()
108 if (nelems == 0) { in strv_from_string()
113 size_t strv_len = nelems + 1; /* NULL-terminated */ in strv_from_string()
130 *num_elements = nelems; in strv_from_string()
/src/cddl/contrib/opensolaris/common/ctf/
H A Dctf_hash.c35 ctf_hash_create(ctf_hash_t *hp, ulong_t nelems) in ctf_hash_create() argument
37 if (nelems > USHRT_MAX) in ctf_hash_create()
44 if (nelems == 0) { in ctf_hash_create()
52 hp->h_nelems = nelems + 1; /* we use index zero as a sentinel */ in ctf_hash_create()
/src/contrib/lua/src/
H A Dlmem.h66 #define luaM_growvector(L,v,nelems,size,t,limit,e) \ argument
67 ((v)=cast(t *, luaM_growaux_(L,v,nelems,&(size),sizeof(t), \
85 LUAI_FUNC void *luaM_growaux_ (lua_State *L, void *block, int nelems,
H A Dlmem.c97 void *luaM_growaux_ (lua_State *L, void *block, int nelems, int *psize, in luaM_growaux_() argument
101 if (nelems + 1 <= size) /* does one extra element still fit? */ in luaM_growaux_()
113 lua_assert(nelems + 1 <= size && size <= limit); in luaM_growaux_()
H A Dlcode.h96 LUAI_FUNC void luaK_setlist (FuncState *fs, int base, int nelems, int tostore);
H A Dlcode.c1818 void luaK_setlist (FuncState *fs, int base, int nelems, int tostore) { in luaK_setlist() argument
1822 if (nelems <= MAXARG_C) in luaK_setlist()
1823 luaK_codeABC(fs, OP_SETLIST, base, tostore, nelems); in luaK_setlist()
1825 int extra = nelems / (MAXARG_C + 1); in luaK_setlist()
1826 nelems %= (MAXARG_C + 1); in luaK_setlist()
1827 luaK_codeABCk(fs, OP_SETLIST, base, tostore, nelems, 1); in luaK_setlist()
/src/sys/contrib/openzfs/module/lua/
H A Dlfunc.h23 LUAI_FUNC Closure *luaF_newCclosure (lua_State *L, int nelems);
24 LUAI_FUNC Closure *luaF_newLclosure (lua_State *L, int nelems);
H A Dlmem.h39 #define luaM_growvector(L,v,nelems,size,t,limit,e) \ argument
40 if ((nelems)+1 > (size)) \
H A Dlcode.h81 LUAI_FUNC void luaK_setlist (FuncState *fs, int base, int nelems, int tostore);
/src/sbin/ipf/libipf/
H A Dprintipfexpr.c13 int i, nelems, j, not; in printipfexpr() local
16 nelems = array[0]; in printipfexpr()
18 for (i = 1; i < nelems; ) { in printipfexpr()
/src/crypto/openssl/test/
H A Dasn1_encode_test.c733 size_t nelems; in test_intern() local
740 nelems = package->encode_expectations_size in test_intern()
742 OPENSSL_assert(nelems == OSSL_NELEM(test_custom_data)); in test_intern()
743 for (i = 0; i < nelems; i++) { in test_intern()
795 nelems = package->encdec_data_size / package->encdec_data_elem_size; in test_intern()
796 for (i = 0; i < nelems; i++) { in test_intern()
/src/sys/arm/broadcom/bcm2835/
H A Draspberrypi_gpio.c362 int i, nelems, elm_pos, rv; in rpi_fw_gpio_attach() local
373 nelems = OF_getprop_alloc(gpio, "gpio-line-names", (void **)&names); in rpi_fw_gpio_attach()
374 if (nelems <= 0) in rpi_fw_gpio_attach()
379 if (names != NULL && elm_pos < nelems && in rpi_fw_gpio_attach()
/src/crypto/krb5/src/plugins/kdb/db2/libdb2/man/
H A Dspell.ok138 nelems
/src/cddl/contrib/opensolaris/tools/ctf/dump/
H A Ddump.c524 uint_t contents, index, nelems; in read_types() local
529 nelems = u.ap2->cta_nelems; in read_types()
533 nelems = u.ap3->cta_nelems; in read_types()
538 contents, index, nelems); in read_types()
/src/sys/compat/linuxkpi/common/include/linux/
H A Ddma-mapping.h297 dma_sync_sg_for_cpu(struct device *dev, struct scatterlist *sg, int nelems, in dma_sync_sg_for_cpu() argument
304 dma_sync_sg_for_device(struct device *dev, struct scatterlist *sg, int nelems, in dma_sync_sg_for_device() argument
/src/cddl/contrib/opensolaris/tools/ctf/cvt/
H A Dctf.c1176 uint_t contents, index, nelems; in resurrect_types() local
1185 nelems = cta->cta_nelems; in resurrect_types()
1191 nelems = cta->cta_nelems; in resurrect_types()
1198 tdp->t_ardef->ad_nelems = nelems; in resurrect_types()

12