| /src/usr.sbin/sliplogin/ | 
| slip.login | 12 UNIT=$1 19 /sbin/ifconfig sl${UNIT} inet ${LOCALADDR} ${REMOTEADDR} netmask ${NETMASK} \
 
 | 
| /src/sys/external/bsd/drm2/dist/drm/i915/gt/uc/ | 
| intel_guc.c | 246 	#define UNIT SZ_1M 249 	#define UNIT SZ_4K
 254 	BUILD_BUG_ON(!IS_ALIGNED(CRASH_BUFFER_SIZE, UNIT));
 256 	BUILD_BUG_ON(!IS_ALIGNED(DPC_BUFFER_SIZE, UNIT));
 258 	BUILD_BUG_ON(!IS_ALIGNED(ISR_BUFFER_SIZE, UNIT));
 260 	BUILD_BUG_ON((CRASH_BUFFER_SIZE / UNIT - 1) >
 262 	BUILD_BUG_ON((DPC_BUFFER_SIZE / UNIT - 1) >
 264 	BUILD_BUG_ON((ISR_BUFFER_SIZE / UNIT - 1) >
 270 		((CRASH_BUFFER_SIZE / UNIT - 1) << GUC_LOG_CRASH_SHIFT) |
 271 		((DPC_BUFFER_SIZE / UNIT - 1) << GUC_LOG_DPC_SHIFT)
 [all...]
 | 
| /src/sys/dev/pci/bktr/ | 
| bktr_os.c | 337 	unsigned int	unit;  local in function:bktr_attach 345 	unit = device_get_unit(dev);
 348 	snprintf(bktr->bktr_xname, sizeof(bktr->bktr_xname), "bktr%d",unit);
 386 		unit, (old_irq & 0xff), (new_irq & 0xff));
 430 	if (bt848_i2c_attach(unit, bktr, &bktr->i2c_sc))
 431 		printf("bktr%d: i2c_attach: can't attach\n", unit);
 446 			printf("brooktree%d: PCI bus latency is", unit);
 449 				unit);
 464 	if (common_bktr_attach(bktr, unit, fun, rev) == 0)
 468 	bktr->bktrdev = make_dev(&bktr_cdevsw, unit,
 503  unsigned int unit;  local in function:bktr_detach
 599  int unit;  local in function:bktr_open
 679  int unit;  local in function:bktr_close
 718  int unit;  local in function:bktr_read
 756  int unit;  local in function:bktr_ioctl
 787  int unit;  local in function:bktr_mmap
 816  int unit;  local in function:bktr_poll
 1104  int unit;  local in function:bktr_open
 1167  int unit;  local in function:bktr_close
 1194  int unit;  local in function:bktr_read
 1228  int unit;  local in function:bktr_ioctl
 1257  int unit;  local in function:bktr_mmap
 1281  int unit;  local in function:bktr_poll
 1406  int unit;  local in function:bktr_attach
 1461  int unit;  local in function:bktr_attach
 1661  int unit;  local in function:bktr_open
 1694  int unit;  local in function:bktr_close
 1719  int unit;  local in function:bktr_read
 1754  int unit;  local in function:bktr_ioctl
 1779  int unit;  local in function:bktr_mmap
 [all...]
 | 
| /src/sys/arch/x68k/dev/ | 
| par.c | 100 #define UNIT(x)		minor(x) 208 	int unit = UNIT(dev);  local in function:paropen
 211 	sc = device_lookup_private(&par_cd, unit);
 234 	int unit = UNIT(dev);  local in function:parclose
 236 	struct par_softc *sc = device_lookup_private(&par_cd, unit);
 279 		printf("parwrite(%x, %p)\n", UNIT(dev), uio);
 287 	int unit = UNIT(dev)  local in function:parrw
 [all...]
 | 
| opmbell.c | 105 #define UNIT(x)		minor(x) 139 	int unit;  local in function:bellattach
 146 	for (unit = 0; unit < num; unit++) {
 147 		sc = &bell_softc[unit];
 156 		memcpy(&vtab[unit], &bell_voice, sizeof(bell_voice));
 157 		opm_set_voice(sc->ch, &vtab[unit]);
 159 		printf("bell%d: YM2151 OPM bell emulation.\n", unit);
 166 	int unit = UNIT(dev)  local in function:bellopen
 184  int unit = UNIT(dev);  local in function:bellclose
 194  int unit = UNIT(dev);  local in function:bellioctl
 [all...]
 | 
| ite.c | 240 		return device_lookup_private(&ite_cd, UNIT(dev)); 291 	int unit = UNIT(dev);  local in function:iteon
 294 	if (unit < 0 || unit >= ite_cd.cd_ndevs ||
 329 	int unit = UNIT(dev);  local in function:iteoff
 333 	if (unit < 0 || unit >= ite_cd.cd_ndevs ||
 368 	int unit = UNIT(dev)  local in function:iteopen
 558  int unit = UNIT(dev);  local in function:ite_reinit
 [all...]
 | 
| itevar.h | 41 #define UNIT(dev)       minor(dev) 
 | 
| /src/sys/arch/amiga/dev/ | 
| par.c | 83 #define UNIT(x)		minor(x) 164 	int unit = UNIT(dev);  local in function:paropen
 165 	struct par_softc *sc = getparsp(unit);
 167 	if (unit >= NPAR || (sc->sc_flags & PARF_ALIVE) == 0)
 201   int unit = UNIT(dev);  local in function:parclose
 202   struct par_softc *sc = getparsp(unit);
 268   int unit = UNIT(dev)  local in function:parrw
 [all...]
 | 
| /src/sys/arch/hp300/dev/ | 
| ppi.c | 143 #define UNIT(x)		minor(x) 211 	sc = device_lookup_private(&ppi_cd,UNIT(dev));
 236 	struct ppi_softc *sc = device_lookup_private(&ppi_cd, UNIT(dev));
 298 	struct ppi_softc *sc = device_lookup_private(&ppi_cd, UNIT(dev));
 456 	struct ppi_softc *sc = device_lookup_private(&ppi_cd,UNIT(dev));
 
 | 
| ct.c | 103 	int	sc_punit;		/* physical unit */ 212 #define	UNIT(x)		(minor(x) & 3)
 281 	 * is always issued to unit 0.
 338 	sc->sc_clear.unit = C_SUNIT(sc->sc_punit);
 344 	sc->sc_src.unit = C_SUNIT(CTCTLR);
 352 	sc->sc_ssmc.unit = C_SUNIT(sc->sc_punit);
 362 	sc->sc_soptc.unit = C_SUNIT(sc->sc_punit);
 378 	sc = device_lookup_private(&ct_cd, UNIT(dev));
 391 	sc->sc_soptc.unit = C_SUNIT(sc->sc_punit);
 421 	struct ct_softc *sc = device_lookup_private(&ct_cd,UNIT(dev))
 [all...]
 | 
| mt.c | 126 #define	UNIT(x)		(minor(x) & 3) 328 	sc = device_lookup_private(&mt_cd, UNIT(dev));
 427 	struct mt_softc *sc = device_lookup_private(&mt_cd,UNIT(dev));
 474 	sc = device_lookup_private(&mt_cd,UNIT(bp->b_dev));
 
 | 
| /src/sys/dev/gpib/ | 
| ppi.c | 143 #define UNIT(x)		minor(x) 191 	sc = device_lookup_private(&ppi_cd, UNIT(dev));
 216 	sc = device_lookup_private(&ppi_cd, UNIT(dev));
 290 	struct ppi_softc *sc = device_lookup_private(&ppi_cd, UNIT(dev));
 436 	struct ppi_softc *sc = device_lookup_private(&ppi_cd, UNIT(dev));
 
 | 
| /src/sys/arch/luna68k/stand/boot/ | 
| samachdep.h | 210 /* use following device unit number strategy to make parser easier */ 211 #define	UNIT(ctlr, target)	((ctlr) * 10 + (target))
 212 #define	CTLR(unit)		((unit) / 10)
 213 #define	TARGET(unit)		((unit) % 10)
 
 | 
| init_main.c | 179 	int unit, part;  local in function:main 226 	unit = 0;
 247 			unit = UNIT(ctlr, id);
 251 			unit = 0;
 277 			unit = UNIT(ctlr, id);
 301 	    "%s(%d,%d)%s", bootdev, unit, part, "netbsd");
 303 	default_unit = unit;
 
 | 
| /src/sys/arch/evbppc/virtex/dev/ | 
| xlcom.c | 66 #define UNIT(dev) 		(minor(dev) & XLCOM_UNIT_MASK) 567 	sc = device_lookup_private(&xlcom_cd, UNIT(tp->t_dev));
 603 	sc = device_lookup_private(&xlcom_cd, UNIT(tp->t_dev));
 
 | 
| /src/sys/external/bsd/drm2/dist/drm/radeon/ | 
| sumod.h | 321 #       define UNIT(x)                                  ((x) << 24) 
 |