Home
last modified time | relevance | path

Searched refs:ndevs (Results 1 – 25 of 41) sorted by relevance

12

/titanic_41/usr/src/cmd/cmd-inet/usr.lib/pppoe/
H A Doptions.c1221 int ndevs; in count_devs() local
1223 ndevs = 0; in count_devs()
1225 ndevs++; in count_devs()
1226 return (ndevs); in count_devs()
1234 int ndevs = 0; in count_per_file() local
1237 ndevs += count_devs(pfp->pf_global.sl_dev); in count_per_file()
1240 ndevs += count_devs(slp->sl_dev); in count_per_file()
1242 return (ndevs); in count_per_file()
1283 int ndevs; in get_unique_devs() local
1292 ndevs = count_per_file(psp->ps_files); in get_unique_devs()
[all …]
/titanic_41/usr/src/lib/libadm/common/
H A Ddevreserv.c916 int ndevs; /* # of devs to reserve */ in devreserv() local
921 for (ndevs = 0; *ppp++; ndevs++) in devreserv()
923 if (rtnlist = malloc((ndevs+1)*sizeof (char **))) { in devreserv()
924 if (aliases = malloc((ndevs+1)*sizeof (char **))) { in devreserv()
/titanic_41/usr/src/uts/common/inet/
H A Dinetddi.c130 int i, ndevs; in inet_attach() local
137 ndevs = sizeof (netdev_privs) / sizeof (struct dev_priv); in inet_attach()
138 for (i = 0; i < ndevs; i++) { in inet_attach()
/titanic_41/usr/src/lib/cfgadm_plugins/scsi/common/
H A Dcfga_ctl.c30 int ndevs; member
1449 int ndevs, len; in add_dev() local
1459 largp->ndevs = -1; in add_dev()
1467 largp->ndevs = -1; in add_dev()
1484 ndevs = largp->ndevs; in add_dev()
1485 largp->ndevs++; in add_dev()
1486 largp->dev_list[ndevs] = p; in add_dev()
1487 largp->dev_list[ndevs + 1] = NULL; in add_dev()
1506 larg.ndevs = 0; in get_hba_children()
1513 if (larg.ndevs == -1) { in get_hba_children()
[all …]
/titanic_41/usr/src/cmd/cdrw/
H A Ddevice.c314 int ndevs = 0, i; in hald_symname() local
326 HAL_RDSK_PROP, path, &ndevs, &error)) == NULL) in hald_symname()
330 for (i = 0; i < ndevs; i++) { in hald_symname()
359 int ndevs = 0, i; in hald_findname() local
379 HAL_SYMDEV_PROP, symname, &ndevs, in hald_findname()
387 for (i = 0; i < ndevs; i++) { in hald_findname()
/titanic_41/usr/src/cmd/lvm/md_monitord/
H A Dprobedev.c104 md_probe_ioctl(mdnamelist_t *nlp, int ndevs, char *drvname, boolean_e verbose) in md_probe_ioctl() argument
118 if ((iocp->mnum_list = (uintptr_t)calloc(ndevs, sizeof (minor_t))) in md_probe_ioctl()
134 iocp->nmdevs = ndevs; in md_probe_ioctl()
136 monitord_print(6, "...ndevs 0x%x\n", ndevs); in md_probe_ioctl()
/titanic_41/usr/src/cmd/zoneadmd/
H A Dzcons.c338 int ndevs; in init_console_dev() local
347 ndevs = count_console_devs(zlogp); in init_console_dev()
348 if (ndevs == 1) { in init_console_dev()
350 } else if (ndevs > 1 || ndevs == -1) { in init_console_dev()
/titanic_41/usr/src/lib/storage/libg_fc/common/
H A Dhot.c443 int len, ndevs = 0, err = 0; in g_forcelip_all() local
507 ndevs++; in g_forcelip_all()
530 (void) sleep(ndevs*10); in g_forcelip_all()
/titanic_41/usr/src/cmd/lastcomm/
H A Dlc_utils.c49 static int ndevs = NDEVS; variable
176 if (--ndevs < 0) in srch_dir()
/titanic_41/usr/src/uts/sun4u/sys/
H A Dmc.h88 int ndevs; /* The max. number of devices per device group */ member
/titanic_41/usr/src/cmd/picl/plugins/common/memcfg/
H A Dpiclmemcfg_comm.c112 static int ndevs; /* The max. number of devices per dev group */ variable
331 (void) strlcpy(propname, (ndevs > 1 ? in add_mem_banks()
757 ndevs = mcmemconf.ndevs; in init_mc()
/titanic_41/usr/src/cmd/whodo/
H A Dwhodo.c98 static int ndevs; /* number of configured devices */ variable
618 if (ndevs == maxdev) { in devadd()
629 dp = &devl[ndevs++]; in devadd()
661 for (dp = devl, i = 0; i < ndevs; dp++, i++) { in devlookup()
/titanic_41/usr/src/cmd/dcs/sparc/sun4u/
H A Dri_init.c102 int ndevs; member
595 rcm->ndevs = 0; in rcm_query_init()
602 rcm->ndevs += SBD_MAX_CORES_PER_CMP; in rcm_query_init()
607 if (rcm->ndevs > 0 && in rcm_query_init()
608 ((rcm->cpus = calloc(rcm->ndevs, sizeof (cpuid_t))) == NULL || in rcm_query_init()
609 (rcm->rlist = calloc(rcm->ndevs + 1, sizeof (char *))) == NULL)) { in rcm_query_init()
858 assert(rcm->nrlist < rcm->ndevs && rcm->ncpus < rcm->ndevs); in cpu_rcm_qpass()
917 assert(rcm->nrlist < rcm->ndevs); in io_rcm_qpass()
/titanic_41/usr/src/uts/i86pc/io/dr/
H A Ddr_quiesce.c204 int i, ndevs; in dr_is_unsafe_major() local
211 ndevs = dr_unsafe_devs.ndevs; in dr_is_unsafe_major()
212 for (i = 0, cpp = dr_unsafe_devs.devnames; i < ndevs; i++) { in dr_is_unsafe_major()
/titanic_41/usr/src/uts/sun4u/ngdr/io/
H A Ddr_quiesce.c205 int i, ndevs; in dr_is_unsafe_major() local
212 ndevs = dr_unsafe_devs.ndevs; in dr_is_unsafe_major()
213 for (i = 0, cpp = dr_unsafe_devs.devnames; i < ndevs; i++) { in dr_is_unsafe_major()
/titanic_41/usr/src/cmd/fs.d/
H A Dfsck.c108 static void fsck_dopreen(struct devlist **devp, int ndevs);
580 fsck_dopreen(struct devlist **devp, int ndevs) in fsck_dopreen() argument
589 while (ndevs > 0) { in fsck_dopreen()
607 ndevs--; in fsck_dopreen()
/titanic_41/usr/src/uts/common/io/hxge/
H A Dhxge_common.h159 uint32_t ndevs; member
H A Dhxge_main.c4304 hw_p->ndevs++; in hxge_init_common_dev()
4309 hw_p, p_dip, hw_p->ndevs)); in hxge_init_common_dev()
4321 hw_p->ndevs++; in hxge_init_common_dev()
4362 hw_p, p_dip, hw_p->ndevs)); in hxge_uninit_common_dev()
4365 if (hw_p->ndevs) { in hxge_uninit_common_dev()
4366 hw_p->ndevs--; in hxge_uninit_common_dev()
4369 if (!hw_p->ndevs) { in hxge_uninit_common_dev()
4376 hw_p, p_dip, hw_p->ndevs)); in hxge_uninit_common_dev()
4384 hw_p, p_dip, hw_p->ndevs)); in hxge_uninit_common_dev()
4392 hw_p, p_dip, hw_p->ndevs)); in hxge_uninit_common_dev()
/titanic_41/usr/src/uts/i86pc/io/acpi/drmach_acpi/
H A Ddrmach_acpi.h178 int ndevs; member
/titanic_41/usr/src/uts/common/io/lvm/md/
H A Dmd_names.c2828 int ndevs; in md_getdevnum() local
2932 if (ddi_lyr_devid_to_devlist(devid, did_n->min_name, &ndevs, in md_getdevnum()
2953 if (ndevs > 1) { in md_getdevnum()
2957 for (cnt = 0; cnt < ndevs; cnt++) { in md_getdevnum()
2984 (void) ddi_lyr_free_devlist(devs, ndevs); in md_getdevnum()
4277 int ndevs, in md_resolve_bydevid() local
4313 &ndevs, &devs) == DDI_SUCCESS)) { in md_resolve_bydevid()
4322 for (cnt = 0; cnt < ndevs; cnt++) { in md_resolve_bydevid()
4326 if (cnt == ndevs) { in md_resolve_bydevid()
4361 (void) ddi_lyr_free_devlist(devs, ndevs); in md_resolve_bydevid()
/titanic_41/usr/src/uts/common/sys/nxge/
H A Dnxge_common.h540 uint32_t ndevs; member
/titanic_41/usr/src/cmd/lvm/util/
H A Dmetastat.c780 md_probe_ioctl(mdsetname_t *sp, mdnamelist_t *nlp, int ndevs, char *drvname) in md_probe_ioctl() argument
794 if ((iocp->mnum_list = (uintptr_t)calloc(ndevs, sizeof (minor_t))) in md_probe_ioctl()
803 iocp->nmdevs = ndevs; in md_probe_ioctl()
/titanic_41/usr/src/uts/common/os/
H A Ddriver_lyr.c687 int ret, i, ndevs, styp; in ldi_vp_from_devid() local
694 ret = ddi_lyr_devid_to_devlist(devid, minor_name, &ndevs, &devs); in ldi_vp_from_devid()
695 if ((ret != DDI_SUCCESS) || (ndevs <= 0)) in ldi_vp_from_devid()
698 for (i = 0; i < ndevs; i++) { in ldi_vp_from_devid()
724 ddi_lyr_free_devlist(devs, ndevs); in ldi_vp_from_devid()
726 if (i == ndevs) in ldi_vp_from_devid()
/titanic_41/usr/src/uts/common/io/nxge/
H A Dnxge_main.c6687 hw_p->ndevs++; in nxge_init_common_dev()
6696 hw_p->ndevs)); in nxge_init_common_dev()
6716 hw_p->ndevs++; in nxge_init_common_dev()
6812 hw_p->ndevs)); in nxge_uninit_common_dev()
6832 if (hw_p->ndevs) { in nxge_uninit_common_dev()
6833 hw_p->ndevs--; in nxge_uninit_common_dev()
6836 if (!hw_p->ndevs) { in nxge_uninit_common_dev()
6852 hw_p->ndevs)); in nxge_uninit_common_dev()
6865 hw_p->ndevs)); in nxge_uninit_common_dev()
6876 hw_p->ndevs)); in nxge_uninit_common_dev()
/titanic_41/usr/src/uts/sun4u/ngdr/sys/
H A Ddr.h243 uint_t ndevs; member

12