/freebsd-11-stable/sys/dev/mlx4/ |
H A D | driver.h | 36 #include <dev/mlx4/device.h> 57 void * (*add) (struct mlx4_dev *dev); 58 void (*remove)(struct mlx4_dev *dev, void *context); 59 void (*event) (struct mlx4_dev *dev, void *context, 61 void * (*get_dev)(struct mlx4_dev *dev, void *context, u8 port); 62 void (*activate)(struct mlx4_dev *dev, void *context); 71 int mlx4_bond(struct mlx4_dev *dev); 72 int mlx4_unbond(struct mlx4_dev *dev); 73 static inline int mlx4_is_bonded(struct mlx4_dev *dev) argument 75 return !!(dev 78 mlx4_is_mf_bonded(struct mlx4_dev *dev) argument [all...] |
/freebsd-11-stable/sys/dev/pci/ |
H A D | hostb_pci.c | 28 __FBSDID("$FreeBSD: stable/11/sys/dev/pci/hostb_pci.c 331722 2018-03-29 02:50:57Z eadler $"); 35 #include <dev/pci/pcivar.h> 36 #include <dev/pci/pcireg.h> 46 pci_hostb_probe(device_t dev) argument 50 id = pci_get_devid(dev); 62 if (pci_get_class(dev) == PCIC_BRIDGE && 63 pci_get_subclass(dev) == PCIS_BRIDGE_HOST) { 64 device_set_desc(dev, "Host to PCI bridge"); 65 device_quiet(dev); 72 pci_hostb_attach(device_t dev) argument 90 pci_hostb_read_ivar(device_t dev, device_t child, int which, uintptr_t *result) argument 97 pci_hostb_write_ivar(device_t dev, device_t child, int which, uintptr_t value) argument 104 pci_hostb_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 112 pci_hostb_release_resource(device_t dev, device_t child, int type, int rid, struct resource *r) argument 122 pci_hostb_read_config(device_t dev, device_t child, int reg, int width) argument 129 pci_hostb_write_config(device_t dev, device_t child, int reg, uint32_t val, int width) argument 137 pci_hostb_enable_busmaster(device_t dev, device_t child) argument 146 pci_hostb_disable_busmaster(device_t dev, device_t child) argument 155 pci_hostb_enable_io(device_t dev, device_t child, int space) argument 164 pci_hostb_disable_io(device_t dev, device_t child, int space) argument 173 pci_hostb_set_powerstate(device_t dev, device_t child, int state) argument 182 pci_hostb_get_powerstate(device_t dev, device_t child) argument 191 pci_hostb_assign_interrupt(device_t dev, device_t child) argument 200 pci_hostb_find_cap(device_t dev, device_t child, int capability, int *capreg) argument 208 pci_hostb_find_next_cap(device_t dev, device_t child, int capability, int start, int *capreg) argument 216 pci_hostb_find_extcap(device_t dev, device_t child, int capability, int *capreg) argument 224 pci_hostb_find_next_extcap(device_t dev, device_t child, int capability, int start, int *capreg) argument 232 pci_hostb_find_htcap(device_t dev, device_t child, int capability, int *capreg) argument 240 pci_hostb_find_next_htcap(device_t dev, device_t child, int capability, int start, int *capreg) argument [all...] |
/freebsd-11-stable/sys/dev/acpi_support/ |
H A D | acpi_sony.c | 35 #include <contrib/dev/acpica/include/acpi.h> 39 #include <dev/acpica/acpivar.h> 87 static int acpi_sony_probe(device_t dev); 88 static int acpi_sony_attach(device_t dev); 89 static int acpi_sony_detach(device_t dev); 115 acpi_sony_probe(device_t dev) argument 119 if (ACPI_ID_PROBE(device_get_parent(dev), dev, sny_id)) { 120 device_set_desc(dev, "Sony notebook controller"); 127 acpi_sony_attach(device_t dev) argument 156 acpi_sony_detach(device_t dev) argument 179 device_t dev = arg1; local [all...] |
/freebsd-11-stable/sys/mips/mediatek/ |
H A D | mtk_clock.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> 40 #include <dev/fdt/fdt_clock.h> 54 mtk_clock_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 Clock Controller"); 69 mtk_clock_attach(device_t dev) argument 86 mtk_clock_set(device_t dev, int index, int value) argument 105 mtk_clock_enable(device_t dev, int index) argument 112 mtk_clock_disable(device_t dev, int index) argument 119 mtk_clock_get_info(device_t dev, int index, struct fdt_clock_info *info) argument [all...] |
/freebsd-11-stable/sys/dev/mdio/ |
H A D | mdio.c | 34 #include <dev/mdio/mdio.h> 47 mdio_probe(device_t dev) argument 50 device_set_desc(dev, "MDIO"); 56 mdio_attach(device_t dev) argument 59 bus_generic_probe(dev); 60 bus_enumerate_hinted_children(dev); 61 return (bus_generic_attach(dev)); 65 mdio_detach(device_t dev) argument 68 bus_generic_detach(dev); 73 mdio_readreg(device_t dev, in argument 80 mdio_writereg(device_t dev, int phy, int reg, int val) argument 87 mdio_readextreg(device_t dev, int phy, int devad, int reg) argument 94 mdio_writeextreg(device_t dev, int phy, int devad, int reg, int val) argument 102 mdio_hinted_child(device_t dev, const char *name, int unit) argument [all...] |
/freebsd-11-stable/sys/dev/mmc/ |
H A D | mmcbrvar.h | 52 * $FreeBSD: stable/11/sys/dev/mmc/mmcbrvar.h 338476 2018-09-05 20:43:46Z marius $ 58 #include <dev/mmc/mmcreg.h> 106 mmcbr_get_retune_req(device_t dev) argument 110 if (__predict_false(BUS_READ_IVAR(device_get_parent(dev), dev, 120 mmcbr_update_ios(device_t dev) argument 123 return (MMCBR_UPDATE_IOS(device_get_parent(dev), dev)); 127 mmcbr_tune(device_t dev, bool hs400) argument 130 return (MMCBR_TUNE(device_get_parent(dev), de 134 mmcbr_retune(device_t dev, bool reset) argument 141 mmcbr_switch_vccq(device_t dev) argument 148 mmcbr_get_ro(device_t dev) argument [all...] |
/freebsd-11-stable/sys/dev/mcd/ |
H A D | mcd_isa.c | 26 #include <dev/mcd/mcdreg.h> 27 #include <dev/mcd/mcdvar.h> 37 mcd_isa_probe (device_t dev) argument 43 if (isa_get_vendorid(dev)) 47 if (bus_get_resource_start(dev, SYS_RES_IOPORT, 0) == 0) 50 sc = device_get_softc(dev); 51 sc->dev = dev; 54 error = mcd_alloc_resources(dev); 60 device_printf(dev, "Prob 72 mcd_isa_attach(device_t dev) argument 106 mcd_isa_detach(device_t dev) argument 122 mcd_alloc_resources(device_t dev) argument 166 mcd_release_resources(device_t dev) argument [all...] |
/freebsd-11-stable/etc/rc.d/ |
H A D | dumpon | 21 ln -fs "${1}" /dev/dumpdev 37 dev=$(/bin/kenv -q dumpdev) 38 if [ -n "${dev}" ] ; then 39 dumpon_try "${dev}" 42 while read dev mp type more ; do 44 [ -c "${dev}" ] || continue 45 dumpon_try "${dev}" 2>/dev/null && return 0 62 rm -f /dev/dumpdev
|
/freebsd-11-stable/sys/mips/sibyte/ |
H A D | ata_zbbus.c | 43 #include <dev/ata/ata-all.h> 50 ata_zbbus_probe(device_t dev) argument 53 return (ata_probe(dev)); 57 ata_zbbus_attach(device_t dev) argument 63 ch = device_get_softc(dev); 70 io = bus_alloc_resource_any(dev, SYS_RES_MEMORY, &rid, RF_ACTIVE); 81 resource_int_value(device_get_name(dev), device_get_unit(dev), 84 device_printf(dev, "using a register shift of %d\n", regshift); 87 resource_int_value(device_get_name(dev), device_get_uni 114 ata_zbbus_detach(device_t dev) argument 132 ata_zbbus_suspend(device_t dev) argument 143 ata_zbbus_resume(device_t dev) argument [all...] |
/freebsd-11-stable/sys/dev/mc146818/ |
H A D | mc146818var.h | 46 u_int (*sc_mcread)(device_t dev, u_int reg); 47 void (*sc_mcwrite)(device_t dev, u_int reg, u_int val); 49 u_int (*sc_getcent)(device_t dev); 50 void (*sc_setcent)(device_t dev, u_int cent); 54 u_int mc146818_def_read(device_t dev, u_int reg); 55 void mc146818_def_write(device_t dev, u_int reg, u_int val); 62 int mc146818_getsecs(device_t dev, int *secp); 64 int mc146818_gettime(device_t dev, struct timespec *ts); 65 int mc146818_settime(device_t dev, struct timespec *ts);
|
/freebsd-11-stable/share/examples/ses/srcs/ |
H A D | sesd.c | 60 int fd, polltime, dev, nodaemon, clear, c; local 93 for (dev = optind; dev < a; dev++) 94 carray[dev] = (encioc_enc_status_t) -1; 99 for (dev = optind; dev < a; dev++) { 100 fd = open(v[dev], O_RDWR); 102 perror(v[dev]); [all...] |
/freebsd-11-stable/tests/sys/geom/class/mirror/ |
H A D | 9_test.sh | 15 dd if=/dev/zero of=$m1 bs=$ddbs count=1024 >/dev/null 2>&1 16 dd if=/dev/zero of=$m2 bs=$ddbs count=1024 >/dev/null 2>&1 17 dd if=/dev/zero of=$m3 bs=$ddbs count=1024 >/dev/null 2>&1 23 gmirror label $name /dev/$us0 /dev/$us1 || exit 1 30 dd if=/dev/random of=/dev/mirro [all...] |
/freebsd-11-stable/tools/tools/nanobsd/Files/root/ |
H A D | updatep2 | 39 if mount | grep ${NANO_DRIVE}s2 > /dev/null ; then 46 dd if=/dev/zero of=/dev/${NANO_DRIVE}s2 bs=1m count=1 > /dev/null 2>&1 49 dd of=/dev/${NANO_DRIVE}s2 obs=64k 52 fsck_ffs -n /dev/${NANO_DRIVE}s2a 56 mount /dev/${NANO_DRIVE}s2a /mnt
|
/freebsd-11-stable/tools/tools/nanobsd/gateworks/Files/root/ |
H A D | updatep2 | 39 if mount | grep ${NANO_DRIVE}s2 > /dev/null ; then 46 dd if=/dev/zero of=/dev/${NANO_DRIVE}s2 bs=1m count=1 > /dev/null 2>&1 49 dd of=/dev/${NANO_DRIVE}s2 obs=64k 52 fsck_ffs -n /dev/${NANO_DRIVE}s2 56 mount /dev/${NANO_DRIVE}s2 /mnt
|
/freebsd-11-stable/tools/tools/nanobsd/pcengines/Files/root/ |
H A D | updatep2 | 39 if mount | grep ${NANO_DRIVE}s2 > /dev/null ; then 46 dd if=/dev/zero of=/dev/${NANO_DRIVE}s2 bs=1m count=1 > /dev/null 2>&1 49 dd of=/dev/${NANO_DRIVE}s2 obs=64k 52 fsck_ffs -n /dev/${NANO_DRIVE}s2a 56 mount /dev/${NANO_DRIVE}s2a /mnt
|
/freebsd-11-stable/sys/dev/etherswitch/arswitch/ |
H A D | arswitch_reg.c | 47 #include <dev/iicbus/iic.h> 48 #include <dev/iicbus/iiconf.h> 49 #include <dev/iicbus/iicbus.h> 50 #include <dev/mii/mii.h> 51 #include <dev/mii/miivar.h> 52 #include <dev/mdio/mdio.h> 54 #include <dev/etherswitch/etherswitch.h> 56 #include <dev/etherswitch/arswitch/arswitchreg.h> 57 #include <dev/etherswitch/arswitch/arswitchvar.h> 58 #include <dev/etherswitc 65 arswitch_split_setpage(device_t dev, uint32_t addr, uint16_t *phy, uint16_t *reg) argument 88 arswitch_readreg16(device_t dev, int addr) argument 100 arswitch_writereg16(device_t dev, int addr, int data) argument 118 arswitch_writedbg(device_t dev, int phy, uint16_t dbg_addr, uint16_t dbg_data) argument 128 arswitch_writemmd(device_t dev, int phy, uint16_t dbg_addr, uint16_t dbg_data) argument 138 arswitch_reg_read32(device_t dev, int phy, int reg) argument 148 arswitch_reg_write32(device_t dev, int phy, int reg, uint32_t value) argument 174 arswitch_readreg(device_t dev, int addr) argument 183 arswitch_writereg(device_t dev, int addr, int value) argument 202 arswitch_readreg_lsb(device_t dev, int addr) argument 209 arswitch_readreg_msb(device_t dev, int addr) argument 216 arswitch_writereg_lsb(device_t dev, int addr, int data) argument 223 arswitch_writereg_msb(device_t dev, int addr, int data) argument 230 arswitch_modifyreg(device_t dev, int addr, int mask, int set) argument 244 arswitch_waitreg(device_t dev, int addr, int mask, int val, int timeout) argument [all...] |
/freebsd-11-stable/sys/dev/drm/ |
H A D | drm_agpsupport.c | 39 #include "dev/drm/drmP.h" 41 #include <dev/agp/agpreg.h> 42 #include <dev/pci/pcireg.h> 46 drm_device_find_capability(struct drm_device *dev, int cap) argument 49 return (pci_find_cap(dev->device, cap, NULL) == 0); 52 int drm_device_is_agp(struct drm_device *dev) argument 54 if (dev->driver->device_is_agp != NULL) { 60 ret = (*dev->driver->device_is_agp)(dev); 65 return (drm_device_find_capability(dev, PCIY_AG 68 drm_device_is_pcie(struct drm_device *dev) argument 73 drm_agp_info(struct drm_device * dev, struct drm_agp_info *info) argument 95 drm_agp_info_ioctl(struct drm_device *dev, void *data, struct drm_file *file_priv) argument 109 drm_agp_acquire_ioctl(struct drm_device *dev, void *data, struct drm_file *file_priv) argument 116 drm_agp_acquire(struct drm_device *dev) argument 131 drm_agp_release_ioctl(struct drm_device *dev, void *data, struct drm_file *file_priv) argument 138 drm_agp_release(struct drm_device * dev) argument 147 drm_agp_enable(struct drm_device *dev, struct drm_agp_mode mode) argument 159 drm_agp_enable_ioctl(struct drm_device *dev, void *data, struct drm_file *file_priv) argument 169 drm_agp_alloc(struct drm_device *dev, struct drm_agp_buffer *request) argument 212 drm_agp_alloc_ioctl(struct drm_device *dev, void *data, struct drm_file *file_priv) argument 229 drm_agp_lookup_entry(struct drm_device *dev, void *handle) argument 240 drm_agp_unbind(struct drm_device *dev, struct drm_agp_binding *request) argument 262 drm_agp_unbind_ioctl(struct drm_device *dev, void *data, struct drm_file *file_priv) argument 277 drm_agp_bind(struct drm_device *dev, struct drm_agp_binding *request) argument 303 drm_agp_bind_ioctl(struct drm_device *dev, void *data, struct drm_file *file_priv) argument 318 drm_agp_free(struct drm_device *dev, struct drm_agp_buffer *request) argument 348 drm_agp_free_ioctl(struct drm_device *dev, void *data, struct drm_file *file_priv) argument [all...] |
/freebsd-11-stable/sys/dev/altera/sdcard/ |
H A D | altera_sdcard_fdt.c | 53 #include <dev/altera/sdcard/altera_sdcard.h> 55 #include <dev/fdt/fdt_common.h> 56 #include <dev/ofw/openfirm.h> 57 #include <dev/ofw/ofw_bus.h> 58 #include <dev/ofw/ofw_bus_subr.h> 64 altera_sdcard_fdt_probe(device_t dev) argument 67 if (!ofw_bus_status_okay(dev)) 70 if (ofw_bus_is_compatible(dev, "altera,sdcard_11_2011")) { 71 device_set_desc(dev, "Altera Secure Data Card IP Core"); 78 altera_sdcard_fdt_attach(device_t dev) argument 97 altera_sdcard_fdt_detach(device_t dev) argument [all...] |
/freebsd-11-stable/sys/dev/ata/chipsets/ |
H A D | ata-cypress.c | 47 #include <dev/pci/pcivar.h> 48 #include <dev/pci/pcireg.h> 49 #include <dev/ata/ata-all.h> 50 #include <dev/ata/ata-pci.h> 54 static int ata_cypress_chipinit(device_t dev); 55 static int ata_cypress_setmode(device_t dev, int target, int mode); 62 ata_cypress_probe(device_t dev) argument 64 struct ata_pci_controller *ctlr = device_get_softc(dev); 73 if (pci_get_devid(dev) == ATA_CYPRESS_82C693 && 74 pci_get_function(dev) 84 ata_cypress_chipinit(device_t dev) argument 96 ata_cypress_setmode(device_t dev, int target, int mode) argument [all...] |
H A D | ata-netcell.c | 47 #include <dev/pci/pcivar.h> 48 #include <dev/pci/pcireg.h> 49 #include <dev/ata/ata-all.h> 50 #include <dev/ata/ata-pci.h> 54 static int ata_netcell_chipinit(device_t dev); 55 static int ata_netcell_ch_attach(device_t dev); 56 static int ata_netcell_setmode(device_t dev, int target, int mode); 62 ata_netcell_probe(device_t dev) argument 64 struct ata_pci_controller *ctlr = device_get_softc(dev); 66 if (pci_get_devid(dev) 75 ata_netcell_chipinit(device_t dev) argument 88 ata_netcell_ch_attach(device_t dev) argument 104 ata_netcell_setmode(device_t dev, int target, int mode) argument [all...] |
/freebsd-11-stable/sys/dev/pms/RefTisa/sallsdk/spc/ |
H A D | saglobal.h | 34 #include <dev/pms/freebsd/driver/common/osenv.h> 35 #include <dev/pms/freebsd/driver/common/ostypes.h> 36 #include <dev/pms/freebsd/driver/common/osdebug.h> 38 #include <dev/pms/RefTisa/tisa/sassata/common/ossa.h> 40 #include <dev/pms/RefTisa/sallsdk/api/sa.h> 41 #include <dev/pms/RefTisa/sallsdk/api/saosapi.h> 43 #include <dev/pms/RefTisa/sallsdk/spc/sallist.h> 44 #include <dev/pms/RefTisa/sallsdk/spc/sadefs.h> 45 #include <dev/pms/RefTisa/sallsdk/spc/sampidefs.h> 46 #include <dev/pm [all...] |
/freebsd-11-stable/sys/dev/terasic/de4led/ |
H A D | terasic_de4led_fdt.c | 50 #include <dev/fdt/fdt_common.h> 51 #include <dev/ofw/openfirm.h> 52 #include <dev/ofw/ofw_bus.h> 53 #include <dev/ofw/ofw_bus_subr.h> 55 #include <dev/terasic/de4led/terasic_de4led.h> 62 terasic_de4led_fdt_probe(device_t dev) argument 65 if (!ofw_bus_status_okay(dev)) 68 if (ofw_bus_is_compatible(dev, "sri-cambridge,de4led")) { 69 device_set_desc(dev, "Terasic DE4 8-element LED"); 76 terasic_de4led_fdt_attach(device_t dev) argument 95 terasic_de4led_fdt_detach(device_t dev) argument [all...] |
/freebsd-11-stable/crypto/heimdal/lib/hx509/ |
H A D | test_query.in | 48 PKCS12:$srcdir/data/test.p12 >/dev/null 2>/dev/null || exit 1 54 FILE:$srcdir/data/kdc.crt >/dev/null 2>/dev/null || exit 1 59 PKCS12:$srcdir/data/test.p12 >/dev/null 2>/dev/null || exit 1 65 PKCS12:$srcdir/data/test.p12 >/dev/null 2>/dev/null || exit 1 71 PKCS12:$srcdir/data/test.p12 >/dev/null 2>/dev/nul [all...] |
/freebsd-11-stable/sys/dev/pcf/ |
H A D | pcf_ebus.c | 75 #include <dev/ofw/ofw_bus.h> 76 #include <dev/ofw/openfirm.h> 83 #include <dev/iicbus/iiconf.h> 84 #include <dev/pcf/pcfvar.h> 119 pcf_ebus_probe(device_t dev) argument 128 if (strcmp("i2c", ofw_bus_get_name(dev)) == 0) { 129 compat = ofw_bus_get_compat(dev); 131 device_set_desc(dev, "PCF8584 I2C bus controller"); 139 pcf_ebus_attach(device_t dev) argument 146 sc = DEVTOSOFTC(dev); 227 pcf_ebus_detach(device_t dev) argument [all...] |
/freebsd-11-stable/sys/sparc64/sparc64/ |
H A D | rtc.c | 49 #include <dev/ofw/ofw_bus.h> 58 #include <dev/mc146818/mc146818reg.h> 59 #include <dev/mc146818/mc146818var.h> 126 static u_int pc87317_getcent(device_t dev); 127 static void pc87317_setcent(device_t dev, u_int cent); 130 rtc_ebus_probe(device_t dev) argument 133 if (strcmp(ofw_bus_get_name(dev), "rtc") == 0) { 135 if (ofw_bus_get_compat(dev) != NULL && 136 strcmp(ofw_bus_get_compat(dev), "bq4802") == 0) 138 device_set_desc(dev, RTC_DES 152 rtc_isa_probe(device_t dev) argument 163 rtc_attach(device_t dev) argument 235 pc87317_getcent(device_t dev) argument 246 pc87317_setcent(device_t dev, u_int cent) argument [all...] |