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

12

/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.c183 strarr_free(topo_mod_t *mod, char **arr, uint_t nelems) argument
185 for (int i = 0; i < nelems; i++)
187 topo_mod_free(mod, arr, (nelems * sizeof (char *)));
337 uint_t nelems; local
352 &entity_refs, &nelems, &err) != 0) {
360 strarr_free(mod, entity_refs, nelems);
364 for (i = 0; i < nelems; i++) {
374 strarr_free(mod, entity_refs, nelems);
392 strarr_free(mod, entity_refs, nelems);
400 strarr_free(mod, entity_refs, nelems);
428 uint_t nelems; local
509 uint_t nelems; local
630 uint_t nelems; local
764 uint_t nelems; local
964 uint_t nelems; local
1095 uint_t nelems; local
1447 uint_t nelems; local
1543 uint_t nelems; local
1629 uint_t nelems; local
1692 uint_t nelems; local
[all...]
/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/modules/i86pc/chip/
H A Dchip_serial.c210 uint_t nelems; local
214 &entity_refs, &nelems, &err) != 0) {
220 for (i = 0; i < nelems; i++) {
236 for (i = 0; i < nelems; i++)
238 topo_mod_free(mod, entity_refs, (nelems * sizeof (char *)));
/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.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/uts/common/os/
H A Ddacf.c672 size_t i, nelems; local
690 for (nelems = 0; sw->dacf_opsets[nelems].opset_name != NULL; nelems++)
693 dprintf("dacf_module_register: found %lu opsets\n", nelems);
699 if ((nelems == 0) && (sw != &kmod_dacfsw)) {
755 opsarray = kmem_zalloc(sizeof (dacf_opset_t) * (nelems + 1), KM_SLEEP);
757 for (i = 0; i < nelems; i++) {
762 opsarray[nelems].opset_name = NULL;
763 opsarray[nelems]
835 size_t nelems; local
871 size_t nelems, i; local
[all...]
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/common/ctf/
H A Dctf_hash.c35 ctf_hash_create(ctf_hash_t *hp, ulong_t nelems) argument
37 if (nelems > USHRT_MAX)
44 if (nelems == 0) {
52 hp->h_nelems = nelems + 1; /* we use index zero as a sentinel */
/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/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/lib/fm/topo/modules/common/ipmi/
H A Dipmi_enum.c91 uint_t nelems; local
123 TOPO_PROP_IPMI_ENTITY_REF, &names, &nelems, &err)
136 for (i = 0; i < nelems; i++)
141 for (i = 0; i < nelems; i++)
143 topo_mod_free(mod, names, (nelems * sizeof (char *)));
/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/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/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/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)
/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/cmd/fm/modules/common/syslog-msgs/
H A Dsyslog.c253 uint_t nprefs, nelems; local
281 &active, &nelems)) {

Completed in 178 milliseconds

12