Searched refs:cdev (Results 226 - 250 of 462) sorted by relevance

1234567891011>>

/freebsd-11-stable/sys/dev/nvme/
H A Dnvme_ctrlr.c1039 nvme_ctrlr_ioctl(struct cdev *cdev, u_long cmd, caddr_t arg, int flag, argument
1045 ctrlr = cdev->si_drv1;
1058 strncpy(gnsid->cdev, device_get_nameunit(ctrlr->dev),
1059 sizeof(gnsid->cdev));
1226 status = make_dev_s(&md_args, &ctrlr->cdev, "nvme%d",
1255 if (ctrlr->cdev)
1256 destroy_dev(ctrlr->cdev);
/freebsd-11-stable/share/examples/drivers/
H A Dmake_device_driver.sh207 struct cdev *dev;
826 ${1}ioctl (struct cdev *dev, u_long cmd, caddr_t data, int flag, struct thread *td)
848 ${1}open(struct cdev *dev, int oflags, int devtype, struct thread *td)
860 ${1}close(struct cdev *dev, int fflag, int devtype, struct thread *td)
872 ${1}read(struct cdev *dev, struct uio *uio, int ioflag)
887 ${1}write(struct cdev *dev, struct uio *uio, int ioflag)
902 ${1}mmap(struct cdev *dev, vm_offset_t offset, vm_paddr_t *paddr, int nprot)
921 ${1}poll(struct cdev *dev, int which, struct thread *td)
/freebsd-11-stable/sys/sparc64/fhc/
H A Dfhc.c63 struct cdev *sc_led_dev;
165 device_t cdev; local
313 cdev = device_add_child(dev, NULL, -1);
314 if (cdev == NULL) {
322 device_set_ivars(cdev, fdi);
H A Dclkbrd.c61 struct cdev *sc_led_dev;
/freebsd-11-stable/sys/cam/
H A Dcam_compat.c55 static int cam_compat_handle_0x17(struct cdev *dev, u_long cmd, caddr_t addr,
57 static int cam_compat_handle_0x18(struct cdev *dev, u_long cmd, caddr_t addr,
62 cam_compat_ioctl(struct cdev *dev, u_long cmd, caddr_t addr, int flag,
117 cam_compat_handle_0x17(struct cdev *dev, u_long cmd, caddr_t addr, int flag,
255 cam_compat_handle_0x18(struct cdev *dev, u_long cmd, caddr_t addr, int flag,
/freebsd-11-stable/sys/dev/xen/evtchn/
H A Devtchn_dev.c188 evtchn_open(struct cdev *dev, int flag, int otyp, struct thread *td)
242 evtchn_read(struct cdev *dev, struct uio *uio, int ioflag)
318 evtchn_write(struct cdev *dev, struct uio *uio, int ioflag)
391 evtchn_ioctl(struct cdev *dev, unsigned long cmd, caddr_t arg,
532 evtchn_poll(struct cdev *dev, int events, struct thread *td)
/freebsd-11-stable/contrib/ntp/lib/isc/win32/
H A Dsocket.c299 isc_socket_connev_t *cdev; /* connect() done event */ member in struct:IoCompletionInfo
368 static void send_connectdone_event(isc_socket_t *sock, isc_socket_connev_t **cdev);
1988 send_connectdone_event(isc_socket_t *sock, isc_socket_connev_t **cdev) { argument
1991 INSIST(cdev != NULL && *cdev != NULL);
1993 task = (*cdev)->ev_sender;
1994 (*cdev)->ev_sender = sock;
1998 isc_task_sendanddetach(&task, (isc_event_t **)cdev);
2108 isc_socket_connev_t *cdev; local
2123 cdev
3424 isc_socket_connev_t *cdev; local
[all...]
/freebsd-11-stable/sys/kern/
H A Dtty.c80 static struct cdev *dev_console;
197 * don't have to be used together. ttydev_enter() is used by the cdev
264 ttydev_open(struct cdev *dev, int oflags, int devtype __unused,
363 ttydev_close(struct cdev *dev, int fflag, int devtype __unused,
476 ttydev_read(struct cdev *dev, struct uio *uio, int ioflag)
497 ttydev_write(struct cdev *dev, struct uio *uio, int ioflag)
534 ttydev_ioctl(struct cdev *dev, u_long cmd, caddr_t data, int fflag,
620 ttydev_poll(struct cdev *dev, int events, struct thread *td)
657 ttydev_mmap(struct cdev *dev, vm_ooffset_t offset, vm_paddr_t *paddr,
739 ttydev_kqfilter(struct cdev *de
[all...]
/freebsd-11-stable/sys/dev/bktr/
H A Dbktr_os.c578 bktr_open( struct cdev *dev, int flags, int fmt, struct thread *td )
678 bktr_close( struct cdev *dev, int flags, int fmt, struct thread *td )
717 bktr_read( struct cdev *dev, struct uio *uio, int ioflag )
745 bktr_write( struct cdev *dev, struct uio *uio, int ioflag )
755 bktr_ioctl( struct cdev *dev, ioctl_cmd_t cmd, caddr_t arg, int flag, struct thread *td )
794 bktr_mmap( struct cdev *dev, vm_ooffset_t offset, vm_paddr_t *paddr,
826 bktr_poll( struct cdev *dev, int events, struct thread *td)
/freebsd-11-stable/sys/dev/ppbus/
H A Dlpt.c109 struct cdev *sc_cdev;
110 struct cdev *sc_cdev_bypass;
484 lptopen(struct cdev *dev, int flags, int fmt, struct thread *td)
608 lptclose(struct cdev *dev, int flags, int fmt, struct thread *td)
719 lptread(struct cdev *dev, struct uio *uio, int ioflag)
770 lptwrite(struct cdev *dev, struct uio *uio, int ioflag)
923 lptioctl(struct cdev *dev, u_long cmd, caddr_t data, int flags, struct thread *td)
/freebsd-11-stable/sys/dev/acpica/
H A Dacpi_hpet.c118 struct cdev *pdev;
382 hpet_open(struct cdev *cdev, int oflags, int devtype, struct thread *td) argument
386 sc = cdev->si_drv1;
394 hpet_mmap(struct cdev *cdev, vm_ooffset_t offset, vm_paddr_t *paddr, argument
399 sc = cdev->si_drv1;
H A Dacpivar.h52 struct cdev *acpi_dev_t;
96 struct cdev *cdev; member in struct:apm_clone_data
/freebsd-11-stable/sys/cam/scsi/
H A Dscsi_target.c205 targopen(struct cdev *dev, int flags, int fmt, struct thread *td)
228 targioctl(struct cdev *dev, u_long cmd, caddr_t addr, int flag, struct thread *td)
297 targpoll(struct cdev *dev, int poll_events, struct thread *td)
323 targkqfilter(struct cdev *dev, struct knote *kn)
524 targwrite(struct cdev *dev, struct uio *uio, int ioflag)
803 targread(struct cdev *dev, struct uio *uio, int ioflag)
1001 struct cdev *dev;
/freebsd-11-stable/sys/dev/mpt/
H A Dmpt_user.c124 mpt->cdev = make_dev(&mpt_cdevsw, unit, UID_ROOT, GID_OPERATOR, 0640,
126 if (mpt->cdev == NULL) {
133 mpt->cdev->si_drv1 = mpt;
171 destroy_dev(mpt->cdev);
181 mpt_open(struct cdev *dev, int flags, int fmt, struct thread *td)
188 mpt_close(struct cdev *dev, int flags, int fmt, struct thread *td)
593 mpt_ioctl(struct cdev *dev, u_long cmd, caddr_t arg, int flag, struct thread *td)
/freebsd-11-stable/sys/dev/adlink/
H A Dadlink.c106 struct cdev *dev;
164 adlink_mmap(struct cdev *dev, vm_ooffset_t offset, vm_paddr_t *paddr,
193 adlink_ioctl(struct cdev *dev, u_long cmd, caddr_t data, int fflag, struct thread *td)
/freebsd-11-stable/sys/dev/xen/privcmd/
H A Dprivcmd.c193 privcmd_mmap_single(struct cdev *cdev, vm_ooffset_t *offset, vm_size_t size, argument
226 privcmd_ioctl(struct cdev *dev, unsigned long cmd, caddr_t arg,
/freebsd-11-stable/sys/dev/qlxgb/
H A Dqla_def.h131 struct cdev *ioctl_dev;
/freebsd-11-stable/sys/netsmb/
H A Dsmb_dev.h158 struct cdev * dev;
/freebsd-11-stable/sys/dev/mlx/
H A Dmlxvar.h112 struct cdev *mlx_dev_t;
/freebsd-11-stable/sys/powerpc/powermac/
H A Duninorth.c273 device_t cdev; local
369 cdev = device_add_child(dev, NULL, -1);
370 if (cdev == NULL) {
379 device_set_ivars(cdev, dinfo);
/freebsd-11-stable/sys/dev/ida/
H A Didavar.h134 struct cdev *ida_dev_t;
/freebsd-11-stable/sys/dev/tdfx/
H A Dtdfx_pci.c243 * make_dev registers the cdev to access the 3dfx card from /dev
383 tdfx_open(struct cdev *dev, int flags, int fmt, struct thread *td)
386 * The open cdev method handles open(2) calls to /dev/3dfx[n]
400 tdfx_close(struct cdev *dev, int fflag, int devtype, struct thread *td)
403 * The close cdev method handles close(2) calls to /dev/3dfx[n]
416 tdfx_mmap(struct cdev *dev, vm_ooffset_t offset, vm_paddr_t *paddr,
772 tdfx_ioctl(struct cdev *dev, u_long cmd, caddr_t data, int flag, struct thread *td)
/freebsd-11-stable/sys/fs/devfs/
H A Ddevfs_rule.c109 static struct cdev *devfs_rule_getdev(struct devfs_dirent *de);
340 * XXX: a linear search could be done through the cdev list instead.
433 * Get a struct cdev *corresponding to de so we can try to match rules based
434 * on it. If this routine returns NULL, there is no struct cdev *associated
439 static struct cdev *
536 struct cdev *dev;
546 * the struct cdev *match all symlinks and directories.
580 struct cdev *dev;
/freebsd-11-stable/sys/fs/msdosfs/
H A Dmsdosfsmount.h81 struct cdev *pm_dev; /* character device mounted */
/freebsd-11-stable/sys/dev/tws/
H A Dtws.h221 struct cdev *tws_cdev; /* controller device */

Completed in 380 milliseconds

1234567891011>>