/freebsd-current/tests/sys/cddl/zfs/tests/devices/ |
H A D | devices_003_pos.ksh | 37 # Writing random data into /dev/zfs should do no harm. 40 # 1. Write some random data into /dev/zfs 54 log_assert "Writing random data into /dev/zfs should do no harm." 56 log_mustnot $DD if=/dev/urandom of=/dev/zfs count=1024 58 log_pass "Writing random data into /dev/zfs should do no harm."
|
/freebsd-current/sys/arm/broadcom/bcm2835/ |
H A D | bcm283x_dwc_fdt.c | 35 #include <dev/ofw/ofw_bus_subr.h> 37 #include <dev/usb/usb.h> 38 #include <dev/usb/usbdi.h> 40 #include <dev/usb/usb_busdma.h> 41 #include <dev/usb/usb_process.h> 43 #include <dev/usb/usb_controller.h> 44 #include <dev/usb/usb_bus.h> 46 #include <dev/usb/controller/dwc_otg.h> 47 #include <dev/usb/controller/dwc_otg_fdt.h> 62 bcm283x_dwc_otg_probe(device_t dev) argument 77 bcm283x_dwc_otg_attach(device_t dev) argument [all...] |
/freebsd-current/sys/dev/usb/controller/ |
H A D | dwc_otg_hisi.c | 35 #include <dev/ofw/ofw_bus_subr.h> 37 #include <dev/usb/usb.h> 38 #include <dev/usb/usbdi.h> 40 #include <dev/usb/usb_busdma.h> 41 #include <dev/usb/usb_process.h> 43 #include <dev/usb/usb_controller.h> 44 #include <dev/usb/usb_bus.h> 46 #include <dev/usb/controller/dwc_otg.h> 47 #include <dev/usb/controller/dwc_otg_fdt.h> 53 hisi_dwc_otg_probe(device_t dev) argument 68 hisi_dwc_otg_attach(device_t dev) argument [all...] |
/freebsd-current/sys/dev/drm2/ |
H A D | drm_stub.c | 35 #include <dev/drm2/drmP.h> 36 #include <dev/drm2/drm_core.h> 84 static int drm_minor_get_id(struct drm_device *dev, int type) argument 88 new_id = device_get_unit(dev->dev); 133 struct drm_device *dev = master->minor->dev; local 138 if (dev->driver->master_destroy) 139 dev->driver->master_destroy(dev, maste 173 drm_setmaster_ioctl(struct drm_device *dev, void *data, struct drm_file *file_priv) argument 205 drm_dropmaster_ioctl(struct drm_device *dev, void *data, struct drm_file *file_priv) argument 223 drm_fill_in_dev(struct drm_device *dev, struct drm_driver *driver) argument 296 drm_cancel_fill_in_dev(struct drm_device *dev) argument 340 drm_get_minor(struct drm_device *dev, struct drm_minor **minor, int type) argument 434 drm_put_dev(struct drm_device *dev) argument [all...] |
/freebsd-current/sys/dev/mlx4/mlx4_core/ |
H A D | mlx4_pd.c | 47 int mlx4_pd_alloc(struct mlx4_dev *dev, u32 *pdn) argument 49 struct mlx4_priv *priv = mlx4_priv(dev); 59 void mlx4_pd_free(struct mlx4_dev *dev, u32 pdn) argument 61 mlx4_bitmap_free(&mlx4_priv(dev)->pd_bitmap, pdn, MLX4_USE_RR); 65 int __mlx4_xrcd_alloc(struct mlx4_dev *dev, u32 *xrcdn) argument 67 struct mlx4_priv *priv = mlx4_priv(dev); 76 int mlx4_xrcd_alloc(struct mlx4_dev *dev, u32 *xrcdn) argument 81 if (mlx4_is_mfunc(dev)) { 82 err = mlx4_cmd_imm(dev, 0, &out_param, 92 return __mlx4_xrcd_alloc(dev, xrcd 96 __mlx4_xrcd_free(struct mlx4_dev *dev, u32 xrcdn) argument 101 mlx4_xrcd_free(struct mlx4_dev *dev, u32 xrcdn) argument 118 mlx4_init_pd_table(struct mlx4_dev *dev) argument 127 mlx4_cleanup_pd_table(struct mlx4_dev *dev) argument 132 mlx4_init_xrcd_table(struct mlx4_dev *dev) argument 140 mlx4_cleanup_xrcd_table(struct mlx4_dev *dev) argument 145 mlx4_uar_alloc(struct mlx4_dev *dev, struct mlx4_uar *uar) argument 166 mlx4_uar_free(struct mlx4_dev *dev, struct mlx4_uar *uar) argument 172 mlx4_bf_alloc(struct mlx4_dev *dev, struct mlx4_bf *bf, int node) argument 246 mlx4_bf_free(struct mlx4_dev *dev, struct mlx4_bf *bf) argument 272 mlx4_init_uar_table(struct mlx4_dev *dev) argument 291 mlx4_cleanup_uar_table(struct mlx4_dev *dev) argument [all...] |
/freebsd-current/sys/dev/pms/RefTisa/tisa/sassata/common/ |
H A D | tdhw.c | 30 #include <dev/pms/config.h> 32 #include <dev/pms/freebsd/driver/common/osenv.h> 33 #include <dev/pms/freebsd/driver/common/ostypes.h> 34 #include <dev/pms/freebsd/driver/common/osdebug.h> 36 #include <dev/pms/RefTisa/sallsdk/api/sa.h> 37 #include <dev/pms/RefTisa/sallsdk/api/saapi.h> 38 #include <dev/pms/RefTisa/sallsdk/api/saosapi.h> 40 #include <dev/pms/RefTisa/tisa/api/titypes.h> 41 #include <dev/pms/RefTisa/tisa/api/ostiapi.h> 42 #include <dev/pm [all...] |
/freebsd-current/tools/regression/ccd/layout/ |
H A D | ccd.sh | 16 ) > /dev/null 2>&1 23 ccdconfig -v ccd3 $5 $6 /dev/md90 /dev/md91 /dev/md92 /dev/md93 24 ./a > /dev/ccd3 26 md5 < /dev/md90 27 md5 < /dev/md91 28 md5 < /dev/md92 29 md5 < /dev/md9 [all...] |
/freebsd-current/sys/contrib/dev/mediatek/mt76/mt7615/ |
H A D | usb.c | 24 static u32 mt7663u_rr(struct mt76_dev *dev, u32 addr) argument 28 mutex_lock(&dev->usb.usb_ctrl_mtx); 29 ret = ___mt76u_rr(dev, MT_VEND_READ_EXT, 31 mutex_unlock(&dev->usb.usb_ctrl_mtx); 36 static void mt7663u_wr(struct mt76_dev *dev, u32 addr, u32 val) argument 38 mutex_lock(&dev->usb.usb_ctrl_mtx); 39 ___mt76u_wr(dev, MT_VEND_WRITE_EXT, 41 mutex_unlock(&dev->usb.usb_ctrl_mtx); 44 static u32 mt7663u_rmw(struct mt76_dev *dev, u32 addr, argument 47 mutex_lock(&dev 57 mt7663u_copy(struct mt76_dev *dev, u32 offset, const void *data, int len) argument 85 struct mt7615_dev *dev = hw->priv; local 95 mt7663u_cleanup(struct mt7615_dev *dev) argument 103 struct mt7615_dev *dev; local 137 struct mt7615_dev *dev; local 204 struct mt7615_dev *dev = usb_get_intfdata(usb_intf); local 221 struct mt7615_dev *dev = usb_get_intfdata(intf); local 240 struct mt7615_dev *dev = usb_get_intfdata(intf); local [all...] |
/freebsd-current/contrib/libfido2/examples/ |
H A D | reset.c | 22 fido_dev_t *dev; local 32 if ((dev = fido_dev_new()) == NULL) 35 if ((r = fido_dev_open(dev, argv[1])) != FIDO_OK) 38 if ((r = fido_dev_reset(dev)) != FIDO_OK) { 39 fido_dev_cancel(dev); 43 if ((r = fido_dev_close(dev)) != FIDO_OK) 46 fido_dev_free(&dev);
|
/freebsd-current/tests/sys/cddl/zfs/tests/hotspare/ |
H A D | hotspare_remove_004_pos.ksh | 68 function verify_assertion # dev 70 typeset dev=$1 73 log_must $MV $dev $dev.bak 75 log_must $ZPOOL remove $TESTPOOL $dev 76 log_mustnot iscontained "$TESTPOOL" $dev 77 log_must $MV $dev.bak $dev
|
H A D | hotspare_remove_002_neg.ksh | 66 function verify_assertion # dev 68 typeset dev=$1 71 log_must $ZPOOL replace $TESTPOOL $odev $dev 72 log_mustnot $ZPOOL remove $TESTPOOL $dev 73 log_must $ZPOOL detach $TESTPOOL $dev 84 dev_nonexist=/dev/${disk}sbad_slice_num 88 dev_nonexist=/dev/${DISK0}sbad_slice_num 98 for dev in $dev_nonexist ; do 99 log_mustnot $ZPOOL remove $TESTPOOL $dev 102 for dev i [all...] |
/freebsd-current/sys/dev/sdhci/ |
H A D | sdhci_xenon_fdt.c | 36 #include <dev/ofw/ofw_bus.h> 37 #include <dev/ofw/ofw_bus_subr.h> 39 #include <dev/mmc/bridge.h> 40 #include <dev/mmc/mmcbrvar.h> 41 #include <dev/mmc/mmcreg.h> 43 #include <dev/fdt/fdt_common.h> 44 #include <dev/mmc/mmc_fdt_helpers.h> 46 #include <dev/sdhci/sdhci.h> 47 #include <dev/sdhci/sdhci_fdt_gpio.h> 48 #include <dev/sdhc 67 sdhci_xenon_fdt_get_card_present(device_t dev, struct sdhci_slot *slot) argument 77 sdhci_xenon_fdt_probe(device_t dev) argument 91 sdhci_xenon_fdt_parse(device_t dev, struct sdhci_slot *slot) argument 116 sdhci_xenon_fdt_attach(device_t dev) argument 137 sdhci_xenon_fdt_detach(device_t dev) argument [all...] |
/freebsd-current/sys/dev/usb/controller/dwc3/ |
H A D | aw_dwc3.c | 41 #include <dev/fdt/simplebus.h> 43 #include <dev/fdt/fdt_common.h> 44 #include <dev/ofw/ofw_bus.h> 45 #include <dev/ofw/ofw_bus_subr.h> 46 #include <dev/ofw/ofw_subr.h> 48 #include <dev/clk/clk.h> 49 #include <dev/hwreset/hwreset.h> 50 #include <dev/phy/phy_usb.h> 59 device_t dev; member in struct:aw_dwc3_softc 65 aw_dwc3_probe(device_t dev) argument 85 aw_dwc3_attach(device_t dev) argument [all...] |
/freebsd-current/sys/dev/mmc/ |
H A D | mmc_fdt_helpers.h | 31 #include <dev/gpio/gpiobusvar.h> 32 #include <dev/ofw/ofw_bus.h> 34 #include <dev/regulator/regulator.h> 36 #include <dev/mmc/mmc_helpers.h> 40 typedef void (*mmc_fdt_cd_handler)(device_t dev, bool present); 42 int mmc_fdt_parse(device_t dev, phandle_t node, struct mmc_helper *helper, struct mmc_host *host); 43 int mmc_fdt_gpio_setup(device_t dev, phandle_t node, struct mmc_helper *helper, mmc_fdt_cd_handler handler);
|
/freebsd-current/stand/common/ |
H A D | devopen.c | 39 struct devdesc *dev; local 42 result = archsw.arch_getdev((void **)&dev, fname, file); 47 f->f_dev = dev->d_dev; 48 f->f_devdata = dev; 49 result = dev->d_dev->dv_open(f, dev); 53 free(dev);
|
/freebsd-current/sys/dev/mthca/ |
H A D | mthca_catas.c | 63 struct mthca_dev *dev, *tmpdev; local 73 list_for_each_entry_safe(dev, tmpdev, &tlist, catas_err.list) { 74 struct pci_dev *pdev = dev->pdev; 75 ret = __mthca_restart_one(dev->pdev); 76 /* 'dev' now is not valid */ 89 static void handle_catas(struct mthca_dev *dev) argument 96 event.device = &dev->ib_dev; 99 dev->active = false; 103 switch (swab32(readl(dev->catas_err.map)) >> 24) { 121 mthca_err(dev, "Catastrophi 137 struct mthca_dev *dev = (struct mthca_dev *) dev_ptr; local 150 mthca_start_catas_poll(struct mthca_dev *dev) argument 176 mthca_stop_catas_poll(struct mthca_dev *dev) argument [all...] |
H A D | mthca_eq.c | 166 static inline u64 async_mask(struct mthca_dev *dev) argument 168 return dev->mthca_flags & MTHCA_FLAG_SRQ ? 173 static inline void tavor_set_eq_ci(struct mthca_dev *dev, struct mthca_eq *eq, u32 ci) argument 185 dev->kar + MTHCA_EQ_DOORBELL, 186 MTHCA_GET_DOORBELL_LOCK(&dev->doorbell_lock)); 189 static inline void arbel_set_eq_ci(struct mthca_dev *dev, struct mthca_eq *eq, u32 ci) argument 194 dev->eq_regs.arbel.eq_set_ci_base + eq->eqn * 8); 199 static inline void set_eq_ci(struct mthca_dev *dev, struct mthca_eq *eq, u32 ci) argument 201 if (mthca_is_memfree(dev)) 202 arbel_set_eq_ci(dev, e 207 tavor_eq_req_not(struct mthca_dev *dev, int eqn) argument 214 arbel_eq_req_not(struct mthca_dev *dev, u32 eqn_mask) argument 219 disarm_cq(struct mthca_dev *dev, int eqn, int cqn) argument 246 port_change(struct mthca_dev *dev, int port, int active) argument 260 mthca_eq_int(struct mthca_dev *dev, struct mthca_eq *eq) argument 393 struct mthca_dev *dev = dev_ptr; local 421 struct mthca_dev *dev = eq->dev; local 433 struct mthca_dev *dev = dev_ptr; local 455 struct mthca_dev *dev = eq->dev; local 465 mthca_create_eq(struct mthca_dev *dev, int nent, u8 intr, struct mthca_eq *eq) argument 588 mthca_free_eq(struct mthca_dev *dev, struct mthca_eq *eq) argument 628 mthca_free_irqs(struct mthca_dev *dev) argument 642 mthca_map_reg(struct mthca_dev *dev, unsigned long offset, unsigned long size, void __iomem **map) argument 655 mthca_map_eq_regs(struct mthca_dev *dev) argument 716 mthca_unmap_eq_regs(struct mthca_dev *dev) argument 728 mthca_map_eq_icm(struct mthca_dev *dev, u64 icm_virt) argument 759 mthca_unmap_eq_icm(struct mthca_dev *dev) argument 767 mthca_init_eq_table(struct mthca_dev *dev) argument 888 mthca_cleanup_eq_table(struct mthca_dev *dev) argument [all...] |
/freebsd-current/sys/dev/qcom_tlmm/ |
H A D | qcom_tlmm_pin.h | 33 extern device_t qcom_tlmm_get_bus(device_t dev); 34 extern int qcom_tlmm_pin_max(device_t dev, int *maxpin); 35 extern int qcom_tlmm_pin_getcaps(device_t dev, uint32_t pin, uint32_t *caps); 36 extern int qcom_tlmm_pin_getflags(device_t dev, uint32_t pin, 38 extern int qcom_tlmm_pin_getname(device_t dev, uint32_t pin, char *name); 39 extern int qcom_tlmm_pin_setflags(device_t dev, uint32_t pin, 41 extern int qcom_tlmm_pin_set(device_t dev, uint32_t pin, unsigned int value); 42 extern int qcom_tlmm_pin_get(device_t dev, uint32_t pin, unsigned int *val); 43 extern int qcom_tlmm_pin_toggle(device_t dev, uint32_t pin); 46 extern phandle_t qcom_tlmm_pin_get_node(device_t dev, device_ [all...] |
/freebsd-current/sys/arm/ti/twl/ |
H A D | twl.h | 32 int twl_read(device_t dev, uint8_t nsub, uint8_t reg, uint8_t *buf, uint16_t cnt); 33 int twl_write(device_t dev, uint8_t nsub, uint8_t reg, uint8_t *buf, uint16_t cnt); 35 int twl_is_4030(device_t dev); 36 int twl_is_6025(device_t dev); 37 int twl_is_6030(device_t dev);
|
/freebsd-current/sys/dev/sound/fdt/ |
H A D | dummy_codec.c | 39 #include <dev/ofw/ofw_bus.h> 40 #include <dev/ofw/ofw_bus_subr.h> 43 #include <dev/sound/pcm/sound.h> 44 #include <dev/sound/fdt/audio_dai.h> 53 device_t dev; member in struct:dummy_codec_softc 56 static int dummy_codec_probe(device_t dev); 57 static int dummy_codec_attach(device_t dev); 58 static int dummy_codec_detach(device_t dev); 61 dummy_codec_probe(device_t dev) argument 63 if (!ofw_bus_status_okay(dev)) 74 dummy_codec_attach(device_t dev) argument 83 OF_device_register_xref(OF_xref_from_node(node), dev); local 89 dummy_codec_detach(device_t dev) argument 96 dummy_codec_dai_init(device_t dev, uint32_t format) argument [all...] |
/freebsd-current/sys/dev/altera/atse/ |
H A D | if_atse_fdt.c | 49 #include <dev/mii/mii.h> 50 #include <dev/mii/miivar.h> 52 #include <dev/fdt/fdt_common.h> 53 #include <dev/ofw/openfirm.h> 54 #include <dev/ofw/ofw_bus.h> 55 #include <dev/ofw/ofw_bus_subr.h> 57 #include <dev/altera/atse/if_atsereg.h> 63 atse_probe_fdt(device_t dev) argument 66 if (!ofw_bus_status_okay(dev)) 69 if (!ofw_bus_is_compatible(dev, "alter 79 atse_attach_fdt(device_t dev) argument [all...] |
/freebsd-current/sys/contrib/dev/mediatek/mt76/mt7921/ |
H A D | pci_mac.c | 13 struct mt792x_dev *dev = container_of(mdev, struct mt792x_dev, mt76); local 25 wcid = &dev->mt76.global_wcid; 56 int mt7921e_mac_reset(struct mt792x_dev *dev) argument 60 mt792xe_mcu_drv_pmctrl(dev); 62 mt76_connac_free_pending_tx_skbs(&dev->pm, NULL); 64 mt76_wr(dev, dev->irq_map->host_irq_enable, 0); 65 mt76_wr(dev, MT_PCIE_MAC_INT_ENABLE, 0x0); 67 set_bit(MT76_RESET, &dev->mphy.state); 68 set_bit(MT76_MCU_RESET, &dev [all...] |
/freebsd-current/sys/dev/mlx5/mlx5_core/ |
H A D | transobj.h | 29 int mlx5_alloc_transport_domain(struct mlx5_core_dev *dev, u32 *tdn, u32 uid); 30 void mlx5_dealloc_transport_domain(struct mlx5_core_dev *dev, u32 tdn, u32 uid); 31 int mlx5_core_create_rq(struct mlx5_core_dev *dev, u32 *in, int inlen, 33 int mlx5_core_modify_rq(struct mlx5_core_dev *dev, u32 *in, int inlen); 34 void mlx5_core_destroy_rq(struct mlx5_core_dev *dev, u32 rqn); 35 int mlx5_core_query_rq(struct mlx5_core_dev *dev, u32 rqn, u32 *out); 36 int mlx5_core_create_sq(struct mlx5_core_dev *dev, u32 *in, int inlen, 38 int mlx5_core_modify_sq(struct mlx5_core_dev *dev, u32 *in, int inlen); 39 void mlx5_core_destroy_sq(struct mlx5_core_dev *dev, u32 sqn); 40 int mlx5_core_query_sq(struct mlx5_core_dev *dev, u3 [all...] |
/freebsd-current/sys/dev/agp/ |
H A D | agp_intel.c | 39 #include <dev/agp/agppriv.h> 40 #include <dev/agp/agpreg.h> 41 #include <dev/pci/pcivar.h> 42 #include <dev/pci/pcireg.h> 59 agp_intel_match(device_t dev) argument 61 if (pci_get_class(dev) != PCIC_BRIDGE 62 || pci_get_subclass(dev) != PCIS_BRIDGE_HOST) 65 if (agp_find_caps(dev) == 0) 68 switch (pci_get_devid(dev)) { 113 agp_intel_probe(device_t dev) argument 129 agp_intel_commit_gatt(device_t dev) argument 215 agp_intel_attach(device_t dev) argument 258 agp_intel_detach(device_t dev) argument 308 agp_intel_resume(device_t dev) argument 319 agp_intel_get_aperture(device_t dev) argument 339 agp_intel_set_aperture(device_t dev, u_int32_t aperture) argument 365 agp_intel_bind_page(device_t dev, vm_offset_t offset, vm_offset_t physical) argument 379 agp_intel_unbind_page(device_t dev, vm_offset_t offset) argument 393 agp_intel_flush_tlb(device_t dev) argument [all...] |
/freebsd-current/sys/arm64/rockchip/ |
H A D | rk3568_pcie.c | 41 #include <dev/gpio/gpiobusvar.h> 42 #include <dev/ofw/ofw_bus.h> 43 #include <dev/ofw/ofw_bus_subr.h> 44 #include <dev/ofw/ofw_pci.h> 45 #include <dev/ofw/ofwpci.h> 47 #include <dev/pci/pcivar.h> 48 #include <dev/pci/pcireg.h> 49 #include <dev/pci/pcib_private.h> 50 #include <dev/pci/pci_dw.h> 52 #include <dev/cl 89 device_t dev; member in struct:rk3568_pcie_softc 120 rk3568_pcie_get_link(device_t dev, bool *status) argument 136 rk3568_pcie_init_soc(device_t dev) argument 231 rk3568_pcie_detach(device_t dev) argument 267 rk3568_pcie_attach(device_t dev) argument 372 rk3568_pcie_probe(device_t dev) argument [all...] |