Searched refs:cdev (Results 26 - 50 of 462) sorted by relevance

1234567891011>>

/freebsd-11-stable/sys/dev/spibus/
H A Dspigen.c69 struct cdev *sc_cdev;
71 struct cdev *sc_adev; /* alias device */
105 static int spigen_open(struct cdev *, int, int, struct thread *);
106 static int spigen_ioctl(struct cdev *, u_long, caddr_t, int, struct thread *);
107 static int spigen_close(struct cdev *, int, int, struct thread *);
166 spigen_open(struct cdev *cdev, int oflags, int devtype, struct thread *td) argument
171 dev = cdev->si_drv1;
182 spigen_transfer(struct cdev *cdev, struc argument
227 spigen_transfer_mmapped(struct cdev *cdev, struct spigen_transfer_mmapped *stm) argument
251 spigen_ioctl(struct cdev *cdev, u_long cmd, caddr_t data, int fflag, struct thread *td) argument
296 spigen_mmap_single(struct cdev *cdev, vm_ooffset_t *offset, vm_size_t size, struct vm_object **object, int nprot) argument
347 spigen_close(struct cdev *cdev, int fflag, int devtype, struct thread *td) argument
[all...]
/freebsd-11-stable/sys/dev/null/
H A Dnull.c48 static struct cdev *full_dev;
49 static struct cdev *null_dev;
50 static struct cdev *zero_dev;
87 full_write(struct cdev *dev __unused, struct uio *uio __unused, int flags __unused)
95 null_write(struct cdev *dev __unused, struct uio *uio, int flags __unused)
104 null_ioctl(struct cdev *dev __unused, u_long cmd, caddr_t data __unused,
128 zero_ioctl(struct cdev *dev __unused, u_long cmd, caddr_t data __unused,
150 zero_read(struct cdev *dev __unused, struct uio *uio, int flags __unused)
/freebsd-11-stable/share/examples/kld/cdev/module/
H A Dcdevmod.c68 * $FreeBSD: stable/11/share/examples/kld/cdev/module/cdevmod.c 331085 2018-03-17 05:00:07Z eadler $
76 #include "cdev.h"
85 /* name */ .d_name = "cdev"
93 static struct cdev *sdev;
128 err = make_dev_s(&mda, &sdev, "cdev");
146 DEV_MODULE(cdev, cdev_load, NULL);
/freebsd-11-stable/sys/powerpc/ofw/
H A Dofw_syscons.h34 struct cdev *sc_si;
/freebsd-11-stable/sys/dev/drm/
H A Ddrm_fops.c43 int drm_open_helper(struct cdev *kdev, int flags, int fmt, DRM_STRUCTPROC *p,
97 int drm_read(struct cdev *kdev, struct uio *uio, int ioflag)
102 int drm_poll(struct cdev *kdev, int events, DRM_STRUCTPROC *p)
/freebsd-11-stable/sys/dev/ppbus/
H A Dpcfclock.c56 struct cdev *cdev; member in struct:pcfclock_data
138 sc->cdev = make_dev(&pcfclock_cdevsw, unit,
140 if (sc->cdev == NULL) {
144 sc->cdev->si_drv1 = sc;
150 pcfclock_open(struct cdev *dev, int flag, int fms, struct thread *td)
170 pcfclock_close(struct cdev *dev, int flags, int fmt, struct thread *td)
184 pcfclock_write_cmd(struct cdev *dev, unsigned char command)
204 pcfclock_display_data(struct cdev *dev, char buf[18])
226 pcfclock_read_data(struct cdev *de
[all...]
/freebsd-11-stable/sys/kern/
H A Dtty_tty.c48 static struct cdev *ctty;
51 cttyopen(struct cdev *dev, int flag, int mode, struct thread *td)
59 struct cdev **dev)
/freebsd-11-stable/sys/amd64/vmm/
H A Dvmm_dev.c67 struct cdev *cdev; member in struct:devmem_softc
74 struct cdev *cdev; member in struct:vmmdev_softc
168 vmmdev_lookup2(struct cdev *cdev) argument
171 return (cdev->si_drv1);
175 vmmdev_rw(struct cdev *cdev, struct uio *uio, int flags) argument
183 sc = vmmdev_lookup2(cdev);
291 vmmdev_ioctl(struct cdev *cdev, u_long cmd, caddr_t data, int fflag, struct thread *td) argument
680 vmmdev_mmap_single(struct cdev *cdev, vm_ooffset_t *offset, vm_size_t mapsize, struct vm_object **objp, int nprot) argument
778 struct cdev *cdev; local
838 struct cdev *cdev; local
915 devmem_mmap_single(struct cdev *cdev, vm_ooffset_t *offset, vm_size_t len, struct vm_object **objp, int nprot) argument
966 struct cdev *cdev; local
[all...]
/freebsd-11-stable/sys/security/audit/
H A Daudit_trigger.c58 static struct cdev *audit_dev;
64 audit_open(struct cdev *dev, int oflags, int devtype, struct thread *td)
81 audit_close(struct cdev *dev, int fflag, int devtype, struct thread *td)
99 audit_read(struct cdev *dev, struct uio *uio, int ioflag)
124 audit_write(struct cdev *dev, struct uio *uio, int ioflag)
/freebsd-11-stable/sys/dev/xen/xenstore/
H A Dxenstored_dev.c53 static int xsd_dev_read(struct cdev *dev, struct uio *uio, int ioflag);
54 static int xsd_dev_mmap(struct cdev *dev, vm_ooffset_t offset,
66 xsd_dev_read(struct cdev *dev, struct uio *uio, int ioflag)
84 xsd_dev_mmap(struct cdev *dev, vm_ooffset_t offset, vm_paddr_t *paddr,
145 struct cdev *xsd_cdev;
/freebsd-11-stable/sys/dev/io/
H A Diodev.c44 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,
84 ioclose(struct cdev *dev __unused, int flags __unused, int fmt __unused,
93 ioioctl(struct cdev *dev __unused, u_long cmd, caddr_t data,
/freebsd-11-stable/sys/dev/cmx/
H A Dcmx.c249 sc->cdev = make_dev(&cmx_cdevsw, 0, UID_ROOT, GID_WHEEL, 0600,
251 if (!sc->cdev) {
255 sc->cdev->si_drv1 = sc;
287 destroy_dev(sc->cdev);
417 cmx_open(struct cdev *cdev, int flags, int fmt, struct thread *td) argument
419 struct cmx_softc *sc = cdev->si_drv1;
441 cmx_close(struct cdev *cdev, int flags, int fmt, struct thread *td) argument
443 struct cmx_softc *sc = cdev
478 cmx_read(struct cdev *cdev, struct uio *uio, int flag) argument
579 cmx_write(struct cdev *cdev, struct uio *uio, int flag) argument
644 cmx_poll(struct cdev *cdev, int events, struct thread *td) argument
[all...]
/freebsd-11-stable/sys/dev/iir/
H A Diir_ctrl.c62 static struct gdt_softc *gdt_minor2softc(struct cdev *dev, int minor_no);
93 struct cdev *
96 struct cdev *dev;
115 gdt_destroy_dev(struct cdev *dev)
126 gdt_minor2softc(struct cdev *dev, int minor_no)
146 iir_open(struct cdev *dev, int flags, int fmt, struct thread * p)
154 iir_close(struct cdev *dev, int flags, int fmt, struct thread * p)
162 iir_write(struct cdev *dev, struct uio * uio, int ioflag)
170 iir_read(struct cdev *dev, struct uio * uio, int ioflag)
184 iir_ioctl(struct cdev *de
[all...]
/freebsd-11-stable/etc/
H A Ddevd.conf124 match "cdev" "atp[0-9]+";
126 action "/etc/rc.d/moused quietstart $cdev";
133 match "cdev" "ums[0-9]+";
135 action "/etc/rc.d/moused quietstart $cdev";
142 match "cdev" "wsp[0-9]+";
144 action "/etc/rc.d/moused quietstart $cdev";
151 match "cdev" "ums[0-9]+";
153 action "/etc/rc.d/moused stop $cdev";
166 action "/usr/local/bin/coldsync -md -p /dev/$cdev -t usb";
/freebsd-11-stable/sys/contrib/rdma/krping/
H A Dkrping_dev.c68 static struct cdev *krping_dev;
94 krping_open(struct cdev *dev, int oflags, int devtype, struct thread *p)
101 krping_close(struct cdev *dev, int fflag, int devtype, struct thread *p)
128 krping_read(struct cdev *dev, struct uio *uio, int ioflag)
168 krping_write(struct cdev *dev, struct uio *uio, int ioflag)
216 krping_purge(struct cdev *dev __unused)
/freebsd-11-stable/sys/arm/at91/
H A Dat91_ssc.c49 struct cdev *cdev; member in struct:at91_ssc_softc
89 /* cdev routines */
133 sc->cdev = make_dev(&at91_ssc_cdevsw, device_get_unit(dev), UID_ROOT,
135 if (sc->cdev == NULL) {
139 sc->cdev->si_drv1 = sc;
218 at91_ssc_open(struct cdev *dev, int oflags, int devtype, struct thread *td)
232 at91_ssc_close(struct cdev *dev, int fflag, int devtype, struct thread *td)
244 at91_ssc_read(struct cdev *dev, struct uio *uio, int flag)
250 at91_ssc_write(struct cdev *de
[all...]
/freebsd-11-stable/sys/dev/altera/avgen/
H A Daltera_avgen.h46 struct cdev *avg_cdev;
/freebsd-11-stable/sys/dev/pci/
H A Dpci_iov_private.h40 struct cdev *iov_cdev;
/freebsd-11-stable/sys/dev/nvram/
H A Dnvram.c67 static struct cdev *nvram_dev;
79 nvram_open(struct cdev *dev __unused, int flags, int fmt __unused,
91 nvram_read(struct cdev *dev, struct uio *uio, int flags)
110 nvram_write(struct cdev *dev, struct uio *uio, int flags)
/freebsd-11-stable/sys/arm/lpc/
H A Dlpc_fb.c81 struct cdev * lf_cdev;
119 static int lpc_fb_open(struct cdev *, int, int, struct thread *);
120 static int lpc_fb_close(struct cdev *, int, int, struct thread *);
121 static int lpc_fb_ioctl(struct cdev *, u_long, caddr_t, int, struct thread *);
122 static int lpc_fb_mmap(struct cdev *, vm_ooffset_t, vm_paddr_t *, int, vm_memattr_t *);
390 lpc_fb_open(struct cdev *cdev, int oflags, int devtype, struct thread *td) argument
392 struct lpc_fb_softc *sc = cdev->si_drv1;
414 lpc_fb_close(struct cdev *cdev, in argument
426 lpc_fb_ioctl(struct cdev *cdev, u_long cmd, caddr_t data, int x, struct thread *td) argument
434 lpc_fb_mmap(struct cdev *cdev, vm_ooffset_t offset, vm_paddr_t *paddr, int nprot, vm_memattr_t *memattr) argument
[all...]
/freebsd-11-stable/sys/dev/qlnx/qlnxe/
H A Dqlnx_os.c118 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++) {
511 if (&ha->cdev.hwfns[i] == p_hwfn) {
540 for (i = 0; i < ha->cdev.num_hwfns; i++) {
542 struct ecore_hwfn *p_hwfn = &ha->cdev.hwfns[i];
569 for (i = 0; i < ha->cdev.num_hwfns; i++) {
912 num_sp_msix = ha->cdev.num_hwfns;
917 ecore_vf_get_num_rxqs(&ha->cdev
2543 struct ecore_dev *cdev; local
3235 struct ecore_dev *cdev; local
4701 struct ecore_dev *cdev = &ha->cdev; local
5534 struct ecore_dev *cdev; local
5564 struct ecore_dev *cdev; local
5578 struct ecore_dev *cdev; local
5592 struct ecore_dev *cdev; local
5818 qlnx_nic_setup(struct ecore_dev *cdev, struct ecore_pf_params *func_params) argument
5846 qlnx_nic_start(struct ecore_dev *cdev) argument
5871 struct ecore_dev *cdev; local
5931 struct ecore_dev *cdev; local
5959 qlnx_set_id(struct ecore_dev *cdev, char name[NAME_SIZE], char ver_str[VER_SIZE]) argument
5976 qlnx_get_protocol_stats(void *cdev, int proto_type, void *proto_stats) argument
6048 struct ecore_dev *cdev; local
6123 struct ecore_dev *cdev; local
6135 qlnx_sb_init(struct ecore_dev *cdev, struct ecore_sb_info *sb_info, void *sb_virt_addr, bus_addr_t sb_phy_addr, u16 sb_id) argument
6166 struct ecore_dev *cdev; local
6212 struct ecore_dev *cdev; local
6266 struct ecore_dev *cdev; local
6382 struct ecore_dev *cdev; local
6480 struct ecore_dev *cdev; local
6502 struct ecore_dev *cdev; local
6637 struct ecore_dev *cdev; local
6665 qlnx_start_vport(struct ecore_dev *cdev, u8 vport_id, u16 mtu, u8 drop_ttl0_flg, u8 inner_vlan_removal_en_flg, u8 tx_switching, u8 hw_lro_enable) argument
6719 qlnx_update_vport(struct ecore_dev *cdev, struct qlnx_update_vport_params *params) argument
6887 struct ecore_dev *cdev = &ha->cdev; local
7109 struct ecore_dev *cdev; local
7204 struct ecore_dev *cdev; local
7226 struct ecore_dev *cdev; local
7246 struct ecore_dev *cdev; local
7301 struct ecore_dev *cdev; local
7353 struct ecore_dev *cdev; local
7477 struct ecore_dev *cdev; local
7600 struct ecore_dev *cdev; local
7709 struct ecore_dev *cdev; local
8061 struct ecore_dev *cdev; local
8207 struct ecore_dev *cdev; local
8291 struct ecore_dev *cdev; local
[all...]
/freebsd-11-stable/lib/libprocstat/
H A Dcommon_kvm.h32 dev_t dev2udev(kvm_t *kd, struct cdev *dev);
33 int kdevtoname(kvm_t *kd, struct cdev *dev, char *);
/freebsd-11-stable/sys/dev/mse/
H A Dmsevar.h71 struct cdev *sc_dev;
72 struct cdev *sc_ndev;
/freebsd-11-stable/sys/dev/qlxge/
H A Dqls_ioctl.c44 static int qls_eioctl(struct cdev *dev, u_long cmd, caddr_t data, int fflag,
81 qls_eioctl(struct cdev *dev, u_long cmd, caddr_t data, int fflag,
/freebsd-11-stable/sys/dev/beri/
H A Dberi_mem.c62 struct cdev *mem_cdev;
74 mem_open(struct cdev *dev, int flags __unused,
85 mem_close(struct cdev *dev, int flags __unused,
96 mem_ioctl(struct cdev *dev, u_long cmd, caddr_t addr, int flags,
104 mem_mmap(struct cdev *dev, vm_ooffset_t offset, vm_paddr_t *paddr, int nprot,

Completed in 308 milliseconds

1234567891011>>