/freebsd-12-stable/sys/dev/gpio/ |
H A D | gpioiic.c | 42 #include <dev/gpio/gpiobusvar.h> 43 #include <dev/iicbus/iiconf.h> 54 device_t dev; member in struct:gpioiic_softc 61 #include <dev/ofw/ofw_bus.h> 72 gpioiic_get_node(device_t bus, device_t dev) argument 85 node = ofw_bus_get_node(sc->dev); 93 if ((err = gpio_pin_get_by_ofw_idx(sc->dev, node, 95 device_printf(sc->dev, "invalid gpios property\n"); 98 if ((err = gpio_pin_get_by_ofw_idx(sc->dev, node, 100 device_printf(sc->dev, "ivali 191 gpioiic_setsda(device_t dev, int val) argument 205 gpioiic_setscl(device_t dev, int val) argument 219 gpioiic_getscl(device_t dev) argument 230 gpioiic_getsda(device_t dev) argument 241 gpioiic_reset(device_t dev, u_char speed, u_char addr, u_char *oldaddr) argument 267 gpioiic_probe(device_t dev) argument 290 gpioiic_attach(device_t dev) argument 330 gpioiic_detach(device_t dev) argument [all...] |
/freebsd-12-stable/sys/dev/drm/ |
H A D | mga_irq.c | 37 #include "dev/drm/drmP.h" 38 #include "dev/drm/drm.h" 39 #include "dev/drm/mga_drm.h" 40 #include "dev/drm/mga_drv.h" 42 u32 mga_get_vblank_counter(struct drm_device *dev, int crtc) argument 45 (drm_mga_private_t *) dev->dev_private; 58 struct drm_device *dev = (struct drm_device *) arg; local 59 drm_mga_private_t *dev_priv = (drm_mga_private_t *) dev->dev_private; 69 drm_handle_vblank(dev, 0); 98 int mga_enable_vblank(struct drm_device *dev, in argument 113 mga_disable_vblank(struct drm_device *dev, int crtc) argument 128 mga_driver_fence_wait(struct drm_device * dev, unsigned int *sequence) argument 150 mga_driver_irq_preinstall(struct drm_device * dev) argument 160 mga_driver_irq_postinstall(struct drm_device * dev) argument 173 mga_driver_irq_uninstall(struct drm_device * dev) argument [all...] |
H A D | r128_irq.c | 36 #include "dev/drm/drmP.h" 37 #include "dev/drm/drm.h" 38 #include "dev/drm/r128_drm.h" 39 #include "dev/drm/r128_drv.h" 41 u32 r128_get_vblank_counter(struct drm_device *dev, int crtc) argument 43 const drm_r128_private_t *dev_priv = dev->dev_private; 53 struct drm_device *dev = (struct drm_device *) arg; local 54 drm_r128_private_t *dev_priv = (drm_r128_private_t *) dev->dev_private; 63 drm_handle_vblank(dev, 0); 69 int r128_enable_vblank(struct drm_device *dev, in argument 82 r128_disable_vblank(struct drm_device *dev, int crtc) argument 96 r128_driver_irq_preinstall(struct drm_device * dev) argument 106 r128_driver_irq_postinstall(struct drm_device * dev) argument 111 r128_driver_irq_uninstall(struct drm_device * dev) argument [all...] |
/freebsd-12-stable/sys/dev/drm2/ |
H A D | drm_memory.c | 39 #include <dev/drm2/drmP.h> 45 struct drm_device * dev) 95 struct drm_device * dev) 102 void drm_core_ioremap(struct drm_local_map *map, struct drm_device *dev) argument 104 if (drm_core_has_AGP(dev) && 105 dev->agp && dev->agp->cant_use_aperture && map->type == _DRM_AGP) 106 map->handle = agp_remap(map->offset, map->size, dev); 112 void drm_core_ioremap_wc(struct drm_local_map *map, struct drm_device *dev) argument 114 if (drm_core_has_AGP(dev) 44 agp_remap(unsigned long offset, unsigned long size, struct drm_device * dev) argument 94 agp_remap(unsigned long offset, unsigned long size, struct drm_device * dev) argument 123 drm_core_ioremapfree(struct drm_local_map *map, struct drm_device *dev) argument [all...] |
/freebsd-12-stable/sys/dev/bhnd/cores/pmu/ |
H A D | bhnd_pmu_core.c | 46 #include <dev/bhnd/bhnd.h> 63 bhnd_pmu_core_probe(device_t dev) argument 68 id = bhnd_device_lookup(dev, bhnd_pmucore_devices, 74 if ((error = bhnd_pmu_probe(dev)) > 0) 77 bhnd_set_default_core_desc(dev); 82 bhnd_pmu_core_attach(device_t dev) argument 89 sc = device_get_softc(dev); 93 res = bhnd_alloc_resource_any(dev, SYS_RES_MEMORY, &rid, RF_ACTIVE); 95 device_printf(dev, "failed to allocate resources\n"); 100 if ((error = bhnd_alloc_pmu(dev))) { 118 bhnd_pmu_core_detach(device_t dev) argument [all...] |
/freebsd-12-stable/sys/dev/usb/controller/ |
H A D | saf1761_otg_boot.c | 34 #include <dev/usb/controller/saf1761_otg.h> 35 #include <dev/usb/controller/saf1761_otg_reg.h> 65 saf1761_otg_fdt_probe(device_t dev) argument 67 if (device_get_unit(dev) != 0) 70 device_set_desc(dev, "ISP1761/SAF1761 DCI USB 2.0 Device Controller"); 76 saf1761_otg_fdt_attach(device_t dev) argument 78 struct saf1761_otg_softc *sc = device_get_softc(dev); 85 sc->sc_bus.parent = dev; 91 if (usb_bus_mem_alloc_all(&sc->sc_bus, USB_GET_DMA_TAG(dev), NULL)) 99 sc->sc_bus.bdev = device_add_child(dev, "usbu 124 saf1761_otg_fdt_detach(device_t dev) argument [all...] |
/freebsd-12-stable/sys/mips/mediatek/ |
H A D | mtk_reset.c | 36 #include <dev/fdt/fdt_common.h> 37 #include <dev/ofw/openfirm.h> 38 #include <dev/ofw/ofw_bus.h> 39 #include <dev/ofw/ofw_bus_subr.h> 54 mtk_reset_probe(device_t dev) argument 57 if (!ofw_bus_status_okay(dev)) 60 if (ofw_bus_search_compatible(dev, compat_data)->ocd_data == 0) 63 device_set_desc(dev, "MTK Reset Controller"); 69 mtk_reset_attach(device_t dev) argument 72 if (device_get_unit(dev) ! 86 mtk_reset_set(device_t dev, int index, int value) argument 105 mtk_reset_assert(device_t dev, int index) argument 112 mtk_reset_deassert(device_t dev, int index) argument [all...] |
/freebsd-12-stable/sys/dev/xen/pci/ |
H A D | xen_acpi_pci.c | 37 #include <contrib/dev/acpica/include/acpi.h> 38 #include <contrib/dev/acpica/include/accommon.h> 40 #include <dev/acpica/acpivar.h> 41 #include <dev/acpica/acpi_pcivar.h> 44 #include <dev/pci/pcireg.h> 45 #include <dev/pci/pcivar.h> 46 #include <dev/pci/pci_private.h> 56 xen_acpi_pci_probe(device_t dev) argument 61 if (acpi_get_handle(dev) == NULL) 64 device_set_desc(dev, "Xe 70 xen_acpi_pci_child_added(device_t dev, device_t child) argument [all...] |
/freebsd-12-stable/sys/dev/uart/ |
H A D | uart_bus_pccard.c | 40 #include <dev/pccard/pccard_cis.h> 41 #include <dev/pccard/pccardvar.h> 43 #include <dev/uart/uart.h> 44 #include <dev/uart/uart_bus.h> 48 static int uart_pccard_probe(device_t dev); 49 static int uart_pccard_attach(device_t dev); 69 uart_pccard_probe(device_t dev) argument 75 error = pccard_get_function(dev, &fcn); 90 uart_pccard_attach(device_t dev) argument 95 sc = device_get_softc(dev); [all...] |
/freebsd-12-stable/usr.sbin/pc-sysinstall/backend/ |
H A D | functions-mountoptical.sh | 65 mount | grep -q "${CDMNT} " 2>/dev/null 87 for i in `ls -1 /dev/cd* 2>/dev/null` 100 /sbin/umount ${CDMNT} >/dev/null 2>/dev/null 107 for i in `ls -1 /dev/da* 2>/dev/null` 120 /sbin/umount ${CDMNT} >/dev/null 2>/dev/null 133 /sbin/umount ${CDMNT} >/dev/nul [all...] |
/freebsd-12-stable/sys/dev/pst/ |
H A D | pst-pci.c | 49 #include <dev/pci/pcivar.h> 50 #include <dev/pci/pcireg.h> 52 #include "dev/pst/pst-iop.h" 55 iop_pci_probe(device_t dev) argument 58 if (pci_get_devid(dev) == 0x19628086 && pci_get_subvendor(dev) == 0x105a) { 59 device_set_desc(dev, "Promise SuperTrak SX6000 ATA RAID controller"); 64 if (pci_get_devid(dev) == 0x19608086 && pci_get_subvendor(dev) == 0x105a) { 65 device_set_desc(dev, "Promis 73 iop_pci_attach(device_t dev) argument 104 iop_pci_detach(device_t dev) argument [all...] |
/freebsd-12-stable/sys/dev/virtio/ |
H A D | virtio.h | 34 #include <dev/virtio/virtio_ids.h> 35 #include <dev/virtio/virtio_config.h> 67 void virtio_describe(device_t dev, const char *msg, 73 void virtio_read_ivar(device_t dev, int ivar, uintptr_t *val); 74 void virtio_write_ivar(device_t dev, int ivar, uintptr_t val); 75 uint64_t virtio_negotiate_features(device_t dev, uint64_t child_features); 76 int virtio_alloc_virtqueues(device_t dev, int flags, int nvqs, 78 int virtio_setup_intr(device_t dev, enum intr_type type); 79 int virtio_with_feature(device_t dev, uint64_t feature); 80 void virtio_stop(device_t dev); [all...] |
/freebsd-12-stable/sys/dev/altera/jtag_uart/ |
H A D | altera_jtag_uart_fdt.c | 55 #include <dev/altera/jtag_uart/altera_jtag_uart.h> 57 #include <dev/fdt/fdt_common.h> 58 #include <dev/ofw/openfirm.h> 59 #include <dev/ofw/ofw_bus.h> 60 #include <dev/ofw/ofw_bus_subr.h> 66 altera_jtag_uart_fdt_probe(device_t dev) argument 69 if (!ofw_bus_status_okay(dev)) 72 if (ofw_bus_is_compatible(dev, "altera,jtag_uart-11_0")) { 73 device_set_desc(dev, "Altera JTAG UART"); 80 altera_jtag_uart_fdt_attach(device_t dev) argument 122 altera_jtag_uart_fdt_detach(device_t dev) argument [all...] |
/freebsd-12-stable/sys/mips/ingenic/ |
H A D | jz4780_dwc_fdt.c | 38 #include <dev/extres/clk/clk.h> 40 #include <dev/ofw/ofw_bus_subr.h> 42 #include <dev/usb/usb.h> 43 #include <dev/usb/usbdi.h> 45 #include <dev/usb/usb_busdma.h> 46 #include <dev/usb/usb_process.h> 48 #include <dev/usb/usb_controller.h> 49 #include <dev/usb/usb_bus.h> 51 #include <dev/usb/controller/dwc_otg.h> 52 #include <dev/us 68 jz4780_dwc_otg_clk_enable(device_t dev) argument 109 jz4780_dwc_otg_probe(device_t dev) argument 124 jz4780_dwc_otg_attach(device_t dev) argument 170 jz4780_dwc_otg_detach(device_t dev) argument [all...] |
/freebsd-12-stable/sys/dev/mlx4/mlx4_core/ |
H A D | mlx4_cq.c | 39 #include <dev/mlx4/cmd.h> 40 #include <dev/mlx4/cq.h> 54 void mlx4_cq_completion(struct mlx4_dev *dev, u32 cqn) argument 58 cq = radix_tree_lookup(&mlx4_priv(dev)->cq_table.tree, 59 cqn & (dev->caps.num_cqs - 1)); 61 mlx4_dbg(dev, "Completion event for bogus CQ %08x\n", cqn); 70 void mlx4_cq_event(struct mlx4_dev *dev, u32 cqn, int event_type) argument 72 struct mlx4_cq_table *cq_table = &mlx4_priv(dev)->cq_table; 77 cq = radix_tree_lookup(&cq_table->tree, cqn & (dev->caps.num_cqs - 1)); 84 mlx4_warn(dev, "Asyn 94 mlx4_SW2HW_CQ(struct mlx4_dev *dev, struct mlx4_cmd_mailbox *mailbox, int cq_num) argument 102 mlx4_MODIFY_CQ(struct mlx4_dev *dev, struct mlx4_cmd_mailbox *mailbox, int cq_num, u32 opmod) argument 109 mlx4_HW2SW_CQ(struct mlx4_dev *dev, struct mlx4_cmd_mailbox *mailbox, int cq_num) argument 117 mlx4_cq_modify(struct mlx4_dev *dev, struct mlx4_cq *cq, u16 count, u16 period) argument 139 mlx4_cq_resize(struct mlx4_dev *dev, struct mlx4_cq *cq, int entries, struct mlx4_mtt *mtt) argument 165 __mlx4_cq_alloc_icm(struct mlx4_dev *dev, int *cqn) argument 192 mlx4_cq_alloc_icm(struct mlx4_dev *dev, int *cqn) argument 211 __mlx4_cq_free_icm(struct mlx4_dev *dev, int cqn) argument 221 mlx4_cq_free_icm(struct mlx4_dev *dev, int cqn) argument 237 mlx4_cq_alloc(struct mlx4_dev *dev, int nent, struct mlx4_mtt *mtt, struct mlx4_uar *uar, u64 db_rec, struct mlx4_cq *cq, unsigned vector, int collapsed, int timestamp_en) argument 312 mlx4_cq_free(struct mlx4_dev *dev, struct mlx4_cq *cq) argument 339 mlx4_init_cq_table(struct mlx4_dev *dev) argument 357 mlx4_cleanup_cq_table(struct mlx4_dev *dev) argument [all...] |
/freebsd-12-stable/sys/isa/ |
H A D | vga_isa.c | 58 #include <dev/fb/fbreg.h> 59 #include <dev/fb/vgareg.h> 72 vga_suspend(device_t dev) argument 77 sc = device_get_softc(dev); 89 device_printf(dev, "saving %d bytes of video state\n", nbytes); 91 device_printf(dev, "failed to save state (nbytes=%d)\n", 105 device_printf(dev, "saving color palette\n"); 107 device_printf(dev, "failed to save palette\n"); 114 vga_resume(device_t dev) argument 118 sc = device_get_softc(dev); 169 isavga_probe(device_t dev) argument 198 isavga_attach(device_t dev) argument 238 isavga_suspend(device_t dev) argument 251 isavga_resume(device_t dev) argument 262 isavga_open(struct cdev *dev, int flag, int mode, struct thread *td) argument 268 isavga_close(struct cdev *dev, int flag, int mode, struct thread *td) argument 274 isavga_read(struct cdev *dev, struct uio *uio, int flag) argument 280 isavga_write(struct cdev *dev, struct uio *uio, int flag) argument 286 isavga_ioctl(struct cdev *dev, u_long cmd, caddr_t arg, int flag, struct thread *td) argument 292 isavga_mmap(struct cdev *dev, vm_ooffset_t offset, vm_paddr_t *paddr, int prot, vm_memattr_t *memattr) argument 330 vgapm_probe(device_t dev) argument 340 vgapm_attach(device_t dev) argument 350 vgapm_suspend(device_t dev) argument 367 vgapm_resume(device_t dev) argument [all...] |
/freebsd-12-stable/sys/dev/ocs_fc/ |
H A D | ocs_pci.c | 48 #include <dev/pci/pcireg.h> 49 #include <dev/pci/pcivar.h> 82 * @param dev device abstraction 87 ocs_pci_probe(device_t dev) argument 91 if (pci_get_vendor(dev) != PCI_VENDOR_EMULEX) { 95 switch (pci_get_device(dev)) { 109 device_set_desc(dev, desc); 115 ocs_map_bars(device_t dev, struct ocs_softc *ocs) argument 123 ocs->reg[0].res = bus_alloc_resource_any(dev, SYS_RES_MEMORY, 127 device_printf(dev, "bus_alloc_resourc 462 ocs_pci_attach(device_t dev) argument 622 ocs_pci_detach(device_t dev) argument 672 ocs_pci_shutdown(device_t dev) argument [all...] |
/freebsd-12-stable/sys/dev/agp/ |
H A D | agp_apple.c | 44 #include <dev/agp/agppriv.h> 45 #include <dev/agp/agpreg.h> 46 #include <dev/pci/pcivar.h> 47 #include <dev/pci/pcireg.h> 71 agp_apple_probe(device_t dev) argument 74 if (resource_disabled("agp", device_get_unit(dev))) 77 if (pci_get_class(dev) != PCIC_BRIDGE 78 || pci_get_subclass(dev) != PCIS_BRIDGE_HOST) 81 if (agp_find_caps(dev) == 0) 84 if (pci_get_class(dev) ! 113 agp_apple_attach(device_t dev) argument 166 agp_apple_detach(device_t dev) argument 190 agp_apple_get_aperture(device_t dev) argument 198 agp_apple_set_aperture(device_t dev, uint32_t aperture) argument 221 agp_apple_bind_page(device_t dev, vm_offset_t offset, vm_offset_t physical) argument 233 agp_apple_unbind_page(device_t dev, vm_offset_t offset) argument 245 agp_apple_flush_tlb(device_t dev) argument [all...] |
/freebsd-12-stable/sys/dev/mthca/ |
H A D | mthca_cmd.h | 244 int mthca_cmd_init(struct mthca_dev *dev); 245 void mthca_cmd_cleanup(struct mthca_dev *dev); 246 int mthca_cmd_use_events(struct mthca_dev *dev); 247 void mthca_cmd_use_polling(struct mthca_dev *dev); 248 void mthca_cmd_event(struct mthca_dev *dev, u16 token, 251 struct mthca_mailbox *mthca_alloc_mailbox(struct mthca_dev *dev, 253 void mthca_free_mailbox(struct mthca_dev *dev, struct mthca_mailbox *mailbox); 255 int mthca_SYS_EN(struct mthca_dev *dev); 256 int mthca_SYS_DIS(struct mthca_dev *dev); 257 int mthca_MAP_FA(struct mthca_dev *dev, struc [all...] |
/freebsd-12-stable/contrib/netbsd-tests/dev/fss/ |
H A D | t_fss.sh | 45 dd if=/dev/zero of=./image bs=32k count=64 47 newfs /dev/vnd0a 48 mount /dev/vnd0a ./m1 55 mount -o rdonly /dev/fss0 ./m2 68 umount /dev/fss0 || true 70 umount /dev/vnd0a || true 75 umount /dev/vnd0a || true 77 umount /dev/fss0 || true
|
/freebsd-12-stable/contrib/libevent/ |
H A D | autogen.sh | 4 if command -v gmake >/dev/null 2>/dev/null; then 7 $MAKE maintainer-clean >/dev/null 2>/dev/null 9 if [ -x "`which autoreconf 2>/dev/null`" ] ; then
|
/freebsd-12-stable/contrib/libpcap/ChmodBPF/ |
H A D | ChmodBPF | 22 chgrp admin /dev/bpf* 23 chmod g+rw /dev/bpf*
|
/freebsd-12-stable/sys/dev/aic/ |
H A D | aic_isa.c | 45 #include <dev/aic/aic6360reg.h> 46 #include <dev/aic/aicvar.h> 73 aic_isa_alloc_resources(device_t dev) argument 75 struct aic_isa_softc *sc = device_get_softc(dev); 81 sc->sc_port = bus_alloc_resource_anywhere(dev, SYS_RES_IOPORT, &rid, 84 device_printf(dev, "I/O port allocation failed\n"); 88 if (isa_get_irq(dev) != -1) { 90 sc->sc_irq = bus_alloc_resource_any(dev, SYS_RES_IRQ, &rid, 93 device_printf(dev, "IRQ allocation failed\n"); 94 aic_isa_release_resources(dev); 117 aic_isa_release_resources(device_t dev) argument 132 aic_isa_probe(device_t dev) argument 177 aic_isa_attach(device_t dev) argument 207 aic_isa_detach(device_t dev) argument [all...] |
H A D | aic_pccard.c | 44 #include <dev/aic/aicvar.h> 45 #include <dev/pccard/pccardvar.h> 74 aic_pccard_alloc_resources(device_t dev) argument 76 struct aic_pccard_softc *sc = device_get_softc(dev); 82 sc->sc_port = bus_alloc_resource_anywhere(dev, SYS_RES_IOPORT, &rid, 88 sc->sc_irq = bus_alloc_resource_any(dev, SYS_RES_IRQ, &rid, RF_ACTIVE); 90 aic_pccard_release_resources(dev); 94 sc->sc_aic.dev = dev; 101 aic_pccard_release_resources(device_t dev) argument 114 aic_pccard_probe(device_t dev) argument 131 aic_pccard_attach(device_t dev) argument 162 aic_pccard_detach(device_t dev) argument [all...] |
/freebsd-12-stable/lib/libc/gen/ |
H A D | devname.c | 46 devname_r(dev_t dev, mode_t type, char *buf, int len) argument 51 if (dev == NODEV || !(S_ISCHR(type) || S_ISBLK(dev))) { 58 i = sysctlbyname("kern.devname", buf, &j, &dev, sizeof (dev)); 65 S_ISCHR(type) ? 'C' : 'B', (uintmax_t)dev); 70 devname(dev_t dev, mode_t type) argument 74 return (devname_r(dev, type, buf, sizeof(buf)));
|