/haiku-fatelf/src/add-ons/kernel/drivers/network/wlan/ralink2860/dev/rt2860/ |
H A D | rt2860_read_eeprom.c | 28 void rt2860_read_eeprom(struct rt2860_softc *sc) argument 36 tmp = rt2860_io_mac_read(sc, RT2860_REG_EEPROM_CSR); 39 sc->eeprom_addr_num = 6; 41 sc->eeprom_addr_num = 8; 43 sc->eeprom_addr_num = 8; 47 sc->eeprom_rev = rt2860_io_eeprom_read(sc, RT2860_EEPROM_VERSION); 49 RT2860_DPRINTF(sc, RT2860_DEBUG_EEPROM, 51 device_get_nameunit(sc->dev), sc [all...] |
H A D | rt2860_rf.h | 26 void rt2860_rf_select_chan_group(struct rt2860_softc *sc, 29 void rt2860_rf_set_chan(struct rt2860_softc *sc, 32 uint8_t rt3090_rf_read(struct rt2860_softc *sc, uint8_t reg); 34 void rt3090_rf_write(struct rt2860_softc *sc, uint8_t reg, uint8_t val); 36 void rt3090_set_chan(struct rt2860_softc *sc, u_int chan); 38 int rt3090_rf_init(struct rt2860_softc *sc); 42 void rt3090_rf_wakeup(struct rt2860_softc *sc); 44 int rt3090_filter_calib(struct rt2860_softc *sc, uint8_t init, uint8_t target, 47 void rt3090_rf_setup(struct rt2860_softc *sc);
|
H A D | rt2860_rf.c | 25 static void rt2872_rf_set_chan(struct rt2860_softc *sc, struct ieee80211_channel *c); 309 rt3090_rf_read(struct rt2860_softc *sc, uint8_t reg) argument 315 if (!(rt2860_io_mac_read(sc, RT3070_RF_CSR_CFG) & RT3070_RF_KICK)) 320 device_printf(sc->dev, "could not read RF register\n"); 324 rt2860_io_mac_write(sc, RT3070_RF_CSR_CFG, tmp); 327 tmp = rt2860_io_mac_read(sc, RT3070_RF_CSR_CFG); 333 device_printf(sc->dev, "could not read RF register\n"); 340 rt3090_rf_write(struct rt2860_softc *sc, uint8_t reg, uint8_t val) argument 346 if (!(rt2860_io_mac_read(sc, RT3070_RF_CSR_CFG) & RT3070_RF_KICK)) 351 device_printf(sc 413 rt2860_rf_select_chan_group(struct rt2860_softc *sc, struct ieee80211_channel *c) argument 562 rt3090_set_chan(struct rt2860_softc *sc, u_int chan) argument 626 rt3090_rf_init(struct rt2860_softc *sc) argument 734 rt3090_set_rx_antenna(struct rt2860_softc *sc, int aux) argument 752 rt3090_rf_wakeup(struct rt2860_softc *sc) argument 818 rt3090_filter_calib(struct rt2860_softc *sc, uint8_t init, uint8_t target, uint8_t *val) argument 883 rt3090_rf_setup(struct rt2860_softc *sc) argument 916 rt2860_rf_set_chan(struct rt2860_softc *sc, struct ieee80211_channel *c) argument 1054 rt2872_rf_set_chan(struct rt2860_softc *sc, struct ieee80211_channel *c) argument [all...] |
/haiku-fatelf/src/add-ons/kernel/drivers/network/wlan/atheroswifi/dev/ath/ |
H A D | if_ath_sysctl.h | 36 extern void ath_sysctl_stats_attach(struct ath_softc *sc); 37 extern void ath_sysctl_hal_attach(struct ath_softc *sc);
|
H A D | if_athdfs.h | 34 extern int ath_dfs_attach(struct ath_softc *sc); 35 extern int ath_dfs_detach(struct ath_softc *sc); 38 extern void ath_dfs_process_phy_err(struct ath_softc *sc, const char *buf, 40 extern int ath_dfs_process_radar_event(struct ath_softc *sc, 42 extern int ath_dfs_tasklet_needed(struct ath_softc *sc, 44 extern int ath_ioctl_phyerr(struct ath_softc *sc, struct ath_diag *ad); 45 extern int ath_dfs_get_thresholds(struct ath_softc *sc,
|
/haiku-fatelf/src/add-ons/kernel/drivers/network/broadcom570x/dev/bge/ |
H A D | if_bge.c | 358 #define BGE_IS_JUMBO_CAPABLE(sc) ((sc)->bge_flags & BGE_FLAG_JUMBO) 359 #define BGE_IS_5700_FAMILY(sc) ((sc)->bge_flags & BGE_FLAG_5700_FAMILY) 360 #define BGE_IS_5705_PLUS(sc) ((sc)->bge_flags & BGE_FLAG_5705_PLUS) 361 #define BGE_IS_5714_FAMILY(sc) ((sc)->bge_flags & BGE_FLAG_5714_FAMILY) 362 #define BGE_IS_575X_PLUS(sc) ((sc) 535 bge_has_eaddr(struct bge_softc *sc) argument 573 bge_readmem_ind(struct bge_softc *sc, int off) argument 591 bge_writemem_ind(struct bge_softc *sc, int off, int val) argument 608 bge_readreg_ind(struct bge_softc *sc, int off) argument 620 bge_writereg_ind(struct bge_softc *sc, int off, int val) argument 631 bge_writemem_direct(struct bge_softc *sc, int off, int val) argument 641 bge_writembx(struct bge_softc *sc, int off, int val) argument 670 bge_nvram_getbyte(struct bge_softc *sc, int addr, uint8_t *dest) argument 723 bge_read_nvram(struct bge_softc *sc, caddr_t dest, int off, int cnt) argument 748 bge_eeprom_getbyte(struct bge_softc *sc, int addr, uint8_t *dest) argument 791 bge_read_eeprom(struct bge_softc *sc, caddr_t dest, int off, int cnt) argument 809 struct bge_softc *sc; local 858 struct bge_softc *sc; local 903 struct bge_softc *sc; local 961 bge_newbuf_std(struct bge_softc *sc, int i) argument 1020 bge_newbuf_jumbo(struct bge_softc *sc, int i) argument 1104 bge_init_rx_ring_std(struct bge_softc *sc) argument 1126 bge_free_rx_ring_std(struct bge_softc *sc) argument 1146 bge_init_rx_ring_jumbo(struct bge_softc *sc) argument 1176 bge_free_rx_ring_jumbo(struct bge_softc *sc) argument 1196 bge_free_tx_ring(struct bge_softc *sc) argument 1219 bge_init_tx_ring(struct bge_softc *sc) argument 1246 bge_setpromisc(struct bge_softc *sc) argument 1262 bge_setmulti(struct bge_softc *sc) argument 1299 bge_setvlan(struct bge_softc *sc) argument 1315 bge_sig_pre_reset(struct bge_softc *sc, int type) argument 1339 bge_sig_post_reset(struct bge_softc *sc, int type) argument 1358 bge_sig_legacy(struct bge_softc *sc, int type) argument 1376 bge_stop_fw(struct bge_softc *sc) argument 1395 bge_dma_swap_options(struct bge_softc *sc) argument 1416 bge_chipinit(struct bge_softc *sc) argument 1582 bge_blockinit(struct bge_softc *sc) argument 2278 struct bge_softc *sc = device_get_softc(dev); local 2339 bge_dma_free(struct bge_softc *sc) argument 2465 bge_dma_ring_alloc(struct bge_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 2525 bge_dma_alloc(struct bge_softc *sc) argument 2735 bge_has_multiple_ports(struct bge_softc *sc) argument 2754 bge_can_use_msi(struct bge_softc *sc) argument 2794 bge_mbox_reorder(struct bge_softc *sc) argument 2837 bge_devinfo(struct bge_softc *sc) argument 2893 struct bge_softc *sc; local 3513 struct bge_softc *sc; local 3548 bge_release_resources(struct bge_softc *sc) argument 3581 bge_reset(struct bge_softc *sc) argument 3813 bge_rxreuse_std(struct bge_softc *sc, int i) argument 3825 bge_rxreuse_jumbo(struct bge_softc *sc, int i) argument 3849 bge_rxeof(struct bge_softc *sc, uint16_t rx_prod, int holdlck) argument 3996 bge_rxcsum(struct bge_softc *sc, struct bge_rx_bd *cur_rx, struct mbuf *m) argument 4031 bge_txeof(struct bge_softc *sc, uint16_t tx_cons) argument 4079 struct bge_softc *sc = ifp->if_softc; local 4131 struct bge_softc *sc; local 4145 struct bge_softc *sc; local 4201 struct bge_softc *sc; local 4280 bge_asf_driver_up(struct bge_softc *sc) argument 4303 struct bge_softc *sc = xsc; local 4354 bge_stats_update_regs(struct bge_softc *sc) argument 4461 bge_stats_clear_regs(struct bge_softc *sc) argument 4503 bge_stats_update(struct bge_softc *sc) argument 4616 bge_setup_tso(struct bge_softc *sc, struct mbuf *m, uint16_t *mss, uint16_t *flags) argument 4692 bge_encap(struct bge_softc *sc, struct mbuf **m_head, uint32_t *txidx) argument 4830 struct bge_softc *sc; local 4927 struct bge_softc *sc; local 4936 bge_init_locked(struct bge_softc *sc) argument 5107 struct bge_softc *sc = xsc; local 5120 struct bge_softc *sc = ifp->if_softc; local 5133 struct bge_softc *sc = ifp->if_softc; local 5217 struct bge_softc *sc = ifp->if_softc; local 5253 struct bge_softc *sc = ifp->if_softc; local 5408 bge_watchdog(struct bge_softc *sc) argument 5428 bge_stop_block(struct bge_softc *sc, bus_size_t reg, uint32_t bit) argument 5446 bge_stop(struct bge_softc *sc) argument 5548 struct bge_softc *sc; local 5562 struct bge_softc *sc; local 5575 struct bge_softc *sc; local 5592 bge_link_upd(struct bge_softc *sc) argument 5710 bge_add_sysctls(struct bge_softc *sc) argument 5792 bge_add_sysctl_stats(struct bge_softc *sc, struct sysctl_ctx_list *ctx, struct sysctl_oid_list *parent) argument 5921 bge_add_sysctl_stats_regs(struct bge_softc *sc, struct sysctl_ctx_list *ctx, struct sysctl_oid_list *parent) argument 6018 struct bge_softc *sc; local 6033 struct bge_softc *sc; local 6106 struct bge_softc *sc; local 6128 struct bge_softc *sc; local 6149 bge_get_eaddr_fw(struct bge_softc *sc, uint8_t ether_addr[]) argument 6163 bge_get_eaddr_mem(struct bge_softc *sc, uint8_t ether_addr[]) argument 6182 bge_get_eaddr_nvram(struct bge_softc *sc, uint8_t ether_addr[]) argument 6194 bge_get_eaddr_eeprom(struct bge_softc *sc, uint8_t ether_addr[]) argument 6205 bge_get_eaddr(struct bge_softc *sc, uint8_t eaddr[]) argument [all...] |
/haiku-fatelf/src/add-ons/kernel/drivers/network/3com/dev/xl/ |
H A D | if_xl.c | 274 static void xl_choose_media(struct xl_softc *sc, int *media); 352 xl_wait(struct xl_softc *sc) argument 357 if ((CSR_READ_2(sc, XL_STATUS) & XL_STAT_CMDBUSY) == 0) 361 if (i == XL_TIMEOUT && bus_child_present(sc->xl_dev)) 362 device_printf(sc->xl_dev, "command never completed!\n"); 381 struct xl_softc *sc; local 384 sc = device_get_softc(dev); 387 val = CSR_READ_2(sc, XL_W4_PHY_MGMT); 388 CSR_BARRIER(sc, XL_W4_PHY_MGMT, 2, 400 struct xl_softc *sc; local 413 struct xl_softc *sc; local 426 struct xl_softc *sc; local 441 struct xl_softc *sc; local 483 struct xl_softc *sc; local 524 xl_eeprom_wait(struct xl_softc *sc) argument 548 xl_read_eeprom(struct xl_softc *sc, caddr_t dest, int off, int cnt, int swap) argument 590 xl_rxfilter(struct xl_softc *sc) argument 604 xl_rxfilter_90x(struct xl_softc *sc) argument 650 xl_rxfilter_90xB(struct xl_softc *sc) argument 719 xl_setcfg(struct xl_softc *sc) argument 739 xl_setmode(struct xl_softc *sc, int media) argument 835 xl_reset(struct xl_softc *sc) argument 929 xl_mediacheck(struct xl_softc *sc) argument 967 xl_choose_xcvr(struct xl_softc *sc, int verbose) argument 1066 struct xl_softc *sc; local 1506 xl_choose_media(struct xl_softc *sc, int *media) argument 1562 struct xl_softc *sc; local 1639 xl_list_tx_init(struct xl_softc *sc) argument 1674 xl_list_tx_init_90xB(struct xl_softc *sc) argument 1721 xl_list_rx_init(struct xl_softc *sc) argument 1764 xl_newbuf(struct xl_softc *sc, struct xl_chain_onefrag *c) argument 1806 xl_rx_resync(struct xl_softc *sc) argument 1834 xl_rxeof(struct xl_softc *sc) argument 1983 struct xl_softc *sc = (struct xl_softc *)arg; local 1996 xl_txeof(struct xl_softc *sc) argument 2045 xl_txeof_90xB(struct xl_softc *sc) argument 2091 xl_txeoc(struct xl_softc *sc) argument 2158 struct xl_softc *sc = arg; local 2237 struct xl_softc *sc = ifp->if_softc; local 2250 struct xl_softc *sc = ifp->if_softc; local 2298 struct xl_softc *sc = xsc; local 2316 xl_stats_update(struct xl_softc *sc) argument 2356 xl_encap(struct xl_softc *sc, struct xl_chain *c, struct mbuf **m_head) argument 2453 struct xl_softc *sc = ifp->if_softc; local 2468 struct xl_softc *sc = ifp->if_softc; local 2600 struct xl_softc *sc = ifp->if_softc; local 2685 struct xl_softc *sc = xsc; local 2693 xl_init_locked(struct xl_softc *sc) argument 2903 struct xl_softc *sc = ifp->if_softc; local 2946 struct xl_softc *sc = ifp->if_softc; local 3018 struct xl_softc *sc = ifp->if_softc; local 3115 xl_watchdog(struct xl_softc *sc) argument 3171 xl_stop(struct xl_softc *sc) argument 3253 struct xl_softc *sc; local 3268 struct xl_softc *sc; local 3287 xl_setwol(struct xl_softc *sc) argument [all...] |
/haiku-fatelf/src/add-ons/kernel/drivers/network/pcnet/dev/le/ |
H A D | lance.c | 111 lance_config(struct lance_softc *sc, const char* name, int unit) argument 116 if (LE_LOCK_INITIALIZED(sc) == 0) 119 ifp = sc->sc_ifp = if_alloc(IFT_ETHER); 123 callout_init_mtx(&sc->sc_wdog_ch, &sc->sc_mtx, 0); 126 ifp->if_softc = sc; 141 ifmedia_init(&sc->sc_media, 0, lance_mediachange, lance_mediastatus); 142 if (sc->sc_supmedia != NULL) { 143 for (i = 0; i < sc->sc_nsupmedia; i++) 144 ifmedia_add(&sc 197 lance_attach(struct lance_softc *sc) argument 211 lance_detach(struct lance_softc *sc) argument 224 lance_suspend(struct lance_softc *sc) argument 233 lance_resume(struct lance_softc *sc) argument 245 struct lance_softc *sc = ifp->if_softc; local 253 lance_stop(struct lance_softc *sc) argument 272 struct lance_softc *sc = (struct lance_softc *)xsc; local 284 lance_init_locked(struct lance_softc *sc) argument 349 lance_put(struct lance_softc *sc, int boff, struct mbuf *m) argument 383 lance_get(struct lance_softc *sc, int boff, int totlen) argument 444 struct lance_softc *sc = (struct lance_softc *)xsc; local 462 struct lance_softc *sc = ifp->if_softc; local 485 struct lance_softc *sc = ifp->if_softc; local 508 struct lance_softc *sc = ifp->if_softc; local 588 lance_setladrf(struct lance_softc *sc, uint16_t *af) argument 642 lance_copytobuf_contig(struct lance_softc *sc, void *from, int boff, int len) argument 653 lance_copyfrombuf_contig(struct lance_softc *sc, void *to, int boff, int len) argument 664 lance_zerobuf_contig(struct lance_softc *sc, int boff, int len) argument [all...] |
H A D | am79900.c | 141 static void am79900_start_locked(struct lance_softc *sc); 149 am79900_config(struct am79900_softc *sc, const char* name, int unit) argument 153 sc->lsc.sc_meminit = am79900_meminit; 154 sc->lsc.sc_start_locked = am79900_start_locked; 156 error = lance_config(&sc->lsc, name, unit); 161 sc->lsc.sc_initaddr = mem; 163 sc->lsc.sc_rmdaddr = mem; 164 mem += sizeof(struct lermd) * sc->lsc.sc_nrbuf; 165 sc->lsc.sc_tmdaddr = mem; 166 mem += sizeof(struct letmd) * sc 181 am79900_detach(struct am79900_softc *sc) argument 191 am79900_meminit(struct lance_softc *sc) argument 257 am79900_rint(struct lance_softc *sc) argument 350 am79900_tint(struct lance_softc *sc) argument 435 struct lance_softc *sc = arg; local 548 am79900_start_locked(struct lance_softc *sc) argument 631 am79900_recv_print(struct lance_softc *sc, int no) argument 653 am79900_xmit_print(struct lance_softc *sc, int no) argument [all...] |
H A D | am7990.c | 103 static void am7990_start_locked(struct lance_softc *sc); 111 am7990_config(struct am7990_softc *sc, const char* name, int unit) argument 115 sc->lsc.sc_meminit = am7990_meminit; 116 sc->lsc.sc_start_locked = am7990_start_locked; 118 error = lance_config(&sc->lsc, name, unit); 123 sc->lsc.sc_initaddr = mem; 125 sc->lsc.sc_rmdaddr = mem; 126 mem += sizeof(struct lermd) * sc->lsc.sc_nrbuf; 127 sc->lsc.sc_tmdaddr = mem; 128 mem += sizeof(struct letmd) * sc 143 am7990_detach(struct am7990_softc *sc) argument 153 am7990_meminit(struct lance_softc *sc) argument 217 am7990_rint(struct lance_softc *sc) argument 313 am7990_tint(struct lance_softc *sc) argument 397 struct lance_softc *sc = arg; local 500 am7990_start_locked(struct lance_softc *sc) argument 582 am7990_recv_print(struct lance_softc *sc, int no) argument 605 am7990_xmit_print(struct lance_softc *sc, int no) argument [all...] |
/haiku-fatelf/src/add-ons/kernel/drivers/network/dec21xxx/dev/de/ |
H A D | if_de.c | 132 static void tulip_addr_filter(tulip_softc_t * const sc); 137 static void tulip_init_locked(tulip_softc_t * const sc); 140 static void tulip_mii_autonegotiate(tulip_softc_t * const sc, 142 static int tulip_mii_map_abilities(tulip_softc_t * const sc, 145 tulip_mii_phy_readspecific(tulip_softc_t * const sc); 146 static unsigned tulip_mii_readreg(tulip_softc_t * const sc, unsigned devaddr, 148 static void tulip_mii_writereg(tulip_softc_t * const sc, unsigned devaddr, 150 static void tulip_reset(tulip_softc_t * const sc); 151 static void tulip_rx_intr(tulip_softc_t * const sc); 152 static int tulip_srom_decode(tulip_softc_t * const sc); 227 tulip_softc_t * const sc = arg; local 240 tulip_timeout(tulip_softc_t * const sc) argument 251 tulip_txprobe(tulip_softc_t * const sc) argument 296 tulip_media_set(tulip_softc_t * const sc, tulip_media_t media) argument 389 tulip_linkup(tulip_softc_t * const sc, tulip_media_t media) argument 442 tulip_media_print(tulip_softc_t * const sc) argument 460 tulip_21140_gpr_media_sense(tulip_softc_t * const sc) argument 523 tulip_media_link_monitor(tulip_softc_t * const sc) argument 633 tulip_media_poll(tulip_softc_t * const sc, tulip_mediapoll_event_t event) argument 922 tulip_media_select(tulip_softc_t * const sc) argument 945 tulip_21040_mediainfo_init(tulip_softc_t * const sc, tulip_media_t media) argument 968 tulip_21040_media_probe(tulip_softc_t * const sc) argument 976 tulip_21040_10baset_only_media_probe(tulip_softc_t * const sc) argument 985 tulip_21040_10baset_only_media_select(tulip_softc_t * const sc) argument 1000 tulip_21040_auibnc_only_media_probe(tulip_softc_t * const sc) argument 1010 tulip_21040_auibnc_only_media_select(tulip_softc_t * const sc) argument 1039 tulip_21041_mediainfo_init(tulip_softc_t * const sc) argument 1060 tulip_21041_media_probe(tulip_softc_t * const sc) argument 1071 tulip_21041_media_poll(tulip_softc_t * const sc, const tulip_mediapoll_event_t event) argument 1280 tulip_mii_phy_readspecific(tulip_softc_t * const sc) argument 1342 tulip_mii_get_phyaddr(tulip_softc_t * const sc, unsigned offset) argument 1365 tulip_mii_map_abilities(tulip_softc_t * const sc, unsigned abilities) argument 1388 tulip_mii_autonegotiate(tulip_softc_t * const sc, const unsigned phyaddr) argument 1488 tulip_2114x_media_preset(tulip_softc_t * const sc) argument 1564 tulip_null_media_poll(tulip_softc_t * const sc, tulip_mediapoll_event_t event) argument 1575 tulip_21140_mediainit(tulip_softc_t * const sc, tulip_media_info_t * const mip, tulip_media_t const media, unsigned gpdata, unsigned cmdmode) argument 1586 tulip_21140_evalboard_media_probe(tulip_softc_t * const sc) argument 1631 tulip_21140_accton_media_probe(tulip_softc_t * const sc) argument 1685 tulip_21140_smc9332_media_probe(tulip_softc_t * const sc) argument 1741 tulip_21140_cogent_em100_media_probe(tulip_softc_t * const sc) argument 1788 tulip_21140_znyx_zx34x_media_probe(tulip_softc_t * const sc) argument 1845 tulip_2114x_media_probe(tulip_softc_t * const sc) argument 1870 tulip_srom_idle(tulip_softc_t * const sc) argument 1892 tulip_srom_read(tulip_softc_t * const sc) argument 1940 tulip_mii_writebits(tulip_softc_t * const sc, unsigned data, unsigned bits) argument 1961 tulip_mii_turnaround(tulip_softc_t * const sc, unsigned cmd) argument 1979 tulip_mii_readbits(tulip_softc_t * const sc) argument 1999 tulip_mii_readreg(tulip_softc_t * const sc, unsigned devaddr, unsigned regno) argument 2021 tulip_mii_writereg(tulip_softc_t * const sc, unsigned devaddr, unsigned regno, unsigned data) argument 2046 tulip_identify_dec_nic(tulip_softc_t * const sc) argument 2062 tulip_identify_znyx_nic(tulip_softc_t * const sc) argument 2156 tulip_identify_smc_nic(tulip_softc_t * const sc) argument 2205 tulip_identify_cogent_nic(tulip_softc_t * const sc) argument 2241 tulip_identify_accton_nic(tulip_softc_t * const sc) argument 2271 tulip_identify_asante_nic(tulip_softc_t * const sc) argument 2327 tulip_identify_compex_nic(tulip_softc_t * const sc) argument 2366 tulip_srom_decode(tulip_softc_t * const sc) argument 2749 tulip_read_macaddr(tulip_softc_t * const sc) argument 2950 tulip_ifmedia_add(tulip_softc_t * const sc) argument 2980 tulip_softc_t * const sc = (tulip_softc_t *)ifp->if_softc; local 3012 tulip_softc_t *sc = (tulip_softc_t *)ifp->if_softc; local 3029 tulip_addr_filter(tulip_softc_t * const sc) argument 3146 tulip_reset(tulip_softc_t * const sc) argument 3260 tulip_softc_t *sc = (tulip_softc_t *)arg; local 3268 tulip_init_locked(tulip_softc_t * const sc) argument 3324 tulip_rx_intr(tulip_softc_t * const sc) argument 3597 tulip_tx_intr(tulip_softc_t * const sc) argument 3742 tulip_print_abnormal_interrupt(tulip_softc_t * const sc, u_int32_t csr) argument 3771 tulip_intr_handler(tulip_softc_t * const sc) argument 3870 tulip_softc_t * sc = arg; local 3885 tulip_softc_t * sc = (tulip_softc_t *) arg; local 3896 tulip_txput(tulip_softc_t * const sc, struct mbuf *m) argument 4157 tulip_txput_setup(tulip_softc_t * const sc) argument 4306 tulip_start_locked(tulip_softc_t * const sc) argument 4408 tulip_attach(tulip_softc_t * const sc) argument 4490 tulip_busdma_allocring(device_t dev, tulip_softc_t * const sc, size_t count, bus_size_t align, int nsegs, tulip_ringinfo_t *ri, const char *name) argument 4553 tulip_busdma_cleanup(tulip_softc_t * const sc) argument 4581 tulip_busdma_init(device_t dev, tulip_softc_t * const sc) argument 4634 tulip_initcsrs(tulip_softc_t * const sc, tulip_csrptr_t csr_base, size_t csr_size) argument 4656 tulip_initring( device_t dev, tulip_softc_t * const sc, tulip_ringinfo_t * const ri, int ndescs) argument 4737 tulip_softc_t * const sc = device_get_softc(dev); local 4748 tulip_softc_t *sc; local 4942 tulip_softc_t *sc; local 4985 tulip_softc_t *sc; local [all...] |
H A D | glue.c | 28 struct tulip_softc *sc = device_get_softc(dev); local 34 status = TULIP_CSR_READ(sc, csr_status); 40 if (status != 0 && (status & sc->tulip_intrmask) == 0) { 41 TULIP_CSR_WRITE(sc, csr_status, status); 46 if ((status & sc->tulip_intrmask) == 0) { 51 TULIP_CSR_WRITE(sc, csr_intr, 0); 62 struct tulip_softc *sc = device_get_softc(dev); local 63 TULIP_LOCK(sc); 64 TULIP_CSR_WRITE(sc, csr_intr, sc [all...] |
/haiku-fatelf/src/add-ons/kernel/drivers/network/broadcom440x/dev/bfe/ |
H A D | if_bfe.c | 113 static void bfe_get_config (struct bfe_softc *sc); 126 static void bfe_dma_free (struct bfe_softc *sc); 186 bfe_dma_alloc(struct bfe_softc *sc) argument 197 error = bus_dma_tag_create(bus_get_dma_tag(sc->bfe_dev), /* parent */ 207 &sc->bfe_parent_tag); 209 device_printf(sc->bfe_dev, "cannot create parent DMA tag.\n"); 214 error = bus_dma_tag_create(sc->bfe_parent_tag, /* parent */ 224 &sc->bfe_tx_tag); 226 device_printf(sc->bfe_dev, "cannot create Tx ring DMA tag.\n"); 231 error = bus_dma_tag_create(sc 358 bfe_dma_free(struct bfe_softc *sc) argument 433 struct bfe_softc *sc; local 540 struct bfe_softc *sc; local 579 struct bfe_softc *sc; local 593 struct bfe_softc *sc; local 606 struct bfe_softc *sc; local 627 struct bfe_softc *sc; local 639 struct bfe_softc *sc; local 650 struct bfe_softc *sc; local 696 bfe_tx_ring_free(struct bfe_softc *sc) argument 716 bfe_rx_ring_free(struct bfe_softc *sc) argument 736 bfe_list_rx_init(struct bfe_softc *sc) argument 759 bfe_list_tx_init(struct bfe_softc *sc) argument 773 bfe_discard_buf(struct bfe_softc *sc, int c) argument 784 bfe_list_newbuf(struct bfe_softc *sc, int c) argument 837 bfe_get_config(struct bfe_softc *sc) argument 858 bfe_pci_setup(struct bfe_softc *sc, u_int32_t cores) argument 878 bfe_clear_stats(struct bfe_softc *sc) argument 892 bfe_resetphy(struct bfe_softc *sc) argument 907 bfe_chip_halt(struct bfe_softc *sc) argument 923 bfe_chip_reset(struct bfe_softc *sc) argument 1006 bfe_core_disable(struct bfe_softc *sc) argument 1028 bfe_core_reset(struct bfe_softc *sc) argument 1059 bfe_cam_write(struct bfe_softc *sc, u_char *data, int index) argument 1078 bfe_set_rx_mode(struct bfe_softc *sc) argument 1136 bfe_release_resources(struct bfe_softc *sc) argument 1154 bfe_read_eeprom(struct bfe_softc *sc, u_int8_t *data) argument 1164 bfe_wait_bit(struct bfe_softc *sc, u_int32_t reg, u_int32_t bit, u_long timeout, const int clear) argument 1188 bfe_readphy(struct bfe_softc *sc, u_int32_t reg, u_int32_t *val) argument 1206 bfe_writephy(struct bfe_softc *sc, u_int32_t reg, u_int32_t val) argument 1227 bfe_setupphy(struct bfe_softc *sc) argument 1244 bfe_stats_update(struct bfe_softc *sc) argument 1332 bfe_txeof(struct bfe_softc *sc) argument 1376 bfe_rxeof(struct bfe_softc *sc) argument 1443 struct bfe_softc *sc = xsc; local 1504 bfe_encap(struct bfe_softc *sc, struct mbuf **m_head) argument 1607 struct bfe_softc *sc; local 1688 struct bfe_softc *sc = (struct bfe_softc*)xsc; local 1733 struct bfe_softc *sc; local 1756 struct bfe_softc *sc = ifp->if_softc; local 1770 struct bfe_softc *sc = ifp->if_softc; local 1808 bfe_watchdog(struct bfe_softc *sc) argument 1832 struct bfe_softc *sc = xsc; local 1849 bfe_stop(struct bfe_softc *sc) argument 1869 struct bfe_softc *sc; local [all...] |
/haiku-fatelf/src/add-ons/kernel/drivers/network/dec21xxx/dev/dc/ |
H A D | if_dc.c | 361 #define DC_SETBIT(sc, reg, x) \ 362 CSR_WRITE_4(sc, reg, CSR_READ_4(sc, reg) | (x)) 364 #define DC_CLRBIT(sc, reg, x) \ 365 CSR_WRITE_4(sc, reg, CSR_READ_4(sc, reg) & ~(x)) 367 #define SIO_SET(x) DC_SETBIT(sc, DC_SIO, (x)) 368 #define SIO_CLR(x) DC_CLRBIT(sc, DC_SIO, (x)) 371 dc_delay(struct dc_softc *sc) argument 376 CSR_READ_4(sc, DC_BUSCT 380 dc_eeprom_width(struct dc_softc *sc) argument 444 dc_eeprom_idle(struct dc_softc *sc) argument 475 dc_eeprom_putbyte(struct dc_softc *sc, int addr) argument 515 dc_eeprom_getword_pnic(struct dc_softc *sc, int addr, uint16_t *dest) argument 538 dc_eeprom_getword_xircom(struct dc_softc *sc, int addr, uint16_t *dest) argument 557 dc_eeprom_getword(struct dc_softc *sc, int addr, uint16_t *dest) argument 603 dc_read_eeprom(struct dc_softc *sc, caddr_t dest, int off, int cnt, int be) argument 629 struct dc_softc *sc; local 644 struct dc_softc *sc; local 659 struct dc_softc *sc; local 773 struct dc_softc *sc; local 846 struct dc_softc *sc; local 889 struct dc_softc *sc; local 909 dc_mchash_le(struct dc_softc *sc, const uint8_t *addr) argument 966 dc_setfilt_21143(struct dc_softc *sc) argument 1040 dc_setfilt_admtek(struct dc_softc *sc) argument 1101 dc_setfilt_asix(struct dc_softc *sc) argument 1171 dc_setfilt_uli(struct dc_softc *sc) argument 1262 dc_setfilt_xircom(struct dc_softc *sc) argument 1336 dc_setfilt(struct dc_softc *sc) argument 1357 dc_netcfg_wait(struct dc_softc *sc) argument 1388 dc_setcfg(struct dc_softc *sc, int media) argument 1507 dc_reset(struct dc_softc *sc) argument 1594 dc_apply_fixup(struct dc_softc *sc, int media) argument 1624 dc_decode_leaf_sia(struct dc_softc *sc, struct dc_eblock_sia *l) argument 1673 dc_decode_leaf_sym(struct dc_softc *sc, struct dc_eblock_sym *l) argument 1699 dc_decode_leaf_mii(struct dc_softc *sc, struct dc_eblock_mii *l) argument 1727 dc_read_srom(struct dc_softc *sc, int bits) argument 1742 dc_parse_21143_srom(struct dc_softc *sc) argument 1812 dc_dma_alloc(struct dc_softc *sc) argument 1956 dc_dma_free(struct dc_softc *sc) argument 2022 struct dc_softc *sc; local 2527 struct dc_softc *sc; local 2584 dc_list_tx_init(struct dc_softc *sc) argument 2617 dc_list_rx_init(struct dc_softc *sc) argument 2646 dc_newbuf(struct dc_softc *sc, int i) argument 2748 dc_pnic_rx_bug_war(struct dc_softc *sc, int idx) argument 2813 dc_rx_resync(struct dc_softc *sc) argument 2838 dc_discard_rxbuf(struct dc_softc *sc, int i) argument 2858 dc_rxeof(struct dc_softc *sc) argument 2980 dc_txeof(struct dc_softc *sc) argument 3091 struct dc_softc *sc; local 3169 dc_tx_underrun(struct dc_softc *sc) argument 3230 struct dc_softc *sc = ifp->if_softc; local 3289 struct dc_softc *sc; local 3378 dc_encap(struct dc_softc *sc, struct mbuf **m_head) argument 3511 struct dc_softc *sc; local 3529 struct dc_softc *sc; local 3586 struct dc_softc *sc = xsc; local 3594 dc_init_locked(struct dc_softc *sc) argument 3792 struct dc_softc *sc; local 3803 dc_ifmedia_upd_locked(struct dc_softc *sc) argument 3832 struct dc_softc *sc; local 3857 struct dc_softc *sc = ifp->if_softc; local 3932 struct dc_softc *sc = xsc; local 3958 dc_stop(struct dc_softc *sc) argument 4040 struct dc_softc *sc; local 4059 struct dc_softc *sc; local 4083 struct dc_softc *sc; local 4095 dc_check_multiport(struct dc_softc *sc) argument [all...] |
/haiku-fatelf/src/add-ons/kernel/drivers/network/rtl8139/pci/ |
H A D | if_rl.c | 190 static void rl_init_locked(struct rl_softc *sc); 263 CSR_WRITE_1(sc, RL_EECMD, \ 264 CSR_READ_1(sc, RL_EECMD) | x) 267 CSR_WRITE_1(sc, RL_EECMD, \ 268 CSR_READ_1(sc, RL_EECMD) & ~x) 274 rl_eeprom_putbyte(struct rl_softc *sc, int addr) argument 278 d = addr | sc->rl_eecmd_read; 301 rl_eeprom_getword(struct rl_softc *sc, int addr, uint16_t *dest) argument 307 CSR_WRITE_1(sc, RL_EECMD, RL_EEMODE_PROGRAM|RL_EE_SEL); 312 rl_eeprom_putbyte(sc, add 338 rl_read_eeprom(struct rl_softc *sc, uint8_t *dest, int off, int cnt, int swap) argument 359 struct rl_softc *sc; local 377 struct rl_softc *sc; local 389 struct rl_softc *sc; local 435 struct rl_softc *sc; local 477 struct rl_softc *sc; local 511 rl_rxfilter(struct rl_softc *sc) argument 559 rl_reset(struct rl_softc *sc) argument 636 struct rl_softc *sc; local 866 struct rl_softc *sc; local 912 rl_dma_alloc(struct rl_softc *sc) argument 1012 rl_dma_free(struct rl_softc *sc) argument 1057 rl_list_tx_init(struct rl_softc *sc) argument 1078 rl_list_rx_init(struct rl_softc *sc) argument 1113 rl_rxeof(struct rl_softc *sc) argument 1236 rl_txeof(struct rl_softc *sc) argument 1295 rl_twister_update(struct rl_softc *sc) argument 1396 struct rl_softc *sc = xsc; local 1437 struct rl_softc *sc = ifp->if_softc; local 1450 struct rl_softc *sc = ifp->if_softc; local 1486 struct rl_softc *sc = arg; local 1545 rl_encap(struct rl_softc *sc, struct mbuf **m_head) argument 1613 struct rl_softc *sc = ifp->if_softc; local 1623 struct rl_softc *sc = ifp->if_softc; local 1673 struct rl_softc *sc = xsc; local 1681 rl_init_locked(struct rl_softc *sc) argument 1779 struct rl_softc *sc = ifp->if_softc; local 1797 struct rl_softc *sc = ifp->if_softc; local 1814 struct rl_softc *sc = ifp->if_softc; local 1889 rl_watchdog(struct rl_softc *sc) argument 1911 rl_stop(struct rl_softc *sc) argument 1962 struct rl_softc *sc; local 1983 struct rl_softc *sc; local 2028 struct rl_softc *sc; local 2047 rl_setwol(struct rl_softc *sc) argument 2101 rl_clrwol(struct rl_softc *sc) argument [all...] |
/haiku-fatelf/src/add-ons/kernel/drivers/network/rdc/dev/vte/ |
H A D | if_vte.c | 171 struct vte_softc *sc; local 174 sc = device_get_softc(dev); 176 CSR_WRITE_2(sc, VTE_MMDIO, MMDIO_READ | 180 if ((CSR_READ_2(sc, VTE_MMDIO) & MMDIO_READ) == 0) 185 device_printf(sc->vte_dev, "phy read timeout : %d\n", reg); 189 return (CSR_READ_2(sc, VTE_MMRD)); 195 struct vte_softc *sc; local 198 sc = device_get_softc(dev); 200 CSR_WRITE_2(sc, VTE_MMWD, val); 201 CSR_WRITE_2(sc, VTE_MMDI 218 struct vte_softc *sc; local 275 struct vte_softc *sc; local 295 struct vte_softc *sc; local 308 struct vte_softc *sc; local 353 vte_get_macaddr(struct vte_softc *sc) argument 375 struct vte_softc *sc; local 502 struct vte_softc *sc; local 549 vte_sysctl_node(struct vte_softc *sc) argument 657 vte_dma_alloc(struct vte_softc *sc) argument 855 vte_dma_free(struct vte_softc *sc) argument 942 struct vte_softc *sc; local 959 struct vte_softc *sc; local 976 vte_encap(struct vte_softc *sc, struct mbuf **m_head) argument 1101 struct vte_softc *sc; local 1110 vte_start_locked(struct vte_softc *sc) argument 1164 vte_watchdog(struct vte_softc *sc) argument 1185 struct vte_softc *sc; local 1229 vte_mac_config(struct vte_softc *sc) argument 1258 vte_stats_clear(struct vte_softc *sc) argument 1273 vte_stats_update(struct vte_softc *sc) argument 1321 struct vte_softc *sc; local 1366 vte_txeof(struct vte_softc *sc) argument 1418 vte_newbuf(struct vte_softc *sc, struct vte_rxdesc *rxd) argument 1478 vte_rxeof(struct vte_softc *sc) argument 1569 struct vte_softc *sc; local 1585 vte_reset(struct vte_softc *sc) argument 1612 struct vte_softc *sc; local 1621 vte_init_locked(struct vte_softc *sc) argument 1744 vte_stop(struct vte_softc *sc) argument 1805 vte_start_mac(struct vte_softc *sc) argument 1832 vte_stop_mac(struct vte_softc *sc) argument 1857 vte_init_tx_ring(struct vte_softc *sc) argument 1904 vte_init_rx_ring(struct vte_softc *sc) argument 1940 vte_rxfilter(struct vte_softc *sc) argument [all...] |
/haiku-fatelf/src/add-ons/kernel/drivers/network/vt612x/dev/vge/ |
H A D | if_vge.c | 238 vge_eeprom_getword(struct vge_softc *sc, int addr, uint16_t *dest) argument 248 CSR_SETBIT_1(sc, VGE_CHIPCFG2, VGE_CHIPCFG2_EELOAD); 249 CSR_SETBIT_1(sc, VGE_EECSR, VGE_EECSR_EMBP/*|VGE_EECSR_ECS*/); 252 CSR_WRITE_1(sc, VGE_EEADDR, addr); 255 CSR_SETBIT_1(sc, VGE_EECMD, VGE_EECMD_ERD); 259 if (CSR_READ_1(sc, VGE_EECMD) & VGE_EECMD_EDONE) 264 device_printf(sc->vge_dev, "EEPROM read timed out\n"); 270 word = CSR_READ_2(sc, VGE_EERDDAT); 273 CSR_CLRBIT_1(sc, VGE_EECSR, VGE_EECSR_EMBP/*|VGE_EECSR_ECS*/); 274 CSR_CLRBIT_1(sc, VGE_CHIPCFG 284 vge_read_eeprom(struct vge_softc *sc, caddr_t dest, int off, int cnt, int swap) argument 305 vge_miipoll_stop(struct vge_softc *sc) argument 322 vge_miipoll_start(struct vge_softc *sc) argument 361 struct vge_softc *sc; local 395 struct vge_softc *sc; local 429 vge_cam_clear(struct vge_softc *sc) argument 459 vge_cam_set(struct vge_softc *sc, uint8_t *addr) argument 513 vge_setvlan(struct vge_softc *sc) argument 535 vge_rxfilter(struct vge_softc *sc) argument 609 vge_reset(struct vge_softc *sc) argument 676 vge_dma_alloc(struct vge_softc *sc) argument 906 vge_dma_free(struct vge_softc *sc) argument 992 struct vge_softc *sc; local 1163 struct vge_softc *sc; local 1207 vge_discard_rxbuf(struct vge_softc *sc, int prod) argument 1234 vge_newbuf(struct vge_softc *sc, int prod) argument 1304 vge_tx_list_init(struct vge_softc *sc) argument 1332 vge_rx_list_init(struct vge_softc *sc) argument 1370 vge_freebufs(struct vge_softc *sc) argument 1431 vge_rxeof(struct vge_softc *sc, int count) argument 1603 vge_txeof(struct vge_softc *sc) argument 1658 struct vge_softc *sc; local 1701 struct vge_softc *sc = ifp->if_softc; local 1747 struct vge_softc *sc; local 1811 vge_encap(struct vge_softc *sc, struct mbuf **m_head) argument 1940 struct vge_softc *sc; local 1952 struct vge_softc *sc; local 2014 struct vge_softc *sc = xsc; local 2022 vge_init_locked(struct vge_softc *sc) argument 2161 struct vge_softc *sc; local 2173 vge_ifmedia_upd_locked(struct vge_softc *sc) argument 2194 struct vge_softc *sc; local 2212 vge_setmedia(struct vge_softc *sc) argument 2259 struct vge_softc *sc = ifp->if_softc; local 2374 struct vge_softc *sc; local 2400 vge_stop(struct vge_softc *sc) argument 2432 struct vge_softc *sc; local 2453 struct vge_softc *sc; local 2499 vge_sysctl_node(struct vge_softc *sc) argument 2614 vge_stats_clear(struct vge_softc *sc) argument 2634 vge_stats_update(struct vge_softc *sc) argument 2733 vge_intr_holdoff(struct vge_softc *sc) argument 2781 vge_setlinkspeed(struct vge_softc *sc) argument 2843 vge_setwol(struct vge_softc *sc) argument 2908 vge_clrwol(struct vge_softc *sc) argument [all...] |
/haiku-fatelf/src/add-ons/kernel/drivers/network/wlan/ralinkwifi/dev/ral/ |
H A D | rt2860.c | 71 #define DPRINTF(x) do { if (sc->sc_debug > 0) printf x; } while (0) 72 #define DPRINTFN(n, x) do { if (sc->sc_debug >= (n)) printf x; } while (0) 221 struct rt2860_softc *sc = device_get_softc(dev); local 229 sc->sc_dev = dev; 230 sc->sc_debug = 0; 232 ifp = sc->sc_ifp = if_alloc(IFT_IEEE80211); 234 device_printf(sc->sc_dev, "can not if_alloc()\n"); 239 mtx_init(&sc->sc_mtx, device_get_nameunit(dev), MTX_NETWORK_LOCK, 242 callout_init_mtx(&sc->watchdog_ch, &sc 380 struct rt2860_softc *sc = xsc; local 406 struct rt2860_softc *sc = xsc; local 414 struct rt2860_softc *sc = xsc; local 422 struct rt2860_softc *sc = xsc; local 518 rt2860_alloc_tx_ring(struct rt2860_softc *sc, struct rt2860_tx_ring *ring) argument 555 rt2860_reset_tx_ring(struct rt2860_softc *sc, struct rt2860_tx_ring *ring) argument 585 rt2860_free_tx_ring(struct rt2860_softc *sc, struct rt2860_tx_ring *ring) argument 620 rt2860_alloc_tx_pool(struct rt2860_softc *sc) argument 679 rt2860_free_tx_pool(struct rt2860_softc *sc) argument 699 rt2860_alloc_rx_ring(struct rt2860_softc *sc, struct rt2860_rx_ring *ring) argument 776 rt2860_reset_rx_ring(struct rt2860_softc *sc, struct rt2860_rx_ring *ring) argument 789 rt2860_free_rx_ring(struct rt2860_softc *sc, struct rt2860_rx_ring *ring) argument 819 rt2860_updatestats(struct rt2860_softc *sc) argument 848 struct rt2860_softc *sc = ic->ic_ifp->if_softc; local 867 struct rt2860_softc *sc = ic->ic_ifp->if_softc; local 884 struct rt2860_softc *sc = ic->ic_softc; local 899 struct rt2860_softc *sc = ic->ic_softc; local 915 struct rt2860_softc *sc = ic->ic_ifp->if_softc; local 971 rt3090_efuse_read_2(struct rt2860_softc *sc, uint16_t addr) argument 1013 rt2860_eeprom_read_2(struct rt2860_softc *sc, uint16_t addr) argument 1067 rt2860_srom_read(struct rt2860_softc *sc, uint8_t addr) argument 1074 rt2860_intr_coherent(struct rt2860_softc *sc) argument 1091 rt2860_drain_stats_fifo(struct rt2860_softc *sc) argument 1135 rt2860_tx_intr(struct rt2860_softc *sc, int qid) argument 1180 rt2860_maxrssi_chain(struct rt2860_softc *sc, const struct rt2860_rxwi *rxwi) argument 1195 rt2860_rx_intr(struct rt2860_softc *sc) argument 1368 rt2860_tbtt_intr(struct rt2860_softc *sc) argument 1398 rt2860_gp_intr(struct rt2860_softc *sc) argument 1412 struct rt2860_softc *sc = arg; local 1474 rt2860_tx(struct rt2860_softc *sc, struct mbuf *m, struct ieee80211_node *ni) argument 1722 struct rt2860_softc *sc = ifp->if_softc; local 1758 rt2860_tx_raw(struct rt2860_softc *sc, struct mbuf *m, struct ieee80211_node *ni, const struct ieee80211_bpf_params *params) argument 1971 struct rt2860_softc *sc = ifp->if_softc; local 1981 struct rt2860_softc *sc = ifp->if_softc; local 2012 struct rt2860_softc *sc = arg; local 2035 struct rt2860_softc *sc = ifp->if_softc; local 2076 rt2860_mcu_bbp_write(struct rt2860_softc *sc, uint8_t reg, uint8_t val) argument 2100 rt2860_mcu_bbp_read(struct rt2860_softc *sc, uint8_t reg) argument 2138 rt2860_rf_write(struct rt2860_softc *sc, uint8_t reg, uint32_t val) argument 2160 rt3090_rf_read(struct rt2860_softc *sc, uint8_t reg) argument 2191 rt3090_rf_write(struct rt2860_softc *sc, uint8_t reg, uint8_t val) argument 2214 rt2860_mcu_cmd(struct rt2860_softc *sc, uint8_t cmd, uint16_t arg, int wait) argument 2264 rt2860_enable_mrr(struct rt2860_softc *sc) argument 2288 rt2860_set_txpreamble(struct rt2860_softc *sc) argument 2302 rt2860_set_basicrates(struct rt2860_softc *sc, const struct ieee80211_rateset *rs) argument 2329 struct rt2860_softc *sc = ifp->if_softc; local 2343 struct rt2860_softc *sc = ifp->if_softc; local 2356 struct rt2860_softc *sc = ifp->if_softc; local 2364 rt2860_select_chan_group(struct rt2860_softc *sc, int group) argument 2448 rt2860_set_chan(struct rt2860_softc *sc, u_int chan) argument 2503 rt3090_set_chan(struct rt2860_softc *sc, u_int chan) argument 2568 rt3090_rf_init(struct rt2860_softc *sc) argument 2678 rt3090_rf_wakeup(struct rt2860_softc *sc) argument 2744 rt3090_filter_calib(struct rt2860_softc *sc, uint8_t init, uint8_t target, uint8_t *val) argument 2809 rt3090_rf_setup(struct rt2860_softc *sc) argument 2839 rt2860_set_leds(struct rt2860_softc *sc, uint16_t which) argument 2850 rt2860_set_gp_timer(struct rt2860_softc *sc, int ms) argument 2872 rt2860_set_bssid(struct rt2860_softc *sc, const uint8_t *bssid) argument 2881 rt2860_set_macaddr(struct rt2860_softc *sc, const uint8_t *addr) argument 2892 struct rt2860_softc *sc = ifp->if_softc; local 2905 struct rt2860_softc *sc = ifp->if_softc; local 2930 struct rt2860_softc *sc = ifp->if_softc; local 2943 struct rt2860_softc *sc = ic->ic_ifp->if_softc; local 2989 struct rt2860_softc *sc = ic->ic_softc; local 3092 struct rt2860_softc *sc = ic->ic_softc; local 3113 rt2860_rssi2dbm(struct rt2860_softc *sc, uint8_t rssi, uint8_t rxchain) argument 3178 rt2860_read_eeprom(struct rt2860_softc *sc, uint8_t macaddr[IEEE80211_ADDR_LEN]) argument 3491 rt2860_bbp_init(struct rt2860_softc *sc) argument 3532 rt2860_txrx_enable(struct rt2860_softc *sc) argument 3580 struct rt2860_softc *sc = arg; local 3593 rt2860_init_locked(struct rt2860_softc *sc) argument 3848 struct rt2860_softc *sc = arg; local 3856 rt2860_stop_locked(struct rt2860_softc *sc) argument 3893 rt2860_load_microcode(struct rt2860_softc *sc) argument 3945 rt2860_calib(struct rt2860_softc *sc) argument 3988 rt3090_set_rx_antenna(struct rt2860_softc *sc, int aux) argument 4006 rt2860_switch_chan(struct rt2860_softc *sc, struct ieee80211_channel *c) argument 4038 rt2860_setup_beacon(struct rt2860_softc *sc, struct ieee80211vap *vap) argument 4073 rt2860_enable_tsf_sync(struct rt2860_softc *sc) argument [all...] |
/haiku-fatelf/src/add-ons/kernel/drivers/network/wlan/iprowifi2100/dev/ipw/ |
H A D | if_ipw.c | 225 struct ipw_softc *sc = device_get_softc(dev); local 233 sc->sc_dev = dev; 235 mtx_init(&sc->sc_mtx, device_get_nameunit(dev), MTX_NETWORK_LOCK, 238 TASK_INIT(&sc->sc_init_task, 0, ipw_init_task, sc); 239 callout_init_mtx(&sc->sc_wdtimer, &sc->sc_mtx, 0); 252 sc->mem_rid = IPW_PCI_BAR0; 253 sc->mem = bus_alloc_resource_any(dev, SYS_RES_MEMORY, &sc 400 struct ipw_softc *sc = device_get_softc(dev); local 437 struct ipw_softc *sc = ifp->if_softc; local 522 ipw_dma_alloc(struct ipw_softc *sc) argument 751 ipw_release(struct ipw_softc *sc) argument 827 struct ipw_softc *sc = device_get_softc(dev); local 837 struct ipw_softc *sc = device_get_softc(dev); local 847 struct ipw_softc *sc = device_get_softc(dev); local 877 struct ipw_softc *sc = ic->ic_ifp->if_softc; local 891 struct ipw_softc *sc = ifp->if_softc; local 953 ipw_read_prom_word(struct ipw_softc *sc, uint8_t addr) argument 1005 ipw_rx_cmd_intr(struct ipw_softc *sc, struct ipw_soft_buf *sbuf) argument 1023 ipw_rx_newstate_intr(struct ipw_softc *sc, struct ipw_soft_buf *sbuf) argument 1127 ipw_setcurchan(struct ipw_softc *sc, struct ieee80211_channel *chan) argument 1141 ipw_fix_channel(struct ipw_softc *sc, struct mbuf *m) argument 1186 ipw_rx_data_intr(struct ipw_softc *sc, struct ipw_status *status, struct ipw_soft_bd *sbd, struct ipw_soft_buf *sbuf) argument 1275 ipw_rx_intr(struct ipw_softc *sc) argument 1334 ipw_release_sbd(struct ipw_softc *sc, struct ipw_soft_bd *sbd) argument 1373 ipw_tx_intr(struct ipw_softc *sc) argument 1402 ipw_fatal_error_intr(struct ipw_softc *sc) argument 1420 struct ipw_softc *sc = arg; local 1522 ipw_cmd(struct ipw_softc *sc, uint32_t type, void *data, uint32_t len) argument 1602 struct ipw_softc *sc = ifp->if_softc; local 1760 struct ipw_softc *sc = ifp->if_softc; local 1770 struct ipw_softc *sc = ifp->if_softc; local 1799 struct ipw_softc *sc = arg; local 1831 struct ipw_softc *sc = ifp->if_softc; local 1866 ipw_stop_master(struct ipw_softc *sc) argument 1891 ipw_reset(struct ipw_softc *sc) argument 1923 ipw_waitfordisable(struct ipw_softc *sc, int waitfor) argument 1941 ipw_enable(struct ipw_softc *sc) argument 1959 ipw_disable(struct ipw_softc *sc) argument 1980 ipw_load_ucode(struct ipw_softc *sc, const char *uc, int size) argument 2032 ipw_load_firmware(struct ipw_softc *sc, const char *fw, int size) argument 2076 ipw_setwepkeys(struct ipw_softc *sc) argument 2107 ipw_setwpaie(struct ipw_softc *sc, const void *ie, int ielen) argument 2120 ipw_setbssid(struct ipw_softc *sc, uint8_t *bssid) argument 2135 ipw_setssid(struct ipw_softc *sc, void *ssid, size_t ssidlen) argument 2163 ipw_setscanopts(struct ipw_softc *sc, uint32_t chanmask, uint32_t flags) argument 2174 ipw_scan(struct ipw_softc *sc) argument 2220 ipw_setchannel(struct ipw_softc *sc, struct ieee80211_channel *chan) argument 2239 struct ipw_softc *sc = ifp->if_softc; local 2332 struct ipw_softc *sc = ifp->if_softc; local 2365 struct ipw_softc *sc = priv; local 2378 ipw_init_locked(struct ipw_softc *sc) argument 2477 ipw_config(struct ipw_softc *sc) argument 2573 struct ipw_softc *sc = priv; local 2581 ipw_stop_locked(struct ipw_softc *sc) argument 2606 struct ipw_softc *sc = arg1; local 2626 struct ipw_softc *sc = arg1; local 2636 ipw_read_table1(struct ipw_softc *sc, uint32_t off) argument 2642 ipw_write_table1(struct ipw_softc *sc, uint32_t off, uint32_t info) argument 2686 ipw_write_mem_1(struct ipw_softc *sc, bus_size_t offset, const uint8_t *datap, bus_size_t count) argument 2699 struct ipw_softc *sc = ifp->if_softc; local 2710 struct ipw_softc *sc = ifp->if_softc; local 2737 struct ipw_softc *sc = ifp->if_softc; local [all...] |
/haiku-fatelf/src/add-ons/kernel/drivers/network/rtl81xx/dev/mii/ |
H A D | rgephy.c | 112 struct mii_softc *sc; local 116 sc = device_get_softc(dev); 124 sc->mii_capabilities = (PHY_READ(sc, MII_BMSR) | BMSR_ANEG) & 125 sc->mii_capmask; 126 if (sc->mii_capabilities & BMSR_EXTSTAT) 127 sc->mii_extcapabilities = PHY_READ(sc, MII_EXTSR); 129 mii_phy_add_media(sc); 137 sc 146 rgephy_service(struct mii_softc *sc, struct mii_data *mii, int cmd) argument 298 rgephy_status(struct mii_softc *sc) argument 382 rgephy_mii_phy_auto(struct mii_softc *sc, int media) argument 405 rgephy_loop(struct mii_softc *sc) argument 438 rgephy_load_dspcode(struct mii_softc *sc) argument 489 rgephy_reset(struct mii_softc *sc) argument [all...] |
/haiku-fatelf/src/add-ons/kernel/drivers/network/atheros813x/dev/alc/ |
H A D | if_alc.c | 231 struct alc_softc *sc; local 235 sc = device_get_softc(dev); 243 if ((sc->alc_flags & ALC_FLAG_FASTETHER) != 0 && 247 CSR_WRITE_4(sc, ALC_MDIO, MDIO_OP_EXECUTE | MDIO_OP_READ | 251 v = CSR_READ_4(sc, ALC_MDIO); 257 device_printf(sc->alc_dev, "phy read timeout : %d\n", reg); 267 struct alc_softc *sc; local 271 sc = device_get_softc(dev); 273 CSR_WRITE_4(sc, ALC_MDIO, MDIO_OP_EXECUTE | MDIO_OP_WRITE | 278 v = CSR_READ_4(sc, ALC_MDI 292 struct alc_softc *sc; local 340 struct alc_softc *sc; local 360 struct alc_softc *sc; local 407 alc_get_macaddr(struct alc_softc *sc) argument 515 alc_disable_l0s_l1(struct alc_softc *sc) argument 530 alc_phy_reset(struct alc_softc *sc) argument 644 alc_phy_down(struct alc_softc *sc) argument 675 alc_aspm(struct alc_softc *sc, int media) argument 764 struct alc_softc *sc; local 1059 struct alc_softc *sc; local 1123 alc_sysctl_node(struct alc_softc *sc) argument 1328 alc_check_boundary(struct alc_softc *sc) argument 1359 alc_dma_alloc(struct alc_softc *sc) argument 1698 alc_dma_free(struct alc_softc *sc) argument 1844 alc_setlinkspeed(struct alc_softc *sc) argument 1907 alc_setwol(struct alc_softc *sc) argument 1972 struct alc_softc *sc; local 1987 struct alc_softc *sc; local 2017 alc_encap(struct alc_softc *sc, struct mbuf **m_head) argument 2251 struct alc_softc *sc; local 2262 struct alc_softc *sc; local 2318 alc_watchdog(struct alc_softc *sc) argument 2346 struct alc_softc *sc; local 2457 alc_mac_config(struct alc_softc *sc) argument 2493 alc_stats_clear(struct alc_softc *sc) argument 2525 alc_stats_update(struct alc_softc *sc) argument 2650 struct alc_softc *sc; local 2668 struct alc_softc *sc; local 2738 alc_txeof(struct alc_softc *sc) argument 2799 alc_newbuf(struct alc_softc *sc, struct alc_rxdesc *rxd) argument 2837 alc_rxintr(struct alc_softc *sc, int count) argument 2944 alc_rxeof(struct alc_softc *sc, struct rx_rdesc *rrd) argument 3067 struct alc_softc *sc; local 3090 alc_reset(struct alc_softc *sc) argument 3119 struct alc_softc *sc; local 3128 alc_init_locked(struct alc_softc *sc) argument 3441 alc_stop(struct alc_softc *sc) argument 3506 alc_stop_mac(struct alc_softc *sc) argument 3531 alc_start_queue(struct alc_softc *sc) argument 3556 alc_stop_queue(struct alc_softc *sc) argument 3587 alc_init_tx_ring(struct alc_softc *sc) argument 3611 alc_init_rx_ring(struct alc_softc *sc) argument 3645 alc_init_rr_ring(struct alc_softc *sc) argument 3662 alc_init_cmb(struct alc_softc *sc) argument 3675 alc_init_smb(struct alc_softc *sc) argument 3688 alc_rxvlan(struct alc_softc *sc) argument 3705 alc_rxfilter(struct alc_softc *sc) argument [all...] |
/haiku-fatelf/src/tests/system/libroot/posix/posixtestsuite/stress/threads/pthread_self/ |
H A D | stress.c | 177 for (sc=0; sc<NSCENAR; sc++) 178 ids[sc]=sc; 204 for (sc=0; sc < NSCENAR; sc++) 207 status[sc] = pthread_create(&creation[sc], [all...] |
/haiku-fatelf/src/add-ons/kernel/drivers/network/via_rhine/dev/vr/ |
H A D | if_vr.c | 244 struct vr_softc *sc = device_get_softc(dev); local 246 if (CSR_READ_2(sc, VR_ISR) == 0) 249 CSR_WRITE_2(sc, VR_IMR, 0x0000); 257 struct vr_softc *sc = device_get_softc(dev); local 259 CSR_WRITE_2(sc, VR_IMR, VR_INTRS); 267 struct vr_softc *sc; local 270 sc = device_get_softc(dev); 273 CSR_WRITE_1(sc, VR_MIIADDR, reg); 274 VR_SETBIT(sc, VR_MIICMD, VR_MIICMD_READ_ENB); 278 if ((CSR_READ_1(sc, VR_MIICM 290 struct vr_softc *sc; local 320 struct vr_softc *sc; local 406 vr_cam_mask(struct vr_softc *sc, uint32_t mask, int type) argument 418 vr_cam_data(struct vr_softc *sc, int type, int idx, uint8_t *mac) argument 460 vr_set_filter(struct vr_softc *sc) argument 543 vr_reset(const struct vr_softc *sc) argument 617 struct vr_softc *sc; local 837 struct vr_softc *sc = device_get_softc(dev); local 894 vr_dma_alloc(struct vr_softc *sc) argument 1075 vr_dma_free(struct vr_softc *sc) argument 1153 vr_tx_ring_init(struct vr_softc *sc) argument 1190 vr_rx_ring_init(struct vr_softc *sc) argument 1239 vr_newbuf(struct vr_softc *sc, int idx) argument 1303 vr_rxeof(struct vr_softc *sc) argument 1449 vr_txeof(struct vr_softc *sc) argument 1565 struct vr_softc *sc; local 1595 struct vr_softc *sc; local 1611 struct vr_softc *sc; local 1654 vr_tx_underrun(struct vr_softc *sc) argument 1684 struct vr_softc *sc; local 1749 vr_error(struct vr_softc *sc, uint16_t status) argument 1788 vr_encap(struct vr_softc *sc, struct mbuf **m_head) argument 1953 struct vr_softc *sc; local 1964 struct vr_softc *sc; local 2013 struct vr_softc *sc; local 2022 vr_init_locked(struct vr_softc *sc) argument 2176 struct vr_softc *sc; local 2199 struct vr_softc *sc; local 2218 struct vr_softc *sc; local 2307 vr_watchdog(struct vr_softc *sc) argument 2345 vr_tx_start(struct vr_softc *sc) argument 2364 vr_rx_start(struct vr_softc *sc) argument 2380 vr_tx_stop(struct vr_softc *sc) argument 2402 vr_rx_stop(struct vr_softc *sc) argument 2428 vr_stop(struct vr_softc *sc) argument 2495 struct vr_softc *sc; local 2511 struct vr_softc *sc; local 2530 vr_setwol(struct vr_softc *sc) argument 2587 vr_clrwol(struct vr_softc *sc) argument 2618 struct vr_softc *sc; local [all...] |
/haiku-fatelf/src/add-ons/kernel/drivers/network/attansic_l2/dev/ae/ |
H A D | if_ae.c | 102 static void ae_pcie_init(ae_softc_t *sc); 103 static void ae_phy_reset(ae_softc_t *sc); 104 static void ae_phy_init(ae_softc_t *sc); 105 static int ae_reset(ae_softc_t *sc); 107 static int ae_init_locked(ae_softc_t *sc); 114 static void ae_retrieve_address(ae_softc_t *sc); 117 static int ae_alloc_rings(ae_softc_t *sc); 118 static void ae_dma_free(ae_softc_t *sc); 121 static void ae_powersave_disable(ae_softc_t *sc); 122 static void ae_powersave_enable(ae_softc_t *sc); 235 ae_softc_t *sc; local 403 ae_init_tunables(ae_softc_t *sc) argument 473 ae_pcie_init(ae_softc_t *sc) argument 481 ae_phy_reset(ae_softc_t *sc) argument 489 ae_reset(ae_softc_t *sc) argument 531 ae_softc_t *sc; local 540 ae_phy_init(ae_softc_t *sc) argument 553 ae_init_locked(ae_softc_t *sc) argument 751 struct ae_softc *sc; local 800 ae_softc_t *sc; local 835 ae_softc_t *sc; local 870 ae_softc_t *sc; local 879 ae_softc_t *sc; local 896 ae_softc_t *sc; local 915 ae_check_eeprom_present(ae_softc_t *sc, int *vpdc) argument 935 ae_vpd_read_word(ae_softc_t *sc, int reg, uint32_t *word) argument 964 ae_get_vpd_eaddr(ae_softc_t *sc, uint32_t *eaddr) argument 1027 ae_get_reg_eaddr(ae_softc_t *sc, uint32_t *eaddr) argument 1047 ae_retrieve_address(ae_softc_t *sc) argument 1100 ae_alloc_rings(ae_softc_t *sc) argument 1223 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 1801 ae_tx_intr(ae_softc_t *sc) argument 1883 ae_rxeof(ae_softc_t *sc, ae_rxd_t *rxd) argument 1925 ae_rx_intr(ae_softc_t *sc) argument 1978 ae_watchdog(ae_softc_t *sc) argument 2004 ae_softc_t *sc; local 2018 ae_rxvlan(ae_softc_t *sc) argument 2033 ae_rxfilter(ae_softc_t *sc) argument 2090 struct ae_softc *sc; local 2162 ae_stop(ae_softc_t *sc) argument [all...] |
/haiku-fatelf/src/add-ons/kernel/drivers/network/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...] |