Home
last modified time | relevance | path

Searched refs:nelem (Results 1 – 25 of 191) sorted by relevance

12345678

/illumos-gate/usr/src/uts/common/syscall/
H A Dgetpagesizes.c42 if (nelem < 0) { in getpagesizes()
45 if (nelem == 0 && buf != NULL) { in getpagesizes()
48 if (nelem == 0 && buf == NULL) { in getpagesizes()
54 if (nelem > pagesizes) { in getpagesizes()
55 nelem = pagesizes; in getpagesizes()
58 for (i = 0; i < nelem; i++) { in getpagesizes()
66 return (nelem); in getpagesizes()
83 if (nelem < 0) { in getpagesizes32()
101 if (nelem > pagesizes) { in getpagesizes32()
102 nelem = pagesizes; in getpagesizes32()
[all …]
H A Dgetloadavg.c40 getloadavg(int *buf, int nelem) in getloadavg() argument
45 if (nelem < 0) in getloadavg()
47 if (nelem > LOADAVG_NSTATS) in getloadavg()
48 nelem = LOADAVG_NSTATS; in getloadavg()
54 error = copyout(loadbuf, buf, nelem * sizeof (avenrun[0])); in getloadavg()
57 return (nelem); in getloadavg()
/illumos-gate/usr/src/cmd/cpc/common/
H A Dsetgrp.c58 int nelem; /* size of array */ member
138 sgrp->sets[sgrp->nelem].set = set; in cpc_setgrp_newset()
152 sgrp->sets[sgrp->nelem].picnums = emalloc(sgrp->sets[sgrp->nelem].nreqs in cpc_setgrp_newset()
155 sgrp->sets[sgrp->nelem].hdr = emalloc((sgrp->sets[sgrp->nelem].nreqs * in cpc_setgrp_newset()
174 sgrp->sets[sgrp->nelem].hdr[strlen(sgrp->sets[sgrp->nelem].hdr)] = '\0'; in cpc_setgrp_newset()
195 sgrp->nelem++; in cpc_setgrp_newset()
223 new->nelem = old->nelem; in cpc_setgrp_clone()
276 sgrp->nelem--; in cpc_setgrp_delset()
283 while (sgrp->nelem) in cpc_setgrp_free()
317 return (sgrp->nelem); in cpc_setgrp_numsets()
[all …]
/illumos-gate/usr/src/lib/libc/port/gen/
H A Dgetloadavg.c40 getloadavg(double loadavg[], int nelem) in getloadavg() argument
42 extern int __getloadavg(int *buf, int nelem); in getloadavg()
46 if (nelem > LOADAVG_NSTATS) in getloadavg()
47 nelem = LOADAVG_NSTATS; in getloadavg()
49 if ((nelem = __getloadavg(buf, nelem)) == -1) in getloadavg()
52 for (i = 0; i < nelem; i++) in getloadavg()
55 return (nelem); in getloadavg()
H A Dreallocarray.c29 reallocarray(void *ptr, size_t nelem, size_t elsize) in reallocarray() argument
31 if ((nelem >= MUL_NO_OVERFLOW || elsize >= MUL_NO_OVERFLOW) && in reallocarray()
32 nelem > 0 && SIZE_MAX / nelem < elsize) { in reallocarray()
36 return (realloc(ptr, elsize * nelem)); in reallocarray()
/illumos-gate/usr/src/lib/fm/libfmevent/common/
H A Dfmev_publish.c214 int err, nelem; in va2nvl() local
224 nelem = va_arg(ap, int); in va2nvl()
233 nelem = va_arg(ap, int); in va2nvl()
242 nelem = va_arg(ap, int); in va2nvl()
251 nelem = va_arg(ap, int); in va2nvl()
260 nelem = va_arg(ap, int); in va2nvl()
269 nelem = va_arg(ap, int); in va2nvl()
278 nelem = va_arg(ap, int); in va2nvl()
287 nelem = va_arg(ap, int); in va2nvl()
296 nelem = va_arg(ap, int); in va2nvl()
[all …]
/illumos-gate/usr/src/cmd/pagesize/
H A Dpagesize.c44 int nelem, i; in main() local
69 nelem = getpagesizes(NULL, 0); in main()
70 if (nelem < 2) { in main()
75 if ((buf = (size_t *)malloc(sizeof (*buf) * nelem)) == NULL) { in main()
80 nelem = getpagesizes(buf, nelem); in main()
81 for (i = 0; i < nelem; i++) { in main()
/illumos-gate/usr/src/cmd/mdb/common/modules/genunix/
H A Dnvpair.c176 for (i = 0; i < nelem - 1; i++) { in nvpair_print_value()
186 for (i = 0; i < nelem; i++) { in nvpair_print_value()
193 int size = elem_size * nelem; in nvpair_print_value()
253 nelem = NVP_NELEM(nvpair); in nvpair_print()
276 mdb_printf(" items=%d\n", nelem); in nvpair_print()
324 for (i = 0; i < nelem; i++, in nvpair_print()
342 for (i = 0; i < nelem; i++, in nvpair_print()
356 data += (sizeof (int64_t) * nelem); in nvpair_print()
361 nelem = data_end - data; in nvpair_print()
379 if (count != nelem) { in nvpair_print()
[all …]
/illumos-gate/usr/src/contrib/ast/src/cmd/ksh93/sh/
H A Darray.c69 int nelem; member
469 nelem = ap->nelem; in array_clone()
481 ap->nelem = 0; in array_clone()
556 aq->header.nelem = ap->nelem = nelem; in array_clone()
947 ap->nelem = 0; in nv_changearray()
982 int nelem = 0; in nv_setarray() local
1003 ap->nelem = nelem; in nv_setarray()
1060 ap->nelem++; in nv_arraychild()
1300 ap->header.nelem |= (ARRAY_FIXED|fp->nelem); in nv_putsub()
1384 ap->nelem = 1; in array_fixed_setdata()
[all …]
/illumos-gate/usr/src/lib/gss_mechs/mech_krb5/krb5/krb/
H A Dprinc_comp.c56 krb5_int32 nelem; in krb5_principal_compare() local
58 nelem = krb5_princ_size(context, princ1); in krb5_principal_compare()
59 if (nelem != krb5_princ_size(context, princ2)) in krb5_principal_compare()
65 for (i = 0; i < (int) nelem; i++) { in krb5_principal_compare()
85 krb5_int32 nelem; in __krb5_principal_compare_case_ins() local
87 nelem = krb5_princ_size(context, princ1); in __krb5_principal_compare_case_ins()
88 if (nelem != krb5_princ_size(context, princ2)) in __krb5_principal_compare_case_ins()
94 for (i = 0; i < (int) nelem; i++) { in __krb5_principal_compare_case_ins()
/illumos-gate/usr/src/lib/mpapi/libmpscsi_vhci/common/
H A Dmp_utils.c205 uint_t nelem = 0; in notifyClient() local
415 nelem = 1; in notifyClient()
425 nelem); in notifyClient()
432 nelem); in notifyClient()
444 nelem = 1; in notifyClient()
448 nelem = 0; in notifyClient()
454 &val, &nelem); in notifyClient()
458 nelem); in notifyClient()
461 if (nelem > 0) { in notifyClient()
463 for (i = 0; i < nelem; i++) { in notifyClient()
[all …]
/illumos-gate/usr/src/lib/libnwam/common/
H A Dlibnwam_files.c160 uint_t nelem, i; in nwam_line_to_object() local
223 nelem = 0; in nwam_line_to_object()
226 nelem++; in nwam_line_to_object()
231 valbool[nelem - 1] = B_TRUE; in nwam_line_to_object()
249 valstr[nelem - 1] = in nwam_line_to_object()
322 for (i = 0; i < nelem; i++) in nwam_line_to_object()
329 for (i = 0; i < nelem; i++) in nwam_line_to_object()
626 uint_t nelem, i; in nwam_object_to_line() local
649 for (i = 0; i < nelem; i++) { in nwam_object_to_line()
670 for (i = 0; i < nelem; i++) { in nwam_object_to_line()
[all …]
/illumos-gate/usr/src/lib/libpool/common/
H A Dpool_commit.c378 uint_t nelem; in commit_update() local
678 *nelem = 1; in get_elem_list()
695 *nelem = j; in get_elem_list()
723 uint_t nelem; in share_resources() local
829 if (nelem == 1) in resource_allocate_default()
837 for (j = 0; j < nelem; j++) { in resource_allocate_default()
861 for (j = 0; j < nelem; j++) { in resource_allocate_default()
1053 donor = nelem - 1; in pset_allocate_imp()
1097 if (sets_finished != nelem) in pset_allocate_imp()
1158 uint_t nelem, i; in set_importance_cb() local
[all …]
/illumos-gate/usr/src/common/nvpair/
H A Dnvpair.c685 if (nelem != 0) in i_validate_type_nelem()
704 if (nelem != 1) in i_validate_type_nelem()
1541 if (nelem != NULL) in nvpair_value_common()
1542 *nelem = 0; in nvpair_value_common()
1563 if (nelem != NULL) in nvpair_value_common()
1564 *nelem = 1; in nvpair_value_common()
1572 if (nelem != NULL) in nvpair_value_common()
1573 *nelem = 1; in nvpair_value_common()
1809 uint_t *nelem; in nvlist_lookup_pairs() local
3216 uint_t nelem, buflen; in nvs_xdr_nvp_op() local
[all …]
/illumos-gate/usr/src/lib/fm/topo/libtopo/common/
H A Dtopo_2xml.c125 uint_t nelem; in txml_print_prop() local
228 pv->tp_name, &val, &nelem, &err) != 0) in txml_print_prop()
234 for (uint_t i = 0; i < nelem; i++) { in txml_print_prop()
248 pv->tp_name, &val, &nelem, &err) != 0) in txml_print_prop()
254 for (uint_t i = 0; i < nelem; i++) { in txml_print_prop()
275 for (uint_t i = 0; i < nelem; i++) { in txml_print_prop()
296 for (uint_t i = 0; i < nelem; i++) { in txml_print_prop()
317 for (uint_t i = 0; i < nelem; i++) { in txml_print_prop()
321 topo_hdl_strfreev(thp, val, nelem); in txml_print_prop()
338 for (uint_t i = 0; i < nelem; i++) { in txml_print_prop()
[all …]
H A Dtopo_digraph_xml.c1097 uint64_t nelem = 0; in deserialize_nvpair() local
1108 nelem++; in deserialize_nvpair()
1143 nelem) != 0) { in deserialize_nvpair()
1160 nelem++; in deserialize_nvpair()
1184 nelem) != 0) { in deserialize_nvpair()
1201 nelem++; in deserialize_nvpair()
1225 nelem) != 0) { in deserialize_nvpair()
1241 nelem++; in deserialize_nvpair()
1265 nelem) != 0) { in deserialize_nvpair()
1282 nelem++; in deserialize_nvpair()
[all …]
/illumos-gate/usr/src/lib/libc/port/sys/
H A Dpsetsys.c85 pset_getloadavg(psetid_t pset, double loadavg[], int nelem) in pset_getloadavg() argument
89 if (nelem > LOADAVG_NSTATS) in pset_getloadavg()
90 nelem = LOADAVG_NSTATS; in pset_getloadavg()
92 if (_pset(PSET_GETLOADAVG, pset, buf, nelem) == -1) in pset_getloadavg()
95 for (i = 0; i < nelem; i++) in pset_getloadavg()
98 return (nelem); in pset_getloadavg()
H A Dgetpagesizes.c49 getpagesizes(size_t pagesize[], int nelem) in getpagesizes() argument
51 return (syscall(SYS_getpagesizes, 1, pagesize, nelem)); in getpagesizes()
55 getpagesizes2(size_t pagesize[], int nelem) in getpagesizes2() argument
57 return (syscall(SYS_getpagesizes, 0, pagesize, nelem)); in getpagesizes2()
/illumos-gate/usr/src/cmd/abi/spectrans/spec2map/
H A Dutil.c60 t->nelem = size; in create_stringtable()
82 if (t->used >= t->nelem) { in add_to_stringtable()
84 ((sizeof (char *)) * (t->nelem + TABLE_INCREMENT))))) in add_to_stringtable()
92 t->nelem += TABLE_INCREMENT; in add_to_stringtable()
93 for (i = t->used; i < t->nelem; ++i) { in add_to_stringtable()
154 t->used + 1, t->nelem, in print_stringtable()
155 sizeof (table_t) + (sizeof (char *) * t->nelem)); in print_stringtable()
/illumos-gate/usr/src/lib/libc/port/aio/
H A Daio_alloc.c99 int nelem; in _aio_worker_alloc() local
112 nelem = (chunksize - sizeof (chunk_t)) / sizeof (aio_worker_t); in _aio_worker_alloc()
113 for (i = 0, aiowp = worker_freelist; i < nelem; i++, aiowp++) in _aio_worker_alloc()
169 int nelem; in _aio_req_alloc() local
182 nelem = (chunksize - sizeof (chunk_t)) / sizeof (aio_req_t); in _aio_req_alloc()
183 for (i = 0, reqp = _aio_freelist; i < nelem; i++, reqp++) { in _aio_req_alloc()
189 _aio_freelist_cnt = nelem; in _aio_req_alloc()
245 int nelem; in _aio_lio_alloc() local
258 nelem = (chunksize - sizeof (chunk_t)) / sizeof (aio_lio_t); in _aio_lio_alloc()
263 _lio_alloc += nelem; in _aio_lio_alloc()
[all …]
/illumos-gate/usr/src/boot/libsa/zfs/
H A Dnvlist.c326 unsigned c = nelem; in xdr_array()
331 for (unsigned i = 0; i < nelem; i++) { in xdr_array()
402 unsigned type, nelem; in nvlist_xdr_nvp() local
412 nelem = nvp_data->nv_nelem; in nvlist_xdr_nvp()
430 for (unsigned i = 0; i < nelem; i++) { in nvlist_xdr_nvp()
1014 value_sz = nelem * sizeof (uint8_t); in get_value_size()
1038 for (i = 0; i < nelem; i++) { in get_value_size()
1093 value_sz = NV_ALIGN4(nelem); in get_nvp_data_size()
1113 for (i = 0; i < nelem; i++) { in get_nvp_data_size()
1154 uint32_t nelem, const void *data) in nvlist_add_common() argument
[all …]
/illumos-gate/usr/src/uts/common/os/
H A Dfm.c314 uint_t i, nelem; in fm_nvprintr() local
659 int nelem, ret = 0; in i_fm_payload_set() local
670 nelem = va_arg(ap, int); in i_fm_payload_set()
679 nelem = va_arg(ap, int); in i_fm_payload_set()
688 nelem = va_arg(ap, int); in i_fm_payload_set()
697 nelem = va_arg(ap, int); in i_fm_payload_set()
706 nelem = va_arg(ap, int); in i_fm_payload_set()
715 nelem = va_arg(ap, int); in i_fm_payload_set()
724 nelem = va_arg(ap, int); in i_fm_payload_set()
733 nelem = va_arg(ap, int); in i_fm_payload_set()
[all …]
/illumos-gate/usr/src/common/mdesc/
H A Dmdesc_diff.c51 uint_t nelem; member
167 diff_res->added.nelem = md2count; in md_diff_init()
174 diff_res->removed.nelem = md1count; in md_diff_init()
240 diff_res->added.nelem = nadd; in md_diff_init()
250 diff_res->removed.nelem = nrem; in md_diff_init()
263 diff_res->match1.nelem = nmatch; in md_diff_init()
264 diff_res->match2.nelem = nmatch; in md_diff_init()
297 return (mddp->added.nelem); in md_diff_added()
316 return (mddp->removed.nelem); in md_diff_removed()
338 return (mddp->match1.nelem); in md_diff_matched()
[all …]
/illumos-gate/usr/src/lib/mpss/common/
H A Dmpss.c165 static int nelem; variable
175 for (i = 0; i < nelem; i++) { in pgszok()
180 return (i < nelem); in pgszok()
186 nelem = getpagesizes(NULL, 0); in pgszinit()
188 if (!nelem) in pgszinit()
191 if (nelem > PGSZELEM) in pgszinit()
192 nelem = PGSZELEM; in pgszinit()
194 (void) getpagesizes(pgsz, nelem); in pgszinit()
196 pgsz[nelem] = 0x800000; in pgszinit()
197 nelem++; in pgszinit()
/illumos-gate/usr/src/lib/libnvpair/
H A Dlibnvpair.c569 uint_t nelem; in nvlist_print_with_indent() local
584 nelem = 0; in nvlist_print_with_indent()
671 (void) nvpair_value_byte_array(nvp, &val, &nelem); in nvlist_print_with_indent()
672 ARENDER(pctl, byte_array, nvl, name, val, nelem); in nvlist_print_with_indent()
677 (void) nvpair_value_int8_array(nvp, &val, &nelem); in nvlist_print_with_indent()
678 ARENDER(pctl, int8_array, nvl, name, val, nelem); in nvlist_print_with_indent()
683 (void) nvpair_value_uint8_array(nvp, &val, &nelem); in nvlist_print_with_indent()
684 ARENDER(pctl, uint8_array, nvl, name, val, nelem); in nvlist_print_with_indent()
690 ARENDER(pctl, int16_array, nvl, name, val, nelem); in nvlist_print_with_indent()
702 ARENDER(pctl, int32_array, nvl, name, val, nelem); in nvlist_print_with_indent()
[all …]

12345678