sbin/efi/devpath5.c
49
devpath_bios_typename(uint devtype)
sbin/efi/devpath5.c
52
switch (devtype) {
sys/arch/amiga/dev/fd.c
470
fdopen(dev_t dev, int flags, int devtype, struct lwp *l)
sys/arch/amiga/dev/fd.c
545
fdclose(dev_t dev, int flags, int devtype, struct lwp *l)
sys/arch/amiga/dev/grf.c
239
grfopen(dev_t dev, int flags, int devtype, struct lwp *l)
sys/arch/amiga/dev/ite.c
416
iteopen(dev_t dev, int mode, int devtype, struct lwp *l)
sys/arch/arc/stand/boot/devopen.c
104
strcpy(devtype, "disk");
sys/arch/arc/stand/boot/devopen.c
106
strcpy(devtype, "disk");
sys/arch/arc/stand/boot/devopen.c
121
printf("devopen: %s type %s file %s\n", namebuf, devtype, cp);
sys/arch/arc/stand/boot/devopen.c
126
if (dp->dv_name && strcmp(devtype, dp->dv_name) == 0)
sys/arch/arc/stand/boot/devopen.c
128
printf("Unknown device '%s'\nKnown devices are:", devtype);
sys/arch/arc/stand/boot/devopen.c
49
char devtype[16];
sys/arch/arc/stand/boot/devopen.c
73
strcpy(devtype, "disk");
sys/arch/atari/dev/fd.c
465
fdopen(dev_t dev, int flags, int devtype, struct lwp *l)
sys/arch/atari/dev/fd.c
564
fdclose(dev_t dev, int flags, int devtype, struct lwp *l)
sys/arch/atari/dev/grf.c
169
grfopen(dev_t dev, int flags, int devtype, struct lwp *l)
sys/arch/atari/dev/ite.c
382
iteopen(dev_t dev, int mode, int devtype, struct lwp *l)
sys/arch/atari/vme/et4000.c
374
et4kopen(dev_t dev, int flags, int devtype, struct lwp *l)
sys/arch/atari/vme/et4000.c
388
et4kclose(dev_t dev, int flags, int devtype, struct lwp *l)
sys/arch/atari/vme/leo.c
254
leoopen(dev_t dev, int flags, int devtype, struct lwp *l)
sys/arch/atari/vme/leo.c
343
leoclose(dev_t dev, int flags, int devtype, struct lwp *l)
sys/arch/dreamcast/dev/g1/gdrom.c
371
gdromopen(dev_t dev, int flags, int devtype, struct lwp *l)
sys/arch/dreamcast/dev/g1/gdrom.c
415
gdromclose(dev_t dev, int flags, int devtype, struct lwp *l)
sys/arch/dreamcast/dev/gdrom.c
439
gdromopen(dev_t dev, int flags, int devtype, struct lwp *l)
sys/arch/dreamcast/dev/gdrom.c
483
gdromclose(dev_t dev, int flags, int devtype, struct lwp *l)
sys/arch/dreamcast/dev/maple/mlcd.c
471
mlcdopen(dev_t dev, int flags, int devtype, struct lwp *l)
sys/arch/dreamcast/dev/maple/mlcd.c
495
mlcdclose(dev_t dev, int flags, int devtype, struct lwp *l)
sys/arch/dreamcast/dev/maple/mmemcard.c
635
mmemopen(dev_t dev, int flags, int devtype, struct lwp *l)
sys/arch/dreamcast/dev/maple/mmemcard.c
651
switch (devtype) {
sys/arch/dreamcast/dev/maple/mmemcard.c
664
mmemclose(dev_t dev, int flags, int devtype, struct lwp *l)
sys/arch/dreamcast/dev/maple/mmemcard.c
677
switch (devtype) {
sys/arch/evbarm/g42xxeb/g42xxeb_lcd.c
312
lcdopen(dev_t dev, int oflags, int devtype, struct lwp *l)
sys/arch/evbarm/g42xxeb/g42xxeb_lcd.c
331
lcdclose(dev_t dev, int fflag, int devtype, struct lwp *l)
sys/arch/evbarm/lubbock/lubbock_lcd.c
280
lcdopen( dev_t dev, int oflags, int devtype, struct lwp *l )
sys/arch/evbarm/lubbock/lubbock_lcd.c
286
lcdclose( dev_t dev, int fflag, int devtype, struct lwp *l )
sys/arch/evbarm/mini2440/mini2440_lcd.c
311
lcdopen( dev_t dev, int oflags, int devtype, struct lwp *p )
sys/arch/evbarm/mini2440/mini2440_lcd.c
317
lcdclose( dev_t dev, int fflag, int devtype, struct lwp *p )
sys/arch/evbarm/netwalker/netwalker_lcd.c
178
lcdopen(dev_t dev, int oflags, int devtype, struct lwp *l)
sys/arch/evbarm/netwalker/netwalker_lcd.c
184
lcdclose(dev_t dev, int fflag, int devtype, struct lwp *l)
sys/arch/evbarm/smdk2xx0/smdk2410_lcd.c
274
lcdopen( dev_t dev, int oflags, int devtype, struct proc *p )
sys/arch/evbarm/smdk2xx0/smdk2410_lcd.c
280
lcdclose( dev_t dev, int fflag, int devtype, struct proc *p )
sys/arch/hp300/dev/sti_dio.c
132
int devtype;
sys/arch/hp300/dev/sti_dio.c
157
devtype = bus_space_read_1(bst, bsh, 3);
sys/arch/hp300/dev/sti_dio.c
160
if (devtype != STI_DEVTYPE1 && devtype != STI_DEVTYPE4)
sys/arch/hp300/dev/sti_sgc.c
119
int devtype;
sys/arch/hp300/dev/sti_sgc.c
125
devtype = bus_space_read_1(iot, ioh, 3);
sys/arch/hp300/dev/sti_sgc.c
135
if (devtype != STI_DEVTYPE1 && devtype != STI_DEVTYPE4)
sys/arch/hp300/dev/sti_sgc.c
147
int devtype, rv = 0;
sys/arch/hp300/dev/sti_sgc.c
157
devtype = bus_space_read_1(bst, romh, 3);
sys/arch/hp300/dev/sti_sgc.c
158
if (devtype == STI_DEVTYPE1 || devtype == STI_DEVTYPE4)
sys/arch/hppa/dev/hyperfb.c
297
u_char devtype;
sys/arch/hppa/dev/hyperfb.c
329
devtype = bus_space_read_1(ca->ca_iot, romh, 3);
sys/arch/hppa/dev/hyperfb.c
330
DPRINTF("%s: devtype=%d\n", __func__, devtype);
sys/arch/hppa/dev/hyperfb.c
332
switch (devtype) {
sys/arch/hppa/dev/hyperfb.c
347
DPRINTF("%s: unknown type (%x)\n", __func__, devtype);
sys/arch/hppa/dev/sti_sgc.c
159
u_char devtype;
sys/arch/hppa/dev/sti_sgc.c
191
devtype = bus_space_read_1(ca->ca_iot, romh, 3);
sys/arch/hppa/dev/sti_sgc.c
193
DPRINTF(("%s: devtype=%d\n", __func__, devtype));
sys/arch/hppa/dev/sti_sgc.c
195
switch (devtype) {
sys/arch/hppa/dev/sti_sgc.c
210
DPRINTF(("%s: unknown type (%x)\n", __func__, devtype));
sys/arch/luna68k/dev/xp.c
137
xp_open(dev_t dev, int flags, int devtype, struct lwp *l)
sys/arch/mac68k/dev/ite_compat.c
115
iteopen(dev_t dev, int mode, int devtype, struct lwp *l)
sys/arch/macppc/stand/ofwboot/ofdev.c
300
char devtype[16];
sys/arch/macppc/stand/ofwboot/ofdev.c
304
devtype[0] = '\0';
sys/arch/macppc/stand/ofwboot/ofdev.c
331
if (OF_getprop(dhandle, "device_type", devtype,
sys/arch/macppc/stand/ofwboot/ofdev.c
332
sizeof devtype) < 0)
sys/arch/macppc/stand/ofwboot/ofdev.c
333
devtype[0] = '\0';
sys/arch/macppc/stand/ofwboot/ofdev.c
343
if (strcmp(devtype, "block") == 0) {
sys/arch/mvme68k/include/prom.h
92
u_short devtype;
sys/arch/mvme68k/stand/netboot/config.h
58
u_short devtype;
sys/arch/newsmips/stand/boot/devopen.c
103
if (romdev.devtype == DT_BLOCK) {
sys/arch/newsmips/stand/boot/devopen.c
95
romdev.devtype = DT_NET;
sys/arch/newsmips/stand/boot/devopen.c
97
romdev.devtype = DT_BLOCK;
sys/arch/newsmips/stand/boot/promdev.h
3
int devtype;
sys/arch/ofppc/stand/ofwboot/ofdev.c
115
if (OF_getprop(dhandle, "device_type", devtype,
sys/arch/ofppc/stand/ofwboot/ofdev.c
116
sizeof devtype) < 0)
sys/arch/ofppc/stand/ofwboot/ofdev.c
117
devtype[0] = 0;
sys/arch/ofppc/stand/ofwboot/ofdev.c
70
char devtype[16];
sys/arch/ofppc/stand/ofwboot/ofdev.c
73
devtype[0] = 0;
sys/arch/ofppc/stand/ofwboot/ofdev.c
93
if (!strcmp(devtype, "block")) {
sys/arch/sgimips/stand/common/devopen.c
104
if (dp->dv_name && strcmp(devtype, dp->dv_name) == 0)
sys/arch/sgimips/stand/common/devopen.c
106
printf("Unknown device '%s'\nKnown devices are:", devtype);
sys/arch/sgimips/stand/common/devopen.c
52
char devtype[16];
sys/arch/sgimips/stand/common/devopen.c
82
strcpy(devtype, "scsi");
sys/arch/sgimips/stand/common/devopen.c
84
strcpy(devtype, "dksc");
sys/arch/sgimips/stand/common/devopen.c
99
printf("devopen: %s type %s file %s\n", namebuf, devtype, cp);
sys/arch/shark/ofw/ofrom.c
124
ofromopen(dev_t dev, int oflags, int devtype, struct lwp *l)
sys/arch/shark/stand/ofwboot/ofdev.c
69
char devtype[16];
sys/arch/shark/stand/ofwboot/ofdev.c
72
devtype[0] = 0;
sys/arch/shark/stand/ofwboot/ofdev.c
85
if (!strcmp(devtype, "block")) {
sys/arch/shark/stand/ofwboot/ofdev.c
98
} else if (OF_getprop(dhandle, "device_type", devtype, sizeof devtype) < 0)
sys/arch/shark/stand/ofwboot/ofdev.c
99
devtype[0] = 0;
sys/arch/sparc/stand/common/promdev.c
260
pd->devtype = DT_BLOCK;
sys/arch/sparc/stand/common/promdev.c
262
pd->devtype = getdevtype(fd, prom_bootdevice);
sys/arch/sparc/stand/common/promdev.c
264
if (pd->devtype != DT_BYTE)
sys/arch/sparc/stand/common/promdev.c
267
if (pd->devtype == DT_NET) {
sys/arch/sparc/stand/common/promdev.c
310
if (pd->devtype != DT_BLOCK) {
sys/arch/sparc/stand/common/promdev.c
362
if (pd->devtype == DT_BLOCK)
sys/arch/sparc/stand/common/promdev.c
448
if (pd->devtype == DT_NET)
sys/arch/sparc/stand/common/promdev.c
461
if (pd->devtype == DT_NET)
sys/arch/sparc/stand/common/promdev.h
37
int devtype; /* Kind of device we're booting from */
sys/arch/sparc/stand/ofwboot/boot.c
107
char devtype[16];
sys/arch/sparc/stand/ofwboot/ofdev.c
100
if (strcmp(devtype, "block") == 0
sys/arch/sparc/stand/ofwboot/ofdev.c
101
|| strcmp(devtype, "scsi") == 0) {
sys/arch/sparc/stand/ofwboot/ofdev.c
128
} else if (_prom_getprop(dhandle, "device_type", devtype,
sys/arch/sparc/stand/ofwboot/ofdev.c
129
sizeof devtype) < 0)
sys/arch/sparc/stand/ofwboot/ofdev.c
130
devtype[0] = 0;
sys/arch/sparc/stand/ofwboot/ofdev.c
80
char devtype[16];
sys/arch/sparc/stand/ofwboot/ofdev.c
83
devtype[0] = 0;
sys/arch/sparc64/dev/pci_machdep.c
437
char devtype[30];
sys/arch/sparc64/dev/pci_machdep.c
464
prom_getpropstringA(node, "device_type", devtype, sizeof(devtype));
sys/arch/sparc64/dev/pci_machdep.c
466
if (strcmp(intrmap[len].in_class, devtype) == 0) {
sys/arch/vax/vax/ctu.c
161
ctuopen(dev_t dev, int oflags, int devtype, struct lwp *l)
sys/arch/vax/vax/ctu.c
188
ctuclose(dev_t dev, int oflags, int devtype, struct lwp *l)
sys/arch/x68k/dev/bmd.c
231
bmdopen(dev_t dev, int oflags, int devtype, struct lwp *l)
sys/arch/x68k/dev/bmd.c
241
switch (devtype) {
sys/arch/x68k/dev/bmd.c
256
bmdclose(dev_t dev, int fflag, int devtype, struct lwp *l)
sys/arch/x68k/dev/bmd.c
262
switch (devtype) {
sys/arch/x68k/dev/ite.c
366
iteopen(dev_t dev, int mode, int devtype, struct lwp *l)
sys/compat/sunos/sunos_ioctl.c
811
int devtype = SUNOS_AUDIO_DEV_AMD;
sys/compat/sunos/sunos_ioctl.c
812
error = copyout((void *)&devtype, SCARG(uap, data),
sys/compat/sunos/sunos_ioctl.c
813
sizeof(devtype));
sys/compat/sunos32/sunos32_ioctl.c
851
int devtype = SUNOS_AUDIO_DEV_AMD;
sys/compat/sunos32/sunos32_ioctl.c
852
return copyout(&devtype, SCARG_P32(uap, data),
sys/compat/sunos32/sunos32_ioctl.c
853
sizeof(devtype));
sys/dev/ic/sti.c
815
int devtype;
sys/dev/ic/sti.c
818
devtype = bus_space_read_1(memt, romh, 3);
sys/dev/ic/sti.c
819
if (devtype == STI_DEVTYPE4) {
sys/dev/isa/isv.c
260
isv_open(dev_t dev, int flag, int devtype, lwp_t *l)
sys/dev/pci/agp.c
976
agpopen(dev_t dev, int oflags, int devtype, struct lwp *l)
sys/dev/pci/agp.c
995
agpclose(dev_t dev, int fflag, int devtype, struct lwp *l)
sys/dev/pci/pci.c
1043
unsigned int devtype;
sys/dev/pci/pci.c
1045
devtype = PCIE_XCAP_TYPE(xcap);
sys/dev/pci/pci.c
1052
if (PCIE_HAS_LINKREGS(devtype))
sys/dev/pci/pci.c
1058
if (PCIE_HAS_ROOTREGS(devtype))
sys/dev/pci/pci.c
1064
if (PCIE_HAS_LINKREGS(devtype))
sys/dev/pci/pci.c
964
unsigned int devtype;
sys/dev/pci/pci.c
966
devtype = PCIE_XCAP_TYPE(xcap);
sys/dev/pci/pci.c
969
if (PCIE_HAS_LINKREGS(devtype))
sys/dev/pci/pci.c
977
if (PCIE_HAS_ROOTREGS(devtype))
sys/dev/pci/pci.c
985
if (PCIE_HAS_LINKREGS(devtype))
sys/dev/pci/ppb.c
121
int off, capversion, devtype;
sys/dev/pci/ppb.c
128
devtype = PCIE_XCAP_TYPE(reg);
sys/dev/pci/ppb.c
142
switch (devtype) {
sys/dev/pci/ppb.c
165
aprint_normal("Device/Port Type %x", devtype);
sys/dev/pci/ppb.c
169
switch (devtype) {
sys/dev/qbus/rf.c
1058
rfclose(dev_t dev, int fflag, int devtype, struct lwp *l)
sys/dev/qbus/rf.c
967
rfopen(dev_t dev, int oflags, int devtype, struct lwp *l)
sys/dev/usb/mbim.h
383
uint32_t devtype;
sys/fs/nfs/common/nfs_lock.c
109
nfslock_close(struct cdev *dev, int fflag, int devtype, struct thread *td)
sys/fs/nfs/common/nfs_lock.c
88
nfslock_open(struct cdev *dev, int oflags, int devtype, struct thread *td)
sys/kern/kern_ksyms.c
1202
ksymsopen(dev_t dev, int flags, int devtype, struct lwp *l)
sys/kern/subr_devsw.c
1164
bdev_open(dev_t dev, int flag, int devtype, lwp_t *l)
sys/kern/subr_devsw.c
1196
d, dev, flag, devtype, unit, dv);
sys/kern/subr_devsw.c
1200
SDT_PROBE4(sdt, bdev, open, entry, d, dev, flag, devtype);
sys/kern/subr_devsw.c
1201
rv = (*d->d_open)(dev, flag, devtype, l);
sys/kern/subr_devsw.c
1202
SDT_PROBE5(sdt, bdev, open, return, d, dev, flag, devtype, rv);
sys/kern/subr_devsw.c
1207
d, dev, flag, devtype, unit, dv);
sys/kern/subr_devsw.c
1217
bdev_cancel(dev_t dev, int flag, int devtype, struct lwp *l)
sys/kern/subr_devsw.c
1228
SDT_PROBE4(sdt, bdev, cancel, entry, d, dev, flag, devtype);
sys/kern/subr_devsw.c
1229
rv = (*d->d_cancel)(dev, flag, devtype, l);
sys/kern/subr_devsw.c
1230
SDT_PROBE5(sdt, bdev, cancel, return, d, dev, flag, devtype, rv);
sys/kern/subr_devsw.c
1237
bdev_close(dev_t dev, int flag, int devtype, lwp_t *l)
sys/kern/subr_devsw.c
1246
SDT_PROBE4(sdt, bdev, close, entry, d, dev, flag, devtype);
sys/kern/subr_devsw.c
1247
rv = (*d->d_close)(dev, flag, devtype, l);
sys/kern/subr_devsw.c
1248
SDT_PROBE5(sdt, bdev, close, return, d, dev, flag, devtype, rv);
sys/kern/subr_devsw.c
1400
cdev_open(dev_t dev, int flag, int devtype, lwp_t *l)
sys/kern/subr_devsw.c
1432
d, dev, flag, devtype, unit, dv);
sys/kern/subr_devsw.c
1436
SDT_PROBE4(sdt, cdev, open, entry, d, dev, flag, devtype);
sys/kern/subr_devsw.c
1437
rv = (*d->d_open)(dev, flag, devtype, l);
sys/kern/subr_devsw.c
1438
SDT_PROBE5(sdt, cdev, open, return, d, dev, flag, devtype, rv);
sys/kern/subr_devsw.c
1443
d, dev, flag, devtype, unit, dv);
sys/kern/subr_devsw.c
1453
cdev_cancel(dev_t dev, int flag, int devtype, struct lwp *l)
sys/kern/subr_devsw.c
1464
SDT_PROBE4(sdt, cdev, cancel, entry, d, dev, flag, devtype);
sys/kern/subr_devsw.c
1465
rv = (*d->d_cancel)(dev, flag, devtype, l);
sys/kern/subr_devsw.c
1466
SDT_PROBE5(sdt, cdev, cancel, return, d, dev, flag, devtype, rv);
sys/kern/subr_devsw.c
1473
cdev_close(dev_t dev, int flag, int devtype, lwp_t *l)
sys/kern/subr_devsw.c
1482
SDT_PROBE4(sdt, cdev, close, entry, d, dev, flag, devtype);
sys/kern/subr_devsw.c
1483
rv = (*d->d_close)(dev, flag, devtype, l);
sys/kern/subr_devsw.c
1484
SDT_PROBE5(sdt, cdev, close, return, d, dev, flag, devtype, rv);
sys/kern/tty_pty.c
370
ptsopen(dev_t dev, int flag, int devtype, struct lwp *l)
sys/kern/tty_pty.c
600
ptcopen(dev_t dev, int flag, int devtype, struct lwp *l)
sys/kern/tty_pty.c
631
ptcclose(dev_t dev, int flag, int devtype, struct lwp *l)
sys/rump/librump/rumpvfs/devnodes.c
44
makeonedevnode(dev_t devtype, const char *devname,
sys/rump/librump/rumpvfs/devnodes.c
49
error = do_sys_mknod(curlwp, devname, 0666 | devtype,
sys/rump/librump/rumpvfs/devnodes.c
58
makedevnodes(dev_t devtype, const char *basename, char minchar,
sys/rump/librump/rumpvfs/devnodes.c
74
if ((error = do_sys_mknod(curlwp, devname, 0666 | devtype,
usr.bin/eject/eject.c
130
int devtype;
usr.bin/eject/eject.c
135
devtype = -1;
usr.bin/eject/eject.c
169
devtype = devtypes[n].type;
usr.bin/eject/eject.c
173
if (devtype == -1)
usr.bin/eject/eject.c
198
if (devtype == -1)
usr.bin/eject/eject.c
199
devtype = guess_devtype(dev_name);
usr.bin/eject/eject.c
200
if (devtype == -1)
usr.bin/eject/eject.c
204
if ((devtype & TYPEMASK) == TAPE)
usr.bin/eject/eject.c
213
if ((devtype & TYPEMASK) == TAPE)
usr.sbin/btattach/btattach.c
166
const struct devtype *type;
usr.sbin/btattach/btattach.c
57
static const struct devtype types[] = {