/haiku/src/add-ons/kernel/drivers/network/ether/broadcom570x/ |
H A D | glue.c | 44 struct bge_softc *sc = device_get_softc(dev); local 46 uint32 notInterrupted = pci_read_config(sc->bge_dev, BGE_PCI_PCISTATE, 4) 54 BGE_SETBIT(sc, BGE_PCI_MISC_CTL, BGE_PCIMISCCTL_MASK_PCI_INTR); 55 bge_writembx(sc, BGE_MBX_IRQ0_LO, 1); 64 struct bge_softc *sc = device_get_softc(dev); local 65 BGE_SETBIT(sc, BGE_PCI_MISC_CTL, BGE_PCIMISCCTL_CLEAR_INTA); 66 BGE_CLRBIT(sc, BGE_PCI_MISC_CTL, BGE_PCIMISCCTL_MASK_PCI_INTR); 67 bge_writembx(sc, BGE_MBX_IRQ0_LO, 0);
|
/haiku/src/add-ons/kernel/drivers/network/ether/rtl81xx/ |
H A D | glue.c | 41 struct rl_softc *sc = device_get_softc(dev); local 44 status = CSR_READ_2(sc, RL_ISR); 48 CSR_WRITE_2(sc, RL_ISR, status); 54 CSR_WRITE_2(sc, RL_IMR, 0); 62 struct rl_softc *sc = device_get_softc(dev); local 63 RL_LOCK(sc); 64 CSR_WRITE_2(sc, RL_IMR, RL_INTRS); 65 RL_UNLOCK(sc);
|
/haiku/src/add-ons/kernel/drivers/network/wlan/iprowifi2100/dev/ipw/ |
H A D | if_ipwreg.h | 327 #define CSR_READ_1(sc, reg) \ 328 bus_space_read_1((sc)->sc_st, (sc)->sc_sh, (reg)) 330 #define CSR_READ_2(sc, reg) \ 331 bus_space_read_2((sc)->sc_st, (sc)->sc_sh, (reg)) 333 #define CSR_READ_4(sc, reg) \ 334 bus_space_read_4((sc)->sc_st, (sc)->sc_sh, (reg)) 336 #define CSR_WRITE_1(sc, re [all...] |
/haiku/src/add-ons/kernel/drivers/network/wlan/atheroswifi/dev/ath/ |
H A D | if_ath_lna_div.h | 82 extern int ath_lna_div_attach(struct ath_softc *sc); 83 extern int ath_lna_div_detach(struct ath_softc *sc); 84 extern int ath_lna_div_ioctl(struct ath_softc *sc, struct ath_diag *ad); 85 extern int ath_lna_div_enable(struct ath_softc *sc, 88 extern void ath_lna_rx_comb_scan(struct ath_softc *sc,
|
H A D | if_ath_rx.h | 36 extern u_int32_t ath_calcrxfilter(struct ath_softc *sc); 55 extern int ath_rxbuf_init(struct ath_softc *sc, struct ath_buf *bf); 57 extern void ath_rx_proc(struct ath_softc *sc, int resched); 58 extern void ath_stoprecv(struct ath_softc *sc, int dodelay); 59 extern int ath_startrecv(struct ath_softc *sc); 62 extern int ath_rx_pkt(struct ath_softc *sc, struct ath_rx_status *rs, 66 extern void ath_recv_setup_legacy(struct ath_softc *sc);
|
H A D | if_ath_pci.c | 240 struct ath_softc *sc = &psc->sc_sc; local 249 sc->sc_dev = dev; 254 sc->sc_pci_devinfo = pd->driver_data; 276 sc->sc_st = (HAL_BUS_TAG) rman_get_bustag(psc->sc_sr); 277 sc->sc_sh = (HAL_BUS_HANDLE) rman_get_bushandle(psc->sc_sr); 282 sc->sc_invalid = 1; 284 ATH_LOCK_INIT(sc); 285 ATH_PCU_LOCK_INIT(sc); 286 ATH_RX_LOCK_INIT(sc); 287 ATH_TX_LOCK_INIT(sc); 386 struct ath_softc *sc = &psc->sc_sc; local [all...] |
/haiku/src/add-ons/kernel/drivers/network/ether/vt612x/ |
H A D | glue.c | 42 struct vge_softc *sc = device_get_softc(dev); local 44 if (CSR_READ_4(sc, VGE_ISR) == 0) 47 CSR_WRITE_4(sc, VGE_IMR, 0x00000000); 55 struct vge_softc *sc = device_get_softc(dev); local 57 CSR_WRITE_4(sc, VGE_IMR, VGE_INTRS);
|
/haiku/src/add-ons/kernel/drivers/network/wlan/ralinkwifi/dev/usb/wlan/ |
H A D | if_rumvar.h | 64 struct rum_softc *sc; member in struct:rum_tx_data 174 #define RUM_LOCK_INIT(sc) \ 175 mtx_init(&(sc)->sc_mtx, device_get_nameunit((sc)->sc_dev), \ 177 #define RUM_LOCK(sc) mtx_lock(&(sc)->sc_mtx) 178 #define RUM_UNLOCK(sc) mtx_unlock(&(sc)->sc_mtx) 179 #define RUM_LOCK_ASSERT(sc) mtx_assert(&(sc) [all...] |
/haiku/src/add-ons/kernel/drivers/network/wlan/atheroswifi/dev/ath/ath_dfs/null/ |
H A D | dfs_null.c | 86 ath_dfs_attach(struct ath_softc *sc) argument 95 ath_dfs_detach(struct ath_softc *sc) argument 105 ath_dfs_radar_enable(struct ath_softc *sc, struct ieee80211_channel *chan) argument 112 if (ath_hal_getcapability(sc->sc_ah, 122 if (! ath_hal_getdfsdefaultthresh(sc->sc_ah, &pe)) 126 sc->sc_dodfs = 1; 137 ath_hal_enabledfs(sc->sc_ah, &pe); 144 (void) ath_hal_setcapability(sc->sc_ah, HAL_CAP_DIVERSITY, 2, 0, NULL); 158 ath_dfs_radar_disable(struct ath_softc *sc) argument 163 (void) ath_hal_getdfsthresh(sc 179 ath_dfs_process_phy_err(struct ath_softc *sc, struct mbuf *m, uint64_t tsf, struct ath_rx_status *rxstat) argument 193 ath_dfs_process_radar_event(struct ath_softc *sc, struct ieee80211_channel *chan) argument 207 ath_dfs_tasklet_needed(struct ath_softc *sc, struct ieee80211_channel *chan) argument 220 ath_ioctl_phyerr(struct ath_softc *sc, struct ath_diag *ad) argument 293 ath_dfs_get_thresholds(struct ath_softc *sc, HAL_PHYERR_PARAM *param) argument [all...] |
/haiku/src/add-ons/kernel/drivers/network/wlan/realtekwifi/dev/rtwn/rtl8812a/ |
H A D | r12a_rf.c | 60 r12a_rf_read(struct rtwn_softc *sc, int chain, uint8_t addr) argument 66 rtwn_bb_setbits(sc, R12A_CCA_ON_SEC, 0, 0x08); 68 val = rtwn_bb_read(sc, R12A_HSSI_PARAM1(chain)); 71 rtwn_bb_setbits(sc, R12A_HSSI_PARAM2, 74 val = rtwn_bb_read(sc, pi_mode ? R12A_HSPI_READBACK(chain) : 79 rtwn_bb_setbits(sc, R12A_CCA_ON_SEC, 0x08, 0); 85 r12a_c_cut_rf_read(struct rtwn_softc *sc, int chain, uint8_t addr) argument 89 val = rtwn_bb_read(sc, R12A_HSSI_PARAM1(chain)); 92 rtwn_bb_setbits(sc, R12A_HSSI_PARAM2, 94 rtwn_delay(sc, 2 103 r12a_rf_write(struct rtwn_softc *sc, int chain, uint8_t addr, uint32_t val) argument [all...] |
/haiku/src/add-ons/kernel/drivers/network/wlan/realtekwifi/dev/rtwn/rtl8821a/ |
H A D | r21a_fw.c | 60 r21a_fw_reset(struct rtwn_softc *sc, int reason) argument 64 rtwn_setbits_1(sc, R92C_RSV_CTRL, 0x02, 0); 65 rtwn_setbits_1(sc, R92C_RSV_CTRL + 1, 0x01, 0); 67 rtwn_setbits_1_shift(sc, R92C_SYS_FUNC_EN, 71 rtwn_setbits_1(sc, R92C_RSV_CTRL, 0x02, 0); 72 rtwn_setbits_1(sc, R92C_RSV_CTRL + 1, 0, 0x01); 74 rtwn_setbits_1_shift(sc, R92C_SYS_FUNC_EN,
|
/haiku/src/add-ons/kernel/drivers/network/ether/3com/ |
H A D | glue.c | 43 struct xl_softc *sc = device_get_softc(dev); local 44 u_int16_t status = CSR_READ_2(sc, XL_STATUS); 49 CSR_WRITE_2(sc, XL_COMMAND, XL_CMD_STAT_ENB); 50 CSR_WRITE_2(sc, XL_COMMAND, XL_CMD_INTR_ACK | (status & XL_INTRS)); 51 atomic_set((int32 *)&sc->xl_intr_status, status); 59 struct xl_softc *sc = device_get_softc(dev); local 60 CSR_WRITE_2(sc, XL_COMMAND, XL_CMD_STAT_ENB | XL_INTRS);
|
/haiku/src/add-ons/kernel/drivers/network/wlan/ralinkwifi/ |
H A D | glue.c | 72 struct rt2560_softc* sc = (struct rt2560_softc*)device_get_softc(dev); local 78 RAL_WRITE(sc, RT2560_CSR8, 0xffffffff); 80 if (!(sc->sc_flags & RT2560_F_RUNNING)) { 89 RAL_WRITE(sc, RT2661_INT_MASK_CSR, 0xffffff7f); 90 RAL_WRITE(sc, RT2661_MCU_INT_MASK_CSR, 0xffffffff); 92 if (!(sc->sc_flags & RAL_RUNNING)) { 100 struct rt2860_softc* sc = local 102 r = RAL_READ(sc, RT2860_INT_STATUS); 106 atomic_set((int32*)&sc->sc_intr_status, r);
|
/haiku/src/add-ons/kernel/drivers/network/ether/pcnet/dev/mii/ |
H A D | nsphy.c | 147 nsphy_service(struct mii_softc *sc, struct mii_data *mii, int cmd) argument 156 reg = PHY_READ(sc, MII_NSPHY_PCR); 189 if (mii_phy_mac_match(sc, "fxp")) 190 PHY_WRITE(sc, MII_NSPHY_PCR, reg); 192 mii_phy_setmedia(sc); 196 if (mii_phy_tick(sc) == EJUSTRETURN) 202 PHY_STATUS(sc); 205 mii_phy_update(sc, cmd); 210 nsphy_status(struct mii_softc *sc) argument 212 struct mii_data *mii = sc 287 nsphy_reset(struct mii_softc *sc) argument [all...] |
/haiku/src/add-ons/kernel/drivers/network/ether/sis900/dev/mii/ |
H A D | icsphy.c | 143 icsphy_service(struct mii_softc *sc, struct mii_data *mii, int cmd) argument 151 mii_phy_setmedia(sc); 155 if (mii_phy_tick(sc) == EJUSTRETURN) 161 PHY_STATUS(sc); 164 mii_phy_update(sc, cmd); 169 icsphy_status(struct mii_softc *sc) argument 171 struct mii_data *mii = sc->mii_pdata; 183 qpr = PHY_READ(sc, MII_ICSPHY_QPR); /* unlatch */ 184 qpr = PHY_READ(sc, MII_ICSPHY_QPR); /* real value */ 189 bmcr = PHY_READ(sc, MII_BMC 219 icsphy_reset(struct mii_softc *sc) argument [all...] |
/haiku/src/add-ons/kernel/drivers/network/wlan/realtekwifi/dev/rtwn/pci/ |
H A D | rtwn_pci_attach.c | 125 rtwn_pci_alloc_rx_list(struct rtwn_softc *sc) argument 127 struct rtwn_pci_softc *pc = RTWN_PCI_SOFTC(sc); 135 error = bus_dma_tag_create(bus_get_dma_tag(sc->sc_dev), 1, 0, 139 device_printf(sc->sc_dev, "could not create rx desc DMA tag\n"); 147 device_printf(sc->sc_dev, "could not allocate rx desc\n"); 153 device_printf(sc->sc_dev, "could not load rx desc DMA map\n"); 160 error = bus_dma_tag_create(bus_get_dma_tag(sc->sc_dev), 1, 0, 164 device_printf(sc->sc_dev, "could not create rx buf DMA tag\n"); 173 device_printf(sc->sc_dev, 181 device_printf(sc 209 rtwn_pci_reset_rx_list(struct rtwn_softc *sc) argument 225 rtwn_pci_free_rx_list(struct rtwn_softc *sc) argument 267 rtwn_pci_alloc_tx_list(struct rtwn_softc *sc, int qid) argument 332 rtwn_pci_reset_tx_ring_stopped(struct rtwn_softc *sc, int qid) argument 369 rtwn_pci_reset_beacon_ring(struct rtwn_softc *sc, int id) argument 396 rtwn_pci_reset_tx_list(struct rtwn_softc *sc, struct ieee80211vap *vap, int qid) argument 438 rtwn_pci_free_tx_list(struct rtwn_softc *sc, int qid) argument 479 rtwn_pci_reset_lists(struct rtwn_softc *sc, struct ieee80211vap *vap) argument 493 rtwn_pci_fw_write_block(struct rtwn_softc *sc, const uint8_t *buf, uint16_t reg, int mlen) argument 506 rtwn_pci_get_qmap(struct rtwn_softc *sc) argument 516 rtwn_pci_set_desc_addr(struct rtwn_softc *sc) argument 556 rtwn_pci_beacon_update_begin(struct rtwn_softc *sc, struct ieee80211vap *vap) argument 566 rtwn_pci_beacon_update_end(struct rtwn_softc *sc, struct ieee80211vap *vap) argument 577 rtwn_pci_attach_methods(struct rtwn_softc *sc) argument 605 struct rtwn_softc *sc = &pc->pc_sc; local 710 struct rtwn_softc *sc = &pc->pc_sc; local [all...] |
H A D | rtwn_pci_rx.c | 89 struct rtwn_softc *sc = &pc->pc_sc; local 93 struct ieee80211com *ic = &sc->sc_ic; 100 RTWN_DPRINTF(sc, RTWN_DEBUG_RECV_DESC, 114 RTWN_DPRINTF(sc, RTWN_DEBUG_RECV, 123 RTWN_DPRINTF(sc, RTWN_DEBUG_RECV, 133 device_printf(sc->sc_dev, "%s: could not allocate RX mbuf\n", 150 device_get_name(sc->sc_dev)); 160 ni = rtwn_rx_common(sc, m, rx_desc); 162 RTWN_DPRINTF(sc, RTWN_DEBUG_RECV, 167 RTWN_UNLOCK(sc); 223 struct rtwn_softc *sc = &pc->pc_sc; local 253 rtwn_pci_tx_done(struct rtwn_softc *sc, int qid) argument 325 rtwn_pci_rx_done(struct rtwn_softc *sc) argument 379 struct rtwn_softc *sc = arg; local [all...] |
H A D | rtwn_pci_tx.c | 92 rtwn_pci_tx_start_frame(struct rtwn_softc *sc, struct ieee80211_node *ni, argument 95 struct rtwn_pci_softc *pc = RTWN_PCI_SOFTC(sc); 103 RTWN_ASSERT_LOCKED(sc); 118 RTWN_DPRINTF(sc, RTWN_DEBUG_XMIT, 124 ((uint8_t *)ring->desc + sc->txdesc_len * ring->cur); 126 device_printf(sc->sc_dev, 135 txd->offset = sc->txdesc_len; 140 device_printf(sc->sc_dev, "can't map mbuf (error %d)\n", 149 device_printf(sc->sc_dev, "can't defragment mbuf\n"); 157 device_printf(sc 199 rtwn_pci_tx_start_beacon(struct rtwn_softc *sc, struct mbuf *m, uint8_t *tx_desc, int id) argument 258 rtwn_pci_tx_start(struct rtwn_softc *sc, struct ieee80211_node *ni, struct mbuf *m, uint8_t *tx_desc, uint8_t type, int id) argument [all...] |
/haiku/src/add-ons/kernel/drivers/network/wlan/realtekwifi/dev/rtwn/usb/ |
H A D | rtwn_usb_rx.c | 70 rtwn_rx_check_pre_alloc(struct rtwn_softc *sc, argument 76 RTWN_ASSERT_LOCKED(sc); 82 if (!(sc->sc_flags & RTWN_RUNNING)) 91 RTWN_DPRINTF(sc, RTWN_DEBUG_RECV, 102 RTWN_DPRINTF(sc, RTWN_DEBUG_RECV, 111 rtwn_rx_copy_to_mbuf(struct rtwn_softc *sc, struct rtwn_rx_stat_common *stat, argument 114 struct ieee80211com *ic = &sc->sc_ic; 117 RTWN_ASSERT_LOCKED(sc); 120 RTWN_DPRINTF(sc, RTWN_DEBUG_RECV_DESC, 126 if (rtwn_rx_check_pre_alloc(sc, sta 155 struct rtwn_softc *sc = &uc->uc_sc; local 239 rtwn_rxeof(struct rtwn_softc *sc, struct rtwn_data *data, uint8_t *buf, int len) argument 298 struct rtwn_softc *sc = &uc->uc_sc; local 352 rtwn_rx_frame(struct rtwn_softc *sc, struct mbuf *m) argument 367 struct rtwn_softc *sc = &uc->uc_sc; local [all...] |
/haiku/src/add-ons/kernel/drivers/network/wlan/realtekwifi/dev/rtwn/rtl8188e/pci/ |
H A D | r88ee_rx.c | 58 struct rtwn_softc *sc = &pc->pc_sc; local 63 status = rtwn_read_4(sc, R88E_HISR); 64 status_ex = rtwn_read_4(sc, R88E_HISRE); 65 RTWN_DPRINTF(sc, RTWN_DEBUG_INTR, "%s: HISR %08X, HISRE %08X\n", 72 rtwn_write_4(sc, R88E_HIMR, 0); 73 rtwn_write_4(sc, R88E_HIMRE, 0); 76 rtwn_write_4(sc, R88E_HISR, status); 77 rtwn_write_4(sc, R88E_HISRE, status_ex); 123 struct rtwn_softc *sc = &pc->pc_sc; local 126 rtwn_write_4(sc, R88E_HIM 131 r88ee_start_xfers(struct rtwn_softc *sc) argument [all...] |
/haiku/src/add-ons/kernel/drivers/network/ether/ipro100/dev/fxp/ |
H A D | inphy.c | 116 inphy_service(struct mii_softc *sc, struct mii_data *mii, int cmd) argument 130 mii_phy_setmedia(sc); 134 if (mii_phy_tick(sc) == EJUSTRETURN) 140 PHY_STATUS(sc); 143 mii_phy_update(sc, cmd); 148 inphy_status(struct mii_softc *sc) argument 150 struct mii_data *mii = sc->mii_pdata; 157 bmsr = PHY_READ(sc, MII_BMSR) | PHY_READ(sc, MII_BMSR); 161 bmcr = PHY_READ(sc, MII_BMC 192 inphy_reset(struct mii_softc *sc) argument [all...] |
/haiku/src/add-ons/kernel/drivers/network/wlan/iprowifi2100/ |
H A D | glue.c | 36 struct ipw_softc* sc = (struct ipw_softc*)device_get_softc(dev); local 39 r = CSR_READ_4(sc, IPW_CSR_INTR); 43 atomic_set((int32*)&sc->sc_intr_status, r); 45 CSR_WRITE_4(sc, IPW_CSR_INTR_MASK, 0);
|
/haiku/src/add-ons/kernel/drivers/network/wlan/aironetwifi/ |
H A D | glue.c | 37 struct an_softc* sc = (struct an_softc*)device_get_softc(dev); variable in typeref:struct:an_softc 39 if (sc->an_gone) 42 CSR_WRITE_2(sc, AN_INT_EN(sc->mpi350), 0);
|
/haiku/src/add-ons/kernel/drivers/network/ether/sis900/ |
H A D | glue.c | 46 struct sis_softc *sc = device_get_softc(dev); local 50 status = CSR_READ_4(sc, SIS_ISR); 57 CSR_WRITE_4(sc, SIS_IER, 0); 59 sc->haiku_interrupt_status = status;
|
/haiku/src/add-ons/kernel/drivers/network/wlan/realtekwifi/dev/rtwn/rtl8192e/ |
H A D | r92e_fw.c | 67 r92e_fw_reset(struct rtwn_softc *sc, int reason) argument 70 rtwn_setbits_1(sc, R92C_RSV_CTRL + 1, 0x01, 0); 72 rtwn_setbits_1_shift(sc, R92C_SYS_FUNC_EN, 76 rtwn_setbits_1(sc, R92C_RSV_CTRL + 1, 0, 0x01); 78 rtwn_setbits_1_shift(sc, R92C_SYS_FUNC_EN, 83 r92e_set_media_status(struct rtwn_softc *sc, int macid) argument 93 if (r88e_fw_cmd(sc, R88E_CMD_MSR_RPT, &status, sizeof(status)) != 0) { 94 device_printf(sc->sc_dev, "%s: cannot change media status!\n", 100 r92e_set_pwrmode(struct rtwn_softc *sc, struct ieee80211vap *vap, int off) argument 128 error = r88e_fw_cmd(sc, R88E_CMD_SET_PWRMOD [all...] |