| /freebsd-10-stable/sys/ofed/include/linux/ |
| D | cdev.h | 46 struct cdev *cdev; member 54 struct linux_cdev *cdev; in cdev_release() local 56 cdev = container_of(kobj, struct linux_cdev, kobj); in cdev_release() 57 if (cdev->cdev) in cdev_release() 58 destroy_dev(cdev->cdev); in cdev_release() 59 kfree(cdev); in cdev_release() 65 struct linux_cdev *cdev; in cdev_static_release() local 67 cdev = container_of(kobj, struct linux_cdev, kobj); in cdev_static_release() 68 if (cdev->cdev) in cdev_static_release() 69 destroy_dev(cdev->cdev); in cdev_static_release() [all …]
|
| D | miscdevice.h | 42 struct cdev *cdev; member 55 misc->cdev = cdev_alloc(); in misc_register() 56 if (misc->cdev == NULL) in misc_register() 58 misc->cdev->owner = THIS_MODULE; in misc_register() 59 misc->cdev->ops = misc->fops; in misc_register() 60 kobject_set_name(&misc->cdev->kobj, misc->name); in misc_register() 61 if (cdev_add(misc->cdev, misc->this_device->devt, 1)) in misc_register() 70 cdev_del(misc->cdev); in misc_deregister()
|
| /freebsd-10-stable/sys/sys/ |
| D | conf.h | 54 struct cdev { struct 75 LIST_ENTRY(cdev) si_list; argument 76 LIST_ENTRY(cdev) si_clone; 77 LIST_HEAD(, cdev) si_children; 78 LIST_ENTRY(cdev) si_siblings; 79 struct cdev *si_parent; argument 127 typedef int d_open_t(struct cdev *dev, int oflags, int devtype, struct thread *td); 128 typedef int d_fdopen_t(struct cdev *dev, int oflags, struct thread *td, struct file *fp); 129 typedef int d_close_t(struct cdev *dev, int fflag, int devtype, struct thread *td); 131 typedef int d_ioctl_t(struct cdev *dev, u_long cmd, caddr_t data, [all …]
|
| /freebsd-10-stable/etc/devd/ |
| D | uath.conf | 13 action "/usr/sbin/uathload -d /dev/$cdev"; 24 action "/usr/sbin/uathload -d /dev/$cdev"; 35 action "/usr/sbin/uathload -d /dev/$cdev"; 46 action "/usr/sbin/uathload -d /dev/$cdev"; 57 action "/usr/sbin/uathload -d /dev/$cdev"; 68 action "/usr/sbin/uathload -d /dev/$cdev"; 79 action "/usr/sbin/uathload -d /dev/$cdev"; 90 action "/usr/sbin/uathload -d /dev/$cdev"; 101 action "/usr/sbin/uathload -d /dev/$cdev"; 112 action "/usr/sbin/uathload -d /dev/$cdev"; [all …]
|
| /freebsd-10-stable/sys/kern/ |
| D | kern_conf.c | 55 static void destroy_devl(struct cdev *dev); 56 static int destroy_dev_sched_cbl(struct cdev *dev, 59 static int make_dev_credv(int flags, struct cdev **dres, struct cdevsw *devsw, 113 dev_free_devlocked(struct cdev *cdev) in dev_free_devlocked() argument 118 cdp = cdev2priv(cdev); in dev_free_devlocked() 120 ("destroy_dev() was not called after delist_dev(%p)", cdev)); in dev_free_devlocked() 140 dev_ref(struct cdev *dev) in dev_ref() 150 dev_refl(struct cdev *dev) in dev_refl() 158 dev_rel(struct cdev *dev) in dev_rel() 183 dev_refthread(struct cdev *dev, int *ref) in dev_refthread() [all …]
|
| /freebsd-10-stable/sys/amd64/vmm/ |
| D | vmm_dev.c | 67 struct cdev *cdev; member 74 struct cdev *cdev; member 164 vmmdev_lookup2(struct cdev *cdev) in vmmdev_lookup2() argument 167 return (cdev->si_drv1); in vmmdev_lookup2() 171 vmmdev_rw(struct cdev *cdev, struct uio *uio, int flags) in vmmdev_rw() argument 178 sc = vmmdev_lookup2(cdev); in vmmdev_rw() 283 vmmdev_ioctl(struct cdev *cdev, u_long cmd, caddr_t data, int fflag, in vmmdev_ioctl() argument 317 sc = vmmdev_lookup2(cdev); in vmmdev_ioctl() 660 vmmdev_mmap_single(struct cdev *cdev, vm_ooffset_t *offset, vm_size_t mapsize, in vmmdev_mmap_single() argument 675 sc = vmmdev_lookup2(cdev); in vmmdev_mmap_single() [all …]
|
| /freebsd-10-stable/sys/dev/sound/ |
| D | clone.h | 115 int snd_clone_getdevtime(struct cdev *, struct timespec *); 116 uint32_t snd_clone_getdevflags(struct cdev *); 117 uint32_t snd_clone_setdevflags(struct cdev *, uint32_t); 120 int snd_clone_acquire(struct cdev *); 121 int snd_clone_release(struct cdev *); 122 int snd_clone_ref(struct cdev *); 123 int snd_clone_unref(struct cdev *); 124 void snd_clone_register(struct snd_clone_entry *, struct cdev *); 125 struct snd_clone_entry *snd_clone_alloc(struct snd_clone *, struct cdev **,
|
| /freebsd-10-stable/sys/arm/lpc/ |
| D | lpc_fb.c | 84 struct cdev * lf_cdev; 122 static int lpc_fb_open(struct cdev *, int, int, struct thread *); 123 static int lpc_fb_close(struct cdev *, int, int, struct thread *); 124 static int lpc_fb_ioctl(struct cdev *, u_long, caddr_t, int, struct thread *); 125 static int lpc_fb_mmap(struct cdev *, vm_ooffset_t, vm_paddr_t *, int, vm_memattr_t *); 394 lpc_fb_open(struct cdev *cdev, int oflags, int devtype, struct thread *td) in lpc_fb_open() argument 396 struct lpc_fb_softc *sc = cdev->si_drv1; in lpc_fb_open() 418 lpc_fb_close(struct cdev *cdev, int fflag, int devtype, struct thread *td) in lpc_fb_close() argument 420 struct lpc_fb_softc *sc = cdev->si_drv1; in lpc_fb_close() 430 lpc_fb_ioctl(struct cdev *cdev, u_long cmd, caddr_t data, int x, in lpc_fb_ioctl() argument [all …]
|
| /freebsd-10-stable/sys/dev/cmx/ |
| D | cmx.c | 249 sc->cdev = make_dev(&cmx_cdevsw, 0, UID_ROOT, GID_WHEEL, 0600, in cmx_attach() 251 if (!sc->cdev) { in cmx_attach() 255 sc->cdev->si_drv1 = sc; in cmx_attach() 287 destroy_dev(sc->cdev); in cmx_detach() 417 cmx_open(struct cdev *cdev, int flags, int fmt, struct thread *td) in cmx_open() argument 419 struct cmx_softc *sc = cdev->si_drv1; in cmx_open() 441 cmx_close(struct cdev *cdev, int flags, int fmt, struct thread *td) in cmx_close() argument 443 struct cmx_softc *sc = cdev->si_drv1; in cmx_close() 478 cmx_read(struct cdev *cdev, struct uio *uio, int flag) in cmx_read() argument 480 struct cmx_softc *sc = cdev->si_drv1; in cmx_read() [all …]
|
| /freebsd-10-stable/sys/dev/ppbus/ |
| D | pcfclock.c | 56 struct cdev *cdev; member 138 sc->cdev = make_dev(&pcfclock_cdevsw, unit, in pcfclock_attach() 140 if (sc->cdev == NULL) { in pcfclock_attach() 144 sc->cdev->si_drv1 = sc; in pcfclock_attach() 150 pcfclock_open(struct cdev *dev, int flag, int fms, struct thread *td) in pcfclock_open() 170 pcfclock_close(struct cdev *dev, int flags, int fmt, struct thread *td) in pcfclock_close() 184 pcfclock_write_cmd(struct cdev *dev, unsigned char command) in pcfclock_write_cmd() 204 pcfclock_display_data(struct cdev *dev, char buf[18]) in pcfclock_display_data() 226 pcfclock_read_data(struct cdev *dev, char *buf, ssize_t bits) in pcfclock_read_data() 265 pcfclock_read_dev(struct cdev *dev, char *buf, int maxretries) in pcfclock_read_dev() [all …]
|
| /freebsd-10-stable/sys/dev/qlnx/qlnxe/ |
| D | qlnx_os.c | 118 static int qlnx_nic_setup(struct ecore_dev *cdev, 120 static int qlnx_nic_start(struct ecore_dev *cdev); 124 static void qlnx_set_id(struct ecore_dev *cdev, char name[NAME_SIZE], 510 for (i = 0; i < ha->cdev.num_hwfns; i++) { in qlnx_sp_intr() 511 if (&ha->cdev.hwfns[i] == p_hwfn) { in qlnx_sp_intr() 540 for (i = 0; i < ha->cdev.num_hwfns; i++) { in qlnx_create_sp_taskqueues() 542 struct ecore_hwfn *p_hwfn = &ha->cdev.hwfns[i]; in qlnx_create_sp_taskqueues() 569 for (i = 0; i < ha->cdev.num_hwfns; i++) { in qlnx_destroy_sp_taskqueues() 912 num_sp_msix = ha->cdev.num_hwfns; in qlnx_pci_attach() 917 ecore_vf_get_num_rxqs(&ha->cdev.hwfns[0], &max_rxq); in qlnx_pci_attach() [all …]
|
| D | qlnx_ioctl.c | 70 static int qlnx_eioctl(struct cdev *dev, u_long cmd, caddr_t data, int fflag, 121 p_hwfn = &ha->cdev.hwfns[hwfn_index]; in qlnx_grc_dump() 151 for (i = 0; i < ha->cdev.num_hwfns; i++) in qlnx_get_grc_dump_size() 166 for (i = 0; i < ha->cdev.num_hwfns; i++) { in qlnx_get_grc_dump() 210 p_hwfn = &ha->cdev.hwfns[hwfn_index]; in qlnx_idle_chk() 240 for (i = 0; i < ha->cdev.num_hwfns; i++) in qlnx_get_idle_chk_size() 255 for (i = 0; i < ha->cdev.num_hwfns; i++) { in qlnx_get_idle_chk() 293 p_hwfn = &ha->cdev.hwfns[hwfn_index]; in qlnx_get_trace_cmd_size() 347 for (i = 0; i < ha->cdev.num_hwfns; i++) { in qlnx_get_trace_size() 371 p_hwfn = &ha->cdev.hwfns[hwfn_index]; in qlnx_get_trace() [all …]
|
| /freebsd-10-stable/sys/dev/iir/ |
| D | iir_ctrl.c | 62 static struct gdt_softc *gdt_minor2softc(struct cdev *dev, int minor_no); 93 struct cdev * 96 struct cdev *dev; in gdt_make_dev() 115 gdt_destroy_dev(struct cdev *dev) in gdt_destroy_dev() 126 gdt_minor2softc(struct cdev *dev, int minor_no) in gdt_minor2softc() 146 iir_open(struct cdev *dev, int flags, int fmt, struct thread * p) in iir_open() 154 iir_close(struct cdev *dev, int flags, int fmt, struct thread * p) in iir_close() 162 iir_write(struct cdev *dev, struct uio * uio, int ioflag) in iir_write() 170 iir_read(struct cdev *dev, struct uio * uio, int ioflag) in iir_read() 184 iir_ioctl(struct cdev *dev, u_long cmd, caddr_t cmdarg, int flags, struct thread * p) in iir_ioctl()
|
| /freebsd-10-stable/sys/powerpc/wii/ |
| D | wii_bus.c | 177 device_t cdev; in wiibus_attach() local 190 cdev = BUS_ADD_CHILD(self, 0, "wiipic", 0); in wiibus_attach() 191 device_set_ivars(cdev, dinfo); in wiibus_attach() 199 cdev = BUS_ADD_CHILD(self, 0, "wiifb", 0); in wiibus_attach() 200 device_set_ivars(cdev, dinfo); in wiibus_attach() 206 cdev = BUS_ADD_CHILD(self, 0, "wiiexi", 0); in wiibus_attach() 207 device_set_ivars(cdev, dinfo); in wiibus_attach() 215 cdev = BUS_ADD_CHILD(self, 0, "wiiipc", 0); in wiibus_attach() 216 device_set_ivars(cdev, dinfo); in wiibus_attach() 222 cdev = BUS_ADD_CHILD(self, 0, "wiigpio", 0); in wiibus_attach() [all …]
|
| /freebsd-10-stable/sys/dev/fb/ |
| D | vgareg.h | 83 int vga_open(struct cdev *dev, vga_softc_t *sc, int flag, int mode, 85 int vga_close(struct cdev *dev, vga_softc_t *sc, int flag, int mode, 87 int vga_read(struct cdev *dev, vga_softc_t *sc, struct uio *uio, int flag); 88 int vga_write(struct cdev *dev, vga_softc_t *sc, struct uio *uio, int flag); 89 int vga_ioctl(struct cdev *dev, vga_softc_t *sc, u_long cmd, caddr_t arg, 91 int vga_mmap(struct cdev *dev, vga_softc_t *sc, vm_ooffset_t offset,
|
| /freebsd-10-stable/sys/fs/devfs/ |
| D | devfs_int.h | 51 struct cdev cdp_c; 75 struct cdev *devfs_alloc(int); 77 void devfs_free(struct cdev *); 78 void devfs_create(struct cdev *); 79 void devfs_destroy(struct cdev *);
|
| D | devfs_devs.c | 84 struct cdev *dev; in sysctl_devname() 111 SYSCTL_INT(_debug_sizeof, OID_AUTO, cdev, CTLFLAG_RD, 112 SYSCTL_NULL_INT_PTR, sizeof(struct cdev), "sizeof(struct cdev)"); 117 struct cdev * 121 struct cdev *cdev; in devfs_alloc() local 131 cdev = &cdp->cdp_c; in devfs_alloc() 132 LIST_INIT(&cdev->si_children); in devfs_alloc() 134 cdev->si_atime = cdev->si_mtime = cdev->si_ctime = ts; in devfs_alloc() 136 return (cdev); in devfs_alloc() 161 devfs_free(struct cdev *cdev) in devfs_free() argument [all …]
|
| /freebsd-10-stable/sys/arm/at91/ |
| D | at91_ssc.c | 49 struct cdev *cdev; member 133 sc->cdev = make_dev(&at91_ssc_cdevsw, device_get_unit(dev), UID_ROOT, in at91_ssc_attach() 135 if (sc->cdev == NULL) { in at91_ssc_attach() 139 sc->cdev->si_drv1 = sc; in at91_ssc_attach() 218 at91_ssc_open(struct cdev *dev, int oflags, int devtype, struct thread *td) in at91_ssc_open() 232 at91_ssc_close(struct cdev *dev, int fflag, int devtype, struct thread *td) in at91_ssc_close() 244 at91_ssc_read(struct cdev *dev, struct uio *uio, int flag) in at91_ssc_read() 250 at91_ssc_write(struct cdev *dev, struct uio *uio, int flag) in at91_ssc_write()
|
| /freebsd-10-stable/sys/dev/null/ |
| D | null.c | 47 static struct cdev *null_dev; 48 static struct cdev *zero_dev; 74 null_write(struct cdev *dev __unused, struct uio *uio, int flags __unused) in null_write() 83 null_ioctl(struct cdev *dev __unused, u_long cmd, caddr_t data __unused, in null_ioctl() 107 zero_ioctl(struct cdev *dev __unused, u_long cmd, caddr_t data __unused, in zero_ioctl() 129 zero_read(struct cdev *dev __unused, struct uio *uio, int flags __unused) in zero_read()
|
| /freebsd-10-stable/sys/arm/ti/ |
| D | ti_pruss.c | 83 struct cdev *sc_pdev; 246 ti_pruss_open(struct cdev *cdev __unused, int oflags __unused, in ti_pruss_open() 253 ti_pruss_mmap(struct cdev *cdev, vm_ooffset_t offset, vm_paddr_t *paddr, in ti_pruss_mmap() argument 256 device_t dev = cdev->si_drv1; in ti_pruss_mmap() 290 ti_pruss_kqfilter(struct cdev *cdev, struct knote *kn) in ti_pruss_kqfilter() argument 292 device_t dev = cdev->si_drv1; in ti_pruss_kqfilter()
|
| /freebsd-10-stable/sys/dev/io/ |
| D | iodev.c | 44 static int ioopen(struct cdev *dev, int flags, int fmt, 46 static int ioclose(struct cdev *dev, int flags, int fmt, 48 static int ioioctl(struct cdev *dev, u_long cmd, caddr_t data, 54 static struct cdev *iodev; 66 ioopen(struct cdev *dev __unused, int flags __unused, int fmt __unused, in ioopen() 84 ioclose(struct cdev *dev __unused, int flags __unused, int fmt __unused, in ioclose() 93 ioioctl(struct cdev *dev __unused, u_long cmd, caddr_t data, in ioioctl()
|
| /freebsd-10-stable/share/examples/kld/cdev/module/ |
| D | cdev.c | 101 mydev_open(struct cdev *dev, int flag, int otyp, struct thread *td) in mydev_open() 113 mydev_close(struct cdev *dev, int flag, int otyp, struct thread *td) in mydev_close() 123 mydev_ioctl(struct cdev *dev, u_long cmd, caddr_t arg, int mode, in mydev_ioctl() 149 mydev_write(struct cdev *dev, struct uio *uio, int ioflag) in mydev_write() 169 mydev_read(struct cdev *dev, struct uio *uio, int ioflag) in mydev_read()
|
| /freebsd-10-stable/sys/dev/etherswitch/ |
| D | etherswitch.c | 54 struct cdev *sc_devnode; 149 etherswitchopen(struct cdev *dev, int flags, int fmt, struct thread *td) in etherswitchopen() 166 etherswitchclose(struct cdev *dev, int flags, int fmt, struct thread *td) in etherswitchclose() 186 etherswitchwrite(struct cdev *dev, struct uio * uio, int ioflag) in etherswitchwrite() 192 etherswitchread(struct cdev *dev, struct uio * uio, int ioflag) in etherswitchread() 198 etherswitchioctl(struct cdev *cdev, u_long cmd, caddr_t data, int flags, struct thread *td) in etherswitchioctl() argument 200 struct etherswitch_softc *sc = cdev->si_drv1; in etherswitchioctl()
|
| /freebsd-10-stable/sys/dev/nvme/ |
| D | nvme_ns.c | 64 nvme_ns_ioctl(struct cdev *cdev, u_long cmd, caddr_t arg, int flag, in nvme_ns_ioctl() argument 71 ns = cdev->si_drv1; in nvme_ns_ioctl() 97 nvme_ns_open(struct cdev *dev __unused, int flags, int fmt __unused, in nvme_ns_open() 109 nvme_ns_close(struct cdev *dev __unused, int flags, int fmt __unused, in nvme_ns_close() 534 if (ns->cdev != NULL) in nvme_ns_construct() 550 ns->cdev = make_dev_credf(MAKEDEV_ETERNAL_KLD, &nvme_ns_cdevsw, unit, in nvme_ns_construct() 554 ns->cdev = make_dev_credf(0, &nvme_ns_cdevsw, unit, in nvme_ns_construct() 559 ns->cdev->si_flags |= SI_UNMAPPED; in nvme_ns_construct() 562 if (ns->cdev != NULL) in nvme_ns_construct() 563 ns->cdev->si_drv1 = ns; in nvme_ns_construct() [all …]
|
| /freebsd-10-stable/sys/dev/iicbus/ |
| D | icee.c | 65 struct cdev *cdev; /* user interface */ member 200 sc->cdev = make_dev(&icee_cdevsw, device_get_unit(dev), UID_ROOT, in icee_attach() 202 if (sc->cdev == NULL) { in icee_attach() 205 sc->cdev->si_drv1 = sc; in icee_attach() 210 icee_open(struct cdev *dev, int oflags, int devtype, struct thread *td) in icee_open() 217 icee_close(struct cdev *dev, int fflag, int devtype, struct thread *td) in icee_close() 224 icee_read(struct cdev *dev, struct uio *uio, int ioflag) in icee_read() 284 icee_write(struct cdev *dev, struct uio *uio, int ioflag) in icee_write()
|