| /dflybsd-src/sys/dev/netif/bwn/bwn/ |
| H A D | if_bwn_phy_common.c | 116 uint16_t chip_id = siba_get_chipid(sc->sc_dev); in bwn_mac_switch_freq() 179 tmp = siba_read_4(sc->sc_dev, SIBA_TGSLOW); in bwn_phy_force_clock() 184 siba_write_4(sc->sc_dev, SIBA_TGSLOW, tmp); in bwn_phy_force_clock() 212 val = siba_read_4(sc->sc_dev, SIBA_TGSLOW); in bwn_mac_phy_clock_set() 217 siba_write_4(sc->sc_dev, SIBA_TGSLOW, val); in bwn_mac_phy_clock_set() 229 siba_cc_write32(sc->sc_dev, SIBA_CC_CHIPCTL_ADDR, 0); in bwn_wireless_core_phy_pll_reset() 230 siba_cc_mask32(sc->sc_dev, SIBA_CC_CHIPCTL_DATA, ~0x4); in bwn_wireless_core_phy_pll_reset() 231 siba_cc_set32(sc->sc_dev, SIBA_CC_CHIPCTL_DATA, 0x4); in bwn_wireless_core_phy_pll_reset() 232 siba_cc_mask32(sc->sc_dev, SIBA_CC_CHIPCTL_DATA, ~0x4); in bwn_wireless_core_phy_pll_reset()
|
| H A D | if_bwn.c | 565 sc->sc_dev = dev; in bwn_attach() 580 device_printf(sc->sc_dev, in bwn_attach() 601 device_printf(sc->sc_dev, "WLAN (chipid %#x rev %u) " in bwn_attach() 603 siba_get_chipid(sc->sc_dev), siba_get_revid(sc->sc_dev), in bwn_attach() 608 device_printf(sc->sc_dev, "DMA (%d bits)\n", in bwn_attach() 611 device_printf(sc->sc_dev, "PIO\n"); in bwn_attach() 619 sc->bwn_irq_type = pci_alloc_1intr(sc->sc_dev, bwn_msi_enable, in bwn_attach() 621 if ((sc->bwn_irq = bus_alloc_resource_any(sc->sc_dev, SYS_RES_IRQ, in bwn_attach() 623 device_printf(sc->sc_dev, "Cannot allocate interrupt\n"); in bwn_attach() 627 if ((error = bus_setup_intr(sc->sc_dev, sc->bwn_irq, INTR_MPSAFE, in bwn_attach() [all …]
|
| H A D | if_bwn_phy_lp.c | 479 device_printf(sc->sc_dev, in bwn_phy_lp_init() 624 plp->plp_txisoband_m = siba_sprom_get_tri2g(sc->sc_dev); in bwn_phy_lp_readsprom() 625 plp->plp_bxarch = siba_sprom_get_bxa2g(sc->sc_dev); in bwn_phy_lp_readsprom() 626 plp->plp_rxpwroffset = siba_sprom_get_rxpo2g(sc->sc_dev); in bwn_phy_lp_readsprom() 627 plp->plp_rssivf = siba_sprom_get_rssismf2g(sc->sc_dev); in bwn_phy_lp_readsprom() 628 plp->plp_rssivc = siba_sprom_get_rssismc2g(sc->sc_dev); in bwn_phy_lp_readsprom() 629 plp->plp_rssigs = siba_sprom_get_rssisav2g(sc->sc_dev); in bwn_phy_lp_readsprom() 633 plp->plp_txisoband_l = siba_sprom_get_tri5gl(sc->sc_dev); in bwn_phy_lp_readsprom() 634 plp->plp_txisoband_m = siba_sprom_get_tri5g(sc->sc_dev); in bwn_phy_lp_readsprom() 635 plp->plp_txisoband_h = siba_sprom_get_tri5gh(sc->sc_dev); in bwn_phy_lp_readsprom() [all …]
|
| H A D | if_bwn_phy_g.c | 186 bg = (int8_t)siba_sprom_get_tssi_bg(sc->sc_dev); in bwn_phy_g_attach() 187 pab0 = (int16_t)siba_sprom_get_pa0b0(sc->sc_dev); in bwn_phy_g_attach() 188 pab1 = (int16_t)siba_sprom_get_pa0b1(sc->sc_dev); in bwn_phy_g_attach() 189 pab2 = (int16_t)siba_sprom_get_pa0b2(sc->sc_dev); in bwn_phy_g_attach() 191 if ((siba_get_chipid(sc->sc_dev) == 0x4301) && (phy->rf_ver != 0x2050)) in bwn_phy_g_attach() 192 device_printf(sc->sc_dev, "not supported anymore\n"); in bwn_phy_g_attach() 205 device_printf(sc->sc_dev, "failed to allocate buffer\n"); in bwn_phy_g_attach() 218 device_printf(sc->sc_dev, in bwn_phy_g_attach() 317 if (siba_get_pci_subvendor(sc->sc_dev) == SIBA_BOARDVENDOR_BCM && in bwn_phy_g_prepare_hw() 318 siba_get_pci_subdevice(sc->sc_dev) == SIBA_BOARD_BCM4309G) { in bwn_phy_g_prepare_hw() [all …]
|
| /dflybsd-src/sys/dev/netif/iwm/ |
| H A D | if_iwm.c | 491 device_printf(sc->sc_dev, in iwm_set_default_calib() 515 device_printf(sc->sc_dev, in iwm_set_ucode_api_flags() 540 device_printf(sc->sc_dev, in iwm_set_ucode_capabilities() 587 device_printf(sc->sc_dev, in iwm_read_firmware() 609 device_printf(sc->sc_dev, "invalid firmware %s\n", in iwm_read_firmware() 631 device_printf(sc->sc_dev, in iwm_read_firmware() 643 device_printf(sc->sc_dev, in iwm_read_firmware() 663 device_printf(sc->sc_dev, in iwm_read_firmware() 673 device_printf(sc->sc_dev, in iwm_read_firmware() 680 device_printf(sc->sc_dev, in iwm_read_firmware() [all …]
|
| H A D | if_iwm_pcie_trans.c | 435 error = pci_find_cap(sc->sc_dev, PCIY_EXPRESS, &pcie_ptr); 438 lctl = pci_read_config(sc->sc_dev, pcie_ptr + PCIER_LINK_CTL, 442 pcie_ptr = pci_get_pciecap_ptr(sc->sc_dev); 445 lctl = pci_read_config(sc->sc_dev, pcie_ptr + PCIER_LINKCTRL, 457 cap = pci_read_config(sc->sc_dev, pcie_ptr + PCIER_DEVICE_CTL2, 465 cap = pci_read_config(sc->sc_dev, pcie_ptr + PCIER_DEVCTRL2, 533 device_printf(sc->sc_dev, 595 device_printf(sc->sc_dev, "apm init error %d\n", error); 619 device_printf(sc->sc_dev, "timeout waiting for master\n"); 696 device_printf(sc->sc_dev, [all …]
|
| H A D | if_iwm_phy_db.c | 481 device_printf(phy_db->sc->sc_dev, in iwm_phy_db_send_all_channel_groups() 509 device_printf(phy_db->sc->sc_dev, in iwm_send_phy_db_data() 517 device_printf(phy_db->sc->sc_dev, in iwm_send_phy_db_data() 526 device_printf(phy_db->sc->sc_dev, in iwm_send_phy_db_data() 534 device_printf(phy_db->sc->sc_dev, in iwm_send_phy_db_data() 544 device_printf(phy_db->sc->sc_dev, in iwm_send_phy_db_data() 554 device_printf(phy_db->sc->sc_dev, in iwm_send_phy_db_data()
|
| H A D | if_iwm_binding.c | 171 device_printf(sc->sc_dev, in iwm_binding_cmd() 177 device_printf(sc->sc_dev, in iwm_binding_cmd() 236 device_printf(sc->sc_dev, in iwm_binding_remove_vif()
|
| /dflybsd-src/sys/dev/acpica/aibs/ |
| H A D | atk0110.c | 55 device_t sc_dev; member 116 sc->sc_dev = dev; in aibs_attach() 165 device_printf(sc->sc_dev, "%s not found\n", name); in aibs_attach_sif() 172 device_printf(sc->sc_dev, "%s[0]: invalid type\n", name); in aibs_attach_sif() 179 device_printf(sc->sc_dev, "%s: invalid package\n", name); in aibs_attach_sif() 188 device_printf(sc->sc_dev, "%s: malformed package: %i/%i" in aibs_attach_sif() 192 device_printf(sc->sc_dev, "%s: no members in the package\n", in aibs_attach_sif() 200 device_printf(sc->sc_dev, "%s: malloc fail\n", name); in aibs_attach_sif() 225 device_printf(sc->sc_dev, in aibs_attach_sif() 237 device_printf(sc->sc_dev, in aibs_attach_sif() [all …]
|
| /dflybsd-src/sys/dev/netif/ath/ath/ |
| H A D | if_ath_rx_edma.c | 229 device_printf(sc->sc_dev, "%s: i (%d) != tail! (%d)\n", in ath_edma_reinit_fifo() 268 device_printf(sc->sc_dev, in ath_edma_startrecv() 407 device_printf(sc->sc_dev, in ath_edma_recv_proc_queue() 419 device_printf(sc->sc_dev, "%s: Q%d: NULL bf?\n", in ath_edma_recv_proc_queue() 599 device_printf(sc->sc_dev, "%s: sc_inreset_cnt > 0; skipping\n", in ath_edma_recv_tasklet() 667 device_printf(sc->sc_dev, "%s: called: m=%p, size=%d, mtod=%p\n", in ath_edma_rxbuf_init() 705 device_printf(sc->sc_dev, "%s: failed; error=%d\n", in ath_edma_rxbuf_init() 746 device_printf(sc->sc_dev, "%s: nothing on rxbuf?!\n", in ath_edma_rxbuf_alloc() 757 device_printf(sc->sc_dev, in ath_edma_rxbuf_alloc() 810 device_printf(sc->sc_dev, in ath_edma_rxfifo_alloc() [all …]
|
| H A D | if_ath.c | 442 device_printf(sc->sc_dev, "%s: refcnt=0?\n", __func__); in _ath_power_restore_power_state() 486 device_printf(sc->sc_dev, "configuring for %s\n", in ath_setup_hal_config() 492 device_printf(sc->sc_dev, "CUS217 card detected\n"); in ath_setup_hal_config() 495 device_printf(sc->sc_dev, "CUS252 card detected\n"); in ath_setup_hal_config() 498 device_printf(sc->sc_dev, "WB335 1-ANT card detected\n"); in ath_setup_hal_config() 501 device_printf(sc->sc_dev, "WB335 2-ANT card detected\n"); in ath_setup_hal_config() 504 device_printf(sc->sc_dev, "Killer Wireless card detected\n"); in ath_setup_hal_config() 520 device_printf(sc->sc_dev, "Set BT/WLAN RX diversity capability\n"); in ath_setup_hal_config() 526 device_printf(sc->sc_dev, "Enable WAR for ASPM D3/L1\n"); in ath_setup_hal_config() 532 device_printf(sc->sc_dev, "Disable PLL PowerSave\n"); in ath_setup_hal_config() [all …]
|
| H A D | if_ath_descdma.c | 183 error = bus_dma_tag_create(bus_get_dma_tag(sc->sc_dev), /* parent */ in ath_descdma_alloc_desc() 202 device_printf(sc->sc_dev, in ath_descdma_alloc_desc() 212 device_printf(sc->sc_dev, in ath_descdma_alloc_desc() 223 device_printf(sc->sc_dev, in ath_descdma_alloc_desc() 274 device_printf(sc->sc_dev, in ath_descdma_setup() 302 device_printf(sc->sc_dev, "unable to create dmamap " in ath_descdma_setup() 362 device_printf(sc->sc_dev, in ath_descdma_setup_rx_edma() 379 device_printf(sc->sc_dev, "unable to create dmamap " in ath_descdma_setup_rx_edma() 418 device_printf(sc->sc_dev, in ath_descdma_cleanup()
|
| H A D | if_ath_tx_edma.c | 283 device_printf(sc->sc_dev, in ath_edma_dma_restart() 334 device_printf(sc->sc_dev, in ath_edma_dma_restart() 480 device_printf(sc->sc_dev, "%s: malloc failed\n", in ath_edma_setup_txfifo() 653 device_printf(sc->sc_dev, "%s: invalid TX status?\n", in ath_edma_tx_processq() 695 device_printf(sc->sc_dev, "%s: Q%d: empty?\n", in ath_edma_tx_processq() 713 device_printf(sc->sc_dev, in ath_edma_tx_processq() 791 device_printf(sc->sc_dev, "%s: finaltsi=%d\n", in ath_edma_tx_processq() 866 device_printf(sc->sc_dev, "TX descriptor length: %d\n", in ath_xmit_setup_edma() 868 device_printf(sc->sc_dev, "TX status length: %d\n", in ath_xmit_setup_edma() 870 device_printf(sc->sc_dev, "TX buffers per descriptor: %d\n", in ath_xmit_setup_edma()
|
| H A D | if_ath_btcoex.c | 100 device_printf(sc->sc_dev, "Enabling WB195 BTCOEX\n"); in ath_btcoex_cfg_wb195() 156 device_printf(sc->sc_dev, "Enabling WB225 BTCOEX\n"); in ath_btcoex_cfg_wb225() 213 device_printf(sc->sc_dev, "Enabling WB222 BTCOEX\n"); in ath_btcoex_cfg_wb222() 304 ret = resource_string_value(device_get_name(sc->sc_dev), in ath_btcoex_attach() 305 device_get_unit(sc->sc_dev), in ath_btcoex_attach()
|
| /dflybsd-src/sys/dev/netif/wpi/ |
| H A D | if_wpi.c | 349 sc->sc_dev = dev; in wpi_attach() 352 error = resource_int_value(device_get_name(sc->sc_dev), in wpi_attach() 353 device_get_unit(sc->sc_dev), "debug", &(sc->sc_debug)); in wpi_attach() 505 device_printf(sc->sc_dev, "Regulatory Domain: %.4s\n", in wpi_attach() 507 device_printf(sc->sc_dev, "Hardware Type: %c\n", in wpi_attach() 509 device_printf(sc->sc_dev, "Hardware Revision: %c\n", in wpi_attach() 511 device_printf(sc->sc_dev, "SKU %s support 802.11a\n", in wpi_attach() 606 struct sysctl_ctx_list *ctx = device_get_sysctl_ctx(sc->sc_dev); in wpi_sysctlattach() 607 struct sysctl_oid *tree = device_get_sysctl_tree(sc->sc_dev); in wpi_sysctlattach() 806 device_printf(sc->sc_dev, "could not lock memory\n"); in wpi_nic_lock() [all …]
|
| /dflybsd-src/sys/dev/netif/iwi/ |
| H A D | if_iwi.c | 294 sc->sc_dev = dev; in iwi_attach() 587 error = bus_dma_tag_create(bus_get_dma_tag(sc->sc_dev), 4, 0, in iwi_alloc_cmd_ring() 593 device_printf(sc->sc_dev, "could not create desc DMA tag\n"); in iwi_alloc_cmd_ring() 600 device_printf(sc->sc_dev, "could not allocate DMA memory\n"); in iwi_alloc_cmd_ring() 607 device_printf(sc->sc_dev, "could not load desc DMA map\n"); in iwi_alloc_cmd_ring() 655 error = bus_dma_tag_create(bus_get_dma_tag(sc->sc_dev), 4, 0, in iwi_alloc_tx_ring() 661 device_printf(sc->sc_dev, "could not create desc DMA tag\n"); in iwi_alloc_tx_ring() 668 device_printf(sc->sc_dev, "could not allocate DMA memory\n"); in iwi_alloc_tx_ring() 675 device_printf(sc->sc_dev, "could not load desc DMA map\n"); in iwi_alloc_tx_ring() 682 device_printf(sc->sc_dev, "could not allocate soft data\n"); in iwi_alloc_tx_ring() [all …]
|
| /dflybsd-src/sys/dev/netif/ral/ |
| H A D | rt2661.c | 209 sc->sc_dev = dev; in rt2661_attach() 228 device_printf(sc->sc_dev, in rt2661_attach() 247 device_printf(sc->sc_dev, in rt2661_attach() 255 device_printf(sc->sc_dev, "could not allocate Mgt ring\n"); in rt2661_attach() 261 device_printf(sc->sc_dev, "could not allocate Rx ring\n"); in rt2661_attach() 386 device_printf(sc->sc_dev, "only 1 vap supported\n"); in rt2661_vap_create() 395 device_printf(sc->sc_dev, in rt2661_vap_create() 407 device_printf(sc->sc_dev, "unknown opmode %d\n", opmode); in rt2661_vap_create() 487 error = bus_dma_tag_create(bus_get_dma_tag(sc->sc_dev), 4, 0, in rt2661_alloc_tx_ring() 492 error = bus_dma_tag_create(bus_get_dma_tag(sc->sc_dev), 4, 0, in rt2661_alloc_tx_ring() [all …]
|
| H A D | rt2560.c | 208 sc->sc_dev = dev; in rt2560_attach() 234 device_printf(sc->sc_dev, "could not allocate Tx ring\n"); in rt2560_attach() 240 device_printf(sc->sc_dev, "could not allocate ATIM ring\n"); in rt2560_attach() 246 device_printf(sc->sc_dev, "could not allocate Prio ring\n"); in rt2560_attach() 252 device_printf(sc->sc_dev, "could not allocate Beacon ring\n"); in rt2560_attach() 258 device_printf(sc->sc_dev, "could not allocate Rx ring\n"); in rt2560_attach() 393 device_printf(sc->sc_dev, "only 1 vap supported\n"); in rt2560_vap_create() 402 device_printf(sc->sc_dev, in rt2560_vap_create() 414 device_printf(sc->sc_dev, "unknown opmode %d\n", opmode); in rt2560_vap_create() 478 error = bus_dma_tag_create(bus_get_dma_tag(sc->sc_dev), 4, 0, in rt2560_alloc_tx_ring() [all …]
|
| H A D | rt2860.c | 241 sc->sc_dev = dev; in rt2860_attach() 262 device_printf(sc->sc_dev, in rt2860_attach() 277 device_printf(sc->sc_dev, "MAC/BBP RT%X (rev 0x%04X), " in rt2860_attach() 282 device_printf(sc->sc_dev, "MAC/BBP RT%X (rev 0x%04X), " in rt2860_attach() 293 device_printf(sc->sc_dev, in rt2860_attach() 300 device_printf(sc->sc_dev, "could not allocate Rx ring\n"); in rt2860_attach() 305 device_printf(sc->sc_dev, "could not allocate Tx pool\n"); in rt2860_attach() 458 device_printf(sc->sc_dev, "only 1 vap supported\n"); in rt2860_vap_create() 467 device_printf(sc->sc_dev, in rt2860_vap_create() 479 device_printf(sc->sc_dev, "unknown opmode %d\n", opmode); in rt2860_vap_create() [all …]
|
| /dflybsd-src/sys/dev/powermng/kate/ |
| H A D | kate.c | 68 device_t sc_dev; member 151 sc->sc_dev = dev; in kate_probe() 170 sc->sc_dev = dev; in kate_attach() 265 t = pci_read_config(sc->sc_dev, K_THERMTRIP_STAT_R, 4); in kate_refresh() 287 pci_write_config(sc->sc_dev, K_THERMTRIP_STAT_R, t, 4); in kate_refresh() 288 t = pci_read_config(sc->sc_dev, K_THERMTRIP_STAT_R, 4); in kate_refresh()
|
| /dflybsd-src/sys/dev/netif/iwn/ |
| H A D | if_iwn.c | 447 sc->sc_dev = dev; in iwn_attach() 450 error = resource_int_value(device_get_name(sc->sc_dev), in iwn_attach() 451 device_get_unit(sc->sc_dev), "debug", &(sc->sc_debug)); in iwn_attach() 765 device_printf(sc->sc_dev, "%s: rx_stats=%d, rx_stats_bt=%d\n", in iwn_attach() 834 device_printf(sc->sc_dev, "adapter type id : 0x%04x sub id :" in iwn_config_specific() 870 device_printf(sc->sc_dev, "adapter type id : 0x%04x sub id :" in iwn_config_specific() 904 device_printf(sc->sc_dev, "adapter type id : 0x%04x sub id :" in iwn_config_specific() 924 device_printf(sc->sc_dev, "adapter type id : 0x%04x sub id :" in iwn_config_specific() 949 device_printf(sc->sc_dev, "adapter type id : 0x%04x sub id :" in iwn_config_specific() 972 device_printf(sc->sc_dev, "adapter type id : 0x%04x sub id :" in iwn_config_specific() [all …]
|
| /dflybsd-src/sys/dev/powermng/perfbias/ |
| H A D | perfbias.c | 53 device_t sc_dev; member 123 sc->sc_dev = dev; in perfbias_attach() 129 device_get_nameunit(sc->sc_dev), CTLFLAG_RD, 0, ""); in perfbias_attach() 131 device_printf(sc->sc_dev, "can't add sysctl node\n"); in perfbias_attach()
|
| /dflybsd-src/sys/dev/netif/stge/ |
| H A D | if_stge.c | 418 device_printf(sc->sc_dev, "phy read fail\n"); in stge_miibus_readreg() 446 device_printf(sc->sc_dev, "phy write fail\n"); in stge_miibus_writereg() 538 device_printf(sc->sc_dev, "EEPROM failed to come ready\n"); in stge_read_eeprom() 543 device_printf(sc->sc_dev, "EEPROM read timed out\n"); in stge_read_eeprom() 582 sc->sc_dev = dev; in stge_attach() 749 if ((error = mii_phy_probe(sc->sc_dev, &sc->sc_miibus, stge_mediachange, in stge_attach() 751 device_printf(sc->sc_dev, "no PHY found!\n"); in stge_attach() 801 device_printf(sc->sc_dev, "couldn't set up IRQ\n"); in stge_attach() 865 device_printf(sc->sc_dev, "failed to create parent DMA tag\n"); in stge_dma_alloc() 878 device_printf(sc->sc_dev, in stge_dma_alloc() [all …]
|
| /dflybsd-src/sys/bus/u4b/serial/ |
| H A D | ulpt.c | 101 device_t sc_dev; member 310 device_get_nameunit(sc->sc_dev)); in ulpt_status_callback() 313 device_get_nameunit(sc->sc_dev)); in ulpt_status_callback() 316 device_get_nameunit(sc->sc_dev)); in ulpt_status_callback() 527 sc->sc_dev = dev; in ulpt_attach() 587 device_printf(sc->sc_dev, "using bi-directional mode\n"); in ulpt_attach() 608 device_printf(sc->sc_dev, "cannot get device id\n"); in ulpt_attach() 610 device_printf(sc->sc_dev, "empty device id, no " in ulpt_attach() 618 printf("%s: device id <", device_get_nameunit(sc->sc_dev)); in ulpt_attach()
|
| /dflybsd-src/sys/dev/powermng/km/ |
| H A D | km.c | 49 device_t sc_dev; member 137 sc->sc_dev = dev; in km_attach() 169 r = pci_read_config(sc->sc_dev, KM_REP_TEMP_CONTR_R, 4); in km_refresh()
|