Searched refs:nelems (Results 1 - 25 of 53) sorted by relevance

123

/illumos-gate/usr/src/lib/gss_mechs/mech_krb5/krb5/krb/
H A Dcopy_addrs.c58 register unsigned int nelems = 0; local
65 while (inaddr[nelems]) nelems++;
68 if (!(tempaddr = (krb5_address **) calloc(nelems+1, sizeof(*tempaddr))))
71 for (nelems = 0; inaddr[nelems]; nelems++) {
72 retval = krb5_copy_addr(context, inaddr[nelems], &tempaddr[nelems]);
98 register unsigned int nelems
[all...]
/illumos-gate/usr/src/uts/common/gssapi/mechs/krb5/krb5/krb/
H A Dcopy_princ.c45 register int i, nelems; local
54 nelems = (int) krb5_princ_size(context, inprinc);
55 tempprinc->data = MALLOC(nelems * sizeof(krb5_data));
62 for (i = 0; i < nelems; i++) {
76 FREE (tempprinc->data, nelems * sizeof(krb5_data));
96 for (i = 0; i < nelems; i++)
99 FREE(tempprinc->data, nelems * sizeof(krb5_data));
H A Dcopy_auth.c85 register unsigned int nelems = 0, nelems2 = 0; local
94 while (inauthdat1[nelems]) nelems++;
99 if (!(tempauthdat = (krb5_authdata **) calloc(nelems+nelems2+1,
104 for (nelems = 0; inauthdat1[nelems]; nelems++) {
105 retval = krb5_copy_authdatum(context, inauthdat1[nelems],
106 &tempauthdat[nelems]);
117 &tempauthdat[nelems
[all...]
/illumos-gate/usr/src/lib/fm/topo/modules/common/fac_prov_ipmi/
H A Dfac_prov_ipmi.c344 uint_t nelems; local
361 &entity_refs, &nelems, &err) != 0) {
369 topo_mod_strfreev(mod, entity_refs, nelems);
382 for (i = 0; i < nelems; i++) {
393 topo_mod_strfreev(mod, entity_refs, nelems);
411 topo_mod_strfreev(mod, entity_refs, nelems);
419 topo_mod_strfreev(mod, entity_refs, nelems);
426 topo_mod_strfreev(mod, entity_refs, nelems);
430 topo_mod_strfreev(mod, entity_refs, nelems);
473 uint_t nelems; local
578 uint_t nelems; local
699 uint_t nelems; local
833 uint_t nelems; local
1033 uint_t nelems; local
1164 uint_t nelems; local
1720 uint_t nelems; local
1844 uint_t nelems; local
1930 uint_t nelems; local
1993 uint_t nelems; local
[all...]
/illumos-gate/usr/src/uts/common/fs/zfs/lua/
H A Dlfunc.h22 LUAI_FUNC Closure *luaF_newCclosure (lua_State *L, int nelems);
23 LUAI_FUNC Closure *luaF_newLclosure (lua_State *L, int nelems);
H A Dlmem.h40 #define luaM_growvector(L,v,nelems,size,t,limit,e) \
41 if ((nelems)+1 > (size)) \
/illumos-gate/usr/src/uts/sun4/os/
H A Dmemlist.c107 size_virtalloc(prom_memlist_t *avail, size_t nelems) argument
115 for (i = 0; i < nelems - 1; i++) {
378 size_t nelems, /* number of elements */
387 for (i = 0; i < nelems; list++, i++) {
405 size_t nelems,
414 for (i = 0; i < nelems; src++, i++) {
435 size_t nelems; /* actual number of elements */ member in struct:bootmem_props
455 bpp->nelems--;
456 for (j = i + 1; j < bpp->nelems; j++)
461 if (i == bpp->nelems)
376 installed_top_size_memlist_array( prom_memlist_t *list, size_t nelems, pfn_t *topp, pgcnt_t *sumpagesp) argument
403 copy_memlist( prom_memlist_t *src, size_t nelems, struct memlist **dstp) argument
[all...]
H A Dmemnode.c187 startup_build_mem_nodes(prom_memlist_t *list, size_t nelems) argument
197 plat_build_mem_nodes(list, nelems);
202 for (elem = 0; elem < nelems; list++, elem++) {
/illumos-gate/usr/src/lib/fm/topo/libtopo/common/
H A Dtopo_prop.c205 topo_type_t type, uint_t *nelems, int *err)
268 TOPO_PROP_VAL_VAL, &a2, nelems)) != 0)
271 *nelems)) == NULL) {
275 for (i = 0; i < *nelems; ++i)
284 TOPO_PROP_VAL_VAL, &a2, nelems)) != 0)
287 *nelems)) == NULL) {
291 for (i = 0; i < *nelems; ++i)
300 TOPO_PROP_VAL_VAL, &a2, nelems)) != 0)
303 *nelems)) == NULL) {
307 for (i = 0; i < *nelems;
204 prop_getval(tnode_t *node, const char *pgname, const char *pname, void *val, topo_type_t type, uint_t *nelems, int *err) argument
565 topo_prop_set(tnode_t *node, const char *pgname, const char *pname, topo_type_t type, int flag, void *val, int nelems, int *err) argument
713 topo_prop_set_int32_array(tnode_t *node, const char *pgname, const char *pname, int flag, int32_t *val, uint_t nelems, int *err) argument
721 topo_prop_set_uint32_array(tnode_t *node, const char *pgname, const char *pname, int flag, uint32_t *val, uint_t nelems, int *err) argument
729 topo_prop_set_int64_array(tnode_t *node, const char *pgname, const char *pname, int flag, int64_t *val, uint_t nelems, int *err) argument
737 topo_prop_set_uint64_array(tnode_t *node, const char *pgname, const char *pname, int flag, uint64_t *val, uint_t nelems, int *err) argument
745 topo_prop_set_string_array(tnode_t *node, const char *pgname, const char *pname, int flag, const char **val, uint_t nelems, int *err) argument
753 topo_prop_set_fmri_array(tnode_t *node, const char *pgname, const char *pname, int flag, const nvlist_t **fmri, uint_t nelems, int *err) argument
[all...]
H A Dtopo_xml.c219 uint_t i = 0, nelems = 0; local
275 nelems++;
277 if (nelems < 1) {
291 if ((arrbuf = topo_mod_alloc(mp, (nelems * sizeof (int32_t))))
305 nelems);
306 topo_mod_free(mp, arrbuf, (nelems * sizeof (int32_t)));
309 if ((arrbuf = topo_mod_alloc(mp, (nelems * sizeof (uint32_t))))
323 nelems);
324 topo_mod_free(mp, arrbuf, (nelems * sizeof (uint32_t)));
327 if ((arrbuf = topo_mod_alloc(mp, (nelems * sizeo
[all...]
/illumos-gate/usr/src/uts/common/os/
H A Ddacf.c670 size_t i, nelems; local
688 for (nelems = 0; sw->dacf_opsets[nelems].opset_name != NULL; nelems++)
691 dprintf("dacf_module_register: found %lu opsets\n", nelems);
697 if ((nelems == 0) && (sw != &kmod_dacfsw)) {
753 opsarray = kmem_zalloc(sizeof (dacf_opset_t) * (nelems + 1), KM_SLEEP);
755 for (i = 0; i < nelems; i++) {
760 opsarray[nelems].opset_name = NULL;
761 opsarray[nelems]
833 size_t nelems; local
869 size_t nelems, i; local
[all...]
H A Dddi_ufm.c111 free_nvlist_array(nvlist_t **nvlarr, uint_t nelems) argument
113 for (uint_t i = 0; i < nelems; i++) {
117 kmem_free(nvlarr, nelems * sizeof (nvlist_t *));
H A Dcyclic.c784 cyc_index_t nelems = cpu->cyp_nelems; local
791 if ((heap_left = CYC_HEAP_LEFT(heap_me)) >= nelems)
803 if (heap_right >= nelems)
1654 cyc_index_t ndx, nelems; local
1666 nelems = cpu->cyp_nelems++;
1668 if (nelems == 0) {
1677 ndx = cpu->cyp_heap[nelems];
1699 if (cyclic_upheap(cpu, nelems)) {
1762 cyc_index_t ndx = arg->cyx_ndx, nelems, i; local
1776 nelems
1960 cyc_index_t nelems, i; local
[all...]
/illumos-gate/usr/src/cmd/fm/fminject/common/
H A Dinj_defn.c304 size_t nelems; local
320 nelems = array_dim_check(dlm, dfm);
321 arrsz = (nelems + 1) * (cont->ei_width / NBBY);
394 if (err == 0 && (errno = adder(nvl, dlm->dlm_name, arr, nelems)) != 0)
442 size_t nelems, arrsz; local
449 nelems = array_dim_check(dlm, dfm);
450 arrsz = nelems * sizeof (boolean_t);
467 (char *)dlm->dlm_name, arr, nelems)) != 0)
504 size_t nelems, arrsz; local
512 nelems
635 size_t nelems, arrsz; local
[all...]
H A Dinj_cmds.c82 int nelems, i; local
93 nelems = i;
97 cmd->cmd_num = nelems;
98 cmd->cmd_rand = inj_alloc(sizeof (inj_randelem_t *) * nelems);
101 for (r = rlist, i = 0; i < nelems; i++, r = r->re_next) {
/illumos-gate/usr/src/common/ctf/
H A Dctf_hash.c34 ctf_hash_create(ctf_hash_t *hp, ulong_t nelems) argument
36 if (nelems > USHRT_MAX)
43 if (nelems == 0) {
51 hp->h_nelems = nelems + 1; /* we use index zero as a sentinel */
/illumos-gate/usr/src/lib/fm/topo/modules/i86pc/chip/
H A Dchip_serial.c213 uint_t nelems; local
217 &entity_refs, &nelems, &err) != 0) {
223 for (i = 0; i < nelems; i++) {
239 topo_mod_strfreev(mod, entity_refs, nelems);
/illumos-gate/usr/src/lib/smbsrv/libfksmbsrv/common/
H A Dfake_xattr.c84 uint_t nelems = 2; local
122 if (nvpair_value_uint64_array(pair, &times, &nelems)) {
126 if (nelems < 2)
/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/uts/intel/io/mc-amd/
H A Dmcamd_subr.c627 int nelems = 0; local
631 mc_ereport_dimm_resource(unump, elems, &nelems, mc);
633 mc_ereport_cs_resource(unump, elems, &nelems, mc);
635 if (nelems > 0) {
637 DATA_TYPE_NVLIST_ARRAY, nelems, elems, NULL);
639 for (i = 0; i < nelems; i++)
/illumos-gate/usr/src/uts/i86pc/cpu/amd_opteron/
H A Dao_mca.c676 int nelems = 0; local
683 if ((elems[nelems] = ao_ereport_create_resource_elem(hdl, nva,
687 nelems++;
690 if (nelems == 0)
694 DATA_TYPE_NVLIST_ARRAY, nelems, elems, NULL);
696 for (i = 0; i < nelems; i++)
/illumos-gate/usr/src/cmd/mdb/common/mdb/
H A Dmdb_argvec.c85 size_t nelems = vec->a_nelems; local
88 for (arg = vec->a_data; nelems != 0; nelems--, arg++) {
/illumos-gate/usr/src/uts/common/io/
H A Dpseudonex.c396 uint_t nelems; local
406 &nelems) == DDI_PROP_SUCCESS) {
408 for (i = 0; i < nelems; i++) {
/illumos-gate/usr/src/lib/libdevinfo/
H A Ddevinfo_devlink.h95 uint32_t nelems[DB_TYPES]; /* Number of elements of each type */ member in struct:db_hdr
256 #define DB_NUM(h, t) (DB_HDR(h)->nelems[t])
273 #define VALID_STR(h, i, s) ((i) + strlen(s) + 1 <= DB_HDR(h)->nelems[DB_STR])
274 #define VALID_INDEX(h, t, i) ((i) < DB_HDR(h)->nelems[t])
/illumos-gate/usr/src/uts/sun4u/sys/
H A Dopl_cfg.h245 #define opl_prop_get_int_array(dip, name, data, nelems) \
247 DDI_PROP_DONTPASS, name, (int **)&data, (uint_t *)&nelems)

Completed in 363 milliseconds

123