/illumos-gate/usr/src/uts/common/inet/ |
H A D | inetddi.c | 130 size_t 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() 145 if (i == ndevs) { in inet_attach() 146 VERIFY(i < ndevs); in inet_attach()
|
/illumos-gate/usr/src/boot/common/ |
H A D | isapnp.c | 235 int ndevs; in isapnp_isolation_protocol() local 238 ndevs = 0; in isapnp_isolation_protocol() 252 ndevs++; in isapnp_isolation_protocol() 275 return (ndevs); in isapnp_isolation_protocol()
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.lib/pppoe/ |
H A D | options.c | 1222 int ndevs; in count_devs() local 1224 ndevs = 0; in count_devs() 1226 ndevs++; in count_devs() 1227 return (ndevs); in count_devs() 1235 int ndevs = 0; in count_per_file() local 1238 ndevs += count_devs(pfp->pf_global.sl_dev); in count_per_file() 1241 ndevs += count_devs(slp->sl_dev); in count_per_file() 1243 return (ndevs); in count_per_file() 1284 int ndevs; in get_unique_devs() local 1293 ndevs = count_per_file(psp->ps_files); in get_unique_devs() [all …]
|
/illumos-gate/usr/src/lib/cfgadm_plugins/scsi/common/ |
H A D | cfga_ctl.c | 30 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 …]
|
/illumos-gate/usr/src/lib/libadm/common/ |
H A D | devreserv.c | 918 int ndevs; /* # of devs to reserve */ in devreserv() local 923 for (ndevs = 0; *ppp++; ndevs++) in devreserv() 925 if (rtnlist = malloc((ndevs+1)*sizeof (char **))) { in devreserv() 926 if (aliases = malloc((ndevs+1)*sizeof (char **))) { in devreserv()
|
/illumos-gate/usr/src/cmd/cdrw/ |
H A D | device.c | 314 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()
|
/illumos-gate/usr/src/cmd/zoneadmd/ |
H A D | zcons.c | 339 int ndevs; in init_console_dev() local 348 ndevs = count_console_devs(zlogp); in init_console_dev() 349 if (ndevs == 1) { in init_console_dev() 351 } else if (ndevs > 1 || ndevs == -1) { in init_console_dev()
|
/illumos-gate/usr/src/lib/storage/libg_fc/common/ |
H A D | hot.c | 443 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()
|
/illumos-gate/usr/src/cmd/lastcomm/ |
H A D | lc_utils.c | 47 static int ndevs = NDEVS; variable 174 if (--ndevs < 0) in srch_dir()
|
/illumos-gate/usr/src/cmd/picl/plugins/common/memcfg/ |
H A D | piclmemcfg_comm.c | 114 static int ndevs; /* The max. number of devices per dev group */ variable 333 (void) strlcpy(propname, (ndevs > 1 ? in add_mem_banks() 759 ndevs = mcmemconf.ndevs; in init_mc()
|
/illumos-gate/usr/src/uts/sun4u/sys/ |
H A D | mc.h | 88 int ndevs; /* The max. number of devices per device group */ member
|
/illumos-gate/usr/src/cmd/dcs/sparc/sun4u/ |
H A D | ri_init.c | 102 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() 857 assert(rcm->nrlist < rcm->ndevs && rcm->ncpus < rcm->ndevs); in cpu_rcm_qpass() 916 assert(rcm->nrlist < rcm->ndevs); in io_rcm_qpass()
|
/illumos-gate/usr/src/cmd/fs.d/ |
H A D | fsck.c | 108 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()
|
/illumos-gate/usr/src/uts/i86pc/io/dr/ |
H A D | dr_quiesce.c | 208 int i, ndevs; in dr_is_unsafe_major() local 215 ndevs = dr_unsafe_devs.ndevs; in dr_is_unsafe_major() 216 for (i = 0, cpp = dr_unsafe_devs.devnames; i < ndevs; i++) { in dr_is_unsafe_major()
|
/illumos-gate/usr/src/uts/sun4u/ngdr/io/ |
H A D | dr_quiesce.c | 209 int i, ndevs; in dr_is_unsafe_major() local 216 ndevs = dr_unsafe_devs.ndevs; in dr_is_unsafe_major() 217 for (i = 0, cpp = dr_unsafe_devs.devnames; i < ndevs; i++) { in dr_is_unsafe_major()
|
/illumos-gate/usr/src/cmd/whodo/ |
H A D | whodo.c | 102 static uint_t ndevs; /* number of configured devices */ variable 684 if (ndevs == maxdev) { in devadd() 697 dp = &devl[ndevs++]; in devadd() 729 for (dp = devl, i = 0; i < ndevs; dp++, i++) { in devlookup()
|
/illumos-gate/usr/src/uts/common/io/hxge/ |
H A D | hxge_common.h | 159 uint32_t ndevs; member
|
H A D | hxge_main.c | 4300 hw_p->ndevs++; in hxge_init_common_dev() 4305 hw_p, p_dip, hw_p->ndevs)); in hxge_init_common_dev() 4317 hw_p->ndevs++; in hxge_init_common_dev() 4358 hw_p, p_dip, hw_p->ndevs)); in hxge_uninit_common_dev() 4361 if (hw_p->ndevs) { in hxge_uninit_common_dev() 4362 hw_p->ndevs--; in hxge_uninit_common_dev() 4365 if (!hw_p->ndevs) { in hxge_uninit_common_dev() 4372 hw_p, p_dip, hw_p->ndevs)); in hxge_uninit_common_dev() 4380 hw_p, p_dip, hw_p->ndevs)); in hxge_uninit_common_dev() 4388 hw_p, p_dip, hw_p->ndevs)); in hxge_uninit_common_dev()
|
/illumos-gate/usr/src/uts/i86pc/io/acpi/drmach_acpi/ |
H A D | drmach_acpi.h | 178 int ndevs; member
|
/illumos-gate/usr/src/lib/fm/topo/modules/common/dimm/ |
H A D | topo_dimm.c | 1193 uint_t ndevs = 0; in topo_dimm_add_comps() local 1214 devs[ndevs] = dimm_comps[i].dc_comp; in topo_dimm_add_comps() 1215 ndevs++; in topo_dimm_add_comps() 1238 TOPO_PROP_IMMUTABLE, devs, ndevs, &ret) != 0) { in topo_dimm_add_comps()
|
/illumos-gate/usr/src/cmd/bhyve/common/ |
H A D | smbiostbl.c | 275 uint16_t ndevs; /* num of slots or sockets */ member 771 type16->ndevs = guest_himem > 0 ? 2 : 1; in smbios_type16_initializer()
|
/illumos-gate/usr/src/uts/common/sys/nxge/ |
H A D | nxge_common.h | 540 uint32_t ndevs; member
|
/illumos-gate/usr/src/uts/common/os/ |
H A D | driver_lyr.c | 687 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()
|
/illumos-gate/usr/src/uts/common/io/nxge/ |
H A D | nxge_main.c | 6671 hw_p->ndevs++; in nxge_init_common_dev() 6680 hw_p->ndevs)); in nxge_init_common_dev() 6700 hw_p->ndevs++; in nxge_init_common_dev() 6796 hw_p->ndevs)); in nxge_uninit_common_dev() 6816 if (hw_p->ndevs) { in nxge_uninit_common_dev() 6817 hw_p->ndevs--; in nxge_uninit_common_dev() 6820 if (!hw_p->ndevs) { in nxge_uninit_common_dev() 6836 hw_p->ndevs)); in nxge_uninit_common_dev() 6849 hw_p->ndevs)); in nxge_uninit_common_dev() 6860 hw_p->ndevs)); in nxge_uninit_common_dev()
|
/illumos-gate/usr/src/uts/sun4u/ngdr/sys/ |
H A D | dr.h | 247 uint_t ndevs; member
|