/freebsd/sys/dev/ipmi/ |
H A D | ipmi_pci.c | 74 ipmi_pci_probe(device_t dev) in ipmi_pci_probe() argument 81 desc = ipmi_pci_match(pci_get_vendor(dev), pci_get_device(dev)); in ipmi_pci_probe() 83 device_set_desc(dev, desc); in ipmi_pci_probe() 91 ipmi_pci_attach(device_t dev) in ipmi_pci_attach() argument 102 sc->ipmi_dev = dev; in ipmi_pci_attach() 157 error = ipmi_attach(dev); in ipmi_pci_attach() 163 ipmi_release_resources(dev); in ipmi_pci_attach() 204 sc = device_get_softc(dev); in ipmi2_pci_attach() 205 sc->ipmi_dev = dev; in ipmi2_pci_attach() 220 pci_get_progif(dev)); in ipmi2_pci_attach() [all …]
|
/freebsd/sys/powerpc/mpc85xx/ |
H A D | mpc85xx_gpio.c | 63 device_t dev; member 71 mpc85xx_gpio_get_bus(device_t dev) in mpc85xx_gpio_get_bus() argument 75 sc = device_get_softc(dev); in mpc85xx_gpio_get_bus() 175 mpc85xx_gpio_probe(device_t dev) in mpc85xx_gpio_probe() argument 179 if (!ofw_bus_status_okay(dev)) in mpc85xx_gpio_probe() 206 sc->dev = dev; in mpc85xx_gpio_attach() 216 mpc85xx_gpio_detach(dev); in mpc85xx_gpio_attach() 225 mpc85xx_gpio_detach(dev); in mpc85xx_gpio_attach() 231 mpc85xx_gpio_detach(dev); in mpc85xx_gpio_attach() 235 OF_device_register_xref(OF_xref_from_node(ofw_bus_get_node(dev)), dev); in mpc85xx_gpio_attach() [all …]
|
/freebsd/sys/dev/firmware/xilinx/ |
H A D | zynqmp_firmware.c | 92 device_t dev; member 182 sc = device_get_softc(dev); in zynqmp_firmware_clock_enable() 196 sc = device_get_softc(dev); in zynqmp_firmware_clock_disable() 210 sc = device_get_softc(dev); in zynqmp_firmware_clock_getstate() 229 sc = device_get_softc(dev); in zynqmp_firmware_clock_setdivider() 243 sc = device_get_softc(dev); in zynqmp_firmware_clock_getdivider() 262 sc = device_get_softc(dev); in zynqmp_firmware_clock_setparent() 276 sc = device_get_softc(dev); in zynqmp_firmware_clock_getparent() 294 sc = device_get_softc(dev); in zynqmp_firmware_pll_get_mode() 312 sc = device_get_softc(dev); in zynqmp_firmware_pll_get_frac_data() [all …]
|
/freebsd/sys/dev/p2sb/ |
H A D | lewisburg_gpio.c | 60 lbggpio_get_bus(device_t dev) in lbggpio_get_bus() argument 64 sc = device_get_softc(dev); in lbggpio_get_bus() 77 sc = device_get_softc(dev); in lbggpio_pin_max() 144 lbggpiocm_pin_setflags(device_get_parent(dev), dev, pin, flags); in lbggpio_pin_setflags() 161 return (lbggpiocm_pin_get(device_get_parent(dev), dev, pin, value)); in lbggpio_pin_get() 172 return (lbggpiocm_pin_set(device_get_parent(dev), dev, pin, value)); in lbggpio_pin_set() 183 return (lbggpiocm_pin_toggle(device_get_parent(dev), dev, pin)); in lbggpio_pin_toggle() 187 lbggpio_probe(device_t dev) in lbggpio_probe() argument 193 sc->npins = lbggpiocm_get_group_npins(device_get_parent(dev), dev); in lbggpio_probe() 194 sc->grpname = lbggpiocm_get_group_name(device_get_parent(dev), dev); in lbggpio_probe() [all …]
|
/freebsd/sys/dev/ow/ |
H A D | ow_temp.c | 60 device_t dev; member 73 ow_temp_probe(device_t dev) in ow_temp_probe() argument 76 switch (ow_get_family(dev)) { in ow_temp_probe() 97 own_command_wait(dev, &cmd); in ow_temp_read_scratchpad() 109 own_command_wait(dev, &cmd); in ow_temp_convert_t() 122 own_command_wait(dev, &cmd); in ow_temp_read_power_supply() 147 ow_temp_convert_t(sc->dev); in ow_temp_event_thread() 187 ow_temp_attach(device_t dev) in ow_temp_attach() argument 191 sc = device_get_softc(dev); in ow_temp_attach() 192 sc->dev = dev; in ow_temp_attach() [all …]
|
/freebsd/sys/dev/mmc/ |
H A D | mmc.c | 254 sc->dev = dev; in mmc_attach() 297 err = mmc_acquire_bus(dev, dev); in mmc_suspend() 568 dev = sc->dev; in mmc_idle_cards() 663 dev = sc->dev; in mmc_power_up() 688 device_t dev = sc->dev; in mmc_power_down() local 828 dev = sc->dev; in mmc_set_power_class() 2033 dev = sc->dev; in mmc_go_discovery() 2119 dev = sc->dev; in mmc_calculate_clock() 2282 dev = sc->dev; in mmc_switch_to_hs400() 2323 dev = sc->dev; in mmc_switch_to_hs200() [all …]
|
/freebsd/sys/arm/nvidia/ |
H A D | tegra_lic.c | 84 device_t dev; member 185 tegra_lic_probe(device_t dev) in tegra_lic_probe() argument 187 if (!ofw_bus_status_okay(dev)) in tegra_lic_probe() 197 tegra_lic_attach(device_t dev) in tegra_lic_attach() argument 204 sc = device_get_softc(dev); in tegra_lic_attach() 205 sc->dev = dev; in tegra_lic_attach() 206 node = ofw_bus_get_node(dev); in tegra_lic_attach() 234 device_printf(dev, "Cannot register PIC\n"); in tegra_lic_attach() 245 tegra_lic_detach(device_t dev) in tegra_lic_detach() argument 250 sc = device_get_softc(dev); in tegra_lic_detach() [all …]
|
/freebsd/sys/dev/dpaa2/ |
H A D | memac_mdio_acpi.c | 69 sc = device_get_softc(dev); in memacphy_acpi_miibus_statchg() 78 sc = device_get_softc(dev); in memacphy_acpi_set_ni_dev() 107 sc->scc.dev = dev; in memacphy_acpi_attach() 108 h = acpi_get_handle(dev); in memacphy_acpi_attach() 187 device_t dev; member 205 rc = ACPI_ID_PROBE(device_get_parent(dev), dev, memac_mdio_ids, NULL); in memac_mdio_acpi_probe() 239 *dev = child; in memac_mdio_acpi_probe_child() 253 sc->scc.dev = dev; in memac_mdio_acpi_attach() 259 ctx.dev = dev; in memac_mdio_acpi_attach() 262 ACPI_SCAN_CHILDREN(device_get_parent(dev), dev, 1, in memac_mdio_acpi_attach() [all …]
|
/freebsd/sys/dev/firmware/arm/ |
H A D | scmi_shmem.c | 55 device_t dev; member 72 shmem_probe(device_t dev) in shmem_probe() argument 87 shmem_attach(device_t dev) in shmem_attach() argument 93 sc = device_get_softc(dev); in shmem_attach() 94 sc->dev = dev; in shmem_attach() 112 shmem_detach(device_t dev) in shmem_detach() argument 125 sc = device_get_softc(dev); in scmi_shmem_read() 141 sc = device_get_softc(dev); in scmi_shmem_write() 202 sc = device_get_softc(dev); in scmi_shmem_prepare_msg() 241 if (dev == NULL) in scmi_shmem_clear_channel() [all …]
|
/freebsd/sys/dev/firewire/ |
H A D | fwohci_pci.c | 70 fwohci_pci_probe(device_t dev) in fwohci_pci_probe() argument 74 id = pci_get_devid(dev); in fwohci_pci_probe() 193 pci_get_vendor(dev), pci_get_device(dev)); in fwohci_pci_probe() 374 fwohci_pci_suspend(device_t dev) in fwohci_pci_suspend() argument 383 fwohci_stop(sc, dev); in fwohci_pci_suspend() 388 fwohci_pci_resume(device_t dev) in fwohci_pci_resume() argument 392 fwohci_pci_init(dev); in fwohci_pci_resume() 393 fwohci_resume(sc, dev); in fwohci_pci_resume() 402 bus_generic_shutdown(dev); in fwohci_pci_shutdown() 403 fwohci_stop(sc, dev); in fwohci_pci_shutdown() [all …]
|
/freebsd/contrib/bc/tests/ |
H A D | other.sh | 115 printf '%s\n' "$halt" 2> /dev/null | "$exe" "$@" > /dev/null 2>&1 122 printf '%s\n' "quit" 2> /dev/null | "$exe" "$@" > /dev/null 2>&1 145 printf 's(.02893)\n' 2> /dev/null | "$exe" "$@" > /dev/null 149 printf 'halt\n' 2> /dev/null | "$exe" "$@" -e 4 > /dev/null 254 printf '4s stuff\n' 2> /dev/null | "$exe" "$@" > /dev/null 269 printf 'three\n' 2> /dev/null | cut -c1-3 > /dev/null 383 printf '%s\n' "$halt" 2> /dev/null | "$exe" "$@" -h > /dev/null 385 printf '%s\n' "$halt" 2> /dev/null | "$exe" "$@" -P > /dev/null 387 printf '%s\n' "$halt" 2> /dev/null | "$exe" "$@" -R > /dev/null 389 printf '%s\n' "$halt" 2> /dev/null | "$exe" "$@" -v > /dev/null [all …]
|
/freebsd/sys/dev/malo/ |
H A D | if_malo_pci.c | 129 malo_pci_probe(device_t dev) in malo_pci_probe() argument 135 vendor = pci_get_vendor(dev); in malo_pci_probe() 136 devid = pci_get_device(dev); in malo_pci_probe() 150 malo_pci_attach(device_t dev) in malo_pci_attach() argument 156 sc->malo_dev = dev; in malo_pci_attach() 158 pci_enable_busmaster(dev); in malo_pci_attach() 176 msic = pci_msi_count(dev); in malo_pci_attach() 191 pci_release_msi(dev); in malo_pci_attach() 260 pci_release_msi(dev); in malo_pci_attach() 278 bus_generic_detach(dev); in malo_pci_detach() [all …]
|
/freebsd/sys/conf/ |
H A D | files | 2306 -I$S/dev/liquidio -I$S/dev/liquidio/base -DSMP" 2309 -I$S/dev/liquidio -I$S/dev/liquidio/base -DSMP" 2312 -I$S/dev/liquidio -I$S/dev/liquidio/base -DSMP" 2315 -I$S/dev/liquidio -I$S/dev/liquidio/base -DSMP" 2318 -I$S/dev/liquidio -I$S/dev/liquidio/base -DSMP" 2321 -I$S/dev/liquidio -I$S/dev/liquidio/base -DSMP" 2324 -I$S/dev/liquidio -I$S/dev/liquidio/base -DSMP" 2327 -I$S/dev/liquidio -I$S/dev/liquidio/base -DSMP" 2330 -I$S/dev/liquidio -I$S/dev/liquidio/base -DSMP" 2333 -I$S/dev/liquidio -I$S/dev/liquidio/base -DSMP" [all …]
|
/freebsd/sys/dev/mlx5/mlx5_core/ |
H A D | mlx5_mpfs.c | 39 #define MPFS_LOCK(dev) spin_lock(&(dev)->mpfs.spinlock) argument 40 #define MPFS_UNLOCK(dev) spin_unlock(&(dev)->mpfs.spinlock) argument 59 MPFS_LOCK(dev); in mlx5_mpfs_add_mac() 62 set_bit(index, dev->mpfs.bitmap); in mlx5_mpfs_add_mac() 63 MPFS_UNLOCK(dev); in mlx5_mpfs_add_mac() 78 MPFS_LOCK(dev); in mlx5_mpfs_add_mac() 79 clear_bit(index, dev->mpfs.bitmap); in mlx5_mpfs_add_mac() 80 MPFS_UNLOCK(dev); in mlx5_mpfs_add_mac() 105 MPFS_LOCK(dev); in mlx5_mpfs_del_mac() 106 clear_bit(index, dev->mpfs.bitmap); in mlx5_mpfs_del_mac() [all …]
|
/freebsd/sys/arm/ti/ |
H A D | ti_prm.c | 44 #define DPRINTF(dev, msg...) device_printf(dev, msg) 46 #define DPRINTF(dev, msg...) argument 53 device_t dev; member 84 ti_prm_probe(device_t dev) in ti_prm_probe() argument 86 if (!ofw_bus_status_okay(dev)) in ti_prm_probe() 100 ti_prm_attach(device_t dev) in ti_prm_attach() argument 105 sc = device_get_softc(dev); in ti_prm_attach() 106 sc->dev = dev; in ti_prm_attach() 123 ti_prm_detach(device_t dev) { in ti_prm_detach() argument 128 ti_prm_reset(device_t dev) in ti_prm_reset() argument [all …]
|
/freebsd/sys/contrib/device-tree/Bindings/pinctrl/ |
H A D | marvell,armada-98dx3236-pinctrl.txt | 30 mpp16 16 gpo, dev(oe) 34 mpp20 20 gpo, dev(we0) 35 mpp21 21 gpo, dev(ad0) 36 mpp22 22 gpo, dev(ad1) 37 mpp23 23 gpo, dev(ad2) 38 mpp24 24 gpo, dev(ad3) 39 mpp25 25 gpo, dev(ad4) 40 mpp26 26 gpo, dev(ad5) 41 mpp27 27 gpo, dev(ad6) 43 mpp29 29 gpo, dev(a0) [all …]
|
/freebsd/sys/dev/agp/ |
H A D | agp_amd.c | 86 device_printf(dev, in agp_amd_alloc_gatt() 117 device_printf(dev, in agp_amd_alloc_gatt() 173 agp_amd_match(device_t dev) in agp_amd_match() argument 195 agp_amd_probe(device_t dev) in agp_amd_probe() argument 225 agp_generic_detach(dev); in agp_amd_attach() 243 if (AGP_SET_APERTURE(dev, AGP_GET_APERTURE(dev) / 2)) in agp_amd_attach() 252 pci_write_config(dev, in agp_amd_attach() 257 pci_write_config(dev, in agp_amd_attach() 264 AGP_FLUSH_TLB(dev); in agp_amd_attach() 274 agp_free_cdev(dev); in agp_amd_detach() [all …]
|
/freebsd/sys/dev/mlx4/mlx4_core/ |
H A D | mlx4_cmd.c | 536 ret = mlx4_master_process_vhcr(dev, dev->caps.function, vhcr); in mlx4_slave_cmd() 787 if (!mlx4_is_mfunc(dev) || (native && mlx4_is_master(dev))) { in __mlx4_cmd() 1853 struct mlx4_dev *dev = &priv->dev; in mlx4_master_immediate_activate_vlan_qos() local 2245 struct mlx4_dev *dev = &priv->dev; in mlx4_master_comm_channel() local 2477 dma_free_coherent(&dev->persist->pdev->dev, PAGE_SIZE, in mlx4_multi_func_init() 2605 dma_free_coherent(&dev->persist->pdev->dev, PAGE_SIZE, in mlx4_cmd_cleanup() 2736 mlx4_err(dev, in mlx4_get_vf_indx() 2880 struct mlx4_dev *dev = &priv->dev; in mlx4_set_vport_qos() local 3059 mlx4_info(dev, in mlx4_set_vf_vlan() 3104 mlx4_info(dev, in mlx4_set_vf_rate() [all …]
|
H A D | mlx4.h | 222 &(mdev)->persist->pdev->dev, format, \ 386 struct mlx4_dev *dev; member 817 struct mlx4_dev *dev; member 831 struct mlx4_dev *dev; member 859 struct mlx4_dev dev; member 915 return container_of(dev, struct mlx4_priv, dev); in mlx4_priv() 933 int mlx4_reset(struct mlx4_dev *dev); 1026 int mlx4_catas_init(struct mlx4_dev *dev); 1027 void mlx4_catas_end(struct mlx4_dev *dev); 1037 u64 mlx4_make_profile(struct mlx4_dev *dev, [all …]
|
/freebsd/sys/dev/sdhci/ |
H A D | sdhci_fdt.c | 252 sdhci_init_clocks(device_t dev) in sdhci_init_clocks() argument 322 sdhci_init_rk3399(device_t dev) in sdhci_init_rk3399() argument 504 sdhci_fdt_probe(device_t dev) in sdhci_fdt_probe() argument 514 if (!ofw_bus_status_okay(dev)) in sdhci_fdt_probe() 545 node = ofw_bus_get_node(dev); in sdhci_fdt_probe() 565 sdhci_fdt_attach(device_t dev) in sdhci_fdt_attach() argument 571 sc->dev = dev; in sdhci_fdt_attach() 586 err = sdhci_init_clocks(dev); in sdhci_fdt_attach() 631 device_printf(dev, in sdhci_fdt_attach() 664 sdhci_fdt_detach(device_t dev) in sdhci_fdt_detach() argument [all …]
|
/freebsd/sys/dev/bwi/ |
H A D | if_bwi_pci.c | 104 bwi_pci_probe(device_t dev) in bwi_pci_probe() argument 109 did = pci_get_device(dev); in bwi_pci_probe() 110 vid = pci_get_vendor(dev); in bwi_pci_probe() 122 bwi_pci_attach(device_t dev) in bwi_pci_attach() argument 128 sc->sc_dev = dev; in bwi_pci_attach() 133 pci_enable_busmaster(dev); in bwi_pci_attach() 191 bwi_pci_detach(device_t dev) in bwi_pci_detach() argument 201 bus_generic_detach(dev); in bwi_pci_detach() 211 bwi_pci_shutdown(device_t dev) in bwi_pci_shutdown() argument 220 bwi_pci_suspend(device_t dev) in bwi_pci_suspend() argument [all …]
|
/freebsd/sys/contrib/dev/mediatek/mt76/mt7921/ |
H A D | sdio_mcu.c | 29 if (dev->fw_assert) in mt7921s_mcu_send_message() 49 mt76_queue_kick(dev, mdev->q_mcu[txq]); in mt7921s_mcu_send_message() 87 mt7921s_mcu_drv_pmctrl(dev); in mt7921s_mcu_init() 89 dev->mt76.mcu_ops = &mt7921s_mcu_ops; in mt7921s_mcu_init() 91 ret = mt7921_run_firmware(dev); in mt7921s_mcu_init() 104 struct mt76_connac_pm *pm = &dev->pm; in mt7921s_mcu_drv_pmctrl() 123 dev_err(dev->mt76.dev, "driver own failed\n"); in mt7921s_mcu_drv_pmctrl() 140 struct mt76_connac_pm *pm = &dev->pm; in mt7921s_mcu_fw_pmctrl() 148 dev, status, in mt7921s_mcu_fw_pmctrl() 152 dev_err(dev->mt76.dev, "mailbox ACK not cleared\n"); in mt7921s_mcu_fw_pmctrl() [all …]
|
/freebsd/usr.bin/sdiotool/ |
H A D | cam_sdio.c | 32 sdio_rw_direct(struct cam_device *dev, in sdio_rw_direct() argument 42 ccb = cam_getccb(dev); in sdio_rw_direct() 65 if (((retval = cam_send_ccb(dev, ccb)) < 0) in sdio_rw_direct() 89 sdio_rw_extended(struct cam_device *dev, in sdio_rw_extended() argument 109 ccb = cam_getccb(dev); in sdio_rw_extended() 147 if (((retval = cam_send_ccb(dev, ccb)) < 0) in sdio_rw_extended() 221 *ret = sdio_rw_extended(dev, func_number, addr, in sdio_read_2() 234 return sdio_rw_extended(dev, func_number, addr, in sdio_write_2() 338 tuple_id = sdio_read_1(dev, 0, addr++, &ret); in sdio_func_read_cis() 356 ch = sdio_read_1(dev, 0, addr + i, &ret); in sdio_func_read_cis() [all …]
|
/freebsd/contrib/libfido2/tools/ |
H A D | config.c | 21 fido_dev_t *dev; in config_entattest() local 25 dev = open_dev(path); in config_entattest() 42 fido_dev_close(dev); in config_entattest() 43 fido_dev_free(&dev); in config_entattest() 51 fido_dev_t *dev; in config_always_uv() local 55 dev = open_dev(path); in config_always_uv() 84 fido_dev_close(dev); in config_always_uv() 85 fido_dev_free(&dev); in config_always_uv() 93 fido_dev_t *dev; in config_pin_minlen() local 126 fido_dev_t *dev; in config_force_pin_change() local [all …]
|
/freebsd/sys/dev/iicbus/rtc/ |
H A D | s35390a.c | 203 s390rtc_probe(device_t dev) in s390rtc_probe() argument 207 if (!ofw_bus_status_okay(dev)) in s390rtc_probe() 229 device_t dev; in s390rtc_start() local 233 dev = arg; in s390rtc_start() 246 device_printf(dev, in s390rtc_start() 263 device_printf(dev, in s390rtc_start() 273 s390rtc_attach(device_t dev) in s390rtc_attach() argument 277 sc = device_get_softc(dev); in s390rtc_attach() 278 sc->sc_dev = dev; in s390rtc_attach() 287 s390rtc_detach(device_t dev) in s390rtc_detach() argument [all …]
|