/titanic_41/usr/src/uts/common/syscall/ |
H A D | getpagesizes.c | 37 getpagesizes(int legacy, size_t *buf, int nelem) in getpagesizes() argument 42 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() 57 pgsza = kmem_alloc(sizeof (*pgsza) * nelem, KM_SLEEP); in getpagesizes() 58 for (i = 0; i < nelem; i++) { in getpagesizes() 61 if (copyout(pgsza, buf, nelem * sizeof (*pgsza)) != 0) { in getpagesizes() 62 kmem_free(pgsza, sizeof (*pgsza) * nelem); in getpagesizes() [all …]
|
H A D | getloadavg.c | 40 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()
|
/titanic_41/usr/src/cmd/cpc/common/ |
H A D | setgrp.c | 58 int nelem; /* size of array */ member 130 if ((new = realloc(sgrp->sets, (1 + sgrp->nelem) * sizeof (*new))) in cpc_setgrp_newset() 138 sgrp->sets[sgrp->nelem].set = set; in cpc_setgrp_newset() 144 sgrp->sets[sgrp->nelem].nreqs = 0; in cpc_setgrp_newset() 145 sgrp->sets[sgrp->nelem].sysonly = 1; in cpc_setgrp_newset() 146 cpc_walk_requests(sgrp->cpc, set, &(sgrp->sets[sgrp->nelem]), in cpc_setgrp_newset() 149 if (sgrp->sets[sgrp->nelem].sysonly == 1) 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() 161 cpc_walk_requests(sgrp->cpc, set, sgrp->sets[sgrp->nelem].picnums, in cpc_setgrp_newset() [all …]
|
/titanic_41/usr/src/lib/libc/port/gen/ |
H A D | getloadavg.c | 40 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()
|
/titanic_41/usr/src/lib/fm/libfmevent/common/ |
H A D | fmev_publish.c | 214 int err, nelem; in va2nvl() local 224 nelem = va_arg(ap, int); in va2nvl() 226 va_arg(ap, uchar_t *), nelem); in va2nvl() 233 nelem = va_arg(ap, int); in va2nvl() 235 va_arg(ap, boolean_t *), nelem); in va2nvl() 242 nelem = va_arg(ap, int); in va2nvl() 244 va_arg(ap, int8_t *), nelem); in va2nvl() 251 nelem = va_arg(ap, int); in va2nvl() 253 va_arg(ap, uint8_t *), nelem); in va2nvl() 260 nelem = va_arg(ap, int); in va2nvl() [all …]
|
/titanic_41/usr/src/cmd/pagesize/ |
H A D | pagesize.c | 44 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()
|
/titanic_41/usr/src/cmd/mdb/common/modules/genunix/ |
H A D | nvpair.c | 169 nvpair_print_value(char *data, int32_t elem_size, int32_t nelem, in nvpair_print_value() argument 178 for (i = 0; i < nelem - 1; i++) { in nvpair_print_value() 188 for (i = 0; i < nelem; i++) { in nvpair_print_value() 195 int size = elem_size * nelem; in nvpair_print_value() 219 int32_t i, size, nelem, elem_size = 0; in nvpair_print() local 255 nelem = NVP_NELEM(nvpair); in nvpair_print() 278 mdb_printf(" items=%d\n", nelem); in nvpair_print() 282 if ((nelem == 0) && (type_name != NULL)) { in nvpair_print() 326 for (i = 0; i < nelem; i++, in nvpair_print() 344 for (i = 0; i < nelem; i++, in nvpair_print() [all …]
|
/titanic_41/usr/src/lib/gss_mechs/mech_krb5/krb5/krb/ |
H A D | princ_comp.c | 56 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()
|
H A D | pr_to_salt.c | 43 krb5_int32 nelem; in krb5_principal2salt_internal() local 52 nelem = krb5_princ_size(context, pr); in krb5_principal2salt_internal() 57 for (i = 0; i < (int) nelem; i++) in krb5_principal2salt_internal() 69 for (i = 0; i < (int) nelem; i++) { in krb5_principal2salt_internal()
|
/titanic_41/usr/src/cmd/lvm/metassist/common/ |
H A D | volume_nvpair.c | 447 uint_t *nelem) in get_uint16_array() argument 456 error = nvpair_value_uint16_array(match, val, nelem); in get_uint16_array() 491 uint_t nelem) in set_uint16_array() argument 496 attrs, which, val, nelem)) != 0) { in set_uint16_array() 531 uint_t *nelem) in get_uint64_array() argument 540 error = nvpair_value_uint64_array(match, val, nelem); in get_uint64_array() 575 uint_t nelem) in set_uint64_array() argument 580 attrs, which, val, nelem)) != 0) { in set_uint64_array() 615 uint_t *nelem) in get_string_array() argument 624 error = nvpair_value_string_array(match, val, nelem); in get_string_array() [all …]
|
H A D | volume_nvpair.h | 311 nvlist_t *attrs, char *which, uint16_t **val, uint_t *nelem); 341 nvlist_t *attrs, char *which, uint16_t *val, uint_t nelem); 371 nvlist_t *attrs, char *which, uint64_t **val, uint_t *nelem); 401 nvlist_t *attrs, char *which, uint64_t *val, uint_t nelem); 431 nvlist_t *attrs, char *which, char ***val, uint_t *nelem); 461 nvlist_t *attrs, char *which, char **val, uint_t nelem);
|
/titanic_41/usr/src/common/nvpair/ |
H A D | nvpair.c | 129 static int i_get_value_size(data_type_t type, const void *data, uint_t nelem); 131 uint_t nelem, const void *data); 388 i_validate_type_nelem(data_type_t type, uint_t nelem) in i_validate_type_nelem() argument 392 if (nelem != 0) in i_validate_type_nelem() 411 if (nelem != 1) in i_validate_type_nelem() 452 i_validate_nvpair_value(data_type_t type, uint_t nelem, const void *data) in i_validate_nvpair_value() argument 463 for (i = 0; i < nelem; i++) in i_validate_nvpair_value() 719 i_get_value_size(data_type_t type, const void *data, uint_t nelem) in i_get_value_size() argument 723 if (i_validate_type_nelem(type, nelem) != 0) in i_get_value_size() 773 value_sz = (uint64_t)nelem * sizeof (boolean_t); in i_get_value_size() [all …]
|
/titanic_41/usr/src/lib/mpapi/libmpscsi_vhci/common/ |
H A D | mp_utils.c | 205 uint_t nelem = 0; in notifyClient() local 415 nelem = 1; in notifyClient() 421 DDI_INSTANCE, &instance, &nelem); in notifyClient() 425 nelem); in notifyClient() 428 DDI_DRIVER_MAJOR, &major, &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() [all …]
|
/titanic_41/usr/src/lib/libshell/common/sh/ |
H A D | array.c | 216 ap->header.nelem &= ~ARRAY_NOSCOPE; in array_find() 218 ap->header.nelem |= ARRAY_NOSCOPE; in array_find() 219 if(wasundef = ap->header.nelem&ARRAY_UNDEF) in array_find() 221 ap->header.nelem &= ~ARRAY_UNDEF; in array_find() 226 ap->header.nelem |= ARRAY_SCAN; in array_find() 255 ap->header.nelem++; in array_find() 263 if(!(ap->header.nelem&ARRAY_SCAN) && ap->cur >= ap->maxi) in array_find() 293 ap->header.nelem++; in array_find() 322 ap->nelem |= ARRAY_SCAN; in nv_arraysettype() 329 ap->nelem &= ~ARRAY_SCAN; in nv_arraysettype() [all …]
|
/titanic_41/usr/src/lib/libnwam/common/ |
H A D | libnwam_files.c | 160 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() 235 valbool[nelem - 1] = B_FALSE; in nwam_line_to_object() 243 valint[nelem - 1] = (int64_t)atoll(nextval); in nwam_line_to_object() 246 valuint[nelem - 1] = (uint64_t)atoll(nextval); in nwam_line_to_object() 249 valstr[nelem - 1] = in nwam_line_to_object() 260 nelem * sizeof (boolean_t))) == NULL) { in nwam_line_to_object() 265 nelem, &val)) != NWAM_SUCCESS || in nwam_line_to_object() [all …]
|
/titanic_41/usr/src/lib/libpool/common/ |
H A D | pool_commit.c | 378 uint_t nelem; in commit_update() local 388 pool_elem_pool(e1), &nelem, pvals)) != NULL) { in commit_update() 389 for (i = 0; i < nelem; i++) { in commit_update() 666 get_elem_list(const pool_conf_t *conf, int type, uint_t *nelem) in get_elem_list() argument 678 *nelem = 1; in get_elem_list() 682 if ((pl = pool_query_pools(conf, nelem, NULL)) != NULL) { in get_elem_list() 687 if ((rl = pool_query_resources(conf, nelem, NULL)) != NULL) { in get_elem_list() 690 for (i = 0; i < *nelem; i++) { in get_elem_list() 695 *nelem = j; in get_elem_list() 699 if ((cl = pool_query_components(conf, nelem, NULL)) != NULL) { in get_elem_list() [all …]
|
/titanic_41/usr/src/lib/libc/port/sys/ |
H A D | psetsys.c | 85 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 D | getpagesizes.c | 49 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()
|
/titanic_41/usr/src/cmd/abi/spectrans/spec2map/ |
H A D | util.c | 60 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()
|
/titanic_41/usr/src/lib/libc/port/aio/ |
H A D | aio_alloc.c | 99 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() 259 for (i = 0, head = _lio_head_freelist; i < nelem; i++, head++) in _aio_lio_alloc() [all …]
|
/titanic_41/usr/src/common/mdesc/ |
H A D | mdesc_diff.c | 51 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 …]
|
/titanic_41/usr/src/uts/common/os/ |
H A D | fm.c | 314 uint_t i, nelem; in fm_nvprintr() local 317 (void) nvpair_value_nvlist_array(nvp, &val, &nelem); in fm_nvprintr() 318 for (i = 0; i < nelem; i++) { in fm_nvprintr() 658 int nelem, ret = 0; in i_fm_payload_set() local 669 nelem = va_arg(ap, int); in i_fm_payload_set() 671 va_arg(ap, uchar_t *), nelem); in i_fm_payload_set() 678 nelem = va_arg(ap, int); in i_fm_payload_set() 680 va_arg(ap, boolean_t *), nelem); in i_fm_payload_set() 687 nelem = va_arg(ap, int); in i_fm_payload_set() 689 va_arg(ap, int8_t *), nelem); in i_fm_payload_set() [all …]
|
/titanic_41/usr/src/lib/mpss/common/ |
H A D | mpss.c | 165 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()
|
/titanic_41/usr/src/lib/libnvpair/ |
H A D | libnvpair.c | 569 uint_t nelem; in nvlist_print_with_indent() local 584 nelem = 0; in nvlist_print_with_indent() 665 (void) nvpair_value_boolean_array(nvp, &val, &nelem); in nvlist_print_with_indent() 666 ARENDER(pctl, boolean_array, nvl, name, val, nelem); 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() [all …]
|
/titanic_41/usr/src/cmd/fm/fmd/common/ |
H A D | fmd_xprt.c | 705 uint_t nelem = 0; in fmd_xprt_event_updated() local 714 FM_RSRC_XPRT_FAULT_STATUS, &statusp, &nelem) == 0 && in fmd_xprt_event_updated() 715 nelem != 0) { in fmd_xprt_event_updated() 718 &nelem); in fmd_xprt_event_updated() 1098 uint_t nelem = 0, nelem2 = 0, i; in fmd_xprt_list_suspect_local() local 1123 &nelem); in fmd_xprt_list_suspect_local() 1124 for (i = 0; i < nelem; i++) { in fmd_xprt_list_suspect_local() 1206 uint_t nelem = 0, nelem2 = 0, i; in fmd_xprt_list_suspect() local 1233 &nelem); in fmd_xprt_list_suspect() 1245 if (nelem > 0) { in fmd_xprt_list_suspect() [all …]
|