| /freebsd-14.2/sys/dev/nvram/ |
| H A D | nvram.c | 67 static struct cdev *nvram_dev; 79 nvram_open(struct cdev *dev __unused, int flags, int fmt __unused, in nvram_open() 91 nvram_read(struct cdev *dev, struct uio *uio, int flags) in nvram_read() 110 nvram_write(struct cdev *dev, struct uio *uio, int flags) in nvram_write()
|
| /freebsd-14.2/sys/arm/ti/ |
| H A D | ti_pruss.c | 110 struct cdev *sc_pdev; 136 struct cdev *sc_pdev; 180 ti_pruss_irq_open(struct cdev *dev, int oflags, int devtype, struct thread *td) in ti_pruss_irq_open() 200 ti_pruss_irq_poll(struct cdev *dev, int events, struct thread *td) in ti_pruss_irq_poll() 218 ti_pruss_irq_read(struct cdev *cdev, struct uio *uio, int ioflag) in ti_pruss_irq_read() argument 227 irq = cdev->si_drv1; in ti_pruss_irq_read() 771 ti_pruss_open(struct cdev *cdev __unused, int oflags __unused, in ti_pruss_open() 778 ti_pruss_mmap(struct cdev *cdev, vm_ooffset_t offset, vm_paddr_t *paddr, in ti_pruss_mmap() argument 781 device_t dev = cdev->si_drv1; in ti_pruss_mmap() 828 ti_pruss_irq_kqfilter(struct cdev *cdev, struct knote *kn) in ti_pruss_irq_kqfilter() argument [all …]
|
| /freebsd-14.2/sys/netpfil/ipfilter/netinet/ |
| H A D | mlfk_ipl.c | 53 static struct cdev *ipf_devs[IPL_LOGSIZE]; 69 static int ipfopen(struct cdev*, int, int, struct thread *); 70 static int ipfclose(struct cdev*, int, int, struct thread *); 71 static int ipfread(struct cdev*, struct uio *, int); 72 static int ipfwrite(struct cdev*, struct uio *, int); 143 static int ipfpoll(struct cdev *dev, int events, struct thread *td); 434 ipfpoll(struct cdev *dev, int events, struct thread *td) in ipfpoll() 487 ipfopen(struct cdev *dev, int flags, int devtype, struct thread *p) in ipfopen() 522 ipfclose(struct cdev *dev, int flags, int devtype, struct thread *p) in ipfclose() 543 static int ipfread(struct cdev *dev, struct uio *uio, int ioflag) in ipfread() [all …]
|
| /freebsd-14.2/sys/dev/mlx5/mlx5_fpga_tools/ |
| H A D | mlx5fpga_tools_char.c | 54 tools_char_open(struct cdev *dev, int oflags, int devtype, struct thread *td) in tools_char_open() 131 tools_char_read(struct cdev *dev, struct uio *uio, int ioflag) in tools_char_read() 159 tools_char_write(struct cdev *dev, struct uio *uio, int ioflag) in tools_char_write() 195 tools_char_ioctl(struct cdev *dev, u_long cmd, caddr_t data, int fflag, in tools_char_ioctl() 291 struct cdev *cd; in mlx5_fpga_tools_char_add_one() 324 ((struct cdev *)(tdev->char_device))->si_name); in mlx5_fpga_tools_char_remove_one() 325 destroy_dev((struct cdev *)(tdev->char_device)); in mlx5_fpga_tools_char_remove_one()
|
| /freebsd-14.2/sys/dev/firmware/xilinx/ |
| H A D | zynqmp_firmware.c | 425 device_t cdev; in zynqmp_firmware_add_device() local 429 cdev = device_add_child_ordered(dev, order, name, unit); in zynqmp_firmware_add_device() 430 if (cdev == NULL) { in zynqmp_firmware_add_device() 439 device_set_ivars(cdev, ndi); in zynqmp_firmware_add_device() 441 return(cdev); in zynqmp_firmware_add_device() 461 device_t cdev; in zynqmp_firmware_attach() local 475 cdev = zynqmp_firmware_add_device(dev, child, 0, NULL, -1, NULL); in zynqmp_firmware_attach() 476 if (cdev != NULL) in zynqmp_firmware_attach() 477 device_probe_and_attach(cdev); in zynqmp_firmware_attach()
|
| /freebsd-14.2/sys/dev/beri/ |
| H A D | beri_ring.c | 84 struct cdev *cdev; member 200 beri_open(struct cdev *dev, int flags __unused, in beri_open() 241 beri_close(struct cdev *dev, int flags __unused, in beri_close() 260 beri_rdwr(struct cdev *dev, struct uio *uio, int ioflag) in beri_rdwr() 384 beri_kqfilter(struct cdev *dev, struct knote *kn) in beri_kqfilter() 498 sc->cdev = make_dev(&beri_cdevsw, 0, UID_ROOT, GID_WHEEL, in beri_attach() 500 if (sc->cdev == NULL) { in beri_attach() 505 sc->cdev->si_drv1 = sc; in beri_attach()
|
| /freebsd-14.2/sys/dev/snp/ |
| H A D | snp.c | 45 static struct cdev *snp_dev; 138 snp_open(struct cdev *dev, int flag, int mode, struct thread *td) in snp_open() 152 snp_read(struct cdev *dev, struct uio *uio, int flag) in snp_read() 194 snp_write(struct cdev *dev, struct uio *uio, int flag) in snp_write() 239 snp_ioctl(struct cdev *dev, u_long cmd, caddr_t data, int flags, in snp_ioctl() 316 snp_poll(struct cdev *dev, int events, struct thread *td) in snp_poll()
|
| /freebsd-14.2/sys/kern/ |
| H A D | tty_tty.c | 49 static struct cdev *ctty; 52 cttyopen(struct cdev *dev, int flag, int mode, struct thread *td) in cttyopen() 60 struct cdev **dev) in ctty_clone()
|
| /freebsd-14.2/sys/contrib/dev/iwlwifi/mvm/ |
| H A D | tt.c | 728 static int iwl_mvm_tcool_get_max_state(struct thermal_cooling_device *cdev, in iwl_mvm_tcool_get_max_state() argument 739 struct iwl_mvm *mvm = (struct iwl_mvm *)(cdev->devdata); in iwl_mvm_tcool_get_cur_state() 749 struct iwl_mvm *mvm = (struct iwl_mvm *)(cdev->devdata); in iwl_mvm_tcool_set_cur_state() 788 mvm->cooling_dev.cdev = in iwl_mvm_cooling_device_register() 793 if (IS_ERR(mvm->cooling_dev.cdev)) { in iwl_mvm_cooling_device_register() 796 PTR_ERR(mvm->cooling_dev.cdev)); in iwl_mvm_cooling_device_register() 797 mvm->cooling_dev.cdev = NULL; in iwl_mvm_cooling_device_register() 816 if (!iwl_mvm_is_ctdp_supported(mvm) || !mvm->cooling_dev.cdev) in iwl_mvm_cooling_device_unregister() 820 if (mvm->cooling_dev.cdev) { in iwl_mvm_cooling_device_unregister() 821 thermal_cooling_device_unregister(mvm->cooling_dev.cdev); in iwl_mvm_cooling_device_unregister() [all …]
|
| /freebsd-14.2/sys/dev/fdt/ |
| H A D | simplebus.c | 297 device_t cdev; in simplebus_add_device() local 301 cdev = device_add_child_ordered(dev, order, name, unit); in simplebus_add_device() 302 if (cdev == NULL) { in simplebus_add_device() 311 device_set_ivars(cdev, ndi); in simplebus_add_device() 313 return(cdev); in simplebus_add_device() 319 device_t cdev; in simplebus_add_child() local 322 cdev = device_add_child_ordered(dev, order, name, unit); in simplebus_add_child() 323 if (cdev == NULL) in simplebus_add_child() 329 device_set_ivars(cdev, ndi); in simplebus_add_child() 331 return (cdev); in simplebus_add_child()
|
| /freebsd-14.2/sys/compat/linuxkpi/common/src/ |
| H A D | linux_compat.c | 141 #undef cdev 441 cdev->refs = 1; in cdev_alloc() 442 return (cdev); in cdev_alloc() 2243 struct cdev *cdev; in linux_cdev_static_release() local 2247 cdev = ldev->cdev; in linux_cdev_static_release() 2248 if (cdev != NULL) { in linux_cdev_static_release() 2306 ldev->cdev = NULL; in linux_destroy_dev() 2502 struct cdev *cdev; in linux_find_cdev() local 2514 return (cdev != NULL ? cdev->si_drv1 : NULL); in linux_find_cdev() 2528 cdev->ops = fops; in __register_chrdev() [all …]
|
| /freebsd-14.2/sys/dev/cardbus/ |
| H A D | cardbus_device.c | 134 cardbus_open(struct cdev *dev, int oflags, int devtype, struct thread *td) in cardbus_open() 141 cardbus_close(struct cdev *dev, int fflags, int devtype, struct thread *td) in cardbus_close() 148 cardbus_ioctl(struct cdev *dev, u_long cmd, caddr_t data, int fflag, in cardbus_ioctl() 155 cardbus_read(struct cdev *dev, struct uio *uio, int ioflag) in cardbus_read()
|
| /freebsd-14.2/sys/dev/adb/ |
| H A D | adb_mouse.c | 93 struct cdev *cdev; member 243 sc->cdev = make_dev(&ams_cdevsw, device_get_unit(dev), in adb_mouse_attach() 246 sc->cdev->si_drv1 = sc; in adb_mouse_attach() 261 destroy_dev(sc->cdev); in adb_mouse_detach() 430 ams_open(struct cdev *dev, int flag, int fmt, struct thread *p) in ams_open() 449 ams_close(struct cdev *dev, int flag, int fmt, struct thread *p) in ams_close() 461 ams_poll(struct cdev *dev, int events, struct thread *p) in ams_poll() 488 ams_read(struct cdev *dev, struct uio *uio, int flag) in ams_read() 575 ams_ioctl(struct cdev *dev, u_long cmd, caddr_t addr, int flag, in ams_ioctl()
|
| /freebsd-14.2/sys/arm64/rockchip/ |
| H A D | rk_dwc3.c | 100 device_t cdev; in rk_dwc3_attach() local 181 cdev = simplebus_add_device(dev, child, 0, NULL, -1, NULL); in rk_dwc3_attach() 182 if (cdev != NULL) in rk_dwc3_attach() 183 device_probe_and_attach(cdev); in rk_dwc3_attach()
|
| /freebsd-14.2/sys/x86/x86/ |
| H A D | pvclock.c | 191 pvclock_cdev_open(struct cdev *dev, int oflags, int devtype, struct thread *td) in pvclock_cdev_open() 199 pvclock_cdev_mmap(struct cdev *dev, vm_ooffset_t offset, vm_paddr_t *paddr, in pvclock_cdev_mmap() 225 if (pvc->cdev == NULL) in pvclock_tc_vdso_timehands() 248 if (pvc->cdev == NULL) in pvclock_tc_vdso_timehands32() 328 err = make_dev_s(&mda, &pvc->cdev, PVCLOCK_CDEVNAME); in pvclock_init() 333 KASSERT(pvc->cdev == NULL, in pvclock_init()
|
| /freebsd-14.2/sys/netgraph/ |
| H A D | ng_device.c | 118 struct cdev *ngddev; 371 ngdopen(struct cdev *dev, int flag, int mode, struct thread *td) in ngdopen() 388 ngdclose(struct cdev *dev, int flag, int mode, struct thread *td) in ngdclose() 411 ngdioctl(struct cdev *dev, u_long cmd, caddr_t addr, int flag, struct thread *td) 448 ngdread(struct cdev *dev, struct uio *uio, int flag) in ngdread() 490 ngdwrite(struct cdev *dev, struct uio *uio, int flag) in ngdwrite() 521 ngdpoll(struct cdev *dev, int events, struct thread *td) in ngdpoll()
|
| /freebsd-14.2/sys/x86/acpica/ |
| H A D | acpi_apm.c | 203 apm_create_clone(struct cdev *dev, struct acpi_softc *acpi_sc) in apm_create_clone() 208 clone->cdev = dev; in apm_create_clone() 253 apmopen(struct cdev *dev, int flag, int fmt, struct thread *td) in apmopen() 270 apmioctl(struct cdev *dev, u_long cmd, caddr_t addr, int flag, struct thread *td) in apmioctl() 382 apmwrite(struct cdev *dev, struct uio *uio, int ioflag) in apmwrite() 388 apmpoll(struct cdev *dev, int events, struct thread *td) in apmpoll() 405 apmkqfilter(struct cdev *dev, struct knote *kn) in apmkqfilter()
|
| /freebsd-14.2/tools/test/stress2/misc/ |
| H A D | fpclone.sh | 105 static struct cdev *fpclone_dev; 115 fpclone_open(struct cdev *dev, int oflags, int devtype, struct thread *td) 129 fpclone_close(struct cdev *dev, int fflag, int devtype, struct thread *td) 139 fpclone_read(struct cdev *dev, struct uio *uio, int ioflag)
|
| /freebsd-14.2/sys/arm64/arm64/ |
| H A D | mem.c | 47 memrw(struct cdev *dev, struct uio *uio, int flags) in memrw() 121 memmmap(struct cdev *dev, vm_ooffset_t offset, vm_paddr_t *paddr, in memmmap() 132 memioctl_md(struct cdev *dev __unused, u_long cmd __unused, in memioctl_md()
|
| /freebsd-14.2/sys/dev/backlight/ |
| H A D | backlight.h | 30 struct cdev *backlight_register(const char *name, device_t dev); 31 int backlight_destroy(struct cdev *dev);
|
| /freebsd-14.2/sys/riscv/riscv/ |
| H A D | mem.c | 47 memrw(struct cdev *dev, struct uio *uio, int flags) in memrw() 128 memmmap(struct cdev *dev, vm_ooffset_t offset, vm_paddr_t *paddr, in memmmap() 139 memioctl_md(struct cdev *dev __unused, u_long cmd __unused, in memioctl_md()
|
| /freebsd-14.2/sys/dev/sound/pcm/ |
| H A D | dsp.h | 38 int dsp_oss_audioinfo(struct cdev *, oss_audioinfo *, bool); 39 int dsp_oss_engineinfo(struct cdev *, oss_audioinfo *);
|
| /freebsd-14.2/sys/dev/pty/ |
| H A D | pty.c | 61 ptydev_fdopen(struct cdev *dev, int fflags, struct thread *td, struct file *fp) in ptydev_fdopen() 93 struct cdev **dev) in pty_clone() 129 ptmx_fdopen(struct cdev *dev __unused, int fflags, struct thread *td, in ptmx_fdopen()
|
| /freebsd-14.2/share/examples/kld/cdev/module/ |
| H A D | Makefile | 5 KMOD= cdev 6 SRCS= cdev.c cdevmod.c
|
| /freebsd-14.2/sys/dev/pbio/ |
| H A D | pbio.c | 100 struct cdev *port; 244 pbioioctl (struct cdev *dev, u_long cmd, caddr_t data, int flag, in pbioioctl() 281 pbioopen(struct cdev *dev, int oflags, int devtype, struct thread *td) in pbioopen() 355 pbioread(struct cdev *dev, struct uio *uio, int ioflag) in pbioread() 383 pbiowrite(struct cdev *dev, struct uio *uio, int ioflag) in pbiowrite() 429 pbiopoll(struct cdev *dev, int which, struct thread *td) in pbiopoll()
|