/freebsd-9.3-release/sys/dev/sio/ |
H A D | sio_puc.c | 42 #include <dev/puc/puc_bus.h> 44 #include <dev/sio/siovar.h> 45 #include <dev/sio/sioreg.h> 47 static int sio_puc_attach(device_t dev); 48 static int sio_puc_probe(device_t dev); 66 sio_puc_attach(device_t dev) argument 70 if (BUS_READ_IVAR(device_get_parent(dev), dev, PUC_IVAR_CLOCK, 73 return (sioattach(dev, 0, rclk)); 77 sio_puc_probe(device_t dev) argument [all...] |
/freebsd-9.3-release/sys/dev/stg/ |
H A D | tmc18c30_pci.c | 55 #include <dev/pci/pcireg.h> 56 #include <dev/pci/pcivar.h> 61 #include <dev/stg/tmc18c30reg.h> 62 #include <dev/stg/tmc18c30var.h> 63 #include <dev/stg/tmc18c30.h> 75 stg_pci_probe(device_t dev) argument 77 u_int32_t type = pci_get_devid(dev); 83 device_set_desc(dev, stg->desc); 90 stg_pci_attach(device_t dev) argument 92 struct stg_softc *sc = device_get_softc(dev); [all...] |
/freebsd-9.3-release/sys/mips/cavium/octe/ |
H A D | octebus.c | 52 static int octebus_probe(device_t dev); 53 static int octebus_attach(device_t dev); 54 static int octebus_detach(device_t dev); 55 static int octebus_shutdown(device_t dev); 88 octebus_probe(device_t dev) argument 90 if (device_get_unit(dev) != 0) 92 device_set_desc(dev, "Cavium Octeon Ethernet pseudo-bus"); 97 octebus_attach(device_t dev) argument 102 sc = device_get_softc(dev); 103 sc->sc_dev = dev; 113 octebus_detach(device_t dev) argument 120 octebus_shutdown(device_t dev) argument [all...] |
/freebsd-9.3-release/sys/ofed/drivers/net/mlx4/ |
H A D | mlx4.h | 92 dev_printk(KERN_DEBUG, &mdev->pdev->dev, format, ## arg); \ 96 dev_err(&mdev->pdev->dev, format, ## arg) 98 dev_info(&mdev->pdev->dev, format, ## arg) 100 dev_warn(&mdev->pdev->dev, format, ## arg) 136 struct mlx4_dev *dev; member in struct:mlx4_eq 272 struct mlx4_dev *dev; member in struct:mlx4_port_info 282 struct mlx4_dev *dev; member in struct:mlx4_sense 293 struct mlx4_dev dev; member in struct:mlx4_priv 334 static inline struct mlx4_priv *mlx4_priv(struct mlx4_dev *dev) argument 336 return container_of(dev, struc [all...] |
H A D | catas.c | 50 static void dump_err_buf(struct mlx4_dev *dev) argument 52 struct mlx4_priv *priv = mlx4_priv(dev); 56 mlx4_err(dev, "Internal error detected:\n"); 58 mlx4_err(dev, " buf[%02x]: %08x\n", 64 struct mlx4_dev *dev = (struct mlx4_dev *) dev_ptr; local 65 struct mlx4_priv *priv = mlx4_priv(dev); 68 dump_err_buf(dev); 70 mlx4_dispatch_event(dev, MLX4_DEV_EVENT_CATASTROPHIC_ERROR, 0); 87 struct mlx4_dev *dev; local 100 struct pci_dev *pdev = priv->dev 115 mlx4_start_catas_poll(struct mlx4_dev *dev) argument 141 mlx4_stop_catas_poll(struct mlx4_dev *dev) argument [all...] |
/freebsd-9.3-release/sys/dev/drm/ |
H A D | drm_drawable.c | 39 #include "dev/drm/drmP.h" 62 drm_get_drawable_info(struct drm_device *dev, int handle) argument 67 result = RB_FIND(drawable_tree, &dev->drw_head, &find); 72 int drm_adddraw(struct drm_device *dev, void *data, struct drm_file *file_priv) argument 82 info->handle = alloc_unr(dev->drw_unrhdr); 83 DRM_SPINLOCK(&dev->drw_lock); 84 RB_INSERT(drawable_tree, &dev->drw_head, info); 86 DRM_SPINUNLOCK(&dev->drw_lock); 93 int drm_rmdraw(struct drm_device *dev, void *data, struct drm_file *file_priv) argument 98 DRM_SPINLOCK(&dev 114 drm_update_draw(struct drm_device *dev, void *data, struct drm_file *file_priv) argument 156 drm_drawable_free_all(struct drm_device *dev) argument [all...] |
/freebsd-9.3-release/sys/dev/drm2/ |
H A D | drm_auth.c | 39 #include <dev/drm2/drmP.h> 49 static struct drm_file *drm_find_file(struct drm_device *dev, drm_magic_t magic) argument 54 DRM_LOCK_ASSERT(dev); 56 for (pt = dev->magiclist[hash].head; pt; pt = pt->next) { 69 static int drm_add_magic(struct drm_device *dev, struct drm_file *priv, argument 77 DRM_LOCK_ASSERT(dev); 87 if (dev->magiclist[hash].tail) { 88 dev->magiclist[hash].tail->next = entry; 89 dev->magiclist[hash].tail = entry; 91 dev 102 drm_remove_magic(struct drm_device *dev, drm_magic_t magic) argument 140 drm_getmagic(struct drm_device *dev, void *data, struct drm_file *file_priv) argument 171 drm_authmagic(struct drm_device *dev, void *data, struct drm_file *file_priv) argument [all...] |
H A D | drm_dma.c | 42 #include <dev/drm2/drmP.h> 44 int drm_dma_setup(struct drm_device *dev) argument 47 dev->dma = malloc(sizeof(*dev->dma), DRM_MEM_DRIVER, M_NOWAIT | M_ZERO); 48 if (dev->dma == NULL) 51 DRM_SPININIT(&dev->dma_lock, "drmdma"); 56 void drm_dma_takedown(struct drm_device *dev) argument 58 drm_device_dma_t *dma = dev->dma; 71 drm_pci_free(dev, dma->bufs[i].seglist[j]); 87 free(dev 93 drm_free_buffer(struct drm_device *dev, drm_buf_t *buf) argument 103 drm_reclaim_buffers(struct drm_device *dev, struct drm_file *file_priv) argument 129 drm_dma(struct drm_device *dev, void *data, struct drm_file *file_priv) argument [all...] |
/freebsd-9.3-release/sys/dev/pcf/ |
H A D | pcf_isa.c | 55 #include <dev/iicbus/iiconf.h> 56 #include <dev/pcf/pcfvar.h> 101 pcf_isa_probe(device_t dev) argument 107 if (isa_get_logicalid(dev)) 111 bus_get_resource(dev, SYS_RES_IOPORT, rid, &start, &count); 119 device_set_desc(dev, "PCF8584 I2C bus controller"); 125 pcf_isa_attach(device_t dev) argument 130 sc = DEVTOSOFTC(dev); 131 mtx_init(&sc->pcf_lock, device_get_nameunit(dev), "pcf", MTX_DEF); 134 sc->res_ioport = bus_alloc_resource_any(dev, SYS_RES_IOPOR 187 pcf_isa_detach(device_t dev) argument [all...] |
/freebsd-9.3-release/sys/dev/snc/ |
H A D | if_snc_cbus.c | 57 #include <dev/snc/dp83932var.h> 58 #include <dev/snc/if_sncreg.h> 59 #include <dev/snc/if_sncvar.h> 71 snc_isapnp_reconfig(device_t dev) argument 73 struct isa_device *idev = DEVTOISA(dev); 81 if (bus_get_resource(dev, SYS_RES_MEMORY, rid, &start, &count)) 89 if (bus_get_resource(dev, SYS_RES_IOPORT, rid, &start, &count)) 97 if (bus_get_resource(dev, SYS_RES_IRQ, rid, &start, &count)) 103 if (bus_get_resource(dev, SYS_RES_DRQ, rid, &start, &count)) 113 snc_isa_probe(device_t dev) argument 178 snc_isa_attach(device_t dev) argument [all...] |
/freebsd-9.3-release/sys/ofed/drivers/infiniband/hw/mthca/ |
H A D | mthca_mcg.c | 63 static int find_mgm(struct mthca_dev *dev, argument 73 mailbox = mthca_alloc_mailbox(dev, GFP_KERNEL); 80 err = mthca_MGID_HASH(dev, mailbox, hash, &status); 84 mthca_err(dev, "MGID_HASH returned status %02x\n", status); 90 mthca_dbg(dev, "Hash for %pI6 is %04x\n", gid, *hash); 96 err = mthca_READ_MGM(dev, *index, mgm_mailbox, &status); 100 mthca_err(dev, "READ_MGM returned status %02x\n", status); 107 mthca_err(dev, "Found zero MGID in AMGM.\n"); 123 mthca_free_mailbox(dev, mailbox); 129 struct mthca_dev *dev local 236 struct mthca_dev *dev = to_mdev(ibqp->device); local 352 mthca_init_mcg_table(struct mthca_dev *dev) argument 369 mthca_cleanup_mcg_table(struct mthca_dev *dev) argument [all...] |
/freebsd-9.3-release/sys/dev/agp/ |
H A D | agp_ali.c | 42 #include <dev/agp/agppriv.h> 43 #include <dev/agp/agpreg.h> 44 #include <dev/pci/pcivar.h> 45 #include <dev/pci/pcireg.h> 58 agp_ali_match(device_t dev) argument 60 if (pci_get_class(dev) != PCIC_BRIDGE 61 || pci_get_subclass(dev) != PCIS_BRIDGE_HOST) 64 if (agp_find_caps(dev) == 0) 67 switch (pci_get_devid(dev)) { 80 agp_ali_probe(device_t dev) argument 96 agp_ali_attach(device_t dev) argument 141 agp_ali_detach(device_t dev) argument 179 agp_ali_get_aperture(device_t dev) argument 192 agp_ali_set_aperture(device_t dev, u_int32_t aperture) argument 209 agp_ali_bind_page(device_t dev, vm_offset_t offset, vm_offset_t physical) argument 221 agp_ali_unbind_page(device_t dev, vm_offset_t offset) argument 233 agp_ali_flush_tlb(device_t dev) argument [all...] |
H A D | agp_sis.c | 42 #include <dev/agp/agppriv.h> 43 #include <dev/agp/agpreg.h> 44 #include <dev/pci/pcivar.h> 45 #include <dev/pci/pcireg.h> 58 agp_sis_match(device_t dev) argument 60 if (pci_get_class(dev) != PCIC_BRIDGE 61 || pci_get_subclass(dev) != PCIS_BRIDGE_HOST) 64 if (agp_find_caps(dev) == 0) 67 switch (pci_get_devid(dev)) { 112 agp_sis_probe(device_t dev) argument 128 agp_sis_attach(device_t dev) argument 173 agp_sis_detach(device_t dev) argument 195 agp_sis_get_aperture(device_t dev) argument 207 agp_sis_set_aperture(device_t dev, u_int32_t aperture) argument 230 agp_sis_bind_page(device_t dev, vm_offset_t offset, vm_offset_t physical) argument 242 agp_sis_unbind_page(device_t dev, vm_offset_t offset) argument 254 agp_sis_flush_tlb(device_t dev) argument [all...] |
/freebsd-9.3-release/sys/dev/aha/ |
H A D | aha_isa.c | 74 #include <dev/aha/ahareg.h> 104 aha_isa_probe(device_t dev) argument 109 struct aha_softc *aha = device_get_softc(dev); 117 aha->dev = dev; 119 if (ISA_PNP_PROBE(device_get_parent(dev), dev, aha_ids) == ENXIO) 123 aha->port = bus_alloc_resource(dev, SYS_RES_IOPORT, &port_rid, 135 bus_release_resource(dev, SYS_RES_IOPORT, port_rid, aha->port); 147 device_printf(dev, "Coul 187 aha_isa_attach(device_t dev) argument 281 aha_isa_detach(device_t dev) argument [all...] |
/freebsd-9.3-release/sys/dev/aic7xxx/ |
H A D | ahc_eisa.c | 29 * $Id: //depot/aic7xxx/freebsd/dev/aic7xxx/ahc_eisa.c#13 $ 35 #include <dev/aic7xxx/aic7xxx_osm.h> 37 #include <dev/eisa/eisaconf.h> 40 aic7770_probe(device_t dev) argument 54 entry = aic7770_find_device(eisa_get_id(dev)); 57 device_set_desc(dev, entry->name); 59 iobase = (eisa_get_slot(dev) * EISA_SLOT_SIZE) + AHC_EISA_SLOT_OFFSET; 61 eisa_add_iospace(dev, iobase, AHC_EISA_IOSIZE, RESVADDR_NONE); 64 regs = bus_alloc_resource_any(dev, SYS_RES_IOPORT, &rid, RF_ACTIVE); 66 device_printf(dev, "Unabl 106 aic7770_attach(device_t dev) argument [all...] |
/freebsd-9.3-release/sys/dev/ata/chipsets/ |
H A D | ata-cyrix.c | 48 #include <dev/pci/pcivar.h> 49 #include <dev/pci/pcireg.h> 50 #include <dev/ata/ata-all.h> 51 #include <dev/ata/ata-pci.h> 55 static int ata_cyrix_chipinit(device_t dev); 56 static int ata_cyrix_ch_attach(device_t dev); 57 static int ata_cyrix_setmode(device_t dev, int target, int mode); 63 ata_cyrix_probe(device_t dev) argument 65 struct ata_pci_controller *ctlr = device_get_softc(dev); 67 if (pci_get_devid(dev) 76 ata_cyrix_chipinit(device_t dev) argument 88 ata_cyrix_ch_attach(device_t dev) argument 98 ata_cyrix_setmode(device_t dev, int target, int mode) argument [all...] |
H A D | ata-national.c | 48 #include <dev/pci/pcivar.h> 49 #include <dev/pci/pcireg.h> 50 #include <dev/ata/ata-all.h> 51 #include <dev/ata/ata-pci.h> 55 static int ata_national_chipinit(device_t dev); 56 static int ata_national_ch_attach(device_t dev); 57 static int ata_national_setmode(device_t dev, int target, int mode); 63 ata_national_probe(device_t dev) argument 65 struct ata_pci_controller *ctlr = device_get_softc(dev); 68 if (pci_get_devid(dev) 77 ata_national_chipinit(device_t dev) argument 90 ata_national_ch_attach(device_t dev) argument 100 ata_national_setmode(device_t dev, int target, int mode) argument [all...] |
/freebsd-9.3-release/sys/dev/isci/scil/ |
H A D | scif_sas_high_priority_request_queue.h | 74 #include <dev/isci/scil/sci_types.h> 75 #include <dev/isci/scil/sci_base_object.h> 76 #include <dev/isci/scil/sci_pool.h> 77 #include <dev/isci/scil/scif_sas_domain.h> 78 #include <dev/isci/scil/scif_sas_internal_io_request.h>
|
/freebsd-9.3-release/sys/dev/mk48txx/ |
H A D | mk48txxvar.h | 34 typedef uint8_t (*mk48txx_nvrd_t)(device_t dev, int off); 35 typedef void (*mk48txx_nvwr_t)(device_t dev, int off, uint8_t v); 57 int mk48txx_attach(device_t dev); 60 int mk48txx_gettime(device_t dev, struct timespec *ts); 61 int mk48txx_settime(device_t dev, struct timespec *ts);
|
/freebsd-9.3-release/sys/dev/virtio/ |
H A D | virtio.h | 101 void virtio_describe(device_t dev, const char *msg, 107 void virtio_read_ivar(device_t dev, int ivar, uintptr_t *val); 108 void virtio_write_ivar(device_t dev, int ivar, uintptr_t val); 109 uint64_t virtio_negotiate_features(device_t dev, uint64_t child_features); 110 int virtio_alloc_virtqueues(device_t dev, int flags, int nvqs, 112 int virtio_setup_intr(device_t dev, enum intr_type type); 113 int virtio_with_feature(device_t dev, uint64_t feature); 114 void virtio_stop(device_t dev); 115 int virtio_reinit(device_t dev, uint64_t features); 116 void virtio_reinit_complete(device_t dev); [all...] |
/freebsd-9.3-release/usr.sbin/ppp/ |
H A D | netgraph.c | 92 struct device dev; /* What struct physical knows about */ member in struct:ngdevice 108 ng_MessageOut(struct ngdevice *dev, const char *data) argument 123 dev->dev.name, len, data); 137 dev->dev.name, len + 4, strerror(errno)); 154 if (NgSendAsciiMsg(dev->cs, path, fmt, data) < 0) { 156 dev->dev.name, path, fmt, data, strerror(errno)); 170 struct ngdevice *dev local 223 struct ngdevice *dev = device2ng(p->handler); local 250 struct ngdevice *dev = device2ng(p->handler); local 272 struct ngdevice *dev = device2ng(p->handler); local 284 struct ngdevice *dev; local 326 struct ngdevice *dev = (struct ngdevice *)iov[(*niov)++].iov_base; local 356 struct ngdevice *dev = device2ng(p->handler); local 382 struct ngdevice *dev = device2ng(p->handler); local 396 struct ngdevice *dev = device2ng(p->handler); local 406 ng_Abandon(struct ngdevice *dev, struct physical *p) argument 461 struct ngdevice *dev; local [all...] |
/freebsd-9.3-release/contrib/mknod/ |
H A D | pack_dev.c | 69 portdev_t dev = 0; local 72 dev = makedev(numbers[0], numbers[1]); 73 if ((u_long)major(dev) != numbers[0]) 75 else if ((u_long)minor(dev) != numbers[1]) 79 return (dev); 86 portdev_t dev = 0; local 89 dev = makedev_netbsd(numbers[0], numbers[1]); 90 if ((u_long)major_netbsd(dev) != numbers[0]) 92 else if ((u_long)minor_netbsd(dev) != numbers[1]) 96 return (dev); 108 portdev_t dev = 0; local 130 portdev_t dev = 0; local 152 portdev_t dev = 0; local 174 portdev_t dev = 0; local 196 portdev_t dev = 0; local 220 portdev_t dev = 0; local [all...] |
/freebsd-9.3-release/etc/rc.d/ |
H A D | atm1 | 60 for dev in ${atm_load} ; do 61 load_kld ${dev} || return 1 65 atmdev=`atm sh stat int | while read dev junk; do 66 case ${dev} in 68 echo "${dev} " 71 echo "${dev} " 74 echo "${dev} " 79 echo "${dev} " 82 echo "${dev} " 85 echo "${dev} " [all...] |
/freebsd-9.3-release/release/picobsd/mfs_tree/etc/ |
H A D | rc.serial | 23 comcontrol /dev/tty$ci$i dtrwait 300 drainwait 0 24 stty </dev/ttyi$ci$i -clocal crtscts hupcl 9600 reprint ^R 25 stty </dev/ttyl$ci$i -clocal -crtscts -hupcl 0 26 stty </dev/cuai$co$i -clocal crtscts hupcl 9600 reprint ^R 27 stty </dev/cual$co$i -clocal -crtscts -hupcl 0 40 stty </dev/ttyi$ci$i reprint undef 41 stty </dev/cuai$co$i reprint undef 43 stty </dev/ttyl$ci$i clocal 46 stty </dev/ttyl$ci$i 300 47 stty </dev/cua [all...] |
/freebsd-9.3-release/sys/arm/xscale/ixp425/ |
H A D | uart_bus_ixp425.c | 38 #include <dev/pci/pcivar.h> 39 #include <dev/ic/ns16550.h> 41 #include <dev/uart/uart.h> 42 #include <dev/uart/uart_bus.h> 43 #include <dev/uart/uart_cpu.h> 50 static int uart_ixp425_probe(device_t dev); 68 uart_ixp425_probe(device_t dev) argument 71 int unit = device_get_unit(dev); 74 sc = device_get_softc(dev); 79 device_printf(dev, "rcl [all...] |