| /openbsd/src/sys/dev/ |
| D | cons.c | 78 return ((*cdevsw[major(cndev)].d_open)(cndev, flag, mode, p)); in cnopen() 102 return ((*cdevsw[major(dev)].d_close)(dev, flag, mode, p)); in cnclose() 122 return ((*cdevsw[major(dev)].d_read)(dev, uio, flag)); in cnread() 139 return ((*cdevsw[major(dev)].d_write)(dev, uio, flag)); in cnwrite() 178 return ((*cdevsw[major(dev)].d_ioctl)(dev, cmd, data, flag, p)); in cnioctl() 195 if (cdevsw[major(dev)].d_kqfilter) in cnkqfilter() 196 return ((*cdevsw[major(dev)].d_kqfilter)(dev, kn)); in cnkqfilter()
|
| /openbsd/src/sys/kern/ |
| D | spec_vnops.c | 127 if (securelevel >= 2 && cdevsw[maj].d_type == D_DISK) in spec_open() 145 if (cdevsw[maj].d_type == D_TTY) in spec_open() 147 if (cdevsw[maj].d_flags & D_CLONE) in spec_open() 150 error = (*cdevsw[maj].d_open)(dev, ap->a_mode, S_IFCHR, p); in spec_open() 215 error = (*cdevsw[major(vp->v_rdev)].d_read) in spec_read() 302 error = (*cdevsw[major(vp->v_rdev)].d_write) in spec_write() 362 return ((*cdevsw[maj].d_ioctl)(dev, ap->a_command, ap->a_data, in spec_ioctl() 389 if (cdevsw[major(dev)].d_kqfilter) in spec_kqfilter() 390 return (*cdevsw[major(dev)].d_kqfilter)(dev, ap->a_kn); in spec_kqfilter() 485 if (cdevsw[major(dev)].d_flags & D_CLONE) { in spec_close() [all …]
|
| D | subr_xxx.c | 114 struct cdevsw * 117 return (&cdevsw[major(dev)]); in cdevsw_lookup()
|
| D | kern_pledge.c | 1097 cdevsw[major(vp->v_rdev)].d_open == bpfopen) in pledge_ioctl() 1124 (cdevsw[major(vp->v_rdev)].d_open == drmopen)) { in pledge_ioctl() 1146 cdevsw[major(vp->v_rdev)].d_open == audioopen) in pledge_ioctl() 1164 cdevsw[major(vp->v_rdev)].d_type == D_DISK) || in pledge_ioctl() 1172 cdevsw[major(vp->v_rdev)].d_ioctl == diskmapioctl) in pledge_ioctl() 1213 cdevsw[major(vp->v_rdev)].d_open == videoopen) in pledge_ioctl() 1237 (cdevsw[major(vp->v_rdev)].d_open == pfopen)) in pledge_ioctl() 1254 if (cdevsw[major(vp->v_rdev)].d_open != ptmopen) in pledge_ioctl() 1262 if (cdevsw[major(vp->v_rdev)].d_open != ptcopen) in pledge_ioctl() 1338 (cdevsw[major(vp->v_rdev)].d_open == vmmopen)) { in pledge_ioctl() [all …]
|
| /openbsd/src/sys/arch/luna88k/luna88k/ |
| D | conf.c | 101 struct cdevsw cdevsw[] = variable 165 int nchrdev = nitems(cdevsw);
|
| /openbsd/src/sys/arch/hppa/hppa/ |
| D | conf.c | 124 struct cdevsw cdevsw[] = variable 196 int nchrdev = nitems(cdevsw);
|
| /openbsd/src/sys/arch/alpha/alpha/ |
| D | conf.c | 131 struct cdevsw cdevsw[] = variable 211 int nchrdev = nitems(cdevsw);
|
| /openbsd/src/sys/arch/loongson/loongson/ |
| D | conf.c | 133 struct cdevsw cdevsw[] = variable 232 int nchrdev = nitems(cdevsw);
|
| /openbsd/src/sys/arch/octeon/octeon/ |
| D | conf.c | 149 struct cdevsw cdevsw[] = variable 240 int nchrdev = nitems(cdevsw);
|
| /openbsd/src/sys/arch/macppc/macppc/ |
| D | conf.c | 129 struct cdevsw cdevsw[] = { variable 232 int nchrdev = nitems(cdevsw);
|
| D | wscons_machdep.c | 55 if (cdevsw[maj].d_open == wsdisplayopen) in wscnprobe()
|
| /openbsd/src/sys/arch/powerpc64/powerpc64/ |
| D | conf.c | 108 struct cdevsw cdevsw[] = variable 212 int nchrdev = nitems(cdevsw);
|
| /openbsd/src/sys/arch/riscv64/riscv64/ |
| D | conf.c | 121 struct cdevsw cdevsw[] = variable 233 int nchrdev = nitems(cdevsw);
|
| /openbsd/src/sys/arch/arm64/arm64/ |
| D | conf.c | 125 struct cdevsw cdevsw[] = variable 237 int nchrdev = nitems(cdevsw);
|
| /openbsd/src/sys/arch/landisk/landisk/ |
| D | conf.c | 247 struct cdevsw cdevsw[] = { variable 364 int nchrdev = nitems(cdevsw);
|
| /openbsd/src/sys/arch/arm/arm/ |
| D | conf.c | 267 struct cdevsw cdevsw[] = { variable 384 int nchrdev = nitems(cdevsw);
|
| /openbsd/src/sys/arch/sparc64/sparc64/ |
| D | conf.c | 150 struct cdevsw cdevsw[] = variable 298 int nchrdev = nitems(cdevsw);
|
| /openbsd/src/sys/arch/i386/i386/ |
| D | conf.c | 162 struct cdevsw cdevsw[] = variable 274 int nchrdev = nitems(cdevsw);
|
| /openbsd/src/sys/arch/amd64/amd64/ |
| D | conf.c | 174 struct cdevsw cdevsw[] = variable 287 int nchrdev = nitems(cdevsw);
|
| /openbsd/src/sys/dev/usb/ |
| D | uhid.c | 85 struct cdevsw *cdev; in uhid_lookup() 88 cdev = &cdevsw[major(dev)]; in uhid_lookup() 163 if (cdevsw[maj].d_open == uhidopen) in uhid_detach()
|
| /openbsd/src/sys/dev/fdt/ |
| D | amluart.c | 69 struct cdevsw amluartdev = cdev_tty_init(3, amluart); 161 if (cdevsw[maj].d_open == amluartopen) in amluart_attach() 585 if (cdevsw[maj].d_open == comopen) in amluartcnattach() 592 cdevsw[maj] = amluartdev; /* KLUDGE */ in amluartcnattach()
|
| D | cduart.c | 155 struct cdevsw cduartdev = cdev_tty_init(3, cduart); 240 if (cdevsw[maj].d_open == cduartopen) in cduart_attach() 640 if (cdevsw[maj].d_open == comopen) in cduartcnattach() 651 cdevsw[maj] = cduartdev; in cduartcnattach()
|
| D | mvuart.c | 128 struct cdevsw mvuartdev = 177 if (cdevsw[maj].d_open == mvuartopen) in mvuart_attach() 618 if (cdevsw[maj].d_open == comopen) in mvuartcnattach() 625 cdevsw[maj] = mvuartdev; /* KLUDGE */ in mvuartcnattach()
|
| /openbsd/src/sys/arch/riscv64/dev/ |
| D | sfuart.c | 73 struct cdevsw sfuartdev = cdev_tty_init(2, sfuart); 167 if (cdevsw[maj].d_open == sfuartopen) in sfuart_attach() 586 if (cdevsw[maj].d_open == comopen) in sfuartcnattach() 593 cdevsw[maj] = sfuartdev; /* KLUDGE */ in sfuartcnattach()
|
| /openbsd/src/sys/uvm/ |
| D | uvm_device.c | 103 mapfn = cdevsw[major(device)].d_mmap; in udv_attach() 341 mapfn = cdevsw[major(device)].d_mmap; in udv_fault()
|