Home
last modified time | relevance | path

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

12

/titanic_41/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()
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 …]
/titanic_41/usr/src/lib/fm/topo/modules/common/fac_prov_ipmi/
H A Dfac_prov_ipmi.c183 strarr_free(topo_mod_t *mod, char **arr, uint_t nelems) in strarr_free() argument
185 for (int i = 0; i < nelems; i++) in strarr_free()
187 topo_mod_free(mod, arr, (nelems * sizeof (char *))); in strarr_free()
337 uint_t nelems; in ipmi_sensor_state() local
352 &entity_refs, &nelems, &err) != 0) { in ipmi_sensor_state()
360 strarr_free(mod, entity_refs, nelems); in ipmi_sensor_state()
364 for (i = 0; i < nelems; i++) { in ipmi_sensor_state()
374 strarr_free(mod, entity_refs, nelems); in ipmi_sensor_state()
392 strarr_free(mod, entity_refs, nelems); in ipmi_sensor_state()
400 strarr_free(mod, entity_refs, nelems); in ipmi_sensor_state()
[all …]
/titanic_41/usr/src/uts/sun4/os/
H A Dmemlist.c107 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 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()
/titanic_41/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()
/titanic_41/usr/src/uts/common/os/
H A Ddacf.c672 size_t i, nelems; in dacf_module_register() local
690 for (nelems = 0; sw->dacf_opsets[nelems].opset_name != NULL; nelems++) in dacf_module_register()
693 dprintf("dacf_module_register: found %lu opsets\n", nelems); in dacf_module_register()
699 if ((nelems == 0) && (sw != &kmod_dacfsw)) { in dacf_module_register()
755 opsarray = kmem_zalloc(sizeof (dacf_opset_t) * (nelems + 1), KM_SLEEP); in dacf_module_register()
757 for (i = 0; i < nelems; i++) { in dacf_module_register()
762 opsarray[nelems].opset_name = NULL; in dacf_module_register()
763 opsarray[nelems].opset_ops = NULL; in dacf_module_register()
770 for (i = 0; i < nelems; i++) { in dacf_module_register()
835 size_t nelems; in dacf_destroy_opsets() local
[all …]
H A Dcyclic.c784 cyc_index_t nelems = cpu->cyp_nelems; in cyclic_downheap() local
791 if ((heap_left = CYC_HEAP_LEFT(heap_me)) >= nelems) in cyclic_downheap()
803 if (heap_right >= nelems) in cyclic_downheap()
1654 cyc_index_t ndx, nelems; in cyclic_add_xcall() local
1666 nelems = cpu->cyp_nelems++; in cyclic_add_xcall()
1668 if (nelems == 0) { in cyclic_add_xcall()
1677 ndx = cpu->cyp_heap[nelems]; in cyclic_add_xcall()
1699 if (cyclic_upheap(cpu, nelems)) { in cyclic_add_xcall()
1762 cyc_index_t ndx = arg->cyx_ndx, nelems, i; in cyclic_remove_xcall() local
1776 nelems = cpu->cyp_nelems; in cyclic_remove_xcall()
[all …]
/titanic_41/usr/src/lib/fm/topo/libtopo/common/
H A Dtopo_prop.c207 topo_type_t type, uint_t *nelems, int *err) in prop_getval() argument
270 TOPO_PROP_VAL_VAL, &a2, nelems)) != 0) in prop_getval()
273 *nelems)) == NULL) { in prop_getval()
277 for (i = 0; i < *nelems; ++i) in prop_getval()
286 TOPO_PROP_VAL_VAL, &a2, nelems)) != 0) in prop_getval()
289 *nelems)) == NULL) { in prop_getval()
293 for (i = 0; i < *nelems; ++i) in prop_getval()
302 TOPO_PROP_VAL_VAL, &a2, nelems)) != 0) in prop_getval()
305 *nelems)) == NULL) { in prop_getval()
309 for (i = 0; i < *nelems; ++i) in prop_getval()
[all …]
H A Dtopo_xml.c59 strarr_free(topo_mod_t *mod, char **arr, uint_t nelems) in strarr_free() argument
63 for (i = 0; i < nelems; i++) in strarr_free()
65 topo_mod_free(mod, arr, (nelems * sizeof (char *))); in strarr_free()
201 uint_t i = 0, nelems = 0; in xlate_common() local
250 nelems++; in xlate_common()
252 if (nelems < 1) { in xlate_common()
257 if ((arrbuf = topo_mod_alloc(mp, (nelems * sizeof (uint64_t)))) in xlate_common()
265 nelems++; in xlate_common()
267 if (nelems < 1) { in xlate_common()
272 if ((strarrbuf = topo_mod_alloc(mp, (nelems * sizeof (char *)))) in xlate_common()
[all …]
/titanic_41/usr/src/lib/fm/topo/modules/i86pc/chip/
H A Dchip_serial.c210 uint_t nelems; in get_dimm_serial() local
214 &entity_refs, &nelems, &err) != 0) { in get_dimm_serial()
220 for (i = 0; i < nelems; i++) { in get_dimm_serial()
236 for (i = 0; i < nelems; i++) in get_dimm_serial()
238 topo_mod_free(mod, entity_refs, (nelems * sizeof (char *))); in get_dimm_serial()
/titanic_41/usr/src/cmd/fm/fminject/common/
H A Dinj_defn.c307 size_t nelems; in inj_defn_memcmp_intr_array() local
323 nelems = array_dim_check(dlm, dfm); in inj_defn_memcmp_intr_array()
324 arrsz = (nelems + 1) * (cont->ei_width / NBBY); in inj_defn_memcmp_intr_array()
397 if (err == 0 && (errno = adder(nvl, dlm->dlm_name, arr, nelems)) != 0) in inj_defn_memcmp_intr_array()
445 size_t nelems, arrsz; in inj_defn_memcmp_bool_array() local
452 nelems = array_dim_check(dlm, dfm); in inj_defn_memcmp_bool_array()
453 arrsz = nelems * sizeof (boolean_t); in inj_defn_memcmp_bool_array()
470 (char *)dlm->dlm_name, arr, nelems)) != 0) in inj_defn_memcmp_bool_array()
507 size_t nelems, arrsz; in inj_defn_memcmp_strenum_array() local
515 nelems = array_dim_check(dlm, dfm); in inj_defn_memcmp_strenum_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()
/titanic_41/usr/src/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()
/titanic_41/usr/src/lib/fm/topo/modules/common/ipmi/
H A Dipmi_enum.c91 uint_t nelems; in ipmi_present() local
123 TOPO_PROP_IPMI_ENTITY_REF, &names, &nelems, &err) in ipmi_present()
136 for (i = 0; i < nelems; i++) in ipmi_present()
141 for (i = 0; i < nelems; i++) in ipmi_present()
143 topo_mod_free(mod, names, (nelems * sizeof (char *))); in ipmi_present()
/titanic_41/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()
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 …]
/titanic_41/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()
/titanic_41/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()
/titanic_41/usr/src/uts/i86pc/cpu/authenticamd/
H A Dauthamd_main.c996 int nelems = 0; in authamd_ereport_add_resource() local
1015 elems[nelems] = nvl; in authamd_ereport_add_resource()
1016 counts[nelems++] = msl->aal_eccerrcnt[chan][cs]; in authamd_ereport_add_resource()
1040 if (nelems == 0) in authamd_ereport_add_resource()
1044 DATA_TYPE_NVLIST_ARRAY, nelems, elems, in authamd_ereport_add_resource()
1048 DATA_TYPE_UINT8_ARRAY, nelems, &counts[0], in authamd_ereport_add_resource()
1051 for (i = 0; i < nelems; i++) in authamd_ereport_add_resource()
/titanic_41/usr/src/uts/i86pc/cpu/amd_opteron/
H A Dao_mca.c676 int nelems = 0; in ao_ereport_add_resource() local
683 if ((elems[nelems] = ao_ereport_create_resource_elem(hdl, nva, in ao_ereport_add_resource()
687 nelems++; in ao_ereport_add_resource()
690 if (nelems == 0) in ao_ereport_add_resource()
694 DATA_TYPE_NVLIST_ARRAY, nelems, elems, NULL); in ao_ereport_add_resource()
696 for (i = 0; i < nelems; i++) in ao_ereport_add_resource()
/titanic_41/usr/src/uts/common/io/
H A Dpseudonex.c396 uint_t nelems; in pseudonex_ctl() local
406 &nelems) == DDI_PROP_SUCCESS) { in pseudonex_ctl()
408 for (i = 0; i < nelems; i++) { in pseudonex_ctl()
/titanic_41/usr/src/cmd/mdb/common/mdb/
H A Dmdb_argvec.c85 size_t nelems = vec->a_nelems; in mdb_argvec_reset() local
88 for (arg = vec->a_data; nelems != 0; nelems--, arg++) { in mdb_argvec_reset()
/titanic_41/usr/src/lib/libdevinfo/
H A Ddevinfo_devlink.h95 uint32_t nelems[DB_TYPES]; /* Number of elements of each type */ member
256 #define DB_NUM(h, t) (DB_HDR(h)->nelems[t])
273 #define VALID_STR(h, i, s) ((i) + strlen(s) + 1 <= DB_HDR(h)->nelems[DB_STR])
274 #define VALID_INDEX(h, t, i) ((i) < DB_HDR(h)->nelems[t])
/titanic_41/usr/src/uts/sun4u/sys/
H A Dopl_cfg.h245 #define opl_prop_get_int_array(dip, name, data, nelems) \ argument
247 DDI_PROP_DONTPASS, name, (int **)&data, (uint_t *)&nelems)
/titanic_41/usr/src/uts/i86pc/io/pci/
H A Dpci.c344 uint_t nelems; in pci_bus_map() local
383 DDI_PROP_DONTPASS, "reg", (int **)&pci_rp, &nelems) != in pci_bus_map()
390 nelems /= (sizeof (pci_regspec_t) / sizeof (int)); in pci_bus_map()
391 if (rnumber >= nelems) { in pci_bus_map()

12