Searched refs:unit (Results 1 - 25 of 747) sorted by last modified time

1234567891011>>

/freebsd-current/sys/net80211/
H A Dieee80211_var.h763 const char name[IFNAMSIZ], int unit,
H A Dieee80211.c559 const char name[IFNAMSIZ], int unit, enum ieee80211_opmode opmode,
569 if_initname(ifp, name, unit);
558 ieee80211_vap_setup(struct ieee80211com *ic, struct ieee80211vap *vap, const char name[IFNAMSIZ], int unit, enum ieee80211_opmode opmode, int flags, const uint8_t bssid[IEEE80211_ADDR_LEN]) argument
/freebsd-current/sys/dev/sound/pcm/
H A Dsound.c57 &snd_unit_auto, 0, "assign default unit to a newly attached device");
140 vchan_num < c->unit) {
181 int error, unit; local
183 unit = snd_unit;
184 error = sysctl_handle_int(oidp, &unit, 0, req);
186 d = devclass_get_softc(pcm_devclass, unit);
189 snd_unit = unit;
194 /* XXX: do we need a way to let the user change the default unit? */
H A Dmixer.c730 int i, unit, val; local
737 unit = device_get_unit(dev);
738 if (resource_int_value(name, unit, "eq", &val) == 0 &&
755 if (resource_int_value(name, unit, snd_mixernames[i],
768 "mixer%d", unit);
H A Ddsp.c114 int err, unit; local
117 unit = device_get_unit(dev);
125 err = make_dev_s(&devargs, &sc->dsp_dev, "dsp%d", unit);
128 unit, err);
2030 dsp_cdevs[i].sep, ch->unit);
2079 int i, nchan, *rates, minch, maxch, unit; local
2099 for (unit = 0; pcm_devclass != NULL &&
2100 unit < devclass_get_maxunit(pcm_devclass); unit++) {
2101 d = devclass_get_softc(pcm_devclass, unit);
[all...]
H A Dvchan.c1109 int unit; local
1111 unit = device_get_unit(dev);
1118 VCHAN_SYSCTL_DATA(unit, PLAY), VCHAN_SYSCTL_DATA_SIZE,
1124 VCHAN_SYSCTL_DATA(unit, PLAY), VCHAN_SYSCTL_DATA_SIZE,
1131 VCHAN_SYSCTL_DATA(unit, PLAY), VCHAN_SYSCTL_DATA_SIZE,
1137 VCHAN_SYSCTL_DATA(unit, PLAY), VCHAN_SYSCTL_DATA_SIZE,
1144 VCHAN_SYSCTL_DATA(unit, REC), VCHAN_SYSCTL_DATA_SIZE,
1150 VCHAN_SYSCTL_DATA(unit, REC), VCHAN_SYSCTL_DATA_SIZE,
1157 VCHAN_SYSCTL_DATA(unit, REC), VCHAN_SYSCTL_DATA_SIZE,
1163 VCHAN_SYSCTL_DATA(unit, RE
[all...]
H A Dsndstat.c81 int type, unit; member in struct:sndstat_entry
1062 int type, unit; local
1064 unit = device_get_unit(dev);
1079 ent->unit = unit;
1084 if (pre->unit > unit)
1086 else if (pre->unit < unit)
1090 else if (pre->type < unit)
[all...]
H A Dchannel.c1168 int i, ret, direction, rpnum, *pnum, max, type, unit; local
1209 unit = 0;
1211 if (*pnum >= max || unit >= max) {
1212 device_printf(d->dev, "%s(): unit=%d or pnum=%d >= than "
1213 "max=%d\n", __func__, unit, *pnum, max);
1222 unit++;
1223 if (unit >= max) {
1225 "%s(): chan=%d >= max=%d\n", __func__, unit, max);
1242 c->unit = unit;
[all...]
H A Dchannel.h106 int unit; member in struct:pcm_channel
/freebsd-current/sys/dev/nvme/
H A Dnvme_ns.c512 int unit; local
597 * correct unit number.
599 unit = device_get_unit(ctrlr->dev) * NVME_MAX_NAMESPACES + ns->id - 1;
603 md_args.mda_unit = unit;
/freebsd-current/contrib/bmake/unit-tests/
H A Dsuff-main-several.exp140 make: stopped in unit-tests
H A Dopt-debug-graph2.exp90 make: stopped in unit-tests
H A Dopt-debug-graph3.exp90 make: stopped in unit-tests
/freebsd-current/sys/net/
H A Dif_ovpn.c2415 int error, unit, wildcard; local
2417 /* Try to see if a special unit was requested. */
2418 error = ifc_name2unit(name, &unit);
2421 wildcard = (unit < 0);
2423 error = ifc_alloc_unit(ifc, &unit);
2428 * If no unit had been given, we need to adjust the ifName.
2432 error = snprintf(dp, len - (dp - name), "%d", unit);
2435 ifc_free_unit(ifc, unit);
2458 ifp->if_dunit = unit;
2501 int unit; local
[all...]
H A Dif_lagg.c570 if_initname(ifp, laggname, ifd->unit);
574 if_initname(ifp, laggname, ifd->unit);
H A Dif.c4040 if_initname(struct ifnet *ifp, const char *name, int unit) argument
4043 ifp->if_dunit = unit;
4044 if (unit != IF_DUNIT_NONE)
4045 snprintf(ifp->if_xname, IFNAMSIZ, "%s%d", name, unit);
/freebsd-current/sys/x86/x86/
H A Dnexus.c310 nexus_add_child(device_t bus, u_int order, const char *name, int unit) argument
320 child = device_add_child_ordered(bus, order, name, unit);
/freebsd-current/sys/dev/md/
H A Dmd.c118 unsigned md_unit; /* unit number */
248 int unit; member in struct:md_s
1249 mdfind(int unit) argument
1254 if (sc->unit == unit)
1261 mdnew(int unit, int *errp, enum md_types type) argument
1267 if (unit == -1)
1268 unit = alloc_unr(md_uh);
1270 unit = alloc_unr_specific(md_uh, unit);
[all...]
/freebsd-current/sys/conf/
H A Dkmod.mk138 CFLAGS.gcc+= --param inline-unit-growth=100
/freebsd-current/sbin/mdconfig/
H A Dmdconfig.c83 " [-s size] [-S sectorsize] [-u unit] [-L label]\n"
85 " mdconfig -d -u unit [-o [no]force]\n"
86 " mdconfig -r -u unit -s size [-o [no]force]\n"
87 " mdconfig -l [-v] [-n] [-f file] [-u unit]\n"
361 errx(1, "bad unit: %s", uflag);
411 int unit; local
414 if (sscanf(dev, "md%d", &unit) != 1)
419 mdiox.md_unit = unit;
/freebsd-current/sys/dev/sound/usb/
H A Duaudio.c4035 DPRINTF("unit %d, type=%d is not implemented\n",
6031 int unit = device_get_unit(dev); local
6089 &umidi_fifo_methods, &sub->fifo, unit, n,
/freebsd-current/sys/dev/sound/pci/
H A Demu10kx.c2310 int unit; local
2313 unit = device_get_unit(sc->dev);
2315 sc->cdev = make_dev(&emu10kx_cdevsw, unit, UID_ROOT, GID_WHEEL, 0640, "emu10kx%d", unit);
3017 int unit; local
3020 unit = device_get_unit(dev);
3031 if (resource_int_value("emu10kx", unit, "multichannel_disabled", &(sc->mch_disabled)))
3037 if (resource_int_value("emu10kx", unit, "multichannel_recording", &(sc->mch_rec)))
3043 if (resource_int_value("emu10kx", unit, "debug", &(sc->dbg_level)))
3452 device_printf(dev, "removing stale child %d (unit
[all...]
/freebsd-current/sys/dev/mlx5/mlx5_en/
H A Dmlx5_en_main.c4469 char unit[16]; local
4564 snprintf(unit, sizeof(unit), "%d", if_getdunit(ifp));
4566 OID_AUTO, unit, CTLFLAG_RD | CTLFLAG_MPSAFE, 0,
4567 "MLX5 ethernet - interface unit");
/freebsd-current/usr.bin/bmake/
H A DMakefile92 SUBDIR+= unit-tests
147 # A simple unit-test driver to help catch regressions
150 cd ${.CURDIR}/unit-tests && \
155 # The test target above visits unit-tests with -r -m /
159 _utobj = ${.OBJDIR}/unit-tests
161 _utobj = ${.CURDIR}/unit-tests/${MAKEOBJDIR:Uobj}
/freebsd-current/sys/dev/aic7xxx/
H A Daic7xxx.c3882 /* We don't know our unit number until the OSM sets it */
3884 ahc->unit = -1;
3988 ahc_set_unit(struct ahc_softc *ahc, int unit) argument
3990 ahc->unit = unit;
4830 * Only allow target mode features if this unit has them enabled.
4833 tmode_enable = ((AHC_TMODE_ENABLE & (0x1 << ahc->unit)) != 0);
7641 panic("ahc_update_scsiid called on non-multitid unit\n");

Completed in 282 milliseconds

1234567891011>>