Searched defs:nelems (Results 26 - 46 of 46) sorted by relevance

12

/illumos-gate/usr/src/uts/i86pc/cpu/authenticamd/
H A Dauthamd_main.c996 int nelems = 0; local
1015 elems[nelems] = nvl;
1016 counts[nelems++] = msl->aal_eccerrcnt[chan][cs];
1040 if (nelems == 0)
1044 DATA_TYPE_NVLIST_ARRAY, nelems, elems,
1048 DATA_TYPE_UINT8_ARRAY, nelems, &counts[0],
1051 for (i = 0; i < nelems; i++)
/illumos-gate/usr/src/uts/common/io/scsi/targets/
H A Dsgen.c294 uint_t nelems, pcplen, vcplen, idx; local
300 "device-type-config-list", &strs, &nelems) == DDI_PROP_SUCCESS) {
305 for (idx = 0; idx < nelems; idx++) {
335 "inquiry-config-list", &strs, &nelems) == DDI_PROP_SUCCESS) {
337 if (nelems % 2 == 1) {
342 nelems--;
344 for (idx = 0; idx < nelems; idx += 2) {
/illumos-gate/usr/src/lib/krb5/kadm5/srv/
H A Dsvr_principal.c64 register int i, nelems; local
73 nelems = (int) krb5_princ_size(context, inprinc);
74 tempprinc->data = krb5_db_alloc(context, NULL, nelems * sizeof(krb5_data));
81 for (i = 0; i < nelems; i++) {
100 for (i = 0; i < nelems; i++)
/illumos-gate/usr/src/uts/sun4u/starcat/os/
H A Dstarcat.c319 plat_build_mem_nodes(prom_memlist_t *list, size_t nelems) argument
336 for (elem = 0; elem < nelems; list++, elem++) {
/illumos-gate/usr/src/uts/common/io/i40e/
H A Di40e_main.c798 int nelems = I40E_HW_CAP_DEFAULT; local
800 len = nelems * sizeof (*buf);
810 nelems == I40E_HW_CAP_DEFAULT) {
811 if (nelems == needed) {
/illumos-gate/usr/src/uts/common/fs/
H A Dxattr.c625 uint_t elem, nelems; local
672 if (nvpair_value_uint64_array(pair, &times, &nelems)) {
685 &scanstamp, &nelems)) {
744 for (elem = 0; elem < nelems; elem++)
777 scanstamp, nelems);
/illumos-gate/usr/src/cmd/modload/
H A Ddrvsubr.c2351 fill_n2m_array(char *filename, char **array, int *nelems) argument
2396 if (drv_majnum >= *nelems) {
2405 *nelems = drv_majnum + 1;
2406 *array = realloc(*array, *nelems);
/illumos-gate/usr/src/uts/common/io/cardbus/
H A Dcardbus_cfg.c239 int nelems);
4496 cardbus_dump_reg(dev_info_t *dip, const pci_regspec_t *regspec, int nelems) argument
4498 /* int rlen = nelems * sizeof(pci_regspec_t); */
4501 "cardbus_dump_reg: \"reg\" has %d elements\n", nelems);
4508 for (i = 0; i < nelems; i++) {
/illumos-gate/usr/src/uts/sun4u/serengeti/os/
H A Dserengeti.c409 plat_build_mem_nodes(prom_memlist_t *list, size_t nelems) argument
/illumos-gate/usr/src/uts/sun4v/os/
H A Dmpo.c927 plat_build_mem_nodes(prom_memlist_t *list, size_t nelems) argument
940 for (elem = 0; elem < nelems; list++, elem++) {
/illumos-gate/usr/src/uts/sun4u/lw8/os/
H A Dlw8_platmod.c416 plat_build_mem_nodes(prom_memlist_t *list, size_t nelems) argument
/illumos-gate/usr/src/uts/sun4u/opl/os/
H A Dopl.c474 plat_build_mem_nodes(prom_memlist_t *list, size_t nelems) argument
492 for (elem = 0; elem < nelems; list++, elem++) {
/illumos-gate/usr/src/cmd/syseventd/modules/sysevent_conf_mod/
H A Dsysevent_conf_mod.c1064 uint_t nelems; local
1237 &x.x_byte_array, &nelems);
1239 for (i = 0; i < nelems; i++) {
1252 &x.x_int16_array, &nelems);
1254 for (i = 0; i < nelems; i++) {
1267 &x.x_uint16_array, &nelems);
1269 for (i = 0; i < nelems; i++) {
1283 &x.x_int32_array, &nelems);
1285 for (i = 0; i < nelems; i++) {
1298 &x.x_uint32_array, &nelems);
[all...]
/illumos-gate/usr/src/lib/fm/topo/libtopo/common/
H A Dtopo_xml.c59 strarr_free(topo_mod_t *mod, char **arr, uint_t nelems) argument
63 for (i = 0; i < nelems; i++)
65 topo_mod_free(mod, arr, (nelems * sizeof (char *)));
201 uint_t i = 0, nelems = 0; local
250 nelems++;
252 if (nelems < 1) {
257 if ((arrbuf = topo_mod_alloc(mp, (nelems * sizeof (uint64_t))))
265 nelems++;
267 if (nelems < 1) {
272 if ((strarrbuf = topo_mod_alloc(mp, (nelems * sizeo
[all...]
/illumos-gate/usr/src/cmd/ptools/pargs/
H A Dpargs.c580 size_t nelems)
585 res = Pread(datap->pd_proc, buf, nelems * sizeof (uintptr_t),
589 uint32_t *arr32 = safe_zalloc(nelems * sizeof (uint32_t));
591 res = Pread(datap->pd_proc, arr32, nelems * sizeof (uint32_t),
594 for (i = 0; i < nelems; i++)
579 read_ptr_array(pargs_data_t *datap, uintptr_t offset, uintptr_t *buf, size_t nelems) argument
/illumos-gate/usr/src/uts/common/vm/
H A Dvm_anon.c636 pgcnt_t oelems, nelems, totpages; local
669 * oelems/nelems are the number of pointers in the top level arrays
676 nelems = newamp_pgs;
680 nelems = newamp_pgs >> ANON_CHUNK_SHIFT;
683 newarrsz = nelems * sizeof (void *);
714 level1[nelems - 1] = level2;
/illumos-gate/usr/src/uts/common/io/
H A Ddevinfo.c2761 uint_t nelems; local
2823 (void) nvpair_value_byte_array(prop, &buf, &nelems);
2824 size = nelems;
2825 if (nelems != 0) {
/illumos-gate/usr/src/cmd/mdb/common/modules/genunix/
H A Dkmem.c788 size_t nelems; local
810 kmhw->kmhw_nelems = nelems = c.cache_hash_mask + 1;
811 hsize = nelems * sizeof (uintptr_t);
/illumos-gate/usr/src/uts/common/os/
H A Dsunpm.c4049 uint_t nelems; local
4067 (char *)pmcompstr, &pp, &nelems) != DDI_PROP_SUCCESS) {
4071 if (nelems < 3) { /* need at least one name and two levels */
4084 lvals = kmem_alloc(nelems * sizeof (int), KM_SLEEP);
4085 lszs = kmem_alloc(nelems * sizeof (int), KM_SLEEP);
4086 lnames = kmem_alloc(nelems * sizeof (char *), KM_SLEEP);
4087 np = kmem_alloc(nelems * sizeof (int), KM_SLEEP);
4091 for (i = 0; i < nelems; i++) {
4214 kmem_free(lvals, nelems * sizeof (int));
4216 kmem_free(lszs, nelems * sizeo
[all...]
/illumos-gate/usr/src/cmd/mdb/common/modules/libumem/
H A Dumem.c705 size_t nelems; local
727 umhw->umhw_nelems = nelems = c.cache_hash_mask + 1;
728 hsize = nelems * sizeof (uintptr_t);
/illumos-gate/usr/src/uts/common/dtrace/
H A Ddtrace.c3574 * with nelems = 5.
3643 dtrace_json(uint64_t size, uintptr_t json, char *elemlist, int nelems, argument
3729 if (nelems > 1) {
3815 if (nelems > 1) {
3874 if (nelems > 1) {
3892 if (nelems > 1 && found_key) {
3904 nelems--;
4724 int nelems = 1; local
4759 nelems++;
4768 nelems, des
[all...]

Completed in 207 milliseconds

12