/illumos-gate/usr/src/cmd/mdb/common/modules/genunix/ |
H A D | kmem.c | 789 size_t nelems; in kmem_hash_walk_init() local 811 kmhw->kmhw_nelems = nelems = c.cache_hash_mask + 1; in kmem_hash_walk_init() 812 hsize = nelems * sizeof (uintptr_t); in kmem_hash_walk_init()
|
/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/lib/fm/topo/libtopo/common/ |
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() 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 …]
|
H A D | topo_prop.c | 276 *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 …]
|
/illumos-gate/usr/src/uts/common/io/i40e/ |
H A D | i40e_main.c | 851 int nelems = I40E_HW_CAP_DEFAULT; in i40e_get_hw_capabilities() local 853 len = nelems * sizeof (*buf); in i40e_get_hw_capabilities() 863 nelems == I40E_HW_CAP_DEFAULT) { in i40e_get_hw_capabilities() 864 if (nelems == needed) { in i40e_get_hw_capabilities()
|
/illumos-gate/usr/src/uts/common/gssapi/mechs/krb5/krb5/krb/ |
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()
|
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()
|
/illumos-gate/usr/src/lib/krb5/kadm5/srv/ |
H A D | svr_principal.c | 58 register int i, nelems; in kadm5_copy_principal() local 67 nelems = (int) krb5_princ_size(context, inprinc); in kadm5_copy_principal() 68 tempprinc->data = krb5_db_alloc(context, NULL, nelems * sizeof(krb5_data)); in kadm5_copy_principal() 75 for (i = 0; i < nelems; i++) { in kadm5_copy_principal() 94 for (i = 0; i < nelems; i++) in kadm5_copy_principal()
|
/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() 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/uts/common/dtrace/ |
H A D | dtrace.c | 3704 dtrace_json(uint64_t size, uintptr_t json, char *elemlist, int nelems, in dtrace_json() argument 3790 if (nelems > 1) { in dtrace_json() 3876 if (nelems > 1) { in dtrace_json() 3935 if (nelems > 1) { in dtrace_json() 3953 if (nelems > 1 && found_key) { in dtrace_json() 3965 nelems--; in dtrace_json() 4785 int nelems = 1; in dtrace_dif_subr() local 4820 nelems++; in dtrace_dif_subr() 4829 nelems, dest)) != 0) in dtrace_dif_subr()
|
/illumos-gate/usr/src/uts/sun4u/opl/os/ |
H A D | opl.c | 477 plat_build_mem_nodes(prom_memlist_t *list, size_t nelems) in plat_build_mem_nodes() argument 495 for (elem = 0; elem < nelems; list++, elem++) { in plat_build_mem_nodes()
|
/illumos-gate/usr/src/uts/common/os/ |
H A D | sunpm.c | 4045 uint_t nelems; in pm_autoconfig() 4081 lszs = kmem_alloc(nelems * sizeof (int), KM_SLEEP); in pm_autoconfig() 4083 np = kmem_alloc(nelems * sizeof (int), KM_SLEEP); in pm_autoconfig() 4087 for (i = 0; i < nelems; i++) { in pm_autoconfig() 4210 kmem_free(lvals, nelems * sizeof (int)); in pm_autoconfig() 4212 kmem_free(lszs, nelems * sizeof (int)); in pm_autoconfig() 4214 kmem_free(lnames, nelems * sizeof (char *)); in pm_autoconfig() 4216 kmem_free(np, nelems * sizeof (int)); in pm_autoconfig() 4223 for (i = 0; i < nelems - 1; i++) in pm_autoconfig() 4225 if (nelems != 0) in pm_autoconfig() [all …]
|
H A D | ddi_ufm.c | 121 free_nvlist_array(nvlist_t **nvlarr, uint_t nelems) in free_nvlist_array() argument 123 for (uint_t i = 0; i < nelems; i++) { in free_nvlist_array() 127 kmem_free(nvlarr, nelems * sizeof (nvlist_t *)); in free_nvlist_array()
|
/illumos-gate/usr/src/uts/common/io/cardbus/ |
H A D | cardbus_cfg.c | 241 int nelems); 4484 cardbus_dump_reg(dev_info_t *dip, const pci_regspec_t *regspec, int nelems) argument 4489 "cardbus_dump_reg: \"reg\" has %d elements\n", nelems); 4496 for (i = 0; i < nelems; i++) {
|
/illumos-gate/usr/src/uts/common/io/ |
H A D | devinfo.c | 2763 uint_t nelems; in di_path_getprop() local 2825 (void) nvpair_value_byte_array(prop, &buf, &nelems); in di_path_getprop() 2826 size = nelems; in di_path_getprop() 2827 if (nelems != 0) { in di_path_getprop()
|
H A D | pseudonex.c | 420 uint_t nelems; in pseudonex_ctl() local 430 &nelems) == DDI_PROP_SUCCESS) { in pseudonex_ctl() 432 for (i = 0; i < nelems; i++) { in pseudonex_ctl()
|
/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/lib/fm/topo/modules/common/fac_prov_ipmi/ |
H A D | fac_prov_ipmi.c | 344 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/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/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()
|
/illumos-gate/usr/src/uts/common/vm/ |
H A D | vm_anon.c | 634 pgcnt_t oelems, nelems, totpages; in anon_grow() local 674 nelems = newamp_pgs; in anon_grow() 678 nelems = newamp_pgs >> ANON_CHUNK_SHIFT; in anon_grow() 681 newarrsz = nelems * sizeof (void *); in anon_grow() 712 level1[nelems - 1] = level2; in anon_grow()
|
/illumos-gate/usr/src/uts/common/fs/zfs/ |
H A D | btree.c | 194 zfs_btree_find_in_buf(zfs_btree_t *tree, uint8_t *buf, uint32_t nelems, in zfs_btree_find_in_buf() argument 197 uint32_t max = nelems; in zfs_btree_find_in_buf()
|
/illumos-gate/usr/src/cmd/ptools/pargs/ |
H A D | pargs.c | 588 size_t nelems) in read_ptr_array() argument 593 res = Pread(datap->pd_proc, buf, nelems * sizeof (uintptr_t), in read_ptr_array() 597 uint32_t *arr32 = safe_zalloc(nelems * sizeof (uint32_t)); in read_ptr_array() 599 res = Pread(datap->pd_proc, arr32, nelems * sizeof (uint32_t), in read_ptr_array() 602 for (i = 0; i < nelems; i++) in read_ptr_array()
|
/illumos-gate/usr/src/cmd/mdb/common/mdb/ |
H A D | mdb_argvec.c | 83 size_t nelems = vec->a_nelems; in mdb_argvec_reset() local 86 for (arg = vec->a_data; nelems != 0; nelems--, arg++) { in mdb_argvec_reset()
|