/haiku/src/add-ons/kernel/drivers/network/wlan/ralinkwifi/dev/ral/ |
H A D | rt2560.c | 69 #define RT2560_RSSI(sc, rssi) \ 70 ((rssi) > (RT2560_NOISE_FLOOR + (sc)->rssi_corr) ? \ 71 ((rssi) - RT2560_NOISE_FLOOR - (sc)->rssi_corr) : 0) 75 #define DPRINTF(sc, fmt, ...) do { \ 76 if (sc->sc_debug > 0) \ 79 #define DPRINTFN(sc, n, fmt, ...) do { \ 80 if (sc->sc_debug >= (n)) \ 84 #define DPRINTF(sc, fmt, ...) 85 #define DPRINTFN(sc, n, fmt, ...) 207 struct rt2560_softc *sc local 343 struct rt2560_softc *sc = xsc; local 368 struct rt2560_softc *sc = ic->ic_softc; local 436 struct rt2560_softc *sc = xsc; local 454 rt2560_alloc_tx_ring(struct rt2560_softc *sc, struct rt2560_tx_ring *ring, int count) argument 521 rt2560_reset_tx_ring(struct rt2560_softc *sc, struct rt2560_tx_ring *ring) argument 555 rt2560_free_tx_ring(struct rt2560_softc *sc, struct rt2560_tx_ring *ring) argument 596 rt2560_alloc_rx_ring(struct rt2560_softc *sc, struct rt2560_rx_ring *ring, int count) argument 691 rt2560_reset_rx_ring(struct rt2560_softc *sc, struct rt2560_rx_ring *ring) argument 707 rt2560_free_rx_ring(struct rt2560_softc *sc, struct rt2560_rx_ring *ring) argument 748 struct rt2560_softc *sc = vap->iv_ic->ic_softc; local 802 rt2560_eeprom_read(struct rt2560_softc *sc, uint8_t addr) argument 860 rt2560_encryption_intr(struct rt2560_softc *sc) argument 909 rt2560_tx_intr(struct rt2560_softc *sc) argument 1005 rt2560_prio_intr(struct rt2560_softc *sc) argument 1087 rt2560_decryption_intr(struct rt2560_softc *sc) argument 1224 rt2560_rx_intr(struct rt2560_softc *sc) argument 1286 rt2560_beacon_expire(struct rt2560_softc *sc) argument 1318 rt2560_wakeup_expire(struct rt2560_softc *sc) argument 1326 struct rt2560_softc *sc = arg; local 1402 rt2560_setup_tx_desc(struct rt2560_softc *sc, struct rt2560_tx_desc *desc, uint32_t flags, int len, int rate, int encrypt, bus_addr_t physaddr) argument 1450 rt2560_tx_bcn(struct rt2560_softc *sc, struct mbuf *m0, struct ieee80211_node *ni) argument 1503 rt2560_tx_mgt(struct rt2560_softc *sc, struct mbuf *m0, struct ieee80211_node *ni) argument 1592 rt2560_sendprot(struct rt2560_softc *sc, const struct mbuf *m, struct ieee80211_node *ni, int prot, int rate) argument 1646 rt2560_tx_raw(struct rt2560_softc *sc, struct mbuf *m0, struct ieee80211_node *ni, const struct ieee80211_bpf_params *params) argument 1725 rt2560_tx_data(struct rt2560_softc *sc, struct mbuf *m0, struct ieee80211_node *ni) argument 1867 struct rt2560_softc *sc = ic->ic_softc; local 1887 rt2560_start(struct rt2560_softc *sc) argument 1910 struct rt2560_softc *sc = arg; local 1935 struct rt2560_softc *sc = ic->ic_softc; local 1953 rt2560_bbp_write(struct rt2560_softc *sc, uint8_t reg, uint8_t val) argument 1975 rt2560_bbp_read(struct rt2560_softc *sc, uint8_t reg) argument 2005 rt2560_rf_write(struct rt2560_softc *sc, uint8_t reg, uint32_t val) argument 2031 rt2560_set_chan(struct rt2560_softc *sc, struct ieee80211_channel *c) argument 2133 struct rt2560_softc *sc = ic->ic_softc; local 2151 struct rt2560_softc *sc = ic->ic_softc; local 2185 rt2560_enable_tsf_sync(struct rt2560_softc *sc) argument 2218 rt2560_enable_tsf(struct rt2560_softc *sc) argument 2226 rt2560_update_plcp(struct rt2560_softc *sc) argument 2256 struct rt2560_softc *sc = ic->ic_softc; local 2303 rt2560_set_basicrates(struct rt2560_softc *sc, const struct ieee80211_rateset *rs) argument 2327 rt2560_update_led(struct rt2560_softc *sc, int led1, int led2) argument 2337 rt2560_set_bssid(struct rt2560_softc *sc, const uint8_t *bssid) argument 2351 rt2560_set_macaddr(struct rt2560_softc *sc, const uint8_t *addr) argument 2365 rt2560_get_macaddr(struct rt2560_softc *sc, uint8_t *addr) argument 2383 struct rt2560_softc *sc = ic->ic_softc; local 2414 rt2560_read_config(struct rt2560_softc *sc) argument 2461 struct rt2560_softc *sc = ic->ic_softc; local 2471 struct rt2560_softc *sc = ic->ic_softc; local 2480 rt2560_bbp_init(struct rt2560_softc *sc) argument 2513 rt2560_set_txantenna(struct rt2560_softc *sc, int antenna) argument 2540 rt2560_set_rxantenna(struct rt2560_softc *sc, int antenna) argument 2560 rt2560_init_locked(struct rt2560_softc *sc) argument 2647 struct rt2560_softc *sc = priv; local 2659 rt2560_stop_locked(struct rt2560_softc *sc) argument 2699 struct rt2560_softc *sc = arg; local 2711 struct rt2560_softc *sc = ic->ic_softc; local [all...] |
H A D | rt2661.c | 72 #define DPRINTF(sc, fmt, ...) do { \ 73 if (sc->sc_debug > 0) \ 76 #define DPRINTFN(sc, n, fmt, ...) do { \ 77 if (sc->sc_debug >= (n)) \ 81 #define DPRINTF(sc, fmt, ...) 82 #define DPRINTFN(sc, n, fmt, ...) 206 struct rt2661_softc *sc = device_get_softc(dev); local 207 struct ieee80211com *ic = &sc->sc_ic; 211 sc->sc_id = id; 212 sc 333 struct rt2661_softc *sc = xsc; local 361 struct rt2661_softc *sc = ic->ic_softc; local 431 struct rt2661_softc *sc = xsc; local 439 struct rt2661_softc *sc = xsc; local 447 struct rt2661_softc *sc = xsc; local 465 rt2661_alloc_tx_ring(struct rt2661_softc *sc, struct rt2661_tx_ring *ring, int count) argument 530 rt2661_reset_tx_ring(struct rt2661_softc *sc, struct rt2661_tx_ring *ring) argument 563 rt2661_free_tx_ring(struct rt2661_softc *sc, struct rt2661_tx_ring *ring) argument 604 rt2661_alloc_rx_ring(struct rt2661_softc *sc, struct rt2661_rx_ring *ring, int count) argument 698 rt2661_reset_rx_ring(struct rt2661_softc *sc, struct rt2661_rx_ring *ring) argument 711 rt2661_free_rx_ring(struct rt2661_softc *sc, struct rt2661_rx_ring *ring) argument 753 struct rt2661_softc *sc = ic->ic_softc; local 796 rt2661_eeprom_read(struct rt2661_softc *sc, uint8_t addr) argument 850 rt2661_tx_intr(struct rt2661_softc *sc) argument 927 rt2661_tx_dma_intr(struct rt2661_softc *sc, struct rt2661_tx_ring *txq) argument 959 rt2661_rx_intr(struct rt2661_softc *sc) argument 1099 rt2661_mcu_beacon_expire(struct rt2661_softc *sc) argument 1105 rt2661_mcu_wakeup(struct rt2661_softc *sc) argument 1118 rt2661_mcu_cmd_intr(struct rt2661_softc *sc) argument 1127 struct rt2661_softc *sc = arg; local 1211 rt2661_setup_tx_desc(struct rt2661_softc *sc, struct rt2661_tx_desc *desc, uint32_t flags, uint16_t xflags, int len, int rate, const bus_dma_segment_t *segs, int nsegs, int ac) argument 1272 rt2661_tx_mgt(struct rt2661_softc *sc, struct mbuf *m0, struct ieee80211_node *ni) argument 1359 rt2661_sendprot(struct rt2661_softc *sc, int ac, const struct mbuf *m, struct ieee80211_node *ni, int prot, int rate) argument 1414 rt2661_tx_data(struct rt2661_softc *sc, struct mbuf *m0, struct ieee80211_node *ni, int ac) argument 1559 struct rt2661_softc *sc = ic->ic_softc; local 1579 rt2661_start(struct rt2661_softc *sc) argument 1614 struct rt2661_softc *sc = ic->ic_softc; local 1650 struct rt2661_softc *sc = (struct rt2661_softc *)arg; local 1672 struct rt2661_softc *sc = ic->ic_softc; local 1690 rt2661_bbp_write(struct rt2661_softc *sc, uint8_t reg, uint8_t val) argument 1712 rt2661_bbp_read(struct rt2661_softc *sc, uint8_t reg) argument 1742 rt2661_rf_write(struct rt2661_softc *sc, uint8_t reg, uint32_t val) argument 1768 rt2661_tx_cmd(struct rt2661_softc *sc, uint8_t cmd, uint16_t arg) argument 1782 rt2661_select_antenna(struct rt2661_softc *sc) argument 1808 rt2661_enable_mrr(struct rt2661_softc *sc) argument 1824 rt2661_set_txpreamble(struct rt2661_softc *sc) argument 1839 rt2661_set_basicrates(struct rt2661_softc *sc, const struct ieee80211_rateset *rs) argument 1867 rt2661_select_band(struct rt2661_softc *sc, struct ieee80211_channel *c) argument 1909 rt2661_set_chan(struct rt2661_softc *sc, struct ieee80211_channel *c) argument 1982 rt2661_set_bssid(struct rt2661_softc *sc, const uint8_t *bssid) argument 1994 rt2661_set_macaddr(struct rt2661_softc *sc, const uint8_t *addr) argument 2008 struct rt2661_softc *sc = ic->ic_softc; local 2029 struct rt2661_softc *sc = ic->ic_softc; local 2075 struct rt2661_softc *sc = ic->ic_softc; local 2099 rt2661_read_eeprom(struct rt2661_softc *sc, uint8_t macaddr[IEEE80211_ADDR_LEN]) argument 2191 rt2661_bbp_init(struct rt2661_softc *sc) argument 2225 rt2661_init_locked(struct rt2661_softc *sc) argument 2359 struct rt2661_softc *sc = priv; local 2371 rt2661_stop_locked(struct rt2661_softc *sc) argument 2417 struct rt2661_softc *sc = priv; local 2425 rt2661_load_microcode(struct rt2661_softc *sc) argument 2496 rt2661_rx_tune(struct rt2661_softc *sc) argument 2557 rt2661_radar_start(struct rt2661_softc *sc) argument 2589 rt2661_radar_stop(struct rt2661_softc *sc) argument 2609 rt2661_prepare_beacon(struct rt2661_softc *sc, struct ieee80211vap *vap) argument 2644 rt2661_enable_tsf_sync(struct rt2661_softc *sc) argument 2673 rt2661_enable_tsf(struct rt2661_softc *sc) argument 2686 rt2661_get_rssi(struct rt2661_softc *sc, uint8_t raw) argument 2730 struct rt2661_softc *sc = ic->ic_softc; local 2742 struct rt2661_softc *sc = ic->ic_softc; local 2754 struct rt2661_softc *sc = ic->ic_softc; local 2772 struct rt2661_softc *sc = ic->ic_softc; local [all...] |
/haiku/src/add-ons/kernel/drivers/network/ether/pcnet/dev/le/ |
H A D | am79900.c | 136 static void am79900_start_locked(struct lance_softc *sc); 144 am79900_config(struct am79900_softc *sc, const char* name, int unit) argument 148 sc->lsc.sc_meminit = am79900_meminit; 149 sc->lsc.sc_start_locked = am79900_start_locked; 151 error = lance_config(&sc->lsc, name, unit); 156 sc->lsc.sc_initaddr = mem; 158 sc->lsc.sc_rmdaddr = mem; 159 mem += sizeof(struct lermd) * sc->lsc.sc_nrbuf; 160 sc->lsc.sc_tmdaddr = mem; 161 mem += sizeof(struct letmd) * sc 176 am79900_detach(struct am79900_softc *sc) argument 186 am79900_meminit(struct lance_softc *sc) argument 252 am79900_rint(struct lance_softc *sc) argument 345 am79900_tint(struct lance_softc *sc) argument 430 struct lance_softc *sc = arg; local 543 am79900_start_locked(struct lance_softc *sc) argument 626 am79900_recv_print(struct lance_softc *sc, int no) argument 648 am79900_xmit_print(struct lance_softc *sc, int no) argument [all...] |
H A D | am7990.c | 98 static void am7990_start_locked(struct lance_softc *sc); 106 am7990_config(struct am7990_softc *sc, const char* name, int unit) argument 110 sc->lsc.sc_meminit = am7990_meminit; 111 sc->lsc.sc_start_locked = am7990_start_locked; 113 error = lance_config(&sc->lsc, name, unit); 118 sc->lsc.sc_initaddr = mem; 120 sc->lsc.sc_rmdaddr = mem; 121 mem += sizeof(struct lermd) * sc->lsc.sc_nrbuf; 122 sc->lsc.sc_tmdaddr = mem; 123 mem += sizeof(struct letmd) * sc 138 am7990_detach(struct am7990_softc *sc) argument 148 am7990_meminit(struct lance_softc *sc) argument 212 am7990_rint(struct lance_softc *sc) argument 308 am7990_tint(struct lance_softc *sc) argument 392 struct lance_softc *sc = arg; local 495 am7990_start_locked(struct lance_softc *sc) argument 577 am7990_recv_print(struct lance_softc *sc, int no) argument 600 am7990_xmit_print(struct lance_softc *sc, int no) argument [all...] |
/haiku/src/add-ons/kernel/drivers/network/ether/rtl81xx/dev/re/ |
H A D | if_re.c | 359 CSR_WRITE_1(sc, RL_EECMD, \ 360 CSR_READ_1(sc, RL_EECMD) | x) 363 CSR_WRITE_1(sc, RL_EECMD, \ 364 CSR_READ_1(sc, RL_EECMD) & ~x) 370 re_eeprom_putbyte(struct rl_softc *sc, int addr) argument 374 d = addr | (RL_9346_READ << sc->rl_eewidth); 380 for (i = 1 << (sc->rl_eewidth + 3); i; i >>= 1) { 398 re_eeprom_getword(struct rl_softc *sc, int addr, u_int16_t *dest) argument 406 re_eeprom_putbyte(sc, addr); 414 if (CSR_READ_1(sc, RL_EECM 427 re_read_eeprom(struct rl_softc *sc, caddr_t dest, int off, int cnt) argument 450 struct rl_softc *sc; local 488 struct rl_softc *sc; local 520 struct rl_softc *sc; local 574 struct rl_softc *sc; local 620 struct rl_softc *sc; local 672 re_set_rxmode(struct rl_softc *sc) argument 732 re_reset(struct rl_softc *sc) argument 777 re_diag(struct rl_softc *sc) argument 996 re_allocmem(device_t dev, struct rl_softc *sc) argument 1218 struct rl_softc *sc; local 1770 struct rl_softc *sc; local 1923 re_discard_rxbuf(struct rl_softc *sc, int idx) argument 1943 re_newbuf(struct rl_softc *sc, int idx) argument 2007 re_jumbo_newbuf(struct rl_softc *sc, int idx) argument 2077 re_tx_list_init(struct rl_softc *sc) argument 2107 re_rx_list_init(struct rl_softc *sc) argument 2136 re_jrx_list_init(struct rl_softc *sc) argument 2165 re_rxeof(struct rl_softc *sc, int *rx_npktsp) argument 2410 re_txeof(struct rl_softc *sc) argument 2484 struct rl_softc *sc; local 2510 struct rl_softc *sc = ifp->if_softc; local 2523 struct rl_softc *sc = ifp->if_softc; local 2563 struct rl_softc *sc; local 2581 struct rl_softc *sc; local 2651 struct rl_softc *sc; local 2730 re_encap(struct rl_softc *sc, struct mbuf **m_head) argument 2924 struct rl_softc *sc; local 2938 struct rl_softc *sc; local 2999 re_start_tx(struct rl_softc *sc) argument 3028 re_set_jumbo(struct rl_softc *sc, int jumbo) argument 3083 struct rl_softc *sc = xsc; local 3091 re_init_locked(struct rl_softc *sc) argument 3375 struct rl_softc *sc; local 3394 struct rl_softc *sc; local 3410 struct rl_softc *sc = ifp->if_softc; local 3566 re_watchdog(struct rl_softc *sc) argument 3600 re_stop(struct rl_softc *sc) argument 3720 struct rl_softc *sc; local 3741 struct rl_softc *sc; local 3779 struct rl_softc *sc; local 3798 re_set_linkspeed(struct rl_softc *sc) argument 3866 re_setwol(struct rl_softc *sc) argument 3945 re_clrwol(struct rl_softc *sc) argument 3972 re_add_sysctls(struct rl_softc *sc) argument 4009 struct rl_softc *sc; local 4112 struct rl_softc *sc; local 4131 struct rl_softc *sc; local 4148 struct rl_softc *sc; local [all...] |
/haiku/src/add-ons/kernel/drivers/network/ether/attansic_l2/dev/ae/ |
H A D | if_ae.c | 107 static void ae_pcie_init(ae_softc_t *sc); 108 static void ae_phy_reset(ae_softc_t *sc); 109 static void ae_phy_init(ae_softc_t *sc); 110 static int ae_reset(ae_softc_t *sc); 112 static int ae_init_locked(ae_softc_t *sc); 119 static void ae_retrieve_address(ae_softc_t *sc); 122 static int ae_alloc_rings(ae_softc_t *sc); 123 static void ae_dma_free(ae_softc_t *sc); 126 static void ae_powersave_disable(ae_softc_t *sc); 127 static void ae_powersave_enable(ae_softc_t *sc); 242 ae_softc_t *sc; local 410 ae_init_tunables(ae_softc_t *sc) argument 480 ae_pcie_init(ae_softc_t *sc) argument 488 ae_phy_reset(ae_softc_t *sc) argument 496 ae_reset(ae_softc_t *sc) argument 538 ae_softc_t *sc; local 547 ae_phy_init(ae_softc_t *sc) argument 560 ae_init_locked(ae_softc_t *sc) argument 761 struct ae_softc *sc; local 810 ae_softc_t *sc; local 845 ae_softc_t *sc; local 880 ae_softc_t *sc; local 889 ae_softc_t *sc; local 906 ae_softc_t *sc; local 925 ae_check_eeprom_present(ae_softc_t *sc, int *vpdc) argument 945 ae_vpd_read_word(ae_softc_t *sc, int reg, uint32_t *word) argument 974 ae_get_vpd_eaddr(ae_softc_t *sc, uint32_t *eaddr) argument 1037 ae_get_reg_eaddr(ae_softc_t *sc, uint32_t *eaddr) argument 1057 ae_retrieve_address(ae_softc_t *sc) argument 1106 ae_alloc_rings(ae_softc_t *sc) argument 1229 ae_dma_free(ae_softc_t *sc) argument 1274 ae_softc_t *sc; local 1288 ae_powersave_disable(ae_softc_t *sc) argument 1304 ae_powersave_enable(ae_softc_t *sc) argument 1323 ae_pm_init(ae_softc_t *sc) argument 1400 ae_softc_t *sc; local 1415 ae_softc_t *sc; local 1430 ae_tx_avail_size(ae_softc_t *sc) argument 1443 ae_encap(ae_softc_t *sc, struct mbuf **m_head) argument 1519 ae_softc_t *sc; local 1530 ae_softc_t *sc; local 1586 ae_softc_t *sc; local 1642 ae_stop_rxmac(ae_softc_t *sc) argument 1678 ae_stop_txmac(ae_softc_t *sc) argument 1714 ae_mac_config(ae_softc_t *sc) argument 1735 ae_softc_t *sc; local 1757 ae_softc_t *sc; local 1809 ae_tx_intr(ae_softc_t *sc) argument 1886 ae_rxeof(ae_softc_t *sc, ae_rxd_t *rxd) argument 1930 ae_rx_intr(ae_softc_t *sc) argument 1980 ae_watchdog(ae_softc_t *sc) argument 2006 ae_softc_t *sc; local 2020 ae_rxvlan(ae_softc_t *sc) argument 2035 ae_rxfilter(ae_softc_t *sc) argument 2092 struct ae_softc *sc; local 2164 ae_stop(ae_softc_t *sc) argument [all...] |
/haiku/src/add-ons/kernel/drivers/network/ether/via_rhine/dev/vr/ |
H A D | if_vr.c | 246 struct vr_softc *sc; local 249 sc = device_get_softc(dev); 252 CSR_WRITE_1(sc, VR_MIIADDR, reg); 253 VR_SETBIT(sc, VR_MIICMD, VR_MIICMD_READ_ENB); 257 if ((CSR_READ_1(sc, VR_MIICMD) & VR_MIICMD_READ_ENB) == 0) 261 device_printf(sc->vr_dev, "phy read timeout %d:%d\n", phy, reg); 263 return (CSR_READ_2(sc, VR_MIIDATA)); 269 struct vr_softc *sc; local 272 sc = device_get_softc(dev); 275 CSR_WRITE_1(sc, VR_MIIADD 299 struct vr_softc *sc; local 385 vr_cam_mask(struct vr_softc *sc, uint32_t mask, int type) argument 397 vr_cam_data(struct vr_softc *sc, int type, int idx, uint8_t *mac) argument 439 vr_set_filter(struct vr_softc *sc) argument 522 vr_reset(const struct vr_softc *sc) argument 596 struct vr_softc *sc; local 818 struct vr_softc *sc = device_get_softc(dev); local 876 vr_dma_alloc(struct vr_softc *sc) argument 1057 vr_dma_free(struct vr_softc *sc) argument 1133 vr_tx_ring_init(struct vr_softc *sc) argument 1170 vr_rx_ring_init(struct vr_softc *sc) argument 1219 vr_newbuf(struct vr_softc *sc, int idx) argument 1283 vr_rxeof(struct vr_softc *sc) argument 1429 vr_txeof(struct vr_softc *sc) argument 1545 struct vr_softc *sc; local 1575 struct vr_softc *sc; local 1591 struct vr_softc *sc; local 1634 vr_tx_underrun(struct vr_softc *sc) argument 1664 struct vr_softc *sc; local 1684 struct vr_softc *sc; local 1744 vr_error(struct vr_softc *sc, uint16_t status) argument 1783 vr_encap(struct vr_softc *sc, struct mbuf **m_head) argument 1948 struct vr_softc *sc; local 1959 struct vr_softc *sc; local 2008 struct vr_softc *sc; local 2017 vr_init_locked(struct vr_softc *sc) argument 2171 struct vr_softc *sc; local 2194 struct vr_softc *sc; local 2213 struct vr_softc *sc; local 2302 vr_watchdog(struct vr_softc *sc) argument 2340 vr_tx_start(struct vr_softc *sc) argument 2359 vr_rx_start(struct vr_softc *sc) argument 2375 vr_tx_stop(struct vr_softc *sc) argument 2397 vr_rx_stop(struct vr_softc *sc) argument 2423 vr_stop(struct vr_softc *sc) argument 2490 struct vr_softc *sc; local 2506 struct vr_softc *sc; local 2525 vr_setwol(struct vr_softc *sc) argument 2582 vr_clrwol(struct vr_softc *sc) argument 2613 struct vr_softc *sc; local [all...] |
/haiku/src/add-ons/kernel/drivers/network/ether/pegasus/ |
H A D | if_aue.c | 49 #define AUE_SETBIT(sc, reg, x) \ 50 aue_csr_write_1(sc, reg, aue_csr_read_1(sc, reg) | (x)) 52 #define AUE_CLRBIT(sc, reg, x) \ 53 aue_csr_write_1(sc, reg, aue_csr_read_1(sc, reg) & ~(x)) 56 aue_csr_read_1(pegasus_dev *sc, int reg) argument 62 if (sc->aue_dying) 65 AUE_LOCK(sc); 67 err = usb->send_request(sc 79 aue_csr_read_2(pegasus_dev *sc, int reg) argument 103 aue_csr_write_1(pegasus_dev *sc, int reg, int val) argument 126 aue_csr_write_2(pegasus_dev *sc, int reg, int val) argument 152 aue_eeprom_getword(pegasus_dev *sc, int addr, u_int16_t *dest) argument 183 aue_read_eeprom(pegasus_dev *sc, caddr_t dest, int off, int cnt, int swap) argument 202 aue_miibus_readreg(pegasus_dev *sc, int phy, int reg) argument 246 aue_miibus_writereg(pegasus_dev *sc, int phy, int reg, int data) argument 352 aue_reset_pegasus_II(pegasus_dev *sc) argument 366 aue_reset(pegasus_dev *sc) argument 414 aue_attach(pegasus_dev *sc) argument 441 aue_init(pegasus_dev *sc) argument 453 aue_uninit(pegasus_dev *sc) argument [all...] |
/haiku/src/add-ons/kernel/drivers/network/ether/atheros813x/dev/alc/ |
H A D | if_alc.c | 275 struct alc_softc *sc; local 278 sc = device_get_softc(dev); 279 if ((sc->alc_flags & ALC_FLAG_AR816X_FAMILY) != 0) 280 v = alc_mii_readreg_816x(sc, phy, reg); 282 v = alc_mii_readreg_813x(sc, phy, reg); 287 alc_mii_readreg_813x(struct alc_softc *sc, int phy, int reg) argument 298 if ((sc->alc_flags & ALC_FLAG_FASTETHER) != 0 && 302 CSR_WRITE_4(sc, ALC_MDIO, MDIO_OP_EXECUTE | MDIO_OP_READ | 306 v = CSR_READ_4(sc, ALC_MDIO); 312 device_printf(sc 320 alc_mii_readreg_816x(struct alc_softc *sc, int phy, int reg) argument 349 struct alc_softc *sc; local 361 alc_mii_writereg_813x(struct alc_softc *sc, int phy, int reg, int val) argument 383 alc_mii_writereg_816x(struct alc_softc *sc, int phy, int reg, int val) argument 411 struct alc_softc *sc; local 457 alc_miidbg_readreg(struct alc_softc *sc, int reg) argument 467 alc_miidbg_writereg(struct alc_softc *sc, int reg, int val) argument 477 alc_miiext_readreg(struct alc_softc *sc, int devaddr, int reg) argument 507 alc_miiext_writereg(struct alc_softc *sc, int devaddr, int reg, int val) argument 536 alc_dsp_fixup(struct alc_softc *sc, int media) argument 610 struct alc_softc *sc; local 630 struct alc_softc *sc; local 642 alc_mediachange_locked(struct alc_softc *sc) argument 689 alc_get_macaddr(struct alc_softc *sc) argument 699 alc_get_macaddr_813x(struct alc_softc *sc) argument 800 alc_get_macaddr_816x(struct alc_softc *sc) argument 859 alc_get_macaddr_par(struct alc_softc *sc) argument 874 alc_disable_l0s_l1(struct alc_softc *sc) argument 891 alc_phy_reset(struct alc_softc *sc) argument 901 alc_phy_reset_813x(struct alc_softc *sc) argument 1015 alc_phy_reset_816x(struct alc_softc *sc) argument 1088 alc_phy_down(struct alc_softc *sc) argument 1137 alc_aspm(struct alc_softc *sc, int init, int media) argument 1147 alc_aspm_813x(struct alc_softc *sc, int media) argument 1235 alc_aspm_816x(struct alc_softc *sc, int init) argument 1270 alc_init_pcie(struct alc_softc *sc) argument 1345 alc_config_msi(struct alc_softc *sc) argument 1377 struct alc_softc *sc; local 1676 struct alc_softc *sc; local 1740 alc_sysctl_node(struct alc_softc *sc) argument 1943 alc_check_boundary(struct alc_softc *sc) argument 1974 alc_dma_alloc(struct alc_softc *sc) argument 2315 alc_dma_free(struct alc_softc *sc) argument 2456 alc_setlinkspeed(struct alc_softc *sc) argument 2519 alc_setwol(struct alc_softc *sc) argument 2529 alc_setwol_813x(struct alc_softc *sc) argument 2592 alc_setwol_816x(struct alc_softc *sc) argument 2660 struct alc_softc *sc; local 2675 struct alc_softc *sc; local 2705 alc_encap(struct alc_softc *sc, struct mbuf **m_head) argument 2939 struct alc_softc *sc; local 2950 struct alc_softc *sc; local 2996 alc_start_tx(struct alc_softc *sc) argument 3016 alc_watchdog(struct alc_softc *sc) argument 3044 struct alc_softc *sc; local 3155 alc_mac_config(struct alc_softc *sc) argument 3192 alc_stats_clear(struct alc_softc *sc) argument 3224 alc_stats_update(struct alc_softc *sc) argument 3342 struct alc_softc *sc; local 3365 struct alc_softc *sc; local 3438 alc_txeof(struct alc_softc *sc) argument 3504 alc_newbuf(struct alc_softc *sc, struct alc_rxdesc *rxd) argument 3542 alc_rxintr(struct alc_softc *sc, int count) argument 3653 alc_rxeof(struct alc_softc *sc, struct rx_rdesc *rrd) argument 3776 struct alc_softc *sc; local 3799 alc_osc_reset(struct alc_softc *sc) argument 3837 alc_reset(struct alc_softc *sc) argument 3924 struct alc_softc *sc; local 3933 alc_init_locked(struct alc_softc *sc) argument 4326 alc_stop(struct alc_softc *sc) argument 4391 alc_stop_mac(struct alc_softc *sc) argument 4415 alc_start_queue(struct alc_softc *sc) argument 4443 alc_stop_queue(struct alc_softc *sc) argument 4480 alc_init_tx_ring(struct alc_softc *sc) argument 4504 alc_init_rx_ring(struct alc_softc *sc) argument 4538 alc_init_rr_ring(struct alc_softc *sc) argument 4555 alc_init_cmb(struct alc_softc *sc) argument 4568 alc_init_smb(struct alc_softc *sc) argument 4581 alc_rxvlan(struct alc_softc *sc) argument 4610 alc_rxfilter(struct alc_softc *sc) argument 4680 struct alc_softc *sc; local 4698 struct alc_softc *sc; local 4715 struct alc_softc *sc; local [all...] |
/haiku/src/add-ons/kernel/drivers/network/wlan/aironetwifi/dev/an/ |
H A D | if_an.c | 317 struct an_softc *sc = device_get_softc(dev); local 328 if (rman_get_start(sc->port_res) == -1) 340 sc->mpi350 = 0; 341 CSR_WRITE_2(sc, AN_INT_EN(sc->mpi350), 0); 342 CSR_WRITE_2(sc, AN_EVENT_ACK(sc->mpi350), 0xFFFF); 344 sc->an_dev = dev; 345 mtx_init(&sc->an_mtx, device_get_nameunit(dev), MTX_NETWORK_LOCK, 347 AN_LOCK(sc); 379 struct an_softc *sc = device_get_softc(dev); local 398 struct an_softc *sc = device_get_softc(dev); local 418 struct an_softc *sc = device_get_softc(dev); local 439 struct an_softc *sc = device_get_softc(dev); local 464 an_dma_malloc(struct an_softc *sc, bus_size_t size, struct an_dma_alloc *dma, int mapflags) argument 493 an_dma_free(struct an_softc *sc, struct an_dma_alloc *dma) argument 506 struct an_softc *sc = device_get_softc(dev); local 547 an_init_mpi350_desc(struct an_softc *sc) argument 653 an_attach(struct an_softc *sc, int flags) argument 808 struct an_softc *sc = device_get_softc(dev); local 831 an_rxeof(struct an_softc *sc) argument 1097 an_txeof(struct an_softc *sc, int status) argument 1152 struct an_softc *sc; local 1190 struct an_softc *sc; local 1260 an_cmd_struct(struct an_softc *sc, struct an_command *cmd, struct an_reply *reply) argument 1308 an_cmd(struct an_softc *sc, int cmd, int val) argument 1354 an_reset(struct an_softc *sc) argument 1376 an_read_record(struct an_softc *sc, struct an_ltv_gen *ltv) argument 1489 an_write_record(struct an_softc *sc, struct an_ltv_gen *ltv) argument 1590 an_dump_record(struct an_softc *sc, struct an_ltv_gen *ltv, char *string) argument 1630 an_seek(struct an_softc *sc, int id, int off, int chan) argument 1664 an_read_data(struct an_softc *sc, int id, int off, caddr_t buf, int len) argument 1687 an_write_data(struct an_softc *sc, int id, int off, caddr_t buf, int len) argument 1714 an_alloc_nicmem(struct an_softc *sc, int len, int *id) argument 1745 an_setdef(struct an_softc *sc, struct an_req *areq) argument 1854 an_promisc(struct an_softc *sc, int promisc) argument 1877 struct an_softc *sc; local 2573 an_init_tx_ring(struct an_softc *sc) argument 2601 struct an_softc *sc = xsc; local 2609 an_init_locked(struct an_softc *sc) argument 2712 struct an_softc *sc; local 2723 struct an_softc *sc; local 2907 an_stop(struct an_softc *sc) argument 2937 an_watchdog(struct an_softc *sc) argument 2960 struct an_softc *sc; local 2974 struct an_softc *sc; local 3065 an_cache_store(struct an_softc *sc, struct ether_header *eh, struct mbuf *m, u_int8_t rx_rssi, u_int8_t rx_quality) argument 3218 struct an_softc *sc = ifp->if_softc; local 3262 struct an_softc *sc = ifp->if_softc; local 3300 struct an_softc *sc; local 3375 struct an_softc *sc; local 3486 struct an_softc *sc = ifp->if_softc; local 3506 struct an_softc *sc = ifp->if_softc; local 3529 struct an_softc *sc = ifp->if_softc; local 3563 struct an_softc *sc = ifp->if_softc; local 3593 struct an_softc *sc = ifp->if_softc; local 3628 struct an_softc *sc = ifp->if_softc; local 3684 struct an_softc *sc = ifp->if_softc; local 3717 struct an_softc *sc = ifp->if_softc; local 3735 struct an_softc *sc; local [all...] |
/haiku/src/add-ons/kernel/drivers/network/ether/marvell_yukon/dev/mii/ |
H A D | e1000phy.c | 136 struct mii_softc *sc; local 138 sc = device_get_softc(dev); 143 (sc->mii_flags & MIIF_MACPRIV0) != 0) 144 sc->mii_flags |= MIIF_PHYPRIV0; 146 switch (sc->mii_mpd_model) { 149 if (PHY_READ(sc, E1000_ESSR) & E1000_ESSR_FIBER_LINK) 150 sc->mii_flags |= MIIF_HAVEFIBER; 165 PHY_WRITE(sc, E1000_EADR, 0); 169 PHY_RESET(sc); 171 sc 187 e1000phy_reset(struct mii_softc *sc) argument 307 e1000phy_service(struct mii_softc *sc, struct mii_data *mii, int cmd) argument 412 e1000phy_status(struct mii_softc *sc) argument 475 e1000phy_mii_phy_auto(struct mii_softc *sc, int media) argument [all...] |
/haiku/src/add-ons/kernel/drivers/network/ether/syskonnect/dev/mii/ |
H A D | e1000phy.c | 136 struct mii_softc *sc; local 138 sc = device_get_softc(dev); 143 (sc->mii_flags & MIIF_MACPRIV0) != 0) 144 sc->mii_flags |= MIIF_PHYPRIV0; 146 switch (sc->mii_mpd_model) { 149 if (PHY_READ(sc, E1000_ESSR) & E1000_ESSR_FIBER_LINK) 150 sc->mii_flags |= MIIF_HAVEFIBER; 165 PHY_WRITE(sc, E1000_EADR, 0); 169 PHY_RESET(sc); 171 sc 187 e1000phy_reset(struct mii_softc *sc) argument 307 e1000phy_service(struct mii_softc *sc, struct mii_data *mii, int cmd) argument 412 e1000phy_status(struct mii_softc *sc) argument 475 e1000phy_mii_phy_auto(struct mii_softc *sc, int media) argument [all...] |
/haiku/src/libs/compat/freebsd_network/ |
H A D | fbsd_mii_physubr.c | 121 mii_phy_setmedia(struct mii_softc *sc) argument 123 struct mii_data *mii = sc->mii_pdata; 135 if ((PHY_READ(sc, MII_BMCR) & BMCR_AUTOEN) == 0 || 136 (sc->mii_flags & (MIIF_DOPAUSE | MIIF_FORCEANEG)) != 0) 137 (void)mii_phy_auto(sc); 220 (sc->mii_flags & MIIF_FORCEPAUSE) != 0)) { 221 if ((sc->mii_flags & MIIF_IS_1000X) != 0) 226 if ((sc->mii_flags & MIIF_HAVE_GTCR) != 0 && 227 (sc->mii_extcapabilities & 233 PHY_WRITE(sc, MII_ANA 240 mii_phy_auto(struct mii_softc *sc) argument 289 mii_phy_tick(struct mii_softc *sc) argument 332 mii_phy_reset(struct mii_softc *sc) argument 362 mii_phy_update(struct mii_softc *sc, int cmd) argument 383 mii_phy_add_media(struct mii_softc *sc) argument 541 struct mii_softc *sc; local 586 struct mii_softc *sc; local 630 mii_phy_flowstatus(struct mii_softc *sc) argument [all...] |
/haiku/src/add-ons/kernel/drivers/network/wlan/ralinkwifi/dev/usb/wlan/ |
H A D | if_run.c | 786 struct run_softc *sc = device_get_softc(self); local 788 struct ieee80211com *ic = &sc->sc_ic; 794 sc->sc_udev = uaa->device; 795 sc->sc_dev = self; 797 sc->sc_flags |= RUN_FLAG_FWLOAD_NEEDED; 799 mtx_init(&sc->sc_mtx, device_get_nameunit(sc->sc_dev), 801 mbufq_init(&sc->sc_snd, ifqmaxlen); 806 sc->sc_xfer, run_config, RUN_N_XFER, sc, 933 run_drain_mbufq(struct run_softc *sc) argument 950 struct run_softc *sc = device_get_softc(self); local 992 struct run_softc *sc = ic->ic_softc; local 1106 struct run_softc *sc; local 1149 struct run_softc *sc = arg; local 1177 run_setup_tx_list(struct run_softc *sc, struct run_endpoint_queue *pq) argument 1195 run_unsetup_tx_list(struct run_softc *sc, struct run_endpoint_queue *pq) argument 1219 run_load_microcode(struct run_softc *sc) argument 1317 run_reset(struct run_softc *sc) argument 1330 run_do_request(struct run_softc *sc, struct usb_device_request *req, void *data) argument 1352 run_read(struct run_softc *sc, uint16_t reg, uint32_t *val) argument 1366 run_read_region_1(struct run_softc *sc, uint16_t reg, uint8_t *buf, int len) argument 1380 run_write_2(struct run_softc *sc, uint16_t reg, uint16_t val) argument 1394 run_write(struct run_softc *sc, uint16_t reg, uint32_t val) argument 1404 run_write_region_1(struct run_softc *sc, uint16_t reg, const uint8_t *buf, int len) argument 1449 run_set_region_4(struct run_softc *sc, uint16_t reg, uint32_t val, int len) argument 1460 run_efuse_read(struct run_softc *sc, uint16_t addr, uint16_t *val, int count) argument 1508 run_efuse_read_2(struct run_softc *sc, uint16_t addr, uint16_t *val) argument 1514 run_eeprom_read_2(struct run_softc *sc, uint16_t addr, uint16_t *val) argument 1536 run_srom_read(struct run_softc *sc, uint16_t addr, uint16_t *val) argument 1543 run_rt2870_rf_write(struct run_softc *sc, uint32_t val) argument 1561 run_rt3070_rf_read(struct run_softc *sc, uint8_t reg, uint8_t *val) argument 1593 run_rt3070_rf_write(struct run_softc *sc, uint8_t reg, uint8_t val) argument 1612 run_bbp_read(struct run_softc *sc, uint8_t reg, uint8_t *val) argument 1644 run_bbp_write(struct run_softc *sc, uint8_t reg, uint8_t val) argument 1666 run_mcu_cmd(struct run_softc *sc, uint8_t cmd, uint16_t arg) argument 1729 run_rt3593_get_txpower(struct run_softc *sc) argument 1786 run_get_txpower(struct run_softc *sc) argument 1850 run_read_eeprom(struct run_softc *sc) argument 2125 struct run_softc *sc = ic->ic_softc; local 2174 struct run_softc *sc = ic->ic_softc; local 2302 struct run_softc *sc = ic->ic_softc; local 2362 struct run_softc *sc = ic->ic_softc; local 2485 struct run_softc *sc = ic->ic_softc; local 2519 struct run_softc *sc = cmdq->arg1; local 2554 struct run_softc *sc = ic->ic_softc; local 2582 struct run_softc *sc = arg; local 2593 struct run_softc *sc = arg; local 2626 struct run_softc *sc = arg; local 2684 struct run_softc *sc = arg; local 2759 struct run_softc *sc = ni->ni_vap->iv_ic->ic_softc; local 2776 struct run_softc *sc = ic->ic_softc; local 2827 run_maxrssi_chain(struct run_softc *sc, const struct rt2860_rxwi *rxwi) argument 2846 struct run_softc *sc = vap->iv_ic->ic_softc; local 2871 run_rx_frame(struct run_softc *sc, struct mbuf *m, uint32_t dmalen) argument 3018 struct run_softc *sc = usbd_xfer_softc(xfer); local 3181 struct run_softc *sc = usbd_xfer_softc(xfer); local 3354 run_set_tx_desc(struct run_softc *sc, struct run_tx_data *data) argument 3424 run_tx(struct run_softc *sc, struct mbuf *m, struct ieee80211_node *ni) argument 3586 run_tx_mgt(struct run_softc *sc, struct mbuf *m, struct ieee80211_node *ni) argument 3649 run_sendprot(struct run_softc *sc, const struct mbuf *m, struct ieee80211_node *ni, int prot, int rate) argument 3716 run_tx_param(struct run_softc *sc, struct mbuf *m, struct ieee80211_node *ni, const struct ieee80211_bpf_params *params) argument 3795 struct run_softc *sc = ni->ni_ic->ic_softc; local 3834 struct run_softc *sc = ic->ic_softc; local 3854 run_start(struct run_softc *sc) argument 3876 struct run_softc *sc = ic->ic_softc; local 3899 run_iq_calib(struct run_softc *sc, u_int chan) argument 4000 run_set_agc(struct run_softc *sc, uint8_t agc) argument 4016 run_select_chan_group(struct run_softc *sc, int group) argument 4160 run_rt2870_set_chan(struct run_softc *sc, u_int chan) argument 4231 run_rt3070_set_chan(struct run_softc *sc, u_int chan) argument 4296 run_rt3572_set_chan(struct run_softc *sc, u_int chan) argument 4446 run_rt3593_set_chan(struct run_softc *sc, u_int chan) argument 4606 run_rt5390_set_chan(struct run_softc *sc, u_int chan) argument 4716 run_rt5592_set_chan(struct run_softc *sc, u_int chan) argument 4853 run_set_rx_antenna(struct run_softc *sc, int aux) argument 4880 run_set_chan(struct run_softc *sc, struct ieee80211_channel *c) argument 4927 struct run_softc *sc = ic->ic_softc; local 4940 struct run_softc *sc = ic->ic_softc; local 4967 struct run_softc *sc = ic->ic_softc; local 4983 struct run_softc *sc = ic->ic_softc; local 5005 struct run_softc *sc = ic->ic_softc; local 5048 struct run_softc *sc = ic->ic_softc; local 5095 struct run_softc *sc = ic->ic_softc; local 5109 struct run_softc *sc = ic->ic_softc; local 5133 struct run_softc *sc = vap->iv_ic->ic_softc; local 5151 run_reset_livelock(struct run_softc *sc) argument 5175 run_update_promisc_locked(struct run_softc *sc) argument 5194 struct run_softc *sc = ic->ic_softc; local 5205 run_enable_tsf_sync(struct run_softc *sc) argument 5247 run_enable_tsf(struct run_softc *sc) argument 5259 run_disable_tsf(struct run_softc *sc) argument 5271 run_get_tsf(struct run_softc *sc, uint64_t *buf) argument 5278 run_enable_mrr(struct run_softc *sc) argument 5302 run_set_txpreamble(struct run_softc *sc) argument 5316 run_set_basicrates(struct run_softc *sc) argument 5330 run_set_leds(struct run_softc *sc, uint16_t which) argument 5337 run_set_bssid(struct run_softc *sc, const uint8_t *bssid) argument 5346 run_set_macaddr(struct run_softc *sc, const uint8_t *addr) argument 5357 struct run_softc *sc = ic->ic_softc; local 5374 struct run_softc *sc = ic->ic_softc; local 5389 run_rssi2dbm(struct run_softc *sc, uint8_t rssi, uint8_t rxchain) argument 5413 run_rt5390_bbp_init(struct run_softc *sc) argument 5471 run_bbp_init(struct run_softc *sc) argument 5521 run_rt3070_rf_init(struct run_softc *sc) argument 5665 run_rt3593_rf_init(struct run_softc *sc) argument 5714 run_rt5390_rf_init(struct run_softc *sc) argument 5778 run_rt3070_filter_calib(struct run_softc *sc, uint8_t init, uint8_t target, uint8_t *val) argument 5843 run_rt3070_rf_setup(struct run_softc *sc) argument 5922 run_rt3593_rf_setup(struct run_softc *sc) argument 5992 run_rt5390_rf_setup(struct run_softc *sc) argument 6039 run_txrx_enable(struct run_softc *sc) argument 6085 run_adjust_freq_offset(struct run_softc *sc) argument 6099 run_init_locked(struct run_softc *sc) argument 6326 struct run_softc *sc = (struct run_softc *)arg; local 6406 run_delay(struct run_softc *sc, u_int ms) argument [all...] |
/haiku/src/add-ons/kernel/drivers/network/wlan/realtekwifi/dev/rtwn/rtl8821a/usb/ |
H A D | r21au_dfs.c | 66 r21au_dfs_radar_disable(struct rtwn_softc *sc) argument 68 rtwn_bb_setbits(sc, 0x924, 0x00008000, 0); 72 r21au_dfs_radar_is_enabled(struct rtwn_softc *sc) argument 74 return !!(rtwn_bb_read(sc, 0x924) & 0x00008000); 78 r21au_dfs_radar_reset(struct rtwn_softc *sc) argument 82 error = rtwn_bb_setbits(sc, 0x924, 0x00008000, 0); 86 return (rtwn_bb_setbits(sc, 0x924, 0, 0x00008000)); 90 r21au_dfs_radar_enable(struct rtwn_softc *sc) argument 97 RTWN_ASSERT_LOCKED(sc); 99 RTWN_CHK(rtwn_bb_setbits(sc, 112 r21au_dfs_radar_is_detected(struct rtwn_softc *sc) argument 120 struct rtwn_softc *sc = arg; local 170 struct rtwn_softc *sc = ic->ic_softc; local 227 struct rtwn_softc *sc = ic->ic_softc; local 253 struct rtwn_softc *sc = ic->ic_softc; local [all...] |
/haiku/src/add-ons/kernel/drivers/network/wlan/marvell88w8335/dev/malo/ |
H A D | if_malo.c | 106 #define IFF_DUMPPKTS_RECV(sc, wh) \ 107 (((sc->malo_debug & MALO_DEBUG_RECV) && \ 108 ((sc->malo_debug & MALO_DEBUG_RECV_ALL) || !IS_BEACON(wh)))) 109 #define IFF_DUMPPKTS_XMIT(sc) \ 110 (sc->malo_debug & MALO_DEBUG_XMIT) 111 #define DPRINTF(sc, m, fmt, ...) do { \ 112 if (sc->malo_debug & (m)) \ 116 #define DPRINTF(sc, m, fmt, ...) do { \ 117 (void) sc; \ 159 malo_bar0_read4(struct malo_softc *sc, bus_size_ argument 165 malo_bar0_write4(struct malo_softc *sc, bus_size_t off, uint32_t val) argument 174 malo_attach(uint16_t devid, struct malo_softc *sc) argument 331 struct malo_softc *sc = ic->ic_softc; local 378 struct malo_softc *sc = arg; local 435 malo_desc_setup(struct malo_softc *sc, const char *name, struct malo_descdma *dd, int nbuf, size_t bufsize, int ndesc, size_t descsize) argument 511 malo_rxdma_setup(struct malo_softc *sc) argument 555 malo_txdma_setup(struct malo_softc *sc, struct malo_txq *txq) argument 599 malo_desc_cleanup(struct malo_softc *sc, struct malo_descdma *dd) argument 609 malo_rxdma_cleanup(struct malo_softc *sc) argument 633 malo_txdma_cleanup(struct malo_softc *sc, struct malo_txq *txq) argument 667 malo_dma_cleanup(struct malo_softc *sc) argument 678 malo_dma_setup(struct malo_softc *sc) argument 703 malo_hal_set_rxtxdma(struct malo_softc *sc) argument 724 malo_setup_hwdma(struct malo_softc *sc) argument 744 malo_txq_init(struct malo_softc *sc, struct malo_txq *txq, int qnum) argument 769 malo_tx_cleanupq(struct malo_softc *sc, struct malo_txq *txq) argument 779 malo_getbuf(struct malo_softc *sc, struct malo_txq *txq) argument 799 malo_tx_dmasetup(struct malo_softc *sc, struct malo_txbuf *bf, struct mbuf *m0) argument 925 malo_tx_processq(struct malo_softc *sc, struct malo_txq *txq) argument 1009 struct malo_softc *sc = arg; local 1030 malo_tx_start(struct malo_softc *sc, struct ieee80211_node *ni, struct malo_txbuf *bf, struct mbuf *m0) argument 1208 struct malo_softc *sc = ic->ic_softc; local 1227 malo_start(struct malo_softc *sc) argument 1297 struct malo_softc *sc = arg; local 1314 malo_hal_reset(struct malo_softc *sc) argument 1341 malo_getrxmbuf(struct malo_softc *sc, struct malo_rxbuf *bf) argument 1369 malo_rxbuf_init(struct malo_softc *sc, struct malo_rxbuf *bf) argument 1407 malo_startrecv(struct malo_softc *sc) argument 1446 malo_init_locked(struct malo_softc *sc) argument 1499 struct malo_softc *sc = (struct malo_softc *) arg; local 1514 malo_setmcastfilter(struct malo_softc *sc) argument 1563 malo_mode_init(struct malo_softc *sc) argument 1575 malo_tx_draintxq(struct malo_softc *sc, struct malo_txq *txq) argument 1624 malo_stop(struct malo_softc *sc) argument 1662 struct malo_softc *sc = ic->ic_softc; local 1702 struct malo_softc *sc = ic->ic_softc; local 1729 struct malo_softc *sc = ic->ic_softc; local 1773 struct malo_softc *sc = ic->ic_softc; local 1826 malo_sysctlattach(struct malo_softc *sc) argument 1840 malo_announce(struct malo_softc *sc) argument 1880 malo_chan_set(struct malo_softc *sc, struct ieee80211_channel *chan) argument 1918 struct malo_softc *sc = ic->ic_softc; local 1926 struct malo_softc *sc = ic->ic_softc; local 1934 struct malo_softc *sc = ic->ic_softc; local 1942 struct malo_softc *sc = arg; local 2096 malo_tx_cleanup(struct malo_softc *sc) argument 2105 malo_detach(struct malo_softc *sc) argument 2142 malo_shutdown(struct malo_softc *sc) argument 2149 malo_suspend(struct malo_softc *sc) argument 2156 malo_resume(struct malo_softc *sc) argument [all...] |
/haiku/src/add-ons/kernel/drivers/network/wlan/atheroswifi/dev/ath/ |
H A D | if_ath_tx_edma.c | 141 static void ath_edma_tx_processq(struct ath_softc *sc, int dosched); 145 ath_tx_alq_edma_push(struct ath_softc *sc, int txq, int nframes, argument 155 if_ath_alq_post(&sc->sc_alq, ATH_ALQ_TX_FIFO_PUSH, 173 ath_tx_edma_push_staging_list(struct ath_softc *sc, struct ath_txq *txq, argument 183 DPRINTF(sc, ATH_DEBUG_XMIT | ATH_DEBUG_TX_PROC, 248 ath_hal_settxdesclink(sc->sc_ah, bfp->bf_lastds, 257 if (sc->sc_debug & ATH_DEBUG_XMIT_DESC) 258 ath_printtxbuf(sc, bfi, txq->axq_qnum, i, 0); 261 if (if_ath_alq_checkdebug(&sc->sc_alq, ATH_ALQ_EDMA_TXDESC)) 262 ath_tx_alq_post(sc, bf 303 ath_edma_tx_fifo_fill(struct ath_softc *sc, struct ath_txq *txq) argument 404 ath_edma_dma_restart(struct ath_softc *sc, struct ath_txq *txq) argument 530 ath_edma_xmit_handoff_hw(struct ath_softc *sc, struct ath_txq *txq, struct ath_buf *bf) argument 567 ath_edma_xmit_handoff_mcast(struct ath_softc *sc, struct ath_txq *txq, struct ath_buf *bf) argument 622 ath_edma_xmit_handoff(struct ath_softc *sc, struct ath_txq *txq, struct ath_buf *bf) argument 640 ath_edma_setup_txfifo(struct ath_softc *sc, int qnum) argument 662 ath_edma_free_txfifo(struct ath_softc *sc, int qnum) argument 672 ath_edma_dma_txsetup(struct ath_softc *sc) argument 695 ath_edma_dma_txteardown(struct ath_softc *sc) argument 712 ath_edma_tx_drain(struct ath_softc *sc, ATH_RESET_TYPE reset_type) argument 765 struct ath_softc *sc = (struct ath_softc *) arg; local 796 ath_edma_tx_processq(struct ath_softc *sc, int dosched) argument 1052 ath_edma_attach_comp_func(struct ath_softc *sc) argument 1059 ath_xmit_setup_edma(struct ath_softc *sc) argument [all...] |
H A D | if_ath_sysctl.c | 112 struct ath_softc *sc = arg1; local 116 ATH_LOCK(sc); 117 ath_power_set_power_state(sc, HAL_PM_AWAKE); 118 slottime = ath_hal_getslottime(sc->sc_ah); 119 ATH_UNLOCK(sc); 125 error = !ath_hal_setslottime(sc->sc_ah, slottime) ? EINVAL : 0; 128 ATH_LOCK(sc); 129 ath_power_restore_power_state(sc); 130 ATH_UNLOCK(sc); 138 struct ath_softc *sc local 164 struct ath_softc *sc = arg1; local 190 struct ath_softc *sc = arg1; local 211 struct ath_softc *sc = arg1; local 230 struct ath_softc *sc = arg1; local 251 struct ath_softc *sc = arg1; local 288 struct ath_softc *sc = arg1; local 311 struct ath_softc *sc = arg1; local 342 struct ath_softc *sc = arg1; local 371 struct ath_softc *sc = arg1; local 399 struct ath_softc *sc = arg1; local 425 struct ath_softc *sc = arg1; local 461 struct ath_softc *sc = arg1; local 560 struct ath_softc *sc = arg1; local 599 struct ath_softc *sc = arg1; local 624 struct ath_softc *sc = arg1; local 650 struct ath_softc *sc = arg1; local 691 struct ath_softc *sc = arg1; local 706 struct ath_softc *sc = arg1; local 724 struct ath_softc *sc = arg1; local 766 struct ath_softc *sc = arg1; local 785 ath_sysctl_alq_attach(struct ath_softc *sc) argument 814 ath_sysctlattach(struct ath_softc *sc) argument 1008 struct ath_softc *sc = arg1; local 1026 ath_sysctl_stats_attach_rxphyerr(struct ath_softc *sc, struct sysctl_oid_list *parent) argument 1044 ath_sysctl_stats_attach_intr(struct ath_softc *sc, struct sysctl_oid_list *parent) argument 1064 ath_sysctl_stats_attach(struct ath_softc *sc) argument 1316 ath_sysctl_hal_attach(struct ath_softc *sc) argument [all...] |
H A D | if_ath_rx.c | 158 ath_calcrxfilter(struct ath_softc *sc) argument 160 struct ieee80211com *ic = &sc->sc_ic; 164 if (!sc->sc_needmib && !sc->sc_scanning) 182 if (ic->ic_opmode == IEEE80211_M_IBSS || sc->sc_swbmiss) { 185 if (sc->sc_do_mybeacon && ! sc->sc_scanning) { 206 if (ath_hal_getcapability(sc->sc_ah, HAL_CAP_PSPOLL, 211 if (sc->sc_nmeshvaps) { 213 if (sc 248 ath_legacy_rxbuf_init(struct ath_softc *sc, struct ath_buf *bf) argument 340 struct ath_softc *sc = vap->iv_ic->ic_softc; local 511 ath_rx_tap_vendor(struct ath_softc *sc, struct mbuf *m, const struct ath_rx_status *rs, u_int64_t tsf, int16_t nf) argument 576 ath_rx_tap(struct ath_softc *sc, struct mbuf *m, const struct ath_rx_status *rs, u_int64_t tsf, int16_t nf) argument 658 ath_rx_pkt(struct ath_softc *sc, struct ath_rx_status *rs, HAL_STATUS status, uint64_t tsf, int nf, HAL_RX_QUEUE qtype, struct ath_buf *bf, struct mbuf *m) argument 1071 ath_rx_proc(struct ath_softc *sc, int resched) argument 1310 struct ath_softc *sc = arg; local 1327 ath_legacy_flushrecv(struct ath_softc *sc) argument 1334 ath_legacy_flush_rxpending(struct ath_softc *sc) argument 1350 ath_legacy_flush_rxholdbf(struct ath_softc *sc) argument 1389 ath_legacy_stoprecv(struct ath_softc *sc, int dodelay) argument 1451 ath_legacy_startrecv(struct ath_softc *sc) argument 1489 ath_legacy_dma_rxsetup(struct ath_softc *sc) argument 1502 ath_legacy_dma_rxteardown(struct ath_softc *sc) argument 1511 ath_legacy_recv_sched(struct ath_softc *sc, int dosched) argument 1518 ath_legacy_recv_sched_queue(struct ath_softc *sc, HAL_RX_QUEUE q, int dosched) argument 1526 ath_recv_setup_legacy(struct ath_softc *sc) argument [all...] |
/haiku/src/add-ons/kernel/drivers/network/ether/jmicron2x0/dev/jme/ |
H A D | if_jme.c | 219 struct jme_softc *sc; local 223 sc = device_get_softc(dev); 226 if ((sc->jme_flags & JME_FLAG_FPGA) != 0 && phy == 0) 229 CSR_WRITE_4(sc, JME_SMI, SMI_OP_READ | SMI_OP_EXECUTE | 233 if (((val = CSR_READ_4(sc, JME_SMI)) & SMI_OP_EXECUTE) == 0) 238 device_printf(sc->jme_dev, "phy read timeout : %d\n", reg); 251 struct jme_softc *sc; local 254 sc = device_get_softc(dev); 257 if ((sc->jme_flags & JME_FLAG_FPGA) != 0 && phy == 0) 260 CSR_WRITE_4(sc, JME_SM 281 struct jme_softc *sc; local 293 struct jme_softc *sc; local 316 struct jme_softc *sc; local 354 jme_eeprom_read_byte(struct jme_softc *sc, uint8_t addr, uint8_t *val) argument 393 jme_eeprom_macaddr(struct jme_softc *sc) argument 440 jme_efuse_macaddr(struct jme_softc *sc) argument 489 jme_reg_macaddr(struct jme_softc *sc) argument 519 jme_set_macaddr(struct jme_softc *sc, uint8_t *eaddr) argument 555 jme_map_intr_vector(struct jme_softc *sc) argument 627 struct jme_softc *sc; local 922 struct jme_softc *sc; local 984 jme_sysctl_node(struct jme_softc *sc) argument 1139 jme_dma_alloc(struct jme_softc *sc) argument 1404 jme_dma_free(struct jme_softc *sc) argument 1524 jme_setlinkspeed(struct jme_softc *sc) argument 1583 jme_setwol(struct jme_softc *sc) argument 1641 struct jme_softc *sc; local 1656 struct jme_softc *sc; local 1686 jme_encap(struct jme_softc *sc, struct mbuf **m_head) argument 1873 struct jme_softc *sc; local 1884 struct jme_softc *sc; local 1939 jme_watchdog(struct jme_softc *sc) argument 1976 struct jme_softc *sc; local 2105 jme_mac_config(struct jme_softc *sc) argument 2201 struct jme_softc *sc; local 2345 struct jme_softc *sc; local 2363 struct jme_softc *sc; local 2423 jme_txeof(struct jme_softc *sc) argument 2499 jme_discard_rxbuf(struct jme_softc *sc, int cons) argument 2510 jme_rxeof(struct jme_softc *sc) argument 2646 jme_rxintr(struct jme_softc *sc, int count) argument 2688 struct jme_softc *sc; local 2709 jme_reset(struct jme_softc *sc) argument 2755 struct jme_softc *sc; local 2764 jme_init_locked(struct jme_softc *sc) argument 3004 jme_stop(struct jme_softc *sc) argument 3072 jme_stop_tx(struct jme_softc *sc) argument 3092 jme_stop_rx(struct jme_softc *sc) argument 3112 jme_init_tx_ring(struct jme_softc *sc) argument 3137 jme_init_ssb(struct jme_softc *sc) argument 3148 jme_init_rx_ring(struct jme_softc *sc) argument 3176 jme_newbuf(struct jme_softc *sc, struct jme_rxdesc *rxd) argument 3224 jme_set_vlan(struct jme_softc *sc) argument 3240 jme_set_filter(struct jme_softc *sc) argument 3301 jme_stats_clear(struct jme_softc *sc) argument 3318 jme_stats_save(struct jme_softc *sc) argument 3332 jme_stats_update(struct jme_softc *sc) argument 3371 jme_phy_down(struct jme_softc *sc) argument 3388 jme_phy_up(struct jme_softc *sc) argument [all...] |
/haiku/src/add-ons/kernel/drivers/network/wlan/realtekwifi/dev/rtwn/rtl8192c/pci/ |
H A D | r92ce_calib.c | 73 r92ce_iq_calib_chain(struct rtwn_softc *sc, int chain, uint16_t tx[2], argument 80 rtwn_bb_write(sc, R92C_TX_IQK_TONE(0), 0x10008c1f); 81 rtwn_bb_write(sc, R92C_RX_IQK_TONE(0), 0x10008c1f); 82 rtwn_bb_write(sc, R92C_TX_IQK_PI(0), 0x82140102); 84 if (sc->ntxchains > 1) { 85 rtwn_bb_write(sc, R92C_RX_IQK_PI(0), 0x28160202); 87 rtwn_bb_write(sc, R92C_TX_IQK_TONE(1), 0x10008c22); 88 rtwn_bb_write(sc, R92C_RX_IQK_TONE(1), 0x10008c22); 89 rtwn_bb_write(sc, R92C_TX_IQK_PI(1), 0x82140102); 90 rtwn_bb_write(sc, R92C_RX_IQK_P 136 r92ce_iq_calib_run(struct rtwn_softc *sc, int n, uint16_t tx[2][2], uint16_t rx[2][2], struct r92ce_iq_cal_reg_vals *vals) argument 285 r92ce_iq_calib_compare_results(struct rtwn_softc *sc, uint16_t tx1[2][2], uint16_t rx1[2][2], uint16_t tx2[2][2], uint16_t rx2[2][2]) argument 313 r92ce_iq_calib_write_results(struct rtwn_softc *sc, uint16_t tx[2], uint16_t rx[2], int chain) argument 362 r92ce_iq_calib(struct rtwn_softc *sc) argument [all...] |
/haiku/src/add-ons/kernel/drivers/network/wlan/realtekwifi/dev/rtwn/rtl8821a/ |
H A D | r21a_chan.c | 64 r21a_bypass_ext_lna_2ghz(struct rtwn_softc *sc) argument 66 rtwn_bb_setbits(sc, R12A_RFE_INV(0), 0x00100000, 0); 67 rtwn_bb_setbits(sc, R12A_RFE_INV(0), 0x00400000, 0); 68 rtwn_bb_setbits(sc, R12A_RFE_PINMUX(0), 0, 0x07); 69 rtwn_bb_setbits(sc, R12A_RFE_PINMUX(0), 0, 0x0700); 73 r21a_set_band_2ghz(struct rtwn_softc *sc, uint32_t basicrates) argument 75 struct r12a_softc *rs = sc->sc_priv; 78 rtwn_bb_setbits(sc, R12A_OFDMCCK_EN, 82 rtwn_bb_setbits(sc, R12A_RFE_PINMUX(0), 84 rtwn_bb_setbits(sc, R12A_RFE_PINMU 111 r21a_set_band_5ghz(struct rtwn_softc *sc, uint32_t basicrates) argument [all...] |
H A D | r21a_calib.c | 66 r21a_iq_calib_fw_supported(struct rtwn_softc *sc) argument 68 if (sc->fwver == 0x16) 76 r21a_iq_calib_sw(struct rtwn_softc *sc) argument 83 KASSERT(sc->nrxchains <= R21A_MAX_NRXCHAINS, 84 ("nrxchains > %d (%d)\n", R21A_MAX_NRXCHAINS, sc->nrxchains)); 86 RTWN_DPRINTF(sc, RTWN_DEBUG_CALIB, "%s: SW IQ calibration: TODO\n", 90 r12a_save_bb_afe_vals(sc, saved_bb_vals, r21a_iq_bb_regs, 92 r12a_save_bb_afe_vals(sc, saved_afe_vals, r21a_iq_afe_regs, 94 r12a_save_rf_vals(sc, saved_rf_vals, r21a_iq_rf_regs, 99 r12a_iq_config_mac(sc); [all...] |
/haiku/src/add-ons/kernel/drivers/network/ether/sis900/dev/sis/ |
H A D | if_sis.c | 121 #define CSR_READ_2(sc, reg) bus_read_2(sc->sis_res[0], reg) 123 #define CSR_BARRIER(sc, reg, length, flags) \ 124 bus_barrier(sc->sis_res[0], reg, length, flags) 193 #define SIS_SETBIT(sc, reg, x) \ 194 CSR_WRITE_4(sc, reg, \ 195 CSR_READ_4(sc, reg) | (x)) 197 #define SIS_CLRBIT(sc, reg, x) \ 198 CSR_WRITE_4(sc, reg, \ 199 CSR_READ_4(sc, re 223 sis_delay(struct sis_softc *sc) argument 232 sis_eeprom_idle(struct sis_softc *sc) argument 259 sis_eeprom_putbyte(struct sis_softc *sc, int addr) argument 286 sis_eeprom_getword(struct sis_softc *sc, int addr, uint16_t *dest) argument 329 sis_read_eeprom(struct sis_softc *sc, caddr_t dest, int off, int cnt, int swap) argument 383 sis_read_cmos(struct sis_softc *sc, device_t dev, caddr_t dest, int off, int cnt) argument 410 sis_read_mac(struct sis_softc *sc, device_t dev, caddr_t dest) argument 440 struct sis_softc *sc; local 457 struct sis_softc *sc; local 469 struct sis_softc *sc; local 532 struct sis_softc *sc; local 576 struct sis_softc *sc; local 660 sis_mchash(struct sis_softc *sc, const uint8_t *addr) argument 683 sis_rxfilter(struct sis_softc *sc) argument 695 sis_rxfilter_ns(struct sis_softc *sc) argument 766 sis_rxfilter_sis(struct sis_softc *sc) argument 829 sis_reset(struct sis_softc *sc) argument 890 struct sis_softc *sc; local 1127 struct sis_softc *sc; local 1184 sis_dma_ring_alloc(struct sis_softc *sc, bus_size_t alignment, bus_size_t maxsize, bus_dma_tag_t *tag, uint8_t **ring, bus_dmamap_t *map, bus_addr_t *paddr, const char *msg) argument 1221 sis_dma_alloc(struct sis_softc *sc) argument 1305 sis_dma_free(struct sis_softc *sc) argument 1364 sis_ring_init(struct sis_softc *sc) argument 1409 sis_newbuf(struct sis_softc *sc, struct sis_rxdesc *rxd) argument 1475 sis_rxeof(struct sis_softc *sc) argument 1563 sis_txeof(struct sis_softc *sc) argument 1619 struct sis_softc *sc; local 1639 struct sis_softc *sc = ifp->if_softc; local 1687 struct sis_softc *sc; local 1760 sis_encap(struct sis_softc *sc, struct mbuf **m_head) argument 1869 struct sis_softc *sc; local 1880 struct sis_softc *sc; local 1931 struct sis_softc *sc = xsc; local 1939 sis_initl(struct sis_softc *sc) argument 2082 struct sis_softc *sc; local 2105 struct sis_softc *sc; local 2121 struct sis_softc *sc = ifp->if_softc; local 2195 sis_watchdog(struct sis_softc *sc) argument 2218 sis_stop(struct sis_softc *sc) argument 2286 struct sis_softc *sc; local 2299 struct sis_softc *sc; local 2314 sis_wol(struct sis_softc *sc) argument 2364 sis_add_sysctls(struct sis_softc *sc) argument [all...] |
/haiku/src/add-ons/kernel/drivers/network/wlan/realtekwifi/dev/rtwn/rtl8812a/ |
H A D | r12a_chan.c | 65 r12a_write_txpower(struct rtwn_softc *sc, int chain, argument 71 rtwn_bb_write(sc, R12A_TXAGC_CCK11_1(chain), 79 rtwn_bb_write(sc, R12A_TXAGC_OFDM18_6(chain), 84 rtwn_bb_write(sc, R12A_TXAGC_OFDM54_24(chain), 90 rtwn_bb_write(sc, R12A_TXAGC_MCS3_0(chain), 95 rtwn_bb_write(sc, R12A_TXAGC_MCS7_4(chain), 100 if (sc->ntxchains >= 2) { 101 rtwn_bb_write(sc, R12A_TXAGC_MCS11_8(chain), 106 rtwn_bb_write(sc, R12A_TXAGC_MCS15_12(chain), 117 r12a_get_power_group(struct rtwn_softc *sc, struc argument 164 r12a_get_txpower(struct rtwn_softc *sc, int chain, struct ieee80211_channel *c, uint8_t power[RTWN_RIDX_COUNT]) argument 256 r12a_set_txpower(struct rtwn_softc *sc, struct ieee80211_channel *c) argument 271 r12a_fix_spur(struct rtwn_softc *sc, struct ieee80211_channel *c) argument 305 r12a_set_band(struct rtwn_softc *sc, struct ieee80211_channel *c) argument 357 r12a_set_chan(struct rtwn_softc *sc, struct ieee80211_channel *c) argument 473 r12a_set_band_2ghz(struct rtwn_softc *sc, uint32_t basicrates) argument 529 r12a_set_band_5ghz(struct rtwn_softc *sc, uint32_t basicrates) argument [all...] |