Home
last modified time | relevance | path

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

12

/freebsd/sys/dev/vmm/
H A Dvmm_stat.h46 int nelems; /* standalone or array */ member
58 .nelems = _nelems, \
66 #define VMM_STAT_DEFINE(type, nelems, desc, pred) \ argument
67 VMM_STAT_FDEFINE(type, nelems, desc, NULL, pred)
78 #define VMM_STAT_ARRAY(type, nelems, desc) \ argument
79 VMM_STAT_DEFINE(type, nelems, desc, NULL)
98 if (vst->index >= 0 && statidx < vst->nelems) in vmm_stat_array_incr()
112 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()
/freebsd/sys/contrib/openzfs/module/zcommon/
H A Dzfs_valstr.c52 valstr_bitfield_bits(const valstr_bit_t *table, const size_t nelems, in valstr_bitfield_bits() argument
57 for (int b = 0; b < nelems; b++) { in valstr_bitfield_bits()
74 valstr_bitfield_pairs(const valstr_bit_t *table, const size_t nelems, in valstr_bitfield_pairs() argument
79 for (int b = 0; b < nelems; b++) { in valstr_bitfield_pairs()
105 valstr_bitfield_str(const valstr_bit_t *table, const size_t nelems, in valstr_bitfield_str() argument
110 for (int b = 0; b < nelems; b++) { in valstr_bitfield_str()
138 valstr_enum_str(const char **table, const size_t nelems, in valstr_enum_str() argument
142 ASSERT3U(v, <, nelems); in valstr_enum_str()
143 if (v >= nelems) in valstr_enum_str()
/freebsd/sys/dev/ofw/
H A Dofw_bus_subr.c880 int rv, i, j, nelems, cnt; in ofw_bus_parse_xref_list_internal() local
883 nelems = OF_getencprop_alloc_multi(node, list_name, sizeof(*elems), in ofw_bus_parse_xref_list_internal()
885 if (nelems <= 0) in ofw_bus_parse_xref_list_internal()
888 for (i = 0, cnt = 0; i < nelems; i += pcells, cnt++) { in ofw_bus_parse_xref_list_internal()
897 if ((i + pcells) > nelems) { in ofw_bus_parse_xref_list_internal()
975 int rv, i, cnt, nelems; in ofw_bus_find_string_index() local
978 nelems = OF_getprop_alloc(node, list_name, (void **)&elems); in ofw_bus_find_string_index()
979 if (nelems <= 0) in ofw_bus_find_string_index()
983 for (i = 0, cnt = 0; i < nelems; cnt++) { in ofw_bus_find_string_index()
1006 int i, cnt, nelems, len; in ofw_bus_string_list_to_array() local
[all …]
/freebsd/sys/contrib/openzfs/include/sys/
H A Dbtree.h147 NAME(zfs_btree_t *tree, uint8_t *buf, uint32_t nelems, \
153 while (nelems > 1) { \
154 uint32_t half = nelems / 2; \
155 nelems -= half; \
/freebsd/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()
/freebsd/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.h99 LUAI_FUNC void luaK_setlist (FuncState *fs, int base, int nelems, int tostore);
H A Dlcode.c1814 void luaK_setlist (FuncState *fs, int base, int nelems, int tostore) { in luaK_setlist() argument
1818 if (nelems <= MAXARG_C) in luaK_setlist()
1819 luaK_codeABC(fs, OP_SETLIST, base, tostore, nelems); in luaK_setlist()
1821 int extra = nelems / (MAXARG_C + 1); in luaK_setlist()
1822 nelems %= (MAXARG_C + 1); in luaK_setlist()
1823 luaK_codeABCk(fs, OP_SETLIST, base, tostore, nelems, 1); in luaK_setlist()
/freebsd/sys/contrib/openzfs/module/lua/
H A Dlfunc.h22 LUAI_FUNC Closure *luaF_newCclosure (lua_State *L, int nelems);
23 LUAI_FUNC Closure *luaF_newLclosure (lua_State *L, int nelems);
H A Dlmem.h38 #define luaM_growvector(L,v,nelems,size,t,limit,e) \ argument
39 if ((nelems)+1 > (size)) \
H A Dlcode.h80 LUAI_FUNC void luaK_setlist (FuncState *fs, int base, int nelems, int tostore);
H A Dlcode.c873 void luaK_setlist (FuncState *fs, int base, int nelems, int tostore) { in luaK_setlist() argument
874 int c = (nelems - 1)/LFIELDS_PER_FLUSH + 1; in luaK_setlist()
/freebsd/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()
/freebsd/crypto/openssl/test/
H A Dasn1_encode_test.c732 size_t nelems; in test_intern() local
739 nelems = package->encode_expectations_size in test_intern()
741 OPENSSL_assert(nelems == 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()
/freebsd/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()
/freebsd/sys/compat/linuxkpi/common/include/linux/
H A Ddma-mapping.h267 dma_sync_sg_for_cpu(struct device *dev, struct scatterlist *sg, int nelems, in dma_sync_sg_for_cpu() argument
273 dma_sync_sg_for_device(struct device *dev, struct scatterlist *sg, int nelems, in dma_sync_sg_for_device() argument
/freebsd/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()
/freebsd/contrib/llvm-project/lldb/source/Plugins/SymbolFile/CTF/
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()
H A DSymbolFileCTF.h229 uint32_t nelems; global() member
/freebsd/lib/libpfctl/
H A Dlibpfctl.c193 uint8_t *numbers, size_t *nelems) in pf_nvuint_8_array() argument
204 if (nelems) in pf_nvuint_8_array()
205 *nelems = elems; in pf_nvuint_8_array()
210 uint16_t *numbers, size_t *nelems) in pf_nvuint_16_array() argument
221 if (nelems) in pf_nvuint_16_array()
222 *nelems = elems; in pf_nvuint_16_array()
227 uint32_t *numbers, size_t *nelems) in pf_nvuint_32_array() argument
237 if (nelems) in pf_nvuint_32_array()
238 *nelems = elems; in pf_nvuint_32_array()
243 uint64_t *numbers, size_t *nelems) in pf_nvuint_64_array() argument
[all …]
/freebsd/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()
/freebsd/sys/netpfil/pf/
H A Dpf_nv.c70 type *array, size_t maxelems, size_t *nelems) \
80 if (nelems != NULL) \
81 *nelems = nitems; \
/freebsd/sys/contrib/openzfs/module/zfs/
H A Dbtree.c203 zfs_btree_find_in_buf(zfs_btree_t *tree, uint8_t *buf, uint32_t nelems,
230 zfs_btree_find_in_buf(zfs_btree_t *tree, uint8_t *buf, uint32_t nelems, in zfs_btree_find_in_buf() argument
233 uint32_t max = nelems; in zfs_btree_find_in_buf()

12