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

1234567891011>>

/freebsd-13-stable/sys/dev/proto/
H A Dproto_core.c200 r->r_u.cdev = make_dev(&proto_devsw, res, 0, 0, 0600,
203 r->r_u.cdev->si_drv1 = sc;
204 r->r_u.cdev->si_drv2 = r;
208 r->r_u.cdev = make_dev(&proto_devsw, res, 0, 0, 0600,
210 r->r_u.cdev->si_drv1 = sc;
211 r->r_u.cdev->si_drv2 = r;
216 r->r_u.cdev = make_dev(&proto_devsw, res, 0, 0, 0600,
218 r->r_u.cdev->si_drv1 = sc;
219 r->r_u.cdev->si_drv2 = r;
257 destroy_dev(r->r_u.cdev);
284 proto_open(struct cdev *cdev, int oflags, int devtype, struct thread *td) argument
307 proto_close(struct cdev *cdev, int fflag, int devtype, struct thread *td) argument
332 proto_read(struct cdev *cdev, struct uio *uio, int ioflag) argument
387 proto_write(struct cdev *cdev, struct uio *uio, int ioflag) argument
451 proto_ioctl(struct cdev *cdev, u_long cmd, caddr_t data, int fflag, struct thread *td) argument
493 proto_mmap(struct cdev *cdev, vm_ooffset_t offset, vm_paddr_t *paddr, int prot, vm_memattr_t *memattr) argument
[all...]
/freebsd-13-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
348 spigen_close(struct cdev *cdev, int fflag, int devtype, struct thread *td) argument
[all...]
/freebsd-13-stable/sys/dev/null/
H A Dnull.c50 static struct cdev *full_dev;
51 static struct cdev *null_dev;
52 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,
142 zero_ioctl(struct cdev *dev __unused, u_long cmd, caddr_t data __unused,
163 zero_read(struct cdev *dev __unused, struct uio *uio, int flags __unused)
/freebsd-13-stable/share/examples/kld/cdev/module/
H A Dcdevmod.c78 #include "cdev.h"
87 /* name */ .d_name = "cdev"
95 static struct cdev *sdev;
130 err = make_dev_s(&mda, &sdev, "cdev");
148 DEV_MODULE(cdev, cdev_load, NULL);
/freebsd-13-stable/sys/powerpc/powernv/
H A Dpowernv_centaur.c96 device_t cdev; local
106 cdev = device_add_child(dev, NULL, -1);
107 if (cdev == NULL) {
114 device_set_ivars(cdev, dinfo);
H A Dpowernv_xscom.c96 device_t cdev; local
106 cdev = device_add_child(dev, NULL, -1);
107 if (cdev == NULL) {
114 device_set_ivars(cdev, dinfo);
H A Dopal_i2cm.c97 device_t cdev; local
107 cdev = device_add_child(dev, NULL, -1);
108 if (cdev == NULL) {
115 device_set_ivars(cdev, dinfo);
/freebsd-13-stable/sys/powerpc/ofw/
H A Dofw_syscons.h36 struct cdev *sc_si;
/freebsd-13-stable/sys/dev/ppbus/
H A Dpcfclock.c58 struct cdev *cdev; member in struct:pcfclock_data
140 sc->cdev = make_dev(&pcfclock_cdevsw, unit,
142 if (sc->cdev == NULL) {
146 sc->cdev->si_drv1 = sc;
152 pcfclock_open(struct cdev *dev, int flag, int fms, struct thread *td)
172 pcfclock_close(struct cdev *dev, int flags, int fmt, struct thread *td)
186 pcfclock_write_cmd(struct cdev *dev, unsigned char command)
206 pcfclock_display_data(struct cdev *dev, char buf[18])
228 pcfclock_read_data(struct cdev *de
[all...]
/freebsd-13-stable/sys/dev/xen/xenstore/
H A Dxenstored_dev.c52 static int xsd_dev_read(struct cdev *dev, struct uio *uio, int ioflag);
53 static int xsd_dev_mmap(struct cdev *dev, vm_ooffset_t offset,
64 xsd_dev_read(struct cdev *dev, struct uio *uio, int ioflag)
81 xsd_dev_mmap(struct cdev *dev, vm_ooffset_t offset, vm_paddr_t *paddr,
140 struct cdev *xsd_cdev;
/freebsd-13-stable/sys/security/audit/
H A Daudit_trigger.c60 static struct cdev *audit_dev;
66 audit_open(struct cdev *dev, int oflags, int devtype, struct thread *td)
83 audit_close(struct cdev *dev, int fflag, int devtype, struct thread *td)
101 audit_read(struct cdev *dev, struct uio *uio, int ioflag)
126 audit_write(struct cdev *dev, struct uio *uio, int ioflag)
/freebsd-13-stable/sys/dev/io/
H A Diodev.c46 static int ioopen(struct cdev *dev, int flags, int fmt,
48 static int ioclose(struct cdev *dev, int flags, int fmt,
50 static int ioioctl(struct cdev *dev, u_long cmd, caddr_t data,
56 static struct cdev *iodev;
68 ioopen(struct cdev *dev __unused, int flags __unused, int fmt __unused,
86 ioclose(struct cdev *dev __unused, int flags __unused, int fmt __unused,
95 ioioctl(struct cdev *dev __unused, u_long cmd, caddr_t data,
/freebsd-13-stable/sys/dev/pwm/
H A Dpwmc.c62 struct cdev *cdev; member in struct:pwmc_softc
67 pwm_ioctl(struct cdev *dev, u_long cmd, caddr_t data,
118 make_dev_alias(sc->cdev, "pwm/%s", (char *)label);
125 make_dev_alias(sc->cdev, "pwm/%s", hintlabel);
169 error = make_dev_s(&args, &sc->cdev, "pwm/pwmc%d.%d",
187 destroy_dev(sc->cdev);
/freebsd-13-stable/sys/dev/iir/
H A Diir_ctrl.c66 static struct gdt_softc *gdt_minor2softc(struct cdev *dev, int minor_no);
97 struct cdev *
100 struct cdev *dev;
119 gdt_destroy_dev(struct cdev *dev)
130 gdt_minor2softc(struct cdev *dev, int minor_no)
150 iir_open(struct cdev *dev, int flags, int fmt, struct thread * p)
158 iir_close(struct cdev *dev, int flags, int fmt, struct thread * p)
166 iir_write(struct cdev *dev, struct uio * uio, int ioflag)
174 iir_read(struct cdev *dev, struct uio * uio, int ioflag)
188 iir_ioctl(struct cdev *de
[all...]
/freebsd-13-stable/sys/contrib/rdma/krping/
H A Dkrping_dev.c69 static struct cdev *krping_dev;
95 krping_open(struct cdev *dev, int oflags, int devtype, struct thread *p)
102 krping_close(struct cdev *dev, int fflag, int devtype, struct thread *p)
129 krping_read(struct cdev *dev, struct uio *uio, int ioflag)
169 krping_write(struct cdev *dev, struct uio *uio, int ioflag)
217 krping_purge(struct cdev *dev __unused)
/freebsd-13-stable/sys/kern/
H A Dtty_tty.c51 static struct cdev *ctty;
54 cttyopen(struct cdev *dev, int flag, int mode, struct thread *td)
62 struct cdev **dev)
/freebsd-13-stable/sys/dev/nvram/
H A Dnvram.c69 static struct cdev *nvram_dev;
81 nvram_open(struct cdev *dev __unused, int flags, int fmt __unused,
93 nvram_read(struct cdev *dev, struct uio *uio, int flags)
112 nvram_write(struct cdev *dev, struct uio *uio, int flags)
/freebsd-13-stable/sys/dev/pci/
H A Dpci_iov_private.h40 struct cdev *iov_cdev;
/freebsd-13-stable/sys/arm/allwinner/
H A Daw_dwc3.c91 device_t cdev; local
126 cdev = simplebus_add_device(dev, child, 0, NULL, -1, NULL);
127 if (cdev != NULL)
128 device_probe_and_attach(cdev);
/freebsd-13-stable/sys/arm/ti/
H A Dti_omap4_cm.c102 device_t cdev; local
118 cdev = simplebus_add_device(dev, child, 0, NULL, -1, NULL);
119 if (cdev != NULL)
120 device_probe_and_attach(cdev);
H A Dti_scm.c115 device_t cdev; local
129 cdev = simplebus_add_device(dev, child, 0, NULL, -1, NULL);
130 if (cdev != NULL)
131 device_probe_and_attach(cdev);
/freebsd-13-stable/sys/amd64/vmm/
H A Dvmm_dev.c75 struct cdev *cdev; member in struct:devmem_softc
82 struct cdev *cdev; member in struct:vmmdev_softc
189 vmmdev_lookup2(struct cdev *cdev) argument
192 return (cdev->si_drv1);
196 vmmdev_rw(struct cdev *cdev, struct uio *uio, int flags) argument
208 sc = vmmdev_lookup2(cdev);
350 vmmdev_ioctl(struct cdev *cdev, u_long cmd, caddr_t data, int fflag, struct thread *td) argument
896 vmmdev_mmap_single(struct cdev *cdev, vm_ooffset_t *offset, vm_size_t mapsize, struct vm_object **objp, int nprot) argument
996 struct cdev *cdev; local
1070 struct cdev *cdev; local
1163 devmem_mmap_single(struct cdev *cdev, vm_ooffset_t *offset, vm_size_t len, struct vm_object **objp, int nprot) argument
1214 struct cdev *cdev; local
[all...]
/freebsd-13-stable/sys/dev/qlnx/qlnxe/
H A Dqlnx_os.c116 static int qlnx_nic_setup(struct ecore_dev *cdev,
118 static int qlnx_nic_start(struct ecore_dev *cdev);
122 static void qlnx_set_id(struct ecore_dev *cdev, char name[NAME_SIZE],
502 for (i = 0; i < ha->cdev.num_hwfns; i++) {
503 if (&ha->cdev.hwfns[i] == p_hwfn) {
532 for (i = 0; i < ha->cdev.num_hwfns; i++) {
533 struct ecore_hwfn *p_hwfn = &ha->cdev.hwfns[i];
560 for (i = 0; i < ha->cdev.num_hwfns; i++) {
894 num_sp_msix = ha->cdev.num_hwfns;
899 ecore_vf_get_num_rxqs(&ha->cdev
2502 struct ecore_dev *cdev; local
3171 struct ecore_dev *cdev; local
4597 struct ecore_dev *cdev = &ha->cdev; local
5415 struct ecore_dev *cdev; local
5445 struct ecore_dev *cdev; local
5459 struct ecore_dev *cdev; local
5473 struct ecore_dev *cdev; local
5697 qlnx_nic_setup(struct ecore_dev *cdev, struct ecore_pf_params *func_params) argument
5724 qlnx_nic_start(struct ecore_dev *cdev) argument
5749 struct ecore_dev *cdev; local
5809 struct ecore_dev *cdev; local
5836 qlnx_set_id(struct ecore_dev *cdev, char name[NAME_SIZE], char ver_str[VER_SIZE]) argument
5853 qlnx_get_protocol_stats(void *cdev, int proto_type, void *proto_stats) argument
5924 struct ecore_dev *cdev; local
5998 struct ecore_dev *cdev; local
6010 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
6041 struct ecore_dev *cdev; local
6086 struct ecore_dev *cdev; local
6140 struct ecore_dev *cdev; local
6256 struct ecore_dev *cdev; local
6352 struct ecore_dev *cdev; local
6374 struct ecore_dev *cdev; local
6507 struct ecore_dev *cdev; local
6535 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
6587 qlnx_update_vport(struct ecore_dev *cdev, struct qlnx_update_vport_params *params) argument
6752 struct ecore_dev *cdev = &ha->cdev; local
6971 struct ecore_dev *cdev; local
7064 struct ecore_dev *cdev; local
7086 struct ecore_dev *cdev; local
7106 struct ecore_dev *cdev; local
7159 struct ecore_dev *cdev; local
7211 struct ecore_dev *cdev; local
7332 struct ecore_dev *cdev; local
7449 struct ecore_dev *cdev; local
7556 struct ecore_dev *cdev; local
7907 struct ecore_dev *cdev; local
8046 struct ecore_dev *cdev; local
8127 struct ecore_dev *cdev; local
[all...]
/freebsd-13-stable/lib/libprocstat/
H A Dcommon_kvm.h34 dev_t dev2udev(kvm_t *kd, struct cdev *dev);
35 int kdevtoname(kvm_t *kd, struct cdev *dev, char *);
/freebsd-13-stable/sbin/devd/
H A Ddevd.conf126 match "cdev" "atp[0-9]+";
128 action "service moused quietstart $cdev";
135 match "cdev" "ums[0-9]+";
137 action "service moused quietstart $cdev";
144 match "cdev" "wsp[0-9]+";
146 action "service moused quietstart $cdev";
153 match "cdev" "ums[0-9]+";
155 action "service moused stop $cdev";
319 match "cdev" "ttyU[0-9]+";

Completed in 141 milliseconds

1234567891011>>