/freebsd/sys/arm/nvidia/ |
H A D | tegra_sdhci.c | 101 device_t dev; member 130 sc = device_get_softc(dev); in tegra_sdhci_read_1() 139 sc = device_get_softc(dev); in tegra_sdhci_read_2() 149 sc = device_get_softc(dev); in tegra_sdhci_read_4() 163 sc = device_get_softc(dev); in tegra_sdhci_read_multi_4() 173 sc = device_get_softc(dev); in tegra_sdhci_write_1() 183 sc = device_get_softc(dev); in tegra_sdhci_write_2() 269 sc->dev = dev; in tegra_sdhci_attach() 389 bus_generic_probe(dev); in tegra_sdhci_attach() 390 bus_generic_attach(dev); in tegra_sdhci_attach() [all …]
|
/freebsd/sys/dev/ppbus/ |
H A D | lpbb.c | 62 device_t dev; in lpbb_identify() local 65 if (!dev) in lpbb_identify() 70 lpbb_probe(device_t dev) in lpbb_probe() argument 74 if (!lpbb_detect(dev)) in lpbb_probe() 83 lpbb_attach(device_t dev) in lpbb_attach() argument 133 lpbb_reset_bus(device_t dev) in lpbb_reset_bus() argument 143 lpbb_getscl(device_t dev) in lpbb_getscl() argument 155 lpbb_getsda(device_t dev) in lpbb_getsda() argument 193 lpbb_detect(device_t dev) in lpbb_detect() argument 204 lpbb_reset_bus(dev); in lpbb_detect() [all …]
|
/freebsd/sys/dev/mlx5/mlx5_ib/ |
H A D | mlx5_ib_main.c | 3330 mlx5_free_bfreg(dev->mdev, &dev->bfreg); in mlx5_ib_stage_bfreg_init() 3336 mlx5_free_bfreg(dev->mdev, &dev->fp_bfreg); in mlx5_ib_stage_bfreg_init() 3337 mlx5_free_bfreg(dev->mdev, &dev->bfreg); in mlx5_ib_stage_bfreg_init() 3345 mlx5_free_bfreg(dev->mdev, &dev->wc_bfreg); in mlx5_ib_stage_bfreg_cleanup() 3346 mlx5_free_bfreg(dev->mdev, &dev->fp_bfreg); in mlx5_ib_stage_bfreg_cleanup() 3347 mlx5_free_bfreg(dev->mdev, &dev->bfreg); in mlx5_ib_stage_bfreg_cleanup() 3362 if (!dev) in mlx5_ib_add() 3390 dev->ib_dev.phys_port_cnt = dev->num_ports; in mlx5_ib_add() 3393 dev->ib_dev.dma_device = &mdev->pdev->dev; in mlx5_ib_add() 3568 err = device_create_file(&dev->ib_dev.dev, in mlx5_ib_add() [all …]
|
/freebsd/sys/contrib/dev/mediatek/mt76/mt7921/ |
H A D | main.c | 441 struct mt792x_dev *dev = phy->dev; in mt7921_set_channel() local 727 ret = mt76_connac_pm_wake(&dev->mphy, &dev->pm); in mt7921_mac_sta_add() 742 mt76_connac_power_save_sched(&dev->mphy, &dev->pm); in mt7921_mac_sta_add() 780 mt76_connac_pm_wake(&dev->mphy, &dev->pm); in mt7921_mac_sta_remove() 802 mt76_connac_power_save_sched(&dev->mphy, &dev->pm); in mt7921_mac_sta_remove() 882 if (dev->pm.ds_enable) { in mt7921_sta_state() 1031 &dev->mphy); in mt7921_suspend() 1049 &dev->mphy); in mt7921_resume() 1098 struct mt792x_dev *dev = mvif->phy->dev; in mt7921_ipv6_addr_change() local 1148 ieee80211_queue_work(dev->mt76.hw, &dev->ipv6_ns_work); in mt7921_ipv6_addr_change() [all …]
|
/freebsd/sys/dev/agp/ |
H A D | agp_nvidia.c | 115 device_set_desc(dev, desc); in agp_nvidia_probe() 146 sc->dev = dev; in agp_nvidia_attach() 151 device_printf(dev, in agp_nvidia_attach() 159 device_printf(dev, in agp_nvidia_attach() 167 device_printf(dev, in agp_nvidia_attach() 179 gatt = agp_alloc_gatt(dev); in agp_nvidia_attach() 186 if (AGP_SET_APERTURE(dev, AGP_GET_APERTURE(dev) / 2)) in agp_nvidia_attach() 233 agp_generic_detach(dev); in agp_nvidia_attach() 243 agp_free_cdev(dev); in agp_nvidia_detach() 261 agp_free_res(dev); in agp_nvidia_detach() [all …]
|
/freebsd/sys/dev/mwl/ |
H A D | if_mwl_pci.c | 111 mwl_pci_probe(device_t dev) in mwl_pci_probe() argument 115 ident = mwl_pci_lookup(pci_get_vendor(dev), pci_get_device(dev)); in mwl_pci_probe() 124 mwl_pci_attach(device_t dev) in mwl_pci_attach() argument 130 sc->sc_dev = dev; in mwl_pci_attach() 132 pci_enable_busmaster(dev); in mwl_pci_attach() 215 mwl_pci_detach(device_t dev) in mwl_pci_detach() argument 225 bus_generic_detach(dev); in mwl_pci_detach() 239 mwl_pci_shutdown(device_t dev) in mwl_pci_shutdown() argument 248 mwl_pci_suspend(device_t dev) in mwl_pci_suspend() argument 258 mwl_pci_resume(device_t dev) in mwl_pci_resume() argument [all …]
|
/freebsd/sys/dev/cpufreq/ |
H A D | cpufreq_dt.c | 50 #define DPRINTF(dev, msg...) device_printf(dev, "cpufreq_dt: " msg); 52 #define DPRINTF(dev, msg...) argument 74 device_t dev; member 92 sc = device_get_softc(dev); in cpufreq_dt_notify() 109 sc = device_get_softc(dev); in cpufreq_dt_find_opp() 138 set->dev = dev; in cpufreq_dt_opp_to_setting() 204 device_printf(dev, in cpufreq_dt_set() 448 device_printf(sc->dev, in cpufreq_dt_oppv2_parse() 484 sc->dev = dev; in cpufreq_dt_attach() 517 device_printf(dev, in cpufreq_dt_attach() [all …]
|
/freebsd/sys/arm64/iommu/ |
H A D | smmu_fdt.c | 63 smmu_fdt_probe(device_t dev) in smmu_fdt_probe() argument 65 if (!ofw_bus_status_okay(dev)) in smmu_fdt_probe() 77 smmu_fdt_attach(device_t dev) in smmu_fdt_attach() argument 86 sc = device_get_softc(dev); in smmu_fdt_attach() 87 sc->dev = dev; in smmu_fdt_attach() 89 node = ofw_bus_get_node(dev); in smmu_fdt_attach() 155 err = smmu_attach(dev); in smmu_fdt_attach() 160 unit->dev = dev; in smmu_fdt_attach() 163 iommu->dev = dev; in smmu_fdt_attach() 182 device_printf(dev, in smmu_fdt_attach() [all …]
|
/freebsd/sys/dev/qlxgb/ |
H A D | qla_dbg.c | 51 device_t dev; in qla_dump_buf32() local 55 dev = ha->pci_dev; in qla_dump_buf32() 90 device_t dev; in qla_dump_buf16() local 94 dev = ha->pci_dev; in qla_dump_buf16() 123 device_printf(dev,"0x%08x:" in qla_dump_buf16() 128 device_printf(dev,"0x%08x:" in qla_dump_buf16() 149 device_t dev; in qla_dump_buf8() local 153 dev = ha->pci_dev; in qla_dump_buf8() 159 device_printf(dev,"0x%08x:" in qla_dump_buf8() 186 device_printf(dev,"0x%08x:" in qla_dump_buf8() [all …]
|
/freebsd/sys/dev/qlxgbe/ |
H A D | ql_dbg.c | 48 device_t dev; in ql_dump_buf32() local 52 dev = ha->pci_dev; in ql_dump_buf32() 87 device_t dev; in ql_dump_buf16() local 91 dev = ha->pci_dev; in ql_dump_buf16() 120 device_printf(dev,"0x%08x:" in ql_dump_buf16() 125 device_printf(dev,"0x%08x:" in ql_dump_buf16() 146 device_t dev; in ql_dump_buf8() local 150 dev = ha->pci_dev; in ql_dump_buf8() 156 device_printf(dev,"0x%08x:" in ql_dump_buf8() 183 device_printf(dev,"0x%08x:" in ql_dump_buf8() [all …]
|
/freebsd/sys/dev/iicbus/mux/ |
H A D | iicmux.c | 89 device_get_nameunit(rd->dev), in iicmux_callback() 93 iicbus_release_bus(sc->busdev, dev); in iicmux_callback() 118 iicbus_release_bus(sc->busdev, dev); in iicmux_callback() 133 iicmux_get_node(device_t dev, device_t child) in iicmux_get_node() argument 190 iicmux_stop(device_t dev) in iicmux_stop() argument 224 device_printf(dev, in iicmux_add_child() 253 if((node = ofw_bus_get_node(sc->dev)) == 0) { in iicmux_attach_children() 271 device_printf(sc->dev, in iicmux_attach_children() 276 device_printf(sc->dev, in iicmux_attach_children() 317 sc->dev = dev; in iicmux_attach() [all …]
|
/freebsd/sys/dev/isl/ |
H A D | isl.c | 69 device_t dev; member 165 isl_probe(device_t dev) in isl_probe() argument 171 if (init_device(dev, 1) != 0) in isl_probe() 178 isl_attach(device_t dev) in isl_attach() argument 187 sc = device_get_softc(dev); in isl_attach() 188 sc->dev = dev; in isl_attach() 190 if (init_device(dev, 0) != 0) in isl_attach() 242 isl_detach(device_t dev) in isl_detach() argument 246 sc = device_get_softc(dev); in isl_detach() 308 device_printf(dev, in isl_read_sensor() [all …]
|
/freebsd/sys/contrib/dev/mediatek/mt76/mt7603/ |
H A D | mt7603.h | 167 return mt76xx_chip(dev) == 0x7603; in is_mt7603() 172 return mt76xx_chip(dev) == 0x7628; in is_mt7628() 184 int mt7603_eeprom_init(struct mt7603_dev *dev); 185 int mt7603_dma_init(struct mt7603_dev *dev); 186 void mt7603_dma_cleanup(struct mt7603_dev *dev); 187 int mt7603_mcu_init(struct mt7603_dev *dev); 188 void mt7603_init_debugfs(struct mt7603_dev *dev); 202 void mt7603_mac_start(struct mt7603_dev *dev); 203 void mt7603_mac_stop(struct mt7603_dev *dev); 218 void mt7603_mcu_exit(struct mt7603_dev *dev); [all …]
|
/freebsd/sys/contrib/dev/mediatek/mt76/mt7996/ |
H A D | pci.c | 96 hif->dev = &pdev->dev; in mt7996_pci_hif2_probe() 135 dev = mt7996_mmio_probe(&pdev->dev, pcim_iomap_table(pdev)[0], in mt7996_pci_probe() 137 if (IS_ERR(dev)) in mt7996_pci_probe() 159 hif2_dev = container_of(hif2->dev, struct pci_dev, dev); in mt7996_pci_probe() 167 ret = devm_request_irq(mdev->dev, dev->hif2->irq, in mt7996_pci_probe() 185 if (dev->hif2) in mt7996_pci_probe() 186 devm_free_irq(mdev->dev, dev->hif2->irq, dev); in mt7996_pci_probe() 188 if (dev->hif2) in mt7996_pci_probe() 191 if (dev->hif2) in mt7996_pci_probe() 192 put_device(dev->hif2->dev); in mt7996_pci_probe() [all …]
|
/freebsd/sys/dev/virtio/pci/ |
H A D | virtio_pci_legacy.c | 224 sc->vtpci_dev = dev; in vtpci_legacy_attach() 535 device_t dev; in vtpci_legacy_setup_msix() local 538 dev = sc->vtpci_dev; in vtpci_legacy_setup_msix() 562 device_t dev; in vtpci_legacy_teardown_msix() local 564 dev = sc->vtpci_dev; in vtpci_legacy_teardown_msix() 584 device_t dev; in vtpci_legacy_alloc_resources() local 587 dev = sc->vtpci_dev; in vtpci_legacy_alloc_resources() 610 device_t dev; in vtpci_legacy_free_resources() local 612 dev = sc->vtpci_dev; in vtpci_legacy_free_resources() 673 device_printf(dev, in vtpci_legacy_register_cfg_msix() [all …]
|
/freebsd/sys/contrib/dev/mediatek/mt76/ |
H A D | mcu.c | 41 wait_event_timeout(dev->mcu.wait, in mt76_mcu_get_response() 52 wake_up(&dev->mcu.wait); in mt76_mcu_rx_event() 61 if (dev->mcu_ops->mcu_send_msg) in mt76_mcu_send_and_get_msg() 62 return dev->mcu_ops->mcu_send_msg(dev, cmd, data, len, wait_resp); in mt76_mcu_send_and_get_msg() 82 mutex_lock(&dev->mcu.mutex); in mt76_mcu_skb_send_and_get_msg() 84 ret = dev->mcu_ops->mcu_skb_send_msg(dev, skb, cmd, &seq); in mt76_mcu_skb_send_and_get_msg() 97 ret = dev->mcu_ops->mcu_parse_response(dev, cmd, skb, seq); in mt76_mcu_skb_send_and_get_msg() 105 mutex_unlock(&dev->mcu.mutex); in mt76_mcu_skb_send_and_get_msg() 130 if (dev->queue_ops->tx_cleanup) in __mt76_mcu_send_firmware() 131 dev->queue_ops->tx_cleanup(dev, in __mt76_mcu_send_firmware() [all …]
|
H A D | tx.c | 305 struct mt76_dev *dev = phy->dev; in __mt76_tx_queue_skb() local 332 struct mt76_dev *dev = phy->dev; in mt76_tx() local 364 dev->queue_ops->kick(dev, q); in mt76_tx() 409 struct mt76_dev *dev = phy->dev; in mt76_release_buffered_frames() local 438 dev->queue_ops->kick(dev, hwq); in mt76_release_buffered_frames() 458 struct mt76_dev *dev = phy->dev; in mt76_txq_send_burst() local 514 dev->queue_ops->kick(dev, q); in mt76_txq_send_burst() 524 struct mt76_dev *dev = phy->dev; in mt76_txq_schedule_list() local 538 dev->queue_ops->tx_cleanup(dev, q, false); in mt76_txq_schedule_list() 663 struct mt76_dev *dev = phy->dev; in mt76_wake_tx_queue() local [all …]
|
/freebsd/contrib/mknod/ |
H A D | pack_dev.c | 69 portdev_t dev = 0; in pack_native() local 79 return (dev); in pack_native() 86 portdev_t dev = 0; in pack_netbsd() local 96 return (dev); in pack_netbsd() 108 portdev_t dev = 0; in pack_freebsd() local 118 return (dev); in pack_freebsd() 140 return (dev); in pack_8_8() 162 return (dev); in pack_12_20() 184 return (dev); in pack_14_18() 206 return (dev); in pack_8_24() [all …]
|
/freebsd/sys/dev/drm2/ |
H A D | drm_ioctl.c | 107 ret = dev->driver->bus->set_unique(dev, master, u); in drm_setunique() 126 ret = dev->driver->bus->set_busid(dev, master); in drm_set_busid() 162 DRM_LOCK(dev); in drm_getmap() 171 DRM_UNLOCK(dev); in drm_getmap() 181 DRM_UNLOCK(dev); in drm_getmap() 210 DRM_LOCK(dev); in drm_getclient() 218 DRM_UNLOCK(dev); in drm_getclient() 223 DRM_UNLOCK(dev); in drm_getclient() 319 dev->if_version = max(if_version, dev->if_version); in drm_setversion() 334 dev->driver->minor) { in drm_setversion() [all …]
|
/freebsd/stand/uboot/ |
H A D | uboot_disk.c | 46 printf("%s%d: ", dev->dd.d_dev->dv_name, dev->dd.d_unit); \ 65 #define SI(dev) (stor_info[(dev)->dd.d_unit]) argument 167 err = stor_readdev(dev, blk + dev->d_offset, bcount, buf); in stor_strategy() 192 if (dev->dd.d_unit < 0 || dev->dd.d_unit >= stor_info_no) in stor_opendev() 202 SI(dev).opened++; in stor_opendev() 204 return (disk_open(dev, SI(dev).blocks * SI(dev).bsize, in stor_opendev() 205 SI(dev).bsize)); in stor_opendev() 242 struct disk_devdesc dev; in stor_print() local 255 dev.dd.d_unit = i; in stor_print() 265 disk_close(&dev); in stor_print() [all …]
|
/freebsd/contrib/libarchive/libarchive/ |
H A D | archive_pack_dev.c | 108 dev_t dev = 0; in pack_native() local 118 return (dev); in pack_native() 125 dev_t dev = 0; in pack_netbsd() local 135 return (dev); in pack_netbsd() 147 dev_t dev = 0; in pack_freebsd() local 157 return (dev); in pack_freebsd() 179 return (dev); in pack_8_8() 201 return (dev); in pack_12_20() 223 return (dev); in pack_14_18() 245 return (dev); in pack_8_24() [all …]
|
/freebsd/sys/dev/ata/ |
H A D | ata-isa.c | 59 ata_isa_probe(device_t dev) in ata_isa_probe() argument 66 if (ISA_PNP_PROBE(device_get_parent(dev), dev, ata_ids) == ENXIO) in ata_isa_probe() 94 return (ata_probe(dev)); in ata_isa_probe() 98 ata_isa_attach(device_t dev) in ata_isa_attach() argument 142 ata_generic_hw(dev); in ata_isa_attach() 143 return ata_attach(dev); in ata_isa_attach() 147 ata_isa_detach(device_t dev) in ata_isa_detach() argument 156 error = ata_detach(dev); in ata_isa_detach() 173 return ata_suspend(dev); in ata_isa_suspend() 177 ata_isa_resume(device_t dev) in ata_isa_resume() argument [all …]
|
/freebsd/sys/dev/ahci/ |
H A D | ahci_pci.c | 400 ahci_probe(device_t dev) in ahci_probe() argument 527 resource_int_value(device_get_name(dev), device_get_unit(dev), in ahci_pci_attach() 611 ahci_free_mem(dev); in ahci_pci_attach() 627 ahci_free_mem(dev); in ahci_pci_attach() 636 ahci_free_mem(dev); in ahci_pci_attach() 695 error = ahci_attach(dev); in ahci_pci_attach() 698 pci_release_msi(dev); in ahci_pci_attach() 699 ahci_free_mem(dev); in ahci_pci_attach() 708 ahci_detach(dev); in ahci_pci_detach() 709 pci_release_msi(dev); in ahci_pci_detach() [all …]
|
/freebsd/contrib/netbsd-tests/bin/df/ |
H A D | t_df.sh | 58 /dev/ld0g 1308726116 17901268 1225388540 1% /anon-root 59 /dev/ld0g 1308726116 0 1308726116 0% /anon-root 60 /dev/ld0g 1308726116 261745224 1046980892 20% /anon-root 61 /dev/ld0g 1308726116 785235672 523490444 60% /anon-root 62 /dev/ld0g 1308726116 1243289812 65436304 95% /anon-root 63 /dev/ld0g 1308726116 1308726116 0 100% /anon-root 64 /dev/ld0g 1308726116 0 1243289808 0% /anon-root 65 /dev/ld0g 1308726116 261745224 981544584 21% /anon-root 66 /dev/ld0g 1308726116 785235672 458054140 63% /anon-root 67 /dev/ld0g 1308726116 1243289812 0 100% /anon-root [all …]
|
/freebsd/sys/dev/ata/chipsets/ |
H A D | ata-sis.c | 71 ata_sis_probe(device_t dev) in ata_sis_probe() argument 113 if (!(idx = ata_find_chip(dev, ids, -pci_get_slot(dev)))) in ata_sis_probe() 136 if (ata_find_chip(dev, id, pci_get_slot(dev))) { in ata_sis_probe() 160 ata_sis_chipinit(device_t dev) in ata_sis_chipinit() argument 172 pci_write_config(dev, 0x52, pci_read_config(dev, 0x52, 1) & ~0x04, 1); in ata_sis_chipinit() 176 pci_write_config(dev, 0x49, pci_read_config(dev, 0x49, 1) & ~0x01, 1); in ata_sis_chipinit() 179 pci_write_config(dev, 0x50, pci_read_config(dev, 0x50, 2) | 0x0008, 2); in ata_sis_chipinit() 180 pci_write_config(dev, 0x52, pci_read_config(dev, 0x52, 2) | 0x0008, 2); in ata_sis_chipinit() 202 ata_sis_ch_attach(device_t dev) in ata_sis_ch_attach() argument 227 ata_sis_reset(device_t dev) in ata_sis_reset() argument [all …]
|