/illumos-gate/usr/src/lib/gss_mechs/mech_krb5/krb5/krb/ |
H A D | copy_addrs.c | 58 register unsigned int nelems = 0; in krb5_copy_addresses() local 65 while (inaddr[nelems]) nelems++; in krb5_copy_addresses() 68 if (!(tempaddr = (krb5_address **) calloc(nelems+1, sizeof(*tempaddr)))) 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++; 110 (nelems + norigelems + 1) * sizeof(*tempaddr)); 118 for (nelems = 0; inaddr[nelems]; nelems++) { 119 retval = krb5_copy_addr(context, inaddr[nelems], [all …]
|
/illumos-gate/usr/src/lib/fm/topo/modules/common/fac_prov_ipmi/ |
H A D | fac_prov_ipmi.c | 344 uint_t nelems; in ipmi_sensor_state() local 361 &entity_refs, &nelems, &err) != 0) { in ipmi_sensor_state() 369 topo_mod_strfreev(mod, entity_refs, nelems); in ipmi_sensor_state() 382 for (i = 0; i < nelems; i++) { in ipmi_sensor_state() 393 topo_mod_strfreev(mod, entity_refs, nelems); in ipmi_sensor_state() 411 topo_mod_strfreev(mod, entity_refs, nelems); in ipmi_sensor_state() 419 topo_mod_strfreev(mod, entity_refs, nelems); in ipmi_sensor_state() 426 topo_mod_strfreev(mod, entity_refs, nelems); in ipmi_sensor_state() 430 topo_mod_strfreev(mod, entity_refs, nelems); in ipmi_sensor_state() 473 uint_t nelems; in ipmi_sensor_reading() local [all …]
|
/illumos-gate/usr/src/uts/sun4/os/ |
H A D | memlist.c | 107 size_virtalloc(prom_memlist_t *avail, size_t nelems) in size_virtalloc() argument 115 for (i = 0; i < nelems - 1; i++) { in size_virtalloc() 378 size_t nelems, /* number of elements */ in installed_top_size_memlist_array() argument 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() 435 size_t nelems; /* actual number of elements */ member 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() [all …]
|
H A D | memnode.c | 187 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 D | vmm_stat.h | 60 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 D | vmm_stat.c | 68 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 D | copy_princ.c | 45 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 D | copy_auth.c | 85 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 D | dacf.c | 670 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() 691 dprintf("dacf_module_register: found %lu opsets\n", nelems); in dacf_module_register() 697 if ((nelems == 0) && (sw != &kmod_dacfsw)) { in dacf_module_register() 753 opsarray = kmem_zalloc(sizeof (dacf_opset_t) * (nelems + 1), KM_SLEEP); 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 [all …]
|
H A D | cyclic.c | 792 cyc_index_t nelems = cpu->cyp_nelems; in cyclic_downheap() local 799 if ((heap_left = CYC_HEAP_LEFT(heap_me)) >= nelems) in cyclic_downheap() 811 if (heap_right >= nelems) in cyclic_downheap() 1662 cyc_index_t ndx, nelems; in cyclic_add_xcall() local 1674 nelems = cpu->cyp_nelems++; in cyclic_add_xcall() 1676 if (nelems == 0) { in cyclic_add_xcall() 1685 ndx = cpu->cyp_heap[nelems]; in cyclic_add_xcall() 1707 if (cyclic_upheap(cpu, nelems)) { in cyclic_add_xcall() 1770 cyc_index_t ndx = arg->cyx_ndx, nelems, i; in cyclic_remove_xcall() local 1784 nelems = cpu->cyp_nelems; in cyclic_remove_xcall() [all …]
|
/illumos-gate/usr/src/lib/fm/topo/libtopo/common/ |
H A D | topo_digraph_xml.c | 137 uint_t nelems) in tdg_xml_nvint32arr() argument 143 for (uint_t i = 0; i < nelems; i++) { in tdg_xml_nvint32arr() 152 uint_t nelems) in tdg_xml_nvuint32arr() argument 158 for (uint_t i = 0; i < nelems; i++) { in tdg_xml_nvuint32arr() 167 uint_t nelems) in tdg_xml_nvint64arr() argument 173 for (uint_t i = 0; i < nelems; i++) { in tdg_xml_nvint64arr() 182 uint_t nelems) in tdg_xml_nvuint64arr() argument 188 for (uint_t i = 0; i < nelems; i++) { in tdg_xml_nvuint64arr() 331 uint_t nelems; in serialize_nvpair() local 334 if (nvpair_value_int32_array(nvp, &val, &nelems) != 0) in serialize_nvpair() [all …]
|
H A D | topo_prop.c | 210 topo_type_t type, uint_t *nelems, int *err) in prop_getval() argument 273 TOPO_PROP_VAL_VAL, &a2, nelems)) != 0) in prop_getval() 276 *nelems)) == NULL) { in prop_getval() 280 for (i = 0; i < *nelems; ++i) in prop_getval() 289 TOPO_PROP_VAL_VAL, &a2, nelems)) != 0) in prop_getval() 292 *nelems)) == NULL) { in prop_getval() 296 for (i = 0; i < *nelems; ++i) in prop_getval() 305 TOPO_PROP_VAL_VAL, &a2, nelems)) != 0) in prop_getval() 308 *nelems)) == NULL) { in prop_getval() 312 for (i = 0; i < *nelems; ++i) in prop_getval() [all …]
|
H A D | topo_xml.c | 221 uint_t i = 0, nelems = 0; in xlate_common() local 277 nelems++; in xlate_common() 279 if (nelems < 1) { in xlate_common() 293 if ((arrbuf = topo_mod_alloc(mp, (nelems * sizeof (int32_t)))) in xlate_common() 307 nelems); in xlate_common() 308 topo_mod_free(mp, arrbuf, (nelems * sizeof (int32_t))); in xlate_common() 311 if ((arrbuf = topo_mod_alloc(mp, (nelems * sizeof (uint32_t)))) in xlate_common() 325 nelems); in xlate_common() 326 topo_mod_free(mp, arrbuf, (nelems * sizeof (uint32_t))); in xlate_common() 329 if ((arrbuf = topo_mod_alloc(mp, (nelems * sizeof (int64_t)))) in xlate_common() [all …]
|
/illumos-gate/usr/src/cmd/fm/fminject/common/ |
H A D | inj_defn.c | 304 size_t nelems; in inj_defn_memcmp_intr_array() local 320 nelems = array_dim_check(dlm, dfm); in inj_defn_memcmp_intr_array() 321 arrsz = (nelems + 1) * (cont->ei_width / NBBY); in inj_defn_memcmp_intr_array() 394 if (err == 0 && (errno = adder(nvl, dlm->dlm_name, arr, nelems)) != 0) 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() 467 (char *)dlm->dlm_name, arr, nelems)) != 0) 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() [all …]
|
H A D | inj_cmds.c | 82 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 D | chip_serial.c | 213 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 D | ctf_hash.c | 36 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 D | lfunc.h | 22 LUAI_FUNC Closure *luaF_newCclosure (lua_State *L, int nelems); 23 LUAI_FUNC Closure *luaF_newLclosure (lua_State *L, int nelems);
|
H A D | lmem.h | 40 #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 D | sysevent_conf_mod.c | 1064 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() 1269 for (i = 0; i < nelems; i++) { in find_macro_definition() 1283 &x.x_int32_array, &nelems); in find_macro_definition() 1285 for (i = 0; i < nelems; i++) { in find_macro_definition() 1298 &x.x_uint32_array, &nelems); in find_macro_definition() [all …]
|
/illumos-gate/usr/src/lib/smbsrv/libfksmbsrv/common/ |
H A D | fake_xattr.c | 88 uint_t nelems = 2; in getxva_parse_nvl() local 126 if (nvpair_value_uint64_array(pair, ×, &nelems)) { in getxva_parse_nvl() 130 if (nelems < 2) in getxva_parse_nvl()
|
/illumos-gate/usr/src/uts/intel/io/mc-amd/ |
H A D | mcamd_subr.c | 627 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 D | authamd_main.c | 998 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 D | ipmi_enum.c | 94 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 D | ao_mca.c | 678 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()
|