Home
last modified time | relevance | path

Searched refs:cdevsw (Results 1 – 25 of 62) sorted by relevance

123

/openbsd/src/sys/dev/
Dcons.c78 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/
Dspec_vnops.c127 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 …]
Dsubr_xxx.c114 struct cdevsw *
117 return (&cdevsw[major(dev)]); in cdevsw_lookup()
Dkern_pledge.c1097 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/
Dconf.c101 struct cdevsw cdevsw[] = variable
165 int nchrdev = nitems(cdevsw);
/openbsd/src/sys/arch/hppa/hppa/
Dconf.c124 struct cdevsw cdevsw[] = variable
196 int nchrdev = nitems(cdevsw);
/openbsd/src/sys/arch/alpha/alpha/
Dconf.c131 struct cdevsw cdevsw[] = variable
211 int nchrdev = nitems(cdevsw);
/openbsd/src/sys/arch/loongson/loongson/
Dconf.c133 struct cdevsw cdevsw[] = variable
232 int nchrdev = nitems(cdevsw);
/openbsd/src/sys/arch/octeon/octeon/
Dconf.c149 struct cdevsw cdevsw[] = variable
240 int nchrdev = nitems(cdevsw);
/openbsd/src/sys/arch/macppc/macppc/
Dconf.c129 struct cdevsw cdevsw[] = { variable
232 int nchrdev = nitems(cdevsw);
Dwscons_machdep.c55 if (cdevsw[maj].d_open == wsdisplayopen) in wscnprobe()
/openbsd/src/sys/arch/powerpc64/powerpc64/
Dconf.c108 struct cdevsw cdevsw[] = variable
212 int nchrdev = nitems(cdevsw);
/openbsd/src/sys/arch/riscv64/riscv64/
Dconf.c121 struct cdevsw cdevsw[] = variable
233 int nchrdev = nitems(cdevsw);
/openbsd/src/sys/arch/arm64/arm64/
Dconf.c125 struct cdevsw cdevsw[] = variable
237 int nchrdev = nitems(cdevsw);
/openbsd/src/sys/arch/landisk/landisk/
Dconf.c247 struct cdevsw cdevsw[] = { variable
364 int nchrdev = nitems(cdevsw);
/openbsd/src/sys/arch/arm/arm/
Dconf.c267 struct cdevsw cdevsw[] = { variable
384 int nchrdev = nitems(cdevsw);
/openbsd/src/sys/arch/sparc64/sparc64/
Dconf.c150 struct cdevsw cdevsw[] = variable
298 int nchrdev = nitems(cdevsw);
/openbsd/src/sys/arch/i386/i386/
Dconf.c162 struct cdevsw cdevsw[] = variable
274 int nchrdev = nitems(cdevsw);
/openbsd/src/sys/arch/amd64/amd64/
Dconf.c174 struct cdevsw cdevsw[] = variable
287 int nchrdev = nitems(cdevsw);
/openbsd/src/sys/dev/usb/
Duhid.c85 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/
Damluart.c69 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()
Dcduart.c155 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()
Dmvuart.c128 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/
Dsfuart.c73 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/
Duvm_device.c103 mapfn = cdevsw[major(device)].d_mmap; in udv_attach()
341 mapfn = cdevsw[major(device)].d_mmap; in udv_fault()

123