/freebsd/sys/contrib/openzfs/module/os/freebsd/spl/ |
H A D | spl_sysevent.c | 125 uint_t ii, nelem; in log_sysevent() local 127 (void) nvpair_value_uint8_array(elem, &value, &nelem); in log_sysevent() 129 for (ii = 0; ii < nelem; ii++) in log_sysevent() 136 uint_t ii, nelem; in log_sysevent() local 138 (void) nvpair_value_uint16_array(elem, &value, &nelem); in log_sysevent() 140 for (ii = 0; ii < nelem; ii++) in log_sysevent() 147 uint_t ii, nelem; in log_sysevent() local 149 (void) nvpair_value_uint32_array(elem, &value, &nelem); in log_sysevent() 151 for (ii = 0; ii < nelem; ii++) in log_sysevent() 158 uint_t ii, nelem; in log_sysevent() local [all …]
|
/freebsd/tools/test/auxinfo/ |
H A D | auxinfo.c | 17 int i, nelem; in test_pagesizes() local 19 nelem = getpagesizes(NULL, 0); in test_pagesizes() 20 if (nelem == -1) in test_pagesizes() 22 ps = malloc(nelem * sizeof(size_t)); in test_pagesizes() 25 nelem = getpagesizes(ps, nelem); in test_pagesizes() 26 if (nelem == -1) in test_pagesizes() 29 for (i = 0; i < nelem; i++) in test_pagesizes()
|
/freebsd/sys/contrib/openzfs/cmd/zed/ |
H A D | zed_event.c | 176 uint_t nelem; in zed_event_seek() local 201 &etime, &nelem) != 0) { in zed_event_seek() 204 } else if (nelem != 2) { in zed_event_seek() 207 eid, nelem); in zed_event_seek() 375 uint_t nelem; in _zed_event_add_int8_array() local 383 (void) nvpair_value_int8_array(nvp, &i8p, &nelem); in _zed_event_add_int8_array() 384 for (i = 0, p = buf; (i < nelem) && (buflen > 0); i++) { in _zed_event_add_int8_array() 391 if (nelem > 0) in _zed_event_add_int8_array() 405 uint_t nelem; in _zed_event_add_uint8_array() local 413 (void) nvpair_value_uint8_array(nvp, &u8p, &nelem); in _zed_event_add_uint8_array() [all …]
|
/freebsd/sys/dev/bhnd/nvram/ |
H A D | bhnd_nvram_value_subr.c | 117 size_t *nelem) in bhnd_nvram_value_nelem() argument 130 *nelem = 1; in bhnd_nvram_value_nelem() 139 *nelem = 1; in bhnd_nvram_value_nelem() 144 *nelem = 1; in bhnd_nvram_value_nelem() 155 *nelem = 0; in bhnd_nvram_value_nelem() 160 (*nelem)++; in bhnd_nvram_value_nelem() 193 *nelem = ilen / width; in bhnd_nvram_value_nelem() 212 *nelem = 1; in bhnd_nvram_value_nelem() 242 size_t nelem) in bhnd_nvram_value_size() argument 245 if (nelem == 0) in bhnd_nvram_value_size() [all …]
|
H A D | bhnd_nvram_data_sprom.c | 407 size_t ipos, ilen, nelem; in bhnd_nvram_sprom_write_var() local 420 nelem = state->var.nelem; in bhnd_nvram_sprom_write_var() 421 BHND_NV_ASSERT(nelem <= var->nelem, ("SPROM nelem=%zu exceeds maximum " in bhnd_nvram_sprom_write_var() 422 "NVRAM nelem=%hhu", nelem, var->nelem)); in bhnd_nvram_sprom_write_var() 431 if ((ilen = bhnd_nvram_value_size(NULL, 0, itype, nelem)) == 0) { in bhnd_nvram_sprom_write_var() 508 if (enc_nelem != nelem) { in bhnd_nvram_sprom_write_var() 514 enc_nelem, type_name, nelem); in bhnd_nvram_sprom_write_var() 555 if (ipos >= nelem) { in bhnd_nvram_sprom_write_var() 558 ipos, nelem); in bhnd_nvram_sprom_write_var() 1073 size_t nelem; in bhnd_nvram_sprom_read_var() local [all …]
|
H A D | bhnd_nvram_data_sprom_subr.c | 683 bhnd_sprom_opcode_set_nelem(bhnd_sprom_opcode_state *state, uint8_t nelem) in bhnd_sprom_opcode_set_nelem() argument 701 if (nelem == 0) { in bhnd_sprom_opcode_set_nelem() 702 SPROM_OP_BAD(state, "invalid nelem: %hhu\n", nelem); in bhnd_sprom_opcode_set_nelem() 708 if (!bhnd_nvram_is_array_type(var->type) && nelem != 1) { in bhnd_sprom_opcode_set_nelem() 709 SPROM_OP_BAD(state, "nelem %hhu on non-array %zu\n", nelem, in bhnd_sprom_opcode_set_nelem() 715 if (nelem > var->nelem) { in bhnd_sprom_opcode_set_nelem() 717 nelem, state->vid, var->nelem); in bhnd_sprom_opcode_set_nelem() 722 state->var.nelem = nelem; in bhnd_sprom_opcode_set_nelem() 764 if ((error = bhnd_sprom_opcode_set_nelem(state, var->nelem))) in bhnd_sprom_opcode_set_var()
|
H A D | bhnd_nvram_value.c | 710 size_t limit, nbytes, nelem; in bhnd_nvram_val_encode_bool() local 723 if ((error = bhnd_nvram_value_nelem(inp, ilen, itype, &nelem))) in bhnd_nvram_val_encode_bool() 726 if (nelem != 1) in bhnd_nvram_val_encode_bool() 1466 size_t nelem, len; in bhnd_nvram_val_nelem() local 1485 nelem = 0; in bhnd_nvram_val_nelem() 1487 nelem++; in bhnd_nvram_val_nelem() 1489 return (nelem); in bhnd_nvram_val_nelem() 1494 if ((error = bhnd_nvram_value_nelem(bytes, len, type, &nelem))) { in bhnd_nvram_val_nelem() 1501 return (nelem); in bhnd_nvram_val_nelem() 1517 size_t limit, nelem, nbytes; in bhnd_nvram_val_generic_encode() local [all …]
|
/freebsd/lib/libsys/ |
H A D | getpagesizes.c | 48 getpagesizes(size_t pagesize[], int nelem) in getpagesizes() argument 54 if (nelem < 0 || (nelem > 0 && pagesize == NULL)) { in getpagesizes() 70 if (nelem > nops) in getpagesizes() 71 nelem = nops; in getpagesizes() 72 for (i = 0; i < nelem; i++) in getpagesizes() 74 return (nelem); in getpagesizes()
|
/freebsd/lib/libkvm/ |
H A D | kvm_getloadavg.c | 59 kvm_getloadavg(kvm_t *kd, double loadavg[], int nelem) in kvm_getloadavg() argument 65 return (getloadavg(loadavg, nelem)); in kvm_getloadavg() 94 nelem = MIN(nelem, (int)(sizeof(loadinfo.ldavg) / sizeof(fixpt_t))); in kvm_getloadavg() 95 for (i = 0; i < nelem; i++) in kvm_getloadavg() 97 return (nelem); in kvm_getloadavg()
|
/freebsd/lib/libc/gen/ |
H A D | getloadavg.c | 47 getloadavg(double loadavg[], int nelem) in getloadavg() argument 59 nelem = MIN(nelem, sizeof(loadinfo.ldavg) / sizeof(fixpt_t)); in getloadavg() 60 for (i = 0; i < nelem; i++) in getloadavg() 62 return (nelem); in getloadavg()
|
/freebsd/sys/contrib/openzfs/module/nvpair/ |
H A D | nvpair.c | 137 static int i_get_value_size(data_type_t type, const void *data, uint_t nelem); 139 uint_t nelem, const void *data); 702 i_validate_type_nelem(data_type_t type, uint_t nelem) in i_validate_type_nelem() 706 if (nelem != 0) in i_validate_type_nelem() 725 if (nelem != 1) in i_validate_type_nelem() 766 i_validate_nvpair_value(data_type_t type, uint_t nelem, const void *data) in i_validate_nvpair_value() 777 for (i = 0; i < nelem; i++) in i_validate_nvpair_value() 1006 i_get_value_size(data_type_t type, const void *data, uint_t nelem) in i_get_value_size() 1010 if (i_validate_type_nelem(type, nelem) != 0) in i_get_value_size() 1060 value_sz = (uint64_t)nelem * sizeo in i_get_value_size() 701 i_validate_type_nelem(data_type_t type,uint_t nelem) i_validate_type_nelem() argument 765 i_validate_nvpair_value(data_type_t type,uint_t nelem,const void * data) i_validate_nvpair_value() argument 1005 i_get_value_size(data_type_t type,const void * data,uint_t nelem) i_get_value_size() argument 1145 nvlist_add_common(nvlist_t * nvl,const char * name,data_type_t type,uint_t nelem,const void * data) nvlist_add_common() argument 1555 nvpair_value_common(const nvpair_t * nvp,data_type_t type,uint_t * nelem,void * data) nvpair_value_common() argument 1642 nvlist_lookup_common(const nvlist_t * nvl,const char * name,data_type_t type,uint_t * nelem,void * data) nvlist_lookup_common() argument 1847 uint_t *nelem; nvlist_lookup_pairs() local 2207 nvpair_value_boolean_array(nvpair_t * nvp,boolean_t ** val,uint_t * nelem) nvpair_value_boolean_array() argument 2213 nvpair_value_byte_array(nvpair_t * nvp,uchar_t ** val,uint_t * nelem) nvpair_value_byte_array() argument 2219 nvpair_value_int8_array(nvpair_t * nvp,int8_t ** val,uint_t * nelem) nvpair_value_int8_array() argument 2225 nvpair_value_uint8_array(nvpair_t * nvp,uint8_t ** val,uint_t * nelem) nvpair_value_uint8_array() argument 2231 nvpair_value_int16_array(nvpair_t * nvp,int16_t ** val,uint_t * nelem) nvpair_value_int16_array() argument 2237 nvpair_value_uint16_array(nvpair_t * nvp,uint16_t ** val,uint_t * nelem) nvpair_value_uint16_array() argument 2243 nvpair_value_int32_array(nvpair_t * nvp,int32_t ** val,uint_t * nelem) nvpair_value_int32_array() argument 2249 nvpair_value_uint32_array(nvpair_t * nvp,uint32_t ** val,uint_t * nelem) nvpair_value_uint32_array() argument 2255 nvpair_value_int64_array(nvpair_t * nvp,int64_t ** val,uint_t * nelem) nvpair_value_int64_array() argument 2261 nvpair_value_uint64_array(nvpair_t * nvp,uint64_t ** val,uint_t * nelem) nvpair_value_uint64_array() argument 2267 nvpair_value_string_array(nvpair_t * nvp,const char *** val,uint_t * nelem) nvpair_value_string_array() argument 2273 nvpair_value_nvlist_array(nvpair_t * nvp,nvlist_t *** val,uint_t * nelem) nvpair_value_nvlist_array() argument 2531 size_t nelem = NVP_NELEM(nvp); nvs_embedded_nvl_array() local 3306 uint_t nelem, buflen; nvs_xdr_nvp_op() local [all...] |
/freebsd/stand/libsa/zfs/ |
H A D | nvlist.c | 328 xdr_array(xdr_t *xdr, const unsigned nelem, const xdrproc_t elproc) in xdr_array() argument 331 unsigned c = nelem; in xdr_array() 336 for (unsigned i = 0; i < nelem; i++) { in xdr_array() 407 unsigned type, nelem; in nvlist_xdr_nvp() local 417 nelem = nvp_data->nv_nelem; in nvlist_xdr_nvp() 418 if (!xdr_u_int(xdr, &type) || !xdr_u_int(xdr, &nelem)) in nvlist_xdr_nvp() 435 for (unsigned i = 0; i < nelem; i++) { in nvlist_xdr_nvp() 508 for (unsigned i = 0; i < nelem; i++) { in nvlist_xdr_nvp() 522 if (!xdr_array(xdr, nelem, (xdrproc_t)xdr_u_int)) in nvlist_xdr_nvp() 528 if (!xdr_array(xdr, nelem, (xdrproc_t)xdr_uint64)) in nvlist_xdr_nvp() [all …]
|
/freebsd/sys/contrib/openzfs/module/zfs/ |
H A D | fm.c | 600 int nelem, ret = 0; in i_fm_payload_set() local 611 nelem = va_arg(ap, int); in i_fm_payload_set() 613 va_arg(ap, uchar_t *), nelem); in i_fm_payload_set() 620 nelem = va_arg(ap, int); in i_fm_payload_set() 622 va_arg(ap, boolean_t *), nelem); in i_fm_payload_set() 629 nelem = va_arg(ap, int); in i_fm_payload_set() 631 va_arg(ap, int8_t *), nelem); in i_fm_payload_set() 638 nelem = va_arg(ap, int); in i_fm_payload_set() 640 va_arg(ap, uint8_t *), nelem); in i_fm_payload_set() 647 nelem = va_arg(ap, int); in i_fm_payload_set() [all …]
|
H A D | zcp.c | 548 uint_t nelem; in zcp_nvpair_value_to_lua() local 549 (void) nvpair_value_string_array(pair, &strarr, &nelem); in zcp_nvpair_value_to_lua() 551 for (int i = 0; i < nelem; i++) { in zcp_nvpair_value_to_lua() 560 uint_t nelem; in zcp_nvpair_value_to_lua() local 561 (void) nvpair_value_uint64_array(pair, &intarr, &nelem); in zcp_nvpair_value_to_lua() 563 for (int i = 0; i < nelem; i++) { in zcp_nvpair_value_to_lua() 572 uint_t nelem; in zcp_nvpair_value_to_lua() local 573 (void) nvpair_value_int64_array(pair, &intarr, &nelem); in zcp_nvpair_value_to_lua() 575 for (int i = 0; i < nelem; i++) { in zcp_nvpair_value_to_lua()
|
/freebsd/sys/contrib/openzfs/lib/libnvpair/ |
H A D | libnvpair.c | 584 uint_t nelem; in nvlist_print_with_indent() local 599 nelem = 0; in nvlist_print_with_indent() 680 (void) nvpair_value_boolean_array(nvp, &val, &nelem); in nvlist_print_with_indent() 681 ARENDER(pctl, boolean_array, nvl, name, val, nelem); in nvlist_print_with_indent() 686 (void) nvpair_value_byte_array(nvp, &val, &nelem); in nvlist_print_with_indent() 687 ARENDER(pctl, byte_array, nvl, name, val, nelem); in nvlist_print_with_indent() 692 (void) nvpair_value_int8_array(nvp, &val, &nelem); in nvlist_print_with_indent() 693 ARENDER(pctl, int8_array, nvl, name, val, nelem); in nvlist_print_with_indent() 698 (void) nvpair_value_uint8_array(nvp, &val, &nelem); in nvlist_print_with_indent() 699 ARENDER(pctl, uint8_array, nvl, name, val, nelem); in nvlist_print_with_indent() [all …]
|
/freebsd/crypto/openssl/crypto/ |
H A D | sparse_array.c | 54 size_t nelem; member 153 return sa == NULL ? 0 : sa->nelem; in ossl_sa_num() 161 if (sa == NULL || sa->nelem == 0) in ossl_sa_get() 211 sa->nelem--; in ossl_sa_set() 213 sa->nelem++; in ossl_sa_set()
|
/freebsd/crypto/openssl/test/ |
H A D | bioprinttest.c | 19 #define nelem(x) (int)(sizeof(x) / sizeof((x)[0])) macro 195 for (i = 0; i < nelem(fspecs); i++) { in dofptest() 290 ADD_ALL_TESTS(test_fp, nelem(pw_params)); in setup_tests() 291 ADD_ALL_TESTS(test_zu, nelem(zu_data)); in setup_tests() 292 ADD_ALL_TESTS(test_j, nelem(jf_data)); in setup_tests()
|
/freebsd/lib/libc/db/test/ |
H A D | run.test | 626 -ibsize=$bsize,ffactor=$ffactor,nelem=25000,cachesize=65536\ 639 -ibsize=$bsize,ffactor=$ffactor,nelem=25000,cachesize=65536\ 652 -ibsize=$bsize,ffactor=$ffactor,nelem=25000,cachesize=65536\ 665 -ibsize=$bsize,ffactor=$ffactor,nelem=25000,cachesize=65536\ 678 -ibsize=$bsize,ffactor=$ffactor,nelem=25000,cachesize=65536\ 691 -ibsize=$bsize,ffactor=$ffactor,nelem=25000,cachesize=65536\
|
/freebsd/contrib/sendmail/src/ |
H A D | sasl.c | 79 sm_sasl_calloc(nelem, elemsize) in sm_sasl_calloc() argument 80 SM_SASL_SIZE_T nelem; in sm_sasl_calloc() 86 size = (size_t) nelem * (size_t) elemsize;
|
/freebsd/lib/libc/db/hash/ |
H A D | hash.c | 270 int nelem; in init_hash() local 272 nelem = 1; in init_hash() 309 if (info->nelem) in init_hash() 310 nelem = info->nelem; in init_hash() 321 if (init_htab(hashp, nelem)) in init_hash() 333 init_htab(HTAB *hashp, int nelem) in init_htab() argument 342 nelem = (nelem - 1) / hashp->FFACTOR + 1; in init_htab() 344 l2 = __log2(MAX(nelem, 2)); in init_htab()
|
/freebsd/lib/libc/xdr/ |
H A D | xdr_array.c | 142 xdr_vector(XDR *xdrs, char *basep, u_int nelem, u_int elemsize, xdrproc_t xdr_elem) in xdr_vector() argument 148 for (i = 0; i < nelem; i++) { in xdr_vector()
|
/freebsd/sys/xdr/ |
H A D | xdr_array.c | 135 xdr_vector(XDR *xdrs, char *basep, u_int nelem, u_int elemsize, in xdr_vector() argument 142 for (i = 0; i < nelem; i++) { in xdr_vector()
|
/freebsd/sys/contrib/openzfs/cmd/zed/agents/ |
H A D | zfs_diagnosis.c | 299 uint_t nelem = 0; in zfs_mark_pool() local 319 &tod, &nelem); in zfs_mark_pool() 320 if (nelem == 2) { in zfs_mark_pool() 358 uint_t nelem; in zpool_find_load_time() local 377 &tod, &nelem) == 0 && nelem == 2) { in zpool_find_load_time() 517 uint_t nelem; in zfs_ereport_when() local 520 &nelem) == 0 && nelem == 2) { in zfs_ereport_when()
|
/freebsd/contrib/one-true-awk/ |
H A D | tran.c | 167 ap->nelem = 0; in makesymtab() 191 tp->nelem--; in freesymtab() 195 if (tp->nelem != 0) in freesymtab() 219 tp->nelem--; in freeelem() 243 tp->nelem++; in setsymtab() 244 if (tp->nelem > FULLTAB * tp->size) in setsymtab()
|
/freebsd/contrib/llvm-project/openmp/runtime/src/ |
H A D | kmp_stub.cpp | 174 void *kmp_calloc(size_t nelem, size_t elsize) { in kmp_calloc() argument 178 res = _aligned_recalloc(NULL, nelem, elsize, 1); in kmp_calloc() 180 res = calloc(nelem, elsize); in kmp_calloc()
|