/freebsd-11.0-release/sys/dev/sn/ |
H A D | if_sn_isa.c | 28 __FBSDID("$FreeBSD: releng/11.0/sys/dev/sn/if_sn_isa.c 257179 2013-10-26 18:18:50Z glebius $"); 47 #include <dev/sn/if_snvar.h> 53 sn_isa_probe (device_t dev) argument 55 if (isa_get_logicalid(dev)) /* skip PnP probes */ 57 if (sn_probe(dev) != 0) 63 sn_isa_attach (device_t dev) argument 65 struct sn_softc *sc = device_get_softc(dev); 68 sc->dev = dev; 69 err = sn_activate(dev); [all...] |
/freebsd-11.0-release/sbin/fdisk/ |
H A D | runtest.sh | 6 if [ ! -c /dev/${MD} ] ; then 14 dd if=/dev/zero of=tmp count=1 > /dev/null 2>&1 15 ./fdisk -b tmp -I $MD > /dev/null 2>&1 18 c=`dd if=/dev/${MD} count=1 2>/dev/null | md5`
|
/freebsd-11.0-release/sys/arm/xscale/ixp425/ |
H A D | cambria_fled.c | 38 #include <dev/iicbus/iiconf.h> 39 #include <dev/led/led.h> 51 fled_probe(device_t dev) argument 53 device_set_desc(dev, "Gateworks Cambria Front Panel LED"); 64 device_t dev = arg; local 67 (void) iicbus_transfer(dev, msgs, 1); 71 fled_attach(device_t dev) argument 73 struct fled_softc *sc = device_get_softc(dev); 75 sc->sc_led = led_create(fled_cb, dev, "front"); 77 fled_cb(dev, 83 fled_detach(device_t dev) argument [all...] |
/freebsd-11.0-release/sys/xen/ |
H A D | xen_pci.h | 32 void xen_pci_enable_msi_method(device_t dev, device_t child, uint64_t address, 34 void xen_pci_disable_msi_method(device_t dev, device_t child); 35 void xen_pci_child_added_method(device_t dev, device_t child);
|
/freebsd-11.0-release/tests/sys/geom/class/raid3/ |
H A D | 1_test.sh | 12 graid3 label $name /dev/${us0} /dev/${us1} /dev/${us2} 2>/dev/null || exit 1 17 mediasize=`diskinfo /dev/raid3/${name} | awk '{print $3}'` 23 sectorsize=`diskinfo /dev/raid3/${name} | awk '{print $2}'`
|
H A D | 7_test.sh | 18 dd if=/dev/random of=${src} bs=$ddbs count=$nblocks2 >/dev/null 2>&1 20 graid3 label $name /dev/${us0} /dev/${us1} /dev/${us2} || exit 1 23 dd if=${src} of=/dev/raid3/${name} bs=$ddbs count=$nblocks2 >/dev/null 2>&1 29 dd if=/dev/zero of=/dev/${us2} bs=512 count=`expr $nblocks1 + 1` >/dev/nul [all...] |
H A D | 9_test.sh | 18 dd if=/dev/random of=${src} bs=$ddbs count=$nblocks2 >/dev/null 2>&1 20 graid3 label $name /dev/${us0} /dev/${us1} /dev/${us2} || exit 1 27 dd if=/dev/zero of=/dev/${us2} bs=512 count=`expr $nblocks1 + 1` >/dev/null 2>&1 28 dd if=${src} of=/dev/raid3/${name} bs=$ddbs count=$nblocks2 >/dev/nul [all...] |
/freebsd-11.0-release/tests/sys/geom/class/shsec/ |
H A D | 1_test.sh | 12 gshsec label $name /dev/${us0} /dev/${us1} /dev/${us2} 2>/dev/null || exit 1 17 mediasize=`diskinfo /dev/shsec/${name} | awk '{print $3}'` 23 sectorsize=`diskinfo /dev/shsec/${name} | awk '{print $2}'`
|
H A D | 2_test.sh | 13 dd if=/dev/random of=${src} count=$nblocks1 >/dev/null 2>&1 19 gshsec label $name /dev/$us0 /dev/$us1 /dev/$us2 || exit 1 22 dd if=${src} of=/dev/shsec/${name} count=$nblocks1 >/dev/null 2>&1 24 dd if=/dev/shsec/${name} of=${dst} count=$nblocks1 >/dev/null 2>&1 31 dd if=/dev/ [all...] |
/freebsd-11.0-release/sys/powerpc/ofw/ |
H A D | ofw_pcibus.h | 35 #include <dev/ofw/ofw_bus.h> 36 #include <dev/ofw/ofw_pci.h> 37 #include <dev/pci/pcivar.h>
|
/freebsd-11.0-release/sys/powerpc/powermac/ |
H A D | vcoregpio.c | 40 #include <dev/ofw/ofw_bus.h> 41 #include <dev/ofw/openfirm.h> 68 vcoregpio_probe(device_t dev) argument 70 const char *name = ofw_bus_get_name(dev); 75 device_set_desc(dev, "CPU Core Voltage Control"); 80 vcoregpio_attach(device_t dev) argument 82 EVENTHANDLER_REGISTER(cpufreq_pre_change, vcoregpio_pre_change, dev, 84 EVENTHANDLER_REGISTER(cpufreq_post_change, vcoregpio_post_change, dev, 91 vcoregpio_pre_change(device_t dev, const struct cf_level *level) argument 98 macgpio_write(dev, GPIO_DDR_OUTPU 104 vcoregpio_post_change(device_t dev, const struct cf_level *level) argument [all...] |
/freebsd-11.0-release/usr.sbin/diskinfo/ |
H A D | Makefile | 11 ./${PROG} /dev/ad4 md50 12 ./${PROG} -v /dev/ad4 md50 13 ./${PROG} -t /dev/ad4
|
/freebsd-11.0-release/usr.sbin/ppp/ |
H A D | udp.c | 69 struct device dev; /* What struct physical knows about */ member in struct:udpdevice 85 struct udpdevice *dev = device2udp(p->handler); local 88 switch (dev->connected) { 95 ret = sendto(p->fd, v, n, 0, (struct sockaddr *)&dev->sock, 96 sizeof dev->sock); 99 if (dev->connected == UDP_MAYBEUNCONNECTED) { 101 dev->connected = UDP_CONNECTED; 104 dev->connected = UDP_UNCONNECTED; 113 struct udpdevice *dev = device2udp(p->handler); local 116 if (dev 134 struct udpdevice *dev = device2udp(p->handler); local 180 struct udpdevice *dev = (struct udpdevice *)iov[(*niov)++].iov_base; local 202 struct udpdevice *dev; local 256 struct udpdevice *dev; local [all...] |
/freebsd-11.0-release/sys/dev/mii/ |
H A D | mii_bitbang.c | 38 __FBSDID("$FreeBSD: releng/11.0/sys/dev/mii/mii_bitbang.c 226995 2011-11-01 16:13:59Z marius $"); 44 #include <dev/mii/mii.h> 45 #include <dev/mii/mii_bitbang.h> 49 static void mii_bitbang_sendbits(device_t dev, mii_bitbang_ops_t ops, 54 ops->mbo_write(dev, (x)); \ 58 #define MREAD ops->mbo_read(dev) 72 mii_bitbang_sync(device_t dev, mii_bitbang_ops_t ops) argument 92 mii_bitbang_sendbits(device_t dev, mii_bitbang_ops_t ops, uint32_t data, argument 118 mii_bitbang_readreg(device_t dev, mii_bitbang_ops_t ops, int phy, int reg) argument 122 mii_bitbang_sync(dev, op 166 mii_bitbang_writereg(device_t dev, mii_bitbang_ops_t ops, int phy, int reg, int val) argument [all...] |
/freebsd-11.0-release/sys/dev/bhnd/cores/chipc/ |
H A D | chipc_slicer.c | 31 __FBSDID("$FreeBSD: releng/11.0/sys/dev/bhnd/cores/chipc/chipc_slicer.c 302189 2016-06-25 04:33:00Z landonf $"); 50 #include <dev/bhnd/bhnd_debug.h> 54 #include <dev/cfi/cfi_var.h> 57 static int chipc_slicer_walk(device_t dev, struct resource *res, 78 chipc_slicer_cfi(device_t dev, struct flash_slice *slices, int *nslices) argument 84 if (device_get_devclass(dev) != devclass_find("cfi")) 88 if ((parent = device_get_parent(dev)) == NULL) { 89 BHND_ERROR_DEV(dev, "no found ChipCommon device"); 94 BHND_ERROR_DEV(dev, "no found ChipCommon device"); 98 sc = device_get_softc(dev); 103 chipc_slicer_spi(device_t dev, struct flash_slice *slices, int *nslices) argument 137 chipc_slicer_walk(device_t dev, struct resource *res, struct flash_slice *slices, int *nslices) argument [all...] |
/freebsd-11.0-release/sys/mips/atheros/ |
H A D | ar71xx_fixup.c | 53 #include <dev/pci/pcivar.h> 54 #include <dev/pci/pcireg.h> 56 #include <dev/pci/pcib_private.h> 75 ar71xx_pci_slot_create_eeprom_firmware(device_t dev, u_int bus, u_int slot, argument 83 device_printf(dev, "EEPROM firmware: 0x%lx @ %d bytes\n", 88 device_printf(dev, 103 device_get_name(dev), device_get_unit(dev), bus, slot, func); 106 device_printf(dev, "%s: firmware_register (%s) failed\n", 111 device_printf(dev, "devic [all...] |
/freebsd-11.0-release/sys/dev/sbni/ |
H A D | if_sbni_isa.c | 30 __FBSDID("$FreeBSD: releng/11.0/sys/dev/sbni/if_sbni_isa.c 296137 2016-02-27 03:38:01Z jhibbits $"); 50 #include <dev/sbni/if_sbnireg.h> 51 #include <dev/sbni/if_sbnivar.h> 78 sbni_probe_isa(device_t dev) argument 83 error = ISA_PNP_PROBE(device_get_parent(dev), dev, sbni_ids); 87 sc = device_get_softc(dev); 89 sc->io_res = bus_alloc_resource_anywhere(dev, SYS_RES_IOPORT, 102 device_set_desc(dev, "Granch SBNI12/ISA adapter"); 108 sbni_attach_isa(device_t dev) argument [all...] |
/freebsd-11.0-release/sys/dev/snc/ |
H A D | if_snc_pccard.c | 30 __FBSDID("$FreeBSD: releng/11.0/sys/dev/snc/if_snc_pccard.c 292079 2015-12-11 05:27:56Z imp $"); 56 #include <dev/snc/dp83932var.h> 57 #include <dev/snc/if_sncvar.h> 58 #include <dev/snc/if_sncreg.h> 60 #include <dev/pccard/pccardvar.h> 61 #include <dev/pccard/pccard_cis.h> 101 snc_pccard_detach(device_t dev) argument 103 struct snc_softc *sc = device_get_softc(dev); 107 device_printf(dev, "already unloaded\n"); 116 bus_teardown_intr(dev, s 126 snc_pccard_probe(device_t dev) argument 139 snc_pccard_attach(device_t dev) argument [all...] |
/freebsd-11.0-release/sys/arm/ti/am335x/ |
H A D | am335x_pwmss.c | 44 #include <dev/fdt/fdt_common.h> 45 #include <dev/fdt/simplebus.h> 46 #include <dev/ofw/openfirm.h> 47 #include <dev/ofw/ofw_bus.h> 48 #include <dev/ofw/ofw_bus_subr.h> 82 am335x_pwmss_probe(device_t dev) argument 85 if (!ofw_bus_status_okay(dev)) 88 if (!ofw_bus_is_compatible(dev, "ti,am33xx-pwmss")) 91 device_set_desc(dev, "AM335x PWM"); 97 am335x_pwmss_attach(device_t dev) argument 154 am335x_pwmss_detach(device_t dev) argument [all...] |
/freebsd-11.0-release/sys/dev/drm/ |
H A D | drm_ioctl.c | 32 __FBSDID("$FreeBSD: releng/11.0/sys/dev/drm/drm_ioctl.c 183833 2008-10-13 18:03:27Z rnoland $"); 39 #include "dev/drm/drmP.h" 47 int drm_getunique(struct drm_device *dev, void *data, argument 52 if (u->unique_len >= dev->unique_len) { 53 if (DRM_COPY_TO_USER(u->unique, dev->unique, dev->unique_len)) 56 u->unique_len = dev->unique_len; 64 int drm_setunique(struct drm_device *dev, void *data, argument 96 if ((domain != dev->pci_domain) || 97 (bus != dev 120 drm_set_busid(struct drm_device *dev) argument 145 drm_getmap(struct drm_device *dev, void *data, struct drm_file *file_priv) argument 181 drm_getclient(struct drm_device *dev, void *data, struct drm_file *file_priv) argument 208 drm_getstats(struct drm_device *dev, void *data, struct drm_file *file_priv) argument 236 drm_setversion(struct drm_device *dev, void *data, struct drm_file *file_priv) argument 281 drm_noop(struct drm_device *dev, void *data, struct drm_file *file_priv) argument [all...] |
/freebsd-11.0-release/sys/dev/pcf/ |
H A D | envctrl.c | 31 __FBSDID("$FreeBSD: releng/11.0/sys/dev/pcf/envctrl.c 181332 2008-08-05 17:39:37Z jhb $"); 51 #include <dev/ofw/ofw_bus.h> 58 #include <dev/iicbus/iicbus.h> 59 #include <dev/iicbus/iiconf.h> 60 #include <dev/pcf/pcfvar.h> 96 envctrl_probe(device_t dev) argument 99 if (strcmp("SUNW,envctrl", ofw_bus_get_name(dev)) == 0) { 100 device_set_desc(dev, "EBus SUNW,envctrl"); 107 envctrl_attach(device_t dev) argument 112 sc = DEVTOSOFTC(dev); 167 envctrl_detach(device_t dev) argument [all...] |
/freebsd-11.0-release/sys/dev/gem/ |
H A D | if_gem_sbus.c | 32 __FBSDID("$FreeBSD: releng/11.0/sys/dev/gem/if_gem_sbus.c 227843 2011-11-22 21:28:20Z marius $"); 52 #include <dev/ofw/ofw_bus.h> 60 #include <dev/gem/if_gemreg.h> 61 #include <dev/gem/if_gemvar.h> 100 gem_sbus_probe(device_t dev) argument 103 if (strcmp(ofw_bus_get_name(dev), "network") == 0 && 104 ofw_bus_get_compat(dev) != NULL && 105 strcmp(ofw_bus_get_compat(dev), "SUNW,sbus-gem") == 0) { 106 device_set_desc(dev, "Sun GEM Gigabit Ethernet"); 121 gem_sbus_attach(device_t dev) argument 182 gem_sbus_detach(device_t dev) argument 195 gem_sbus_suspend(device_t dev) argument 203 gem_sbus_resume(device_t dev) argument [all...] |
/freebsd-11.0-release/sys/dev/scd/ |
H A D | scd_isa.c | 5 __FBSDID("$FreeBSD: releng/11.0/sys/dev/scd/scd_isa.c 274679 2014-11-18 22:02:37Z jhb $"); 25 #include <dev/scd/scdreg.h> 26 #include <dev/scd/scdvar.h> 36 scd_isa_probe (device_t dev) argument 42 if (isa_get_vendorid(dev)) 46 if (bus_get_resource_start(dev, SYS_RES_IOPORT, 0) == 0) 49 sc = device_get_softc(dev); 50 sc->dev = dev; 53 error = scd_alloc_resources(dev); 71 scd_isa_attach(device_t dev) argument 105 scd_isa_detach(device_t dev) argument 121 scd_alloc_resources(device_t dev) argument 145 scd_release_resources(device_t dev) argument [all...] |
/freebsd-11.0-release/tests/sys/geom/class/mirror/ |
H A D | 2_test.sh | 15 dd if=/dev/random of=${src} bs=$ddbs count=$nblocks2 >/dev/null 2>&1 21 gmirror label -b $balance $name /dev/${us0} /dev/${us1} /dev/${us2} || exit 1 24 dd if=${src} of=/dev/mirror/${name} bs=$ddbs count=$nblocks2 >/dev/null 2>&1 26 dd if=/dev/mirror/${name} of=${dst} bs=$ddbs count=$nblocks2 >/dev/null 2>&1 32 dd if=/dev/ [all...] |
/freebsd-11.0-release/sys/dev/ata/ |
H A D | ata-pci.c | 28 __FBSDID("$FreeBSD: releng/11.0/sys/dev/ata/ata-pci.c 294883 2016-01-27 02:23:54Z jhibbits $"); 45 #include <dev/pci/pcivar.h> 46 #include <dev/pci/pcireg.h> 47 #include <dev/ata/ata-all.h> 48 #include <dev/ata/ata-pci.h> 60 ata_pci_probe(device_t dev) argument 62 struct ata_pci_controller *ctlr = device_get_softc(dev); 66 if (pci_get_class(dev) != PCIC_STORAGE) 70 if (pci_get_subclass(dev) != PCIS_STORAGE_IDE) 73 sprintf(buffer, "%s ATA controller", ata_pcivendor2str(dev)); 82 ata_pci_attach(device_t dev) argument 132 ata_pci_detach(device_t dev) argument 166 ata_pci_suspend(device_t dev) argument 178 ata_pci_resume(device_t dev) argument 190 ata_pci_read_ivar(device_t dev, device_t child, int which, uintptr_t *result) argument 197 ata_pci_write_ivar(device_t dev, device_t child, int which, uintptr_t value) argument 204 ata_pci_read_config(device_t dev, device_t child, int reg, int width) argument 211 ata_pci_write_config(device_t dev, device_t child, int reg, uint32_t val, int width) argument 219 ata_pci_alloc_resource(device_t dev, device_t child, int type, int *rid, rman_res_t start, rman_res_t end, rman_res_t count, u_int flags) argument 280 ata_pci_release_resource(device_t dev, device_t child, int type, int rid, struct resource *r) argument 325 ata_pci_setup_intr(device_t dev, device_t child, struct resource *irq, int flags, driver_filter_t *filter, driver_intr_t *function, void *argument, void **cookiep) argument 354 ata_pci_teardown_intr(device_t dev, device_t child, struct resource *irq, void *cookie) argument 376 ata_generic_setmode(device_t dev, int target, int mode) argument 383 ata_generic_chipinit(device_t dev) argument 394 ata_pci_ch_attach(device_t dev) argument 433 ata_pci_ch_detach(device_t dev) argument 448 ata_pci_status(device_t dev) argument 473 ata_pci_hw(device_t dev) argument 516 ata_pci_dmareset(device_t dev) argument 532 ata_pci_dmainit(device_t dev) argument 543 ata_pci_dmafini(device_t dev) argument 550 ata_pci_print_child(device_t dev, device_t child) argument 563 ata_pci_child_location_str(device_t dev, device_t child, char *buf, size_t buflen) argument 619 ata_pcichannel_probe(device_t dev) argument 630 ata_pcichannel_attach(device_t dev) argument 653 ata_pcichannel_detach(device_t dev) argument 672 ata_pcichannel_suspend(device_t dev) argument 691 ata_pcichannel_resume(device_t dev) argument 707 ata_pcichannel_reset(device_t dev) argument 724 ata_pcichannel_setmode(device_t dev, int target, int mode) argument 735 ata_pcichannel_getrev(device_t dev, int target) argument 778 ata_legacy(device_t dev) argument 806 ata_setup_interrupt(device_t dev, void *intr_func) argument 842 ata_set_desc(device_t dev) argument 854 ata_match_chip(device_t dev, const struct ata_chip_id *index) argument 870 ata_find_chip(device_t dev, const struct ata_chip_id *index, int slot) argument 895 ata_pcivendor2str(device_t dev) argument [all...] |