Home
last modified time | relevance | path

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

123

/illumos-gate/usr/src/lib/gss_mechs/mech_krb5/krb5/krb/
H A Dcopy_addrs.c58 register unsigned int nelems = 0; in krb5_copy_addresses() local
65 while (inaddr[nelems]) nelems++; in krb5_copy_addresses()
71 for (nelems = 0; inaddr[nelems]; nelems++) { in krb5_copy_addresses()
72 retval = krb5_copy_addr(context, inaddr[nelems], &tempaddr[nelems]); in krb5_copy_addresses()
98 register unsigned int nelems = 0;
106 while (inaddr[nelems]) nelems++;
118 for (nelems = 0; inaddr[nelems]; nelems++) {
119 retval = krb5_copy_addr(context, inaddr[nelems],
120 &tempaddr[norigelems + nelems]);
125 tempaddr[norigelems + nelems] = 0;
[all …]
/illumos-gate/usr/src/lib/fm/topo/modules/common/fac_prov_ipmi/
H A Dfac_prov_ipmi.c344 uint_t nelems; in ipmi_sensor_state() local
473 uint_t nelems; in ipmi_sensor_reading() local
578 uint_t nelems; in ipmi_indicator_mode() local
699 uint_t nelems; in bay_locate_mode() local
833 uint_t nelems; in bay_indicator_mode() local
1033 uint_t nelems; in x4500_present_mode() local
1164 uint_t nelems; in chassis_service_mode() local
1732 uint_t nelems; in get_entity_info() local
1857 uint_t nelems; in ipmi_entity() local
1943 uint_t nelems; in dimm_ipmi_entity() local
[all …]
/illumos-gate/usr/src/uts/sun4/os/
H A Dmemlist.c115 for (i = 0; i < nelems - 1; i++) { in size_virtalloc()
387 for (i = 0; i < nelems; list++, i++) { in installed_top_size_memlist_array()
405 size_t nelems, in copy_memlist() argument
414 for (i = 0; i < nelems; src++, i++) { in copy_memlist()
455 bpp->nelems--; in compact_promlist()
456 for (j = i + 1; j < bpp->nelems; j++) in compact_promlist()
461 if (i == bpp->nelems) in compact_promlist()
476 for (i = 0; i < bpp->nelems; i++) { in sort_promlist()
595 *physinstalled_len = il->nelems; in copy_boot_memlists()
598 *physavail_len = pl->nelems; in copy_boot_memlists()
[all …]
H A Dmemnode.c187 startup_build_mem_nodes(prom_memlist_t *list, size_t nelems) in startup_build_mem_nodes() argument
197 plat_build_mem_nodes(list, nelems); in startup_build_mem_nodes()
202 for (elem = 0; elem < nelems; list++, elem++) { in startup_build_mem_nodes()
/illumos-gate/usr/src/uts/intel/io/vmm/
H A Dvmm_stat.h60 int nelems; /* standalone or array */ member
68 #define VMM_STAT_FDEFINE(type, nelems, desc, func, scope) \ argument
70 { -1, nelems, desc, func, scope } \
74 #define VMM_STAT_DEFINE(type, nelems, desc, scope) \ argument
75 VMM_STAT_FDEFINE(type, nelems, desc, NULL, scope)
90 #define VMM_STAT_ARRAY(type, nelems, desc) \ argument
91 VMM_STAT_DEFINE(type, nelems, desc, VMM_STAT_SCOPE_ANY)
110 if (vst->index >= 0 && statidx < vst->nelems) in vmm_stat_array_incr()
124 if (vst->index >= 0 && statidx < vst->nelems) in vmm_stat_array_set()
H A Dvmm_stat.c68 if (vst_num_elems + vst->nelems >= MAX_VMM_STAT_ELEMS) { in vmm_stat_register()
74 vst_num_elems += vst->nelems; in vmm_stat_register()
143 if (index >= vst->index && index < vst->index + vst->nelems) { in vmm_stat_desc_copy()
144 if (vst->nelems > 1) { in vmm_stat_desc_copy()
/illumos-gate/usr/src/uts/common/gssapi/mechs/krb5/krb5/krb/
H A Dcopy_princ.c45 register int i, nelems; in krb5_copy_principal() local
54 nelems = (int) krb5_princ_size(context, inprinc); in krb5_copy_principal()
55 tempprinc->data = MALLOC(nelems * sizeof(krb5_data)); in krb5_copy_principal()
62 for (i = 0; i < nelems; i++) { in krb5_copy_principal()
76 FREE (tempprinc->data, nelems * sizeof(krb5_data)); in krb5_copy_principal()
96 for (i = 0; i < nelems; i++) in krb5_copy_principal()
99 FREE(tempprinc->data, nelems * sizeof(krb5_data)); in krb5_copy_principal()
H A Dcopy_auth.c85 register unsigned int nelems = 0, nelems2 = 0; in krb5_merge_authdata() local
94 while (inauthdat1[nelems]) nelems++; in krb5_merge_authdata()
99 if (!(tempauthdat = (krb5_authdata **) calloc(nelems+nelems2+1, in krb5_merge_authdata()
104 for (nelems = 0; inauthdat1[nelems]; nelems++) { in krb5_merge_authdata()
105 retval = krb5_copy_authdatum(context, inauthdat1[nelems], in krb5_merge_authdata()
106 &tempauthdat[nelems]); in krb5_merge_authdata()
117 &tempauthdat[nelems++]); in krb5_merge_authdata()
/illumos-gate/usr/src/uts/common/os/
H A Ddacf.c670 size_t i, nelems; in dacf_module_register() local
688 for (nelems = 0; sw->dacf_opsets[nelems].opset_name != NULL; nelems++) in dacf_module_register()
755 for (i = 0; i < nelems; i++) { in dacf_module_register()
760 opsarray[nelems].opset_name = NULL; in dacf_module_register()
761 opsarray[nelems].opset_ops = NULL; in dacf_module_register()
768 for (i = 0; i < nelems; i++) { in dacf_module_register()
833 size_t nelems; in dacf_destroy_opsets() local
844 for (nelems = 0; ; nelems++) { in dacf_destroy_opsets()
869 size_t nelems, i; in dacf_opset_copy() local
879 for (nelems = 0; ; nelems++) { in dacf_opset_copy()
[all …]
H A Dcyclic.c1662 cyc_index_t ndx, nelems; in cyclic_add_xcall() local
1676 if (nelems == 0) { in cyclic_add_xcall()
1784 nelems = cpu->cyp_nelems; in cyclic_remove_xcall()
1785 ASSERT(nelems > 0); in cyclic_remove_xcall()
1833 if (i == nelems) in cyclic_remove_xcall()
1838 if (nelems == 0) { in cyclic_remove_xcall()
1847 if (i == nelems) { in cyclic_remove_xcall()
1866 heap[nelems] = ndx; in cyclic_remove_xcall()
1895 ASSERT(nelems != 0); in cyclic_remove_xcall()
1969 cyc_index_t nelems, i; in cyclic_reprogram_cyclic() local
[all …]
/illumos-gate/usr/src/lib/fm/topo/libtopo/common/
H A Dtopo_digraph_xml.c137 uint_t nelems) in tdg_xml_nvint32arr() argument
152 uint_t nelems) in tdg_xml_nvuint32arr() argument
167 uint_t nelems) in tdg_xml_nvint64arr() argument
182 uint_t nelems) in tdg_xml_nvuint64arr() argument
331 uint_t nelems; in serialize_nvpair() local
342 uint_t nelems; in serialize_nvpair() local
353 uint_t nelems; in serialize_nvpair() local
364 uint_t nelems; in serialize_nvpair() local
375 uint_t nelems; in serialize_nvpair() local
393 uint_t nelems; in serialize_nvpair() local
[all …]
H A Dtopo_prop.c276 *nelems)) == NULL) { in prop_getval()
280 for (i = 0; i < *nelems; ++i) in prop_getval()
292 *nelems)) == NULL) { in prop_getval()
308 *nelems)) == NULL) { in prop_getval()
324 *nelems)) == NULL) { in prop_getval()
340 *nelems)) == NULL) { in prop_getval()
365 *nelems)) == NULL) { in prop_getval()
723 val, nelems, err)); in topo_prop_set_int32_array()
731 val, nelems, err)); in topo_prop_set_uint32_array()
739 val, nelems, err)); in topo_prop_set_int64_array()
[all …]
H A Dtopo_xml.c221 uint_t i = 0, nelems = 0; in xlate_common() local
277 nelems++; in xlate_common()
279 if (nelems < 1) { in xlate_common()
307 nelems); in xlate_common()
308 topo_mod_free(mp, arrbuf, (nelems * sizeof (int32_t))); in xlate_common()
325 nelems); in xlate_common()
343 nelems); in xlate_common()
361 nelems); in xlate_common()
383 topo_mod_strfreev(mp, strarrbuf, nelems); in xlate_common()
386 if ((nvlarrbuf = topo_mod_alloc(mp, (nelems * in xlate_common()
[all …]
/illumos-gate/usr/src/cmd/fm/fminject/common/
H A Dinj_defn.c304 size_t nelems; in inj_defn_memcmp_intr_array() local
320 nelems = array_dim_check(dlm, dfm); in inj_defn_memcmp_intr_array()
442 size_t nelems, arrsz; in inj_defn_memcmp_bool_array() local
449 nelems = array_dim_check(dlm, dfm); in inj_defn_memcmp_bool_array()
450 arrsz = nelems * sizeof (boolean_t); in inj_defn_memcmp_bool_array()
504 size_t nelems, arrsz; in inj_defn_memcmp_strenum_array() local
512 nelems = array_dim_check(dlm, dfm); in inj_defn_memcmp_strenum_array()
513 arrsz = nelems * sizeof (char *); in inj_defn_memcmp_strenum_array()
635 size_t nelems, arrsz; in inj_defn_memcmp_sub_array() local
644 nelems = array_dim_check(dlm, dfm); in inj_defn_memcmp_sub_array()
[all …]
H A Dinj_cmds.c82 int nelems, i; in inj_cmd_rand() local
93 nelems = i; in inj_cmd_rand()
97 cmd->cmd_num = nelems; in inj_cmd_rand()
98 cmd->cmd_rand = inj_alloc(sizeof (inj_randelem_t *) * nelems); in inj_cmd_rand()
101 for (r = rlist, i = 0; i < nelems; i++, r = r->re_next) { in inj_cmd_rand()
/illumos-gate/usr/src/lib/fm/topo/modules/i86pc/chip/
H A Dchip_serial.c213 uint_t nelems; in get_dimm_serial() local
217 &entity_refs, &nelems, &err) != 0) { in get_dimm_serial()
223 for (i = 0; i < nelems; i++) { in get_dimm_serial()
239 topo_mod_strfreev(mod, entity_refs, nelems); in get_dimm_serial()
/illumos-gate/usr/src/common/ctf/
H A Dctf_hash.c36 ctf_hash_create(ctf_hash_t *hp, ulong_t nelems) in ctf_hash_create() argument
38 if (nelems > USHRT_MAX) in ctf_hash_create()
45 if (nelems == 0) { in ctf_hash_create()
53 hp->h_nelems = nelems + 1; /* we use index zero as a sentinel */ in ctf_hash_create()
/illumos-gate/usr/src/uts/common/fs/zfs/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.h40 #define luaM_growvector(L,v,nelems,size,t,limit,e) \ argument
41 if ((nelems)+1 > (size)) \
/illumos-gate/usr/src/cmd/syseventd/modules/sysevent_conf_mod/
H A Dsysevent_conf_mod.c1064 uint_t nelems; in find_macro_definition() local
1237 &x.x_byte_array, &nelems); in find_macro_definition()
1239 for (i = 0; i < nelems; i++) { in find_macro_definition()
1252 &x.x_int16_array, &nelems); in find_macro_definition()
1254 for (i = 0; i < nelems; i++) { in find_macro_definition()
1267 &x.x_uint16_array, &nelems); in find_macro_definition()
1283 &x.x_int32_array, &nelems); in find_macro_definition()
1298 &x.x_uint32_array, &nelems); in find_macro_definition()
1314 &x.x_int64_array, &nelems); in find_macro_definition()
1330 &x.x_uint64_array, &nelems); in find_macro_definition()
[all …]
/illumos-gate/usr/src/lib/smbsrv/libfksmbsrv/common/
H A Dfake_xattr.c84 uint_t nelems = 2; in getxva_parse_nvl() local
122 if (nvpair_value_uint64_array(pair, &times, &nelems)) { in getxva_parse_nvl()
126 if (nelems < 2) in getxva_parse_nvl()
/illumos-gate/usr/src/uts/intel/io/mc-amd/
H A Dmcamd_subr.c627 int nelems = 0; in mc_ereport_add_resource() local
631 mc_ereport_dimm_resource(unump, elems, &nelems, mc); in mc_ereport_add_resource()
633 mc_ereport_cs_resource(unump, elems, &nelems, mc); in mc_ereport_add_resource()
635 if (nelems > 0) { in mc_ereport_add_resource()
637 DATA_TYPE_NVLIST_ARRAY, nelems, elems, NULL); in mc_ereport_add_resource()
639 for (i = 0; i < nelems; i++) in mc_ereport_add_resource()
/illumos-gate/usr/src/uts/i86pc/cpu/authenticamd/
H A Dauthamd_main.c998 int nelems = 0; in authamd_ereport_add_resource() local
1017 elems[nelems] = nvl; in authamd_ereport_add_resource()
1018 counts[nelems++] = msl->aal_eccerrcnt[chan][cs]; in authamd_ereport_add_resource()
1042 if (nelems == 0) in authamd_ereport_add_resource()
1046 DATA_TYPE_NVLIST_ARRAY, nelems, elems, in authamd_ereport_add_resource()
1050 DATA_TYPE_UINT8_ARRAY, nelems, &counts[0], in authamd_ereport_add_resource()
1053 for (i = 0; i < nelems; i++) in authamd_ereport_add_resource()
/illumos-gate/usr/src/lib/fm/topo/modules/common/ipmi/
H A Dipmi_enum.c94 uint_t nelems, i; in ipmi_find_entity() local
123 TOPO_PROP_IPMI_ENTITY_REF, &names, &nelems, &err) != 0) { in ipmi_find_entity()
134 for (i = 0; i < nelems; i++) { in ipmi_find_entity()
143 for (i = 0; i < nelems; i++) in ipmi_find_entity()
145 topo_mod_free(mod, names, (nelems * sizeof (char *))); in ipmi_find_entity()
/illumos-gate/usr/src/uts/i86pc/cpu/amd_opteron/
H A Dao_mca.c678 int nelems = 0; in ao_ereport_add_resource() local
685 if ((elems[nelems] = ao_ereport_create_resource_elem(hdl, nva, in ao_ereport_add_resource()
689 nelems++; in ao_ereport_add_resource()
692 if (nelems == 0) in ao_ereport_add_resource()
696 DATA_TYPE_NVLIST_ARRAY, nelems, elems, NULL); in ao_ereport_add_resource()
698 for (i = 0; i < nelems; i++) in ao_ereport_add_resource()

123