Searched refs:sc (Results 51 - 75 of 279) sorted by relevance

1234567891011>>

/haiku-fatelf/src/add-ons/kernel/drivers/network/jmicron2x0/dev/mii/
H A Djmphy.c115 jmphy_service(struct mii_softc *sc, struct mii_data *mii, int cmd) argument
130 if (jmphy_setmedia(sc, ife) != EJUSTRETURN)
145 sc->mii_ticks = 0;
150 if ((PHY_READ(sc, JMPHY_SSR) & JMPHY_SSR_LINK_UP) != 0) {
151 sc->mii_ticks = 0;
156 if (sc->mii_ticks++ == 0)
158 if (sc->mii_ticks <= sc->mii_anegticks)
161 sc->mii_ticks = 0;
162 (void)jmphy_setmedia(sc, if
175 jmphy_status(struct mii_softc *sc) argument
238 jmphy_reset(struct mii_softc *sc) argument
314 jmphy_setmedia(struct mii_softc *sc, struct ifmedia_entry *ife) argument
[all...]
/haiku-fatelf/src/add-ons/kernel/drivers/network/vt612x/dev/mii/
H A Dciphy.c122 ciphy_service(struct mii_softc *sc, struct mii_data *mii, int cmd) argument
138 ciphy_fixup(sc); /* XXX hardware bug work-around */
146 if (PHY_READ(sc, CIPHY_MII_BMCR) & CIPHY_BMCR_AUTOEN)
149 (void)mii_phy_auto(sc);
174 PHY_WRITE(sc, CIPHY_MII_1000CTL, gig);
175 PHY_WRITE(sc, CIPHY_MII_BMCR, speed);
176 PHY_WRITE(sc, CIPHY_MII_ANAR, CIPHY_SEL_TYPE);
179 PHY_WRITE(sc, MII_BMCR, BMCR_ISO | BMCR_PDOWN);
204 reg = PHY_READ(sc, MII_BMSR) | PHY_READ(sc, MII_BMS
239 ciphy_status(struct mii_softc *sc) argument
293 ciphy_reset(struct mii_softc *sc) argument
306 ciphy_fixup(struct mii_softc *sc) argument
[all...]
/haiku-fatelf/src/add-ons/kernel/drivers/network/via_rhine/dev/mii/
H A Dciphy.c122 ciphy_service(struct mii_softc *sc, struct mii_data *mii, int cmd) argument
138 ciphy_fixup(sc); /* XXX hardware bug work-around */
146 if (PHY_READ(sc, CIPHY_MII_BMCR) & CIPHY_BMCR_AUTOEN)
149 (void)mii_phy_auto(sc);
174 PHY_WRITE(sc, CIPHY_MII_1000CTL, gig);
175 PHY_WRITE(sc, CIPHY_MII_BMCR, speed);
176 PHY_WRITE(sc, CIPHY_MII_ANAR, CIPHY_SEL_TYPE);
179 PHY_WRITE(sc, MII_BMCR, BMCR_ISO | BMCR_PDOWN);
204 reg = PHY_READ(sc, MII_BMSR) | PHY_READ(sc, MII_BMS
239 ciphy_status(struct mii_softc *sc) argument
293 ciphy_reset(struct mii_softc *sc) argument
306 ciphy_fixup(struct mii_softc *sc) argument
[all...]
/haiku-fatelf/src/add-ons/kernel/drivers/network/broadcom570x/dev/mii/
H A Dbrgphy.c197 struct mii_softc *sc; local
201 sc = &bsc->mii_sc;
209 switch (sc->mii_mpd_oui) {
211 switch (sc->mii_mpd_model) {
221 PHY_WRITE(sc, BRGPHY_MII_SHADOW_1C,
223 if (PHY_READ(sc, BRGPHY_MII_SHADOW_1C) &
226 sc->mii_flags |= MIIF_HAVEFIBER;
232 switch (sc->mii_mpd_model) {
235 sc->mii_flags |= MIIF_HAVEFIBER;
239 sc
301 brgphy_service(struct mii_softc *sc, struct mii_data *mii, int cmd) argument
410 brgphy_setmedia(struct mii_softc *sc, int media) argument
466 brgphy_status(struct mii_softc *sc) argument
599 brgphy_mii_phy_auto(struct mii_softc *sc, int media) argument
632 brgphy_enable_loopback(struct mii_softc *sc) argument
646 bcm5401_load_dspcode(struct mii_softc *sc) argument
673 bcm5411_load_dspcode(struct mii_softc *sc) argument
691 bcm54k2_load_dspcode(struct mii_softc *sc) argument
709 brgphy_fixup_5704_a0_bug(struct mii_softc *sc) argument
726 brgphy_fixup_adc_bug(struct mii_softc *sc) argument
744 brgphy_fixup_adjust_trim(struct mii_softc *sc) argument
764 brgphy_fixup_ber_bug(struct mii_softc *sc) argument
787 brgphy_fixup_crc_bug(struct mii_softc *sc) argument
806 brgphy_fixup_jitter_bug(struct mii_softc *sc) argument
825 brgphy_fixup_disable_early_dac(struct mii_softc *sc) argument
837 brgphy_ethernet_wirespeed(struct mii_softc *sc) argument
848 brgphy_jumbo_settings(struct mii_softc *sc, u_long mtu) argument
880 brgphy_reset(struct mii_softc *sc) argument
[all...]
/haiku-fatelf/src/add-ons/kernel/bus_managers/acpi/
H A DEmbeddedController.cpp268 acpi_ec_cookie* sc; local
269 sc = (acpi_ec_cookie*)malloc(sizeof(acpi_ec_cookie));
270 if (sc == NULL)
273 memset(sc, 0, sizeof(acpi_ec_cookie));
275 *_driverCookie = sc;
276 sc->ec_dev = dev;
278 sc->ec_condition_var.Init(NULL, "ec condition variable");
279 mutex_init(&sc->ec_lock, "ec lock");
281 gDeviceManager->get_driver(parent, (driver_module_info**)&sc->ec_acpi,
282 (void**)&sc
400 acpi_ec_cookie* sc = (struct acpi_ec_cookie*)driverCookie; local
485 EcCheckStatus(struct acpi_ec_cookie* sc, const char* msg, EC_EVENT event) argument
505 struct acpi_ec_cookie* sc = (struct acpi_ec_cookie*)context; local
575 struct acpi_ec_cookie* sc = (acpi_ec_cookie*)context; local
623 struct acpi_ec_cookie* sc = (struct acpi_ec_cookie*)context; local
688 EcWaitEvent(struct acpi_ec_cookie* sc, EC_EVENT event, int32 generationCount) argument
773 EcCommand(struct acpi_ec_cookie* sc, EC_COMMAND cmd) argument
822 EcRead(struct acpi_ec_cookie* sc, uint8 address, uint8* readData) argument
852 EcWrite(struct acpi_ec_cookie* sc, uint8 address, uint8 writeData) argument
[all...]
/haiku-fatelf/src/add-ons/kernel/drivers/network/wlan/atheroswifi/dev/ath/
H A Dif_ath_debug.h66 #define IFF_DUMPPKTS(sc, m) \
67 ((sc->sc_debug & (m)) || \
68 (sc->sc_ifp->if_flags & (IFF_DEBUG|IFF_LINK2)) == (IFF_DEBUG|IFF_LINK2))
69 #define DPRINTF(sc, m, fmt, ...) do { \
70 if (sc->sc_debug & (m)) \
71 device_printf(sc->sc_dev, fmt, __VA_ARGS__); \
73 #define KEYPRINTF(sc, ix, hk, mac) do { \
74 if (sc->sc_debug & ATH_DEBUG_KEYCACHE) \
75 ath_keyprint(sc, __func__, ix, hk, mac); \
83 #define IFF_DUMPPKTS(sc,
[all...]
H A Dif_ath_misc.h51 extern int ath_tx_findrix(const struct ath_softc *sc, uint8_t rate);
53 extern struct ath_buf * ath_getbuf(struct ath_softc *sc);
54 extern struct ath_buf * _ath_getbuf_locked(struct ath_softc *sc);
H A Dif_ath_tx.h35 extern void ath_txfrag_cleanup(struct ath_softc *sc, ath_bufhead *frags,
37 extern int ath_txfrag_setup(struct ath_softc *sc, ath_bufhead *frags,
39 extern int ath_tx_start(struct ath_softc *sc, struct ieee80211_node *ni,
/haiku-fatelf/src/add-ons/kernel/drivers/network/wlan/ralink2860/dev/rt2860/
H A Drt2860_io.h36 void rt2860_io_rf_load_defaults(struct rt2860_softc *sc);
37 uint32_t rt2860_io_mac_read(struct rt2860_softc *sc, uint16_t reg);
39 void rt2860_io_mac_read_multi(struct rt2860_softc *sc,
42 void rt2860_io_mac_write(struct rt2860_softc *sc,
45 void rt2860_io_mac_write_multi(struct rt2860_softc *sc,
48 void rt2860_io_mac_set_region_4(struct rt2860_softc *sc,
51 uint16_t rt2860_io_eeprom_read(struct rt2860_softc *sc, uint16_t addr);
53 void rt2860_io_eeprom_read_multi(struct rt2860_softc *sc,
56 uint8_t rt2860_io_bbp_read(struct rt2860_softc *sc, uint8_t reg);
58 void rt2860_io_bbp_write(struct rt2860_softc *sc, uint8_
[all...]
H A Drt2860.c71 static void rt2860_init_channels(struct rt2860_softc *sc);
73 static void rt2860_init_channels_ht40(struct rt2860_softc *sc);
79 static int rt2860_init_bbp(struct rt2860_softc *sc);
179 static int rt2860_staid_alloc(struct rt2860_softc *sc, int aid);
181 static void rt2860_staid_delete(struct rt2860_softc *sc, int staid);
183 static void rt2860_asic_set_bssid(struct rt2860_softc *sc,
186 static void rt2860_asic_set_macaddr(struct rt2860_softc *sc,
189 static void rt2860_asic_enable_tsf_sync(struct rt2860_softc *sc);
191 static void rt2860_asic_disable_tsf_sync(struct rt2860_softc *sc);
193 static void rt2860_asic_enable_mrr(struct rt2860_softc *sc);
415 struct rt2860_softc *sc; local
719 struct rt2860_softc *sc; local
777 struct rt2860_softc *sc; local
797 struct rt2860_softc *sc; local
817 struct rt2860_softc *sc; local
836 rt2860_init_channels(struct rt2860_softc *sc) argument
941 rt2860_init_channels_ht40(struct rt2860_softc *sc) argument
1130 struct rt2860_softc *sc; local
1565 struct rt2860_softc *sc; local
1579 rt2860_init_bbp(struct rt2860_softc *sc) argument
1619 struct rt2860_softc *sc; local
1683 struct rt2860_softc *sc; local
1699 struct rt2860_softc *sc; local
1768 struct rt2860_softc *sc; local
1838 struct rt2860_softc *sc; local
1962 struct rt2860_softc *sc; local
2029 struct rt2860_softc *sc; local
2085 struct rt2860_softc *sc; local
2181 struct rt2860_softc *sc; local
2203 struct rt2860_softc *sc; local
2226 struct rt2860_softc *sc; local
2442 struct rt2860_softc *sc; local
2488 struct rt2860_softc *sc; local
2550 struct rt2860_softc *sc; local
2613 struct rt2860_softc *sc; local
2643 struct rt2860_softc *sc; local
2657 struct rt2860_softc *sc; local
2671 struct rt2860_softc *sc; local
2698 struct rt2860_softc *sc; local
2763 struct rt2860_softc *sc; local
2775 struct rt2860_softc *sc; local
2787 struct rt2860_softc *sc; local
2797 struct rt2860_softc *sc; local
2814 struct rt2860_softc *sc; local
2875 struct rt2860_softc *sc; local
2920 struct rt2860_softc *sc; local
2980 struct rt2860_softc *sc; local
3053 struct rt2860_softc *sc; local
3096 struct rt2860_softc *sc; local
3125 struct rt2860_softc *sc; local
3157 struct rt2860_softc *sc; local
3221 struct rt2860_softc *sc; local
3265 struct rt2860_softc *sc; local
3281 struct rt2860_softc *sc; local
3309 rt2860_staid_alloc(struct rt2860_softc *sc, int aid) argument
3334 rt2860_staid_delete(struct rt2860_softc *sc, int staid) argument
3342 rt2860_asic_set_bssid(struct rt2860_softc *sc, const uint8_t *bssid) argument
3364 rt2860_asic_set_macaddr(struct rt2860_softc *sc, const uint8_t *addr) argument
3381 rt2860_asic_enable_tsf_sync(struct rt2860_softc *sc) argument
3423 rt2860_asic_disable_tsf_sync(struct rt2860_softc *sc) argument
3446 rt2860_asic_enable_mrr(struct rt2860_softc *sc) argument
3496 rt2860_asic_set_txpreamble(struct rt2860_softc *sc) argument
3523 rt2860_asic_set_basicrates(struct rt2860_softc *sc) argument
3542 rt2860_asic_update_rtsthreshold(struct rt2860_softc *sc) argument
3578 rt2860_asic_update_txpower(struct rt2860_softc *sc) argument
3654 rt2860_asic_update_promisc(struct rt2860_softc *sc) argument
3678 rt2860_asic_updateprot(struct rt2860_softc *sc) argument
3866 rt2860_asic_updateslot(struct rt2860_softc *sc) argument
3899 rt2860_asic_wme_update(struct rt2860_softc *sc) argument
3956 rt2860_asic_update_beacon(struct rt2860_softc *sc, struct ieee80211vap *vap) argument
4001 rt2860_asic_clear_keytables(struct rt2860_softc *sc) argument
4037 rt2860_asic_add_ba_session(struct rt2860_softc *sc, uint8_t wcid, int tid) argument
4056 rt2860_asic_del_ba_session(struct rt2860_softc *sc, uint8_t wcid, int tid) argument
4075 rt2860_beacon_alloc(struct rt2860_softc *sc, struct ieee80211vap *vap) argument
4189 rt2860_maxrssi_rxpath(struct rt2860_softc *sc, const struct rt2860_rxwi *rxwi) argument
4210 rt2860_rssi2dbm(struct rt2860_softc *sc, uint8_t rssi, uint8_t rxpath) argument
4277 rt2860_tx_mgmt(struct rt2860_softc *sc, struct mbuf *m, struct ieee80211_node *ni, int qid) argument
4602 rt2860_tx_data(struct rt2860_softc *sc, struct mbuf *m, struct ieee80211_node *ni, int qid) argument
5028 struct rt2860_softc *sc; local
5116 rt2860_tx_coherent_intr(struct rt2860_softc *sc) argument
5168 rt2860_rx_coherent_intr(struct rt2860_softc *sc) argument
5220 rt2860_txrx_coherent_intr(struct rt2860_softc *sc) argument
5272 rt2860_fifo_sta_full_intr(struct rt2860_softc *sc) argument
5297 rt2860_rx_intr(struct rt2860_softc *sc) argument
5322 rt2860_rx_delay_intr(struct rt2860_softc *sc) argument
5334 rt2860_tx_intr(struct rt2860_softc *sc, int qid) argument
5363 rt2860_tx_delay_intr(struct rt2860_softc *sc) argument
5375 rt2860_pre_tbtt_intr(struct rt2860_softc *sc) argument
5387 rt2860_tbtt_intr(struct rt2860_softc *sc) argument
5399 rt2860_mcu_cmd_intr(struct rt2860_softc *sc) argument
5411 rt2860_auto_wakeup_intr(struct rt2860_softc *sc) argument
5423 rt2860_gp_timer_intr(struct rt2860_softc *sc) argument
5437 struct rt2860_softc *sc; local
5478 struct rt2860_softc *sc; local
5539 struct rt2860_softc *sc; local
5582 struct rt2860_softc *sc; local
5630 rt2860_rx_eof(struct rt2860_softc *sc, int limit) argument
5993 rt2860_tx_eof(struct rt2860_softc *sc, struct rt2860_softc_tx_ring *ring) argument
6074 rt2860_update_stats(struct rt2860_softc *sc) argument
6124 rt2860_bbp_tuning(struct rt2860_softc *sc) argument
6187 rt2860_watchdog(struct rt2860_softc *sc) argument
6238 rt2860_drain_fifo_stats(struct rt2860_softc *sc) argument
6285 rt2860_update_raw_counters(struct rt2860_softc *sc) argument
6350 rt2860_intr_enable(struct rt2860_softc *sc, uint32_t intr_mask) argument
6364 rt2860_intr_disable(struct rt2860_softc *sc, uint32_t intr_mask) argument
6378 rt2860_txrx_enable(struct rt2860_softc *sc) argument
6452 rt2860_alloc_rx_ring(struct rt2860_softc *sc, struct rt2860_softc_rx_ring *ring) argument
6566 rt2860_reset_rx_ring(struct rt2860_softc *sc, struct rt2860_softc_rx_ring *ring) argument
6588 rt2860_free_rx_ring(struct rt2860_softc *sc, struct rt2860_softc_rx_ring *ring) argument
6632 rt2860_alloc_tx_ring(struct rt2860_softc *sc, struct rt2860_softc_tx_ring *ring, int qid) argument
6750 rt2860_reset_tx_ring(struct rt2860_softc *sc, struct rt2860_softc_tx_ring *ring) argument
6803 rt2860_free_tx_ring(struct rt2860_softc *sc, struct rt2860_softc_tx_ring *ring) argument
6875 rt2860_sysctl_attach(struct rt2860_softc *sc) argument
[all...]
/haiku-fatelf/src/add-ons/kernel/drivers/network/dec21xxx/dev/mii/
H A Dacphy.c131 struct mii_softc *sc; local
133 sc = device_get_softc(dev);
137 PHY_RESET(sc);
139 sc->mii_capabilities = PHY_READ(sc, MII_BMSR) & sc->mii_capmask;
142 #define ADD(m, c) ifmedia_add(&sc->mii_pdata->mii_media, (m), (c), NULL)
143 if ((PHY_READ(sc, MII_ACPHY_MCTL) & AC_MCTL_FX_SEL) != 0) {
144 sc->mii_flags |= MIIF_HAVEFIBER;
145 ADD(IFM_MAKEWORD(IFM_ETHER, IFM_100_FX, 0, sc
162 acphy_service(struct mii_softc *sc, struct mii_data *mii, int cmd) argument
207 acphy_status(struct mii_softc *sc) argument
253 acphy_reset(struct mii_softc *sc) argument
[all...]
/haiku-fatelf/src/add-ons/kernel/drivers/network/ar81xx/dev/ale/
H A Dif_ale.c131 static int ale_rxeof(struct ale_softc *sc, int);
203 struct ale_softc *sc; local
207 sc = device_get_softc(dev);
209 CSR_WRITE_4(sc, ALE_MDIO, MDIO_OP_EXECUTE | MDIO_OP_READ |
213 v = CSR_READ_4(sc, ALE_MDIO);
219 device_printf(sc->ale_dev, "phy read timeout : %d\n", reg);
229 struct ale_softc *sc; local
233 sc = device_get_softc(dev);
235 CSR_WRITE_4(sc, ALE_MDIO, MDIO_OP_EXECUTE | MDIO_OP_WRITE |
240 v = CSR_READ_4(sc, ALE_MDI
254 struct ale_softc *sc; local
299 struct ale_softc *sc; local
319 struct ale_softc *sc; local
358 ale_get_macaddr(struct ale_softc *sc) argument
402 ale_phy_reset(struct ale_softc *sc) argument
452 struct ale_softc *sc; local
705 struct ale_softc *sc; local
777 ale_sysctl_node(struct ale_softc *sc) argument
988 ale_check_boundary(struct ale_softc *sc) argument
1027 ale_dma_alloc(struct ale_softc *sc) argument
1312 ale_dma_free(struct ale_softc *sc) argument
1434 ale_setlinkspeed(struct ale_softc *sc) argument
1497 ale_setwol(struct ale_softc *sc) argument
1562 struct ale_softc *sc; local
1577 struct ale_softc *sc; local
1608 ale_encap(struct ale_softc *sc, struct mbuf **m_head) argument
1884 struct ale_softc *sc; local
1895 struct ale_softc *sc; local
1946 ale_watchdog(struct ale_softc *sc) argument
1974 struct ale_softc *sc; local
2081 ale_mac_config(struct ale_softc *sc) argument
2113 ale_stats_clear(struct ale_softc *sc) argument
2131 ale_stats_update(struct ale_softc *sc) argument
2238 struct ale_softc *sc; local
2256 struct ale_softc *sc; local
2318 ale_txeof(struct ale_softc *sc) argument
2378 ale_rx_update_page(struct ale_softc *sc, struct ale_rx_page **page, uint32_t length, uint32_t *prod) argument
2425 ale_rxcsum(struct ale_softc *sc, struct mbuf *m, uint32_t status) argument
2471 ale_rxeof(struct ale_softc *sc, int count) argument
2582 struct ale_softc *sc; local
2603 ale_reset(struct ale_softc *sc) argument
2633 struct ale_softc *sc; local
2642 ale_init_locked(struct ale_softc *sc) argument
2873 ale_stop(struct ale_softc *sc) argument
2926 ale_stop_mac(struct ale_softc *sc) argument
2951 ale_init_tx_ring(struct ale_softc *sc) argument
2978 ale_init_rx_pages(struct ale_softc *sc) argument
3003 ale_rxvlan(struct ale_softc *sc) argument
3019 ale_rxfilter(struct ale_softc *sc) argument
[all...]
/haiku-fatelf/src/add-ons/kernel/drivers/network/wlan/atheroswifi/
H A Dglue.c26 struct ath_softc* sc = (struct ath_softc*)device_get_softc(dev); local
27 struct ath_hal* ah = sc->sc_ah;
30 if (sc->sc_invalid) {
51 atomic_set((int32*)&sc->sc_intr_status, intr_status);
63 struct ath_softc* sc = (struct ath_softc*)device_get_softc(dev); local
64 struct ath_hal* ah = sc->sc_ah;
66 ath_hal_intrset(ah, sc->sc_imask);
/haiku-fatelf/src/add-ons/kernel/drivers/network/wlan/marvell88w8363/
H A Dglue.c31 struct mwl_softc* sc = (struct mwl_softc*)device_get_softc(dev); local
32 struct mwl_hal* mh = sc->sc_mh;
35 if (sc->sc_invalid) {
49 atomic_set((int32*)&sc->sc_intr_status, intr_status);
60 struct mwl_softc* sc = (struct mwl_softc*)device_get_softc(dev); local
61 struct mwl_hal* mh = sc->sc_mh;
63 mwl_hal_intrset(mh, sc->sc_imask);
/haiku-fatelf/src/add-ons/kernel/drivers/network/wlan/wavelanwifi/
H A Dglue.c32 struct wi_softc* sc = (struct wi_softc*)device_get_softc(dev); variable in typeref:struct:wi_softc
33 struct ifnet* ifp = sc->sc_ifp;
35 if (sc->wi_gone || !sc->sc_enabled || (ifp->if_flags & IFF_UP) == 0) {
36 CSR_WRITE_2(sc, WI_INT_EN, 0);
37 CSR_WRITE_2(sc, WI_EVENT_ACK, 0xFFFF);
41 CSR_WRITE_2(sc, WI_INT_EN, 0);
/haiku-fatelf/src/add-ons/kernel/drivers/network/ipro100/dev/fxp/
H A Dif_fxp.c222 static void fxp_rxcsum(struct fxp_softc *sc, struct ifnet *ifp,
224 static int fxp_intr_body(struct fxp_softc *sc, struct ifnet *ifp,
227 static void fxp_init_body(struct fxp_softc *sc, int);
231 static int fxp_encap(struct fxp_softc *sc, struct mbuf **m_head);
232 static void fxp_txeof(struct fxp_softc *sc);
233 static void fxp_stop(struct fxp_softc *sc);
234 static void fxp_release(struct fxp_softc *sc);
237 static void fxp_watchdog(struct fxp_softc *sc);
238 static void fxp_add_rfabuf(struct fxp_softc *sc,
240 static void fxp_discard_rfabuf(struct fxp_softc *sc,
325 fxp_scb_wait(struct fxp_softc *sc) argument
346 fxp_scb_cmd(struct fxp_softc *sc, int cmd) argument
357 fxp_dma_wait(struct fxp_softc *sc, volatile uint16_t *status, bus_dma_tag_t dmat, bus_dmamap_t map) argument
425 struct fxp_softc *sc; local
932 fxp_release(struct fxp_softc *sc) argument
1004 struct fxp_softc *sc = device_get_softc(dev); local
1062 struct fxp_softc *sc = device_get_softc(dev); local
1097 struct fxp_softc *sc = device_get_softc(dev); local
1129 fxp_eeprom_shiftin(struct fxp_softc *sc, int data, int length) argument
1159 fxp_eeprom_getword(struct fxp_softc *sc, int offset, int autosize) argument
1211 fxp_eeprom_putword(struct fxp_softc *sc, int offset, uint16_t data) argument
1275 fxp_autosize_eeprom(struct fxp_softc *sc) argument
1286 fxp_read_eeprom(struct fxp_softc *sc, u_short *data, int offset, int words) argument
1295 fxp_write_eeprom(struct fxp_softc *sc, u_short *data, int offset, int words) argument
1304 fxp_load_eeprom(struct fxp_softc *sc) argument
1326 struct fxp_softc *sc = ifp->if_softc; local
1341 struct fxp_softc *sc = ifp->if_softc; local
1401 fxp_encap(struct fxp_softc *sc, struct mbuf **m_head) argument
1675 struct fxp_softc *sc = ifp->if_softc; local
1713 struct fxp_softc *sc = xsc; local
1752 fxp_txeof(struct fxp_softc *sc) argument
1783 fxp_rxcsum(struct fxp_softc *sc, struct ifnet *ifp, struct mbuf *m, uint16_t status, int pos) argument
1861 fxp_intr_body(struct fxp_softc *sc, struct ifnet *ifp, uint8_t statack, int count) argument
2027 fxp_update_stats(struct fxp_softc *sc) argument
2115 struct fxp_softc *sc = xsc; local
2177 fxp_stop(struct fxp_softc *sc) argument
2232 fxp_watchdog(struct fxp_softc *sc) argument
2254 struct fxp_softc *sc = xsc; local
2266 fxp_init_body(struct fxp_softc *sc, int setmedia) argument
2586 struct fxp_softc *sc = ifp->if_softc; local
2605 struct fxp_softc *sc = ifp->if_softc; local
2624 fxp_new_rfabuf(struct fxp_softc *sc, struct fxp_rx *rxp) argument
2686 fxp_add_rfabuf(struct fxp_softc *sc, struct fxp_rx *rxp) argument
2712 fxp_discard_rfabuf(struct fxp_softc *sc, struct fxp_rx *rxp) argument
2753 struct fxp_softc *sc = device_get_softc(dev); local
2773 struct fxp_softc *sc = device_get_softc(dev); local
2792 struct fxp_softc *sc; local
2822 struct fxp_softc *sc = ifp->if_softc; local
2961 fxp_mc_addrs(struct fxp_softc *sc) argument
3002 fxp_mc_setup(struct fxp_softc *sc) argument
3075 fxp_load_ucode(struct fxp_softc *sc) argument
3123 fxp_sysctl_node(struct fxp_softc *sc) argument
[all...]
/haiku-fatelf/src/add-ons/kernel/drivers/network/wlan/wavelanwifi/dev/wi/
H A Dif_wi_pci.c121 struct wi_softc *sc; local
124 sc = device_get_softc(dev);
128 sc->wi_bus_type = pci_ids[i].bus_type;
139 struct wi_softc *sc; local
145 sc = device_get_softc(dev);
157 if (sc->wi_bus_type != WI_BUS_PCI_NATIVE) {
163 CSR_WRITE_2(sc, WI_INT_EN, 0);
164 CSR_WRITE_2(sc, WI_EVENT_ACK, 0xFFFF);
167 sc->local_rid = WI_PCI_LOCALRES;
168 sc
248 struct wi_softc *sc = device_get_softc(dev); local
258 struct wi_softc *sc = device_get_softc(dev); local
[all...]
/haiku-fatelf/src/add-ons/kernel/bus_managers/firewire/
H A Dfwohci_pci.cpp75 fwohci_softc_t *sc = gFwohci_softc[index]; local
80 fwohci_stop(sc);
84 /* if (sc->fc.bdev) {
85 device_delete_child(self, sc->fc.bdev);
86 sc->fc.bdev = NULL;
90 OWRITE(sc, FWOHCI_INTMASKCLR, OHCI_INT_EN);
91 remove_io_interrupt_handler (sc->irq, fwohci_intr, sc);
92 delete_area(sc->regArea);
94 fwohci_detach(sc);
103 struct fwohci_softc *sc; local
142 fwohci_softc_t *sc = gFwohci_softc[index]; local
[all...]
/haiku-fatelf/src/tests/system/libroot/posix/posixtestsuite/stress/threads/pthread_exit/
H A Dstress.c132 pthread_cleanup_push(cleanup, &scenarii[sc].sem);
175 for (sc=0; sc<NSCENAR; sc++)
178 if (scenarii[sc].altstack != 0)
181 rets[i*NSCENAR + sc] = pthread_create(&threads[i*NSCENAR + sc], &scenarii[sc].ta, threaded, &threads[i*NSCENAR + sc]);
182 switch (scenarii[sc]
[all...]
/haiku-fatelf/src/add-ons/kernel/drivers/network/wlan/iprowifi3945/dev/wpi/
H A Dif_wpi.c315 wpi_load_firmware(struct wpi_softc *sc) argument
318 struct wpi_dma_info *dma = &sc->fw_dma;
327 WPI_UNLOCK(sc);
329 if (sc->fw_fp == NULL && (sc->fw_fp = firmware_get("wpifw")) == NULL) {
330 device_printf(sc->sc_dev,
333 WPI_LOCK(sc);
337 fp = sc->fw_fp;
339 WPI_LOCK(sc);
343 device_printf(sc
476 wpi_unload_firmware(struct wpi_softc *sc) argument
490 struct wpi_softc *sc = device_get_softc(dev); local
712 struct wpi_softc *sc = device_get_softc(dev); local
820 wpi_dma_contig_alloc(struct wpi_softc *sc, struct wpi_dma_info *dma, void **kvap, bus_size_t size, bus_size_t alignment, int flags) argument
922 wpi_alloc_shared(struct wpi_softc *sc) argument
940 wpi_free_shared(struct wpi_softc *sc) argument
946 wpi_alloc_rx_ring(struct wpi_softc *sc, struct wpi_rx_ring *ring) argument
1024 wpi_reset_rx_ring(struct wpi_softc *sc, struct wpi_rx_ring *ring) argument
1049 wpi_free_rx_ring(struct wpi_softc *sc, struct wpi_rx_ring *ring) argument
1070 wpi_alloc_tx_ring(struct wpi_softc *sc, struct wpi_tx_ring *ring, int count, int qid) argument
1142 wpi_reset_tx_ring(struct wpi_softc *sc, struct wpi_tx_ring *ring) argument
1177 wpi_free_tx_ring(struct wpi_softc *sc, struct wpi_tx_ring *ring) argument
1207 struct wpi_softc *sc = device_get_softc(dev); local
1220 struct wpi_softc *sc = device_get_softc(dev); local
1230 struct wpi_softc *sc = device_get_softc(dev); local
1248 struct wpi_softc *sc = ifp->if_softc; local
1305 wpi_mem_lock(struct wpi_softc *sc) argument
1328 wpi_mem_unlock(struct wpi_softc *sc) argument
1335 wpi_mem_read(struct wpi_softc *sc, uint16_t addr) argument
1342 wpi_mem_write(struct wpi_softc *sc, uint16_t addr, uint32_t data) argument
1349 wpi_mem_write_region_4(struct wpi_softc *sc, uint16_t addr, const uint32_t *data, int wlen) argument
1362 wpi_read_prom_data(struct wpi_softc *sc, uint32_t addr, void *data, int len) argument
1401 wpi_load_microcode(struct wpi_softc *sc, const uint8_t *fw, int size) argument
1448 wpi_rx_intr(struct wpi_softc *sc, struct wpi_rx_desc *desc, struct wpi_rx_data *data) argument
1572 wpi_tx_intr(struct wpi_softc *sc, struct wpi_rx_desc *desc) argument
1622 wpi_cmd_intr(struct wpi_softc *sc, struct wpi_rx_desc *desc) argument
1649 wpi_notif_intr(struct wpi_softc *sc) argument
1780 struct wpi_softc *sc = arg; local
1865 wpi_tx_data(struct wpi_softc *sc, struct mbuf *m0, struct ieee80211_node *ni, int ac) argument
2036 struct wpi_softc *sc = ifp->if_softc; local
2046 struct wpi_softc *sc = ifp->if_softc; local
2083 struct wpi_softc *sc = ifp->if_softc; local
2120 struct wpi_softc *sc = ifp->if_softc; local
2157 wpi_read_eeprom(struct wpi_softc *sc, uint8_t macaddr[IEEE80211_ADDR_LEN]) argument
2185 wpi_cmd(struct wpi_softc *sc, int code, const void *buf, int size, int async) argument
2241 struct wpi_softc *sc = ic->ic_ifp->if_softc; local
2271 wpi_mrr_setup(struct wpi_softc *sc) argument
2326 wpi_set_led(struct wpi_softc *sc, uint8_t which, uint8_t off, uint8_t on) argument
2339 wpi_enable_tsf(struct wpi_softc *sc, struct ieee80211_node *ni) argument
2436 wpi_auth(struct wpi_softc *sc, struct ieee80211vap *vap) argument
2499 wpi_run(struct wpi_softc *sc, struct ieee80211vap *vap) argument
2559 wpi_scan(struct wpi_softc *sc) argument
2785 wpi_config(struct wpi_softc *sc) argument
2888 wpi_stop_master(struct wpi_softc *sc) argument
2913 wpi_power_up(struct wpi_softc *sc) argument
2937 wpi_reset(struct wpi_softc *sc) argument
2982 wpi_hw_config(struct wpi_softc *sc) argument
3009 wpi_rfkill_resume(struct wpi_softc *sc) argument
3060 wpi_init_locked(struct wpi_softc *sc, int force) argument
3171 struct wpi_softc *sc = arg; local
3184 wpi_stop_locked(struct wpi_softc *sc) argument
3230 wpi_stop(struct wpi_softc *sc) argument
3240 struct wpi_softc *sc = arg; local
3263 wpi_power_calibration(struct wpi_softc *sc, int temp) argument
3296 wpi_read_eeprom_channels(struct wpi_softc *sc, int n) argument
3373 wpi_read_eeprom_group(struct wpi_softc *sc, int n) argument
3404 wpi_set_txpower(struct wpi_softc *sc, struct ieee80211_channel *c, int async) argument
3456 wpi_get_power_index(struct wpi_softc *sc, struct wpi_power_group *group, struct ieee80211_channel *c, int rate) argument
3536 struct wpi_softc *sc = ifp->if_softc; local
3562 struct wpi_softc *sc = ifp->if_softc; local
3589 struct wpi_softc *sc = ifp->if_softc; local
3612 struct wpi_softc *sc = arg; local
3622 struct wpi_softc *sc = arg; local
3633 wpi_alloc_fwmem(struct wpi_softc *sc) argument
3642 wpi_free_fwmem(struct wpi_softc *sc) argument
3654 struct wpi_softc *sc = arg; local
[all...]
/haiku-fatelf/src/add-ons/kernel/drivers/network/wlan/ralinkwifi/dev/ral/
H A Drt2560.c68 #define RT2560_RSSI(sc, rssi) \
69 ((rssi) > (RT2560_NOISE_FLOOR + (sc)->rssi_corr) ? \
70 ((rssi) - RT2560_NOISE_FLOOR - (sc)->rssi_corr) : 0)
74 #define DPRINTF(sc, fmt, ...) do { \
75 if (sc->sc_debug > 0) \
78 #define DPRINTFN(sc, n, fmt, ...) do { \
79 if (sc->sc_debug >= (n)) \
83 #define DPRINTF(sc, fmt, ...)
84 #define DPRINTFN(sc, n, fmt, ...)
198 struct rt2560_softc *sc local
354 struct rt2560_softc *sc = xsc; local
450 struct rt2560_softc *sc = xsc; local
469 rt2560_alloc_tx_ring(struct rt2560_softc *sc, struct rt2560_tx_ring *ring, int count) argument
536 rt2560_reset_tx_ring(struct rt2560_softc *sc, struct rt2560_tx_ring *ring) argument
570 rt2560_free_tx_ring(struct rt2560_softc *sc, struct rt2560_tx_ring *ring) argument
611 rt2560_alloc_rx_ring(struct rt2560_softc *sc, struct rt2560_rx_ring *ring, int count) argument
706 rt2560_reset_rx_ring(struct rt2560_softc *sc, struct rt2560_rx_ring *ring) argument
722 rt2560_free_rx_ring(struct rt2560_softc *sc, struct rt2560_rx_ring *ring) argument
764 struct rt2560_softc *sc = ifp->if_softc; local
817 rt2560_eeprom_read(struct rt2560_softc *sc, uint8_t addr) argument
875 rt2560_encryption_intr(struct rt2560_softc *sc) argument
924 rt2560_tx_intr(struct rt2560_softc *sc) argument
1029 rt2560_prio_intr(struct rt2560_softc *sc) argument
1117 rt2560_decryption_intr(struct rt2560_softc *sc) argument
1256 rt2560_rx_intr(struct rt2560_softc *sc) argument
1319 rt2560_beacon_expire(struct rt2560_softc *sc) argument
1354 rt2560_wakeup_expire(struct rt2560_softc *sc) argument
1362 struct rt2560_softc *sc = arg; local
1439 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
1488 rt2560_tx_bcn(struct rt2560_softc *sc, struct mbuf *m0, struct ieee80211_node *ni) argument
1541 rt2560_tx_mgt(struct rt2560_softc *sc, struct mbuf *m0, struct ieee80211_node *ni) argument
1630 rt2560_sendprot(struct rt2560_softc *sc, const struct mbuf *m, struct ieee80211_node *ni, int prot, int rate) argument
1699 rt2560_tx_raw(struct rt2560_softc *sc, struct mbuf *m0, struct ieee80211_node *ni, const struct ieee80211_bpf_params *params) argument
1778 rt2560_tx_data(struct rt2560_softc *sc, struct mbuf *m0, struct ieee80211_node *ni) argument
1921 struct rt2560_softc *sc = ifp->if_softc; local
1951 struct rt2560_softc *sc = ifp->if_softc; local
1961 struct rt2560_softc *sc = arg; local
1987 struct rt2560_softc *sc = ifp->if_softc; local
2023 rt2560_bbp_write(struct rt2560_softc *sc, uint8_t reg, uint8_t val) argument
2045 rt2560_bbp_read(struct rt2560_softc *sc, uint8_t reg) argument
2075 rt2560_rf_write(struct rt2560_softc *sc, uint8_t reg, uint32_t val) argument
2101 rt2560_set_chan(struct rt2560_softc *sc, struct ieee80211_channel *c) argument
2204 struct rt2560_softc *sc = ifp->if_softc; local
2238 rt2560_enable_tsf_sync(struct rt2560_softc *sc) argument
2272 rt2560_enable_tsf(struct rt2560_softc *sc) argument
2280 rt2560_update_plcp(struct rt2560_softc *sc) argument
2311 struct rt2560_softc *sc = ifp->if_softc; local
2359 rt2560_set_basicrates(struct rt2560_softc *sc, const struct ieee80211_rateset *rs) argument
2385 rt2560_update_led(struct rt2560_softc *sc, int led1, int led2) argument
2395 rt2560_set_bssid(struct rt2560_softc *sc, const uint8_t *bssid) argument
2409 rt2560_set_macaddr(struct rt2560_softc *sc, uint8_t *addr) argument
2423 rt2560_get_macaddr(struct rt2560_softc *sc, uint8_t *addr) argument
2441 struct rt2560_softc *sc = ifp->if_softc; local
2472 rt2560_read_config(struct rt2560_softc *sc) argument
2520 struct rt2560_softc *sc = ifp->if_softc; local
2531 struct rt2560_softc *sc = ifp->if_softc; local
2540 rt2560_bbp_init(struct rt2560_softc *sc) argument
2575 rt2560_set_txantenna(struct rt2560_softc *sc, int antenna) argument
2602 rt2560_set_rxantenna(struct rt2560_softc *sc, int antenna) argument
2622 rt2560_init_locked(struct rt2560_softc *sc) argument
2712 struct rt2560_softc *sc = priv; local
2725 rt2560_stop_locked(struct rt2560_softc *sc) argument
2767 struct rt2560_softc *sc = arg; local
2780 struct rt2560_softc *sc = ifp->if_softc; local
[all...]
/haiku-fatelf/src/tests/system/libroot/posix/posixtestsuite/conformance/interfaces/pthread_detach/
H A D1-2.c114 do { ret = sem_post(&(scenarii[sc].sem)); }
130 for (sc=0; sc < NSCENAR; sc++)
134 output("Starting test with scenario (%i): %s\n", sc, scenarii[sc].descr);
137 if (scenarii[sc].detached != 0) /* only joinable threads can be detached */
139 ret = pthread_attr_setdetachstate(&scenarii[sc].ta, PTHREAD_CREATE_JOINABLE);
146 ret = pthread_create(&child, &scenarii[sc].ta, threaded, (scenarii[sc]
[all...]
/haiku-fatelf/src/add-ons/kernel/drivers/network/pcnet/dev/le/
H A Dif_le_pci.c169 le_pci_wrbcr(struct lance_softc *sc, uint16_t port, uint16_t val) argument
171 struct le_pci_softc *lesc = (struct le_pci_softc *)sc;
179 le_pci_rdbcr(struct lance_softc *sc, uint16_t port) argument
181 struct le_pci_softc *lesc = (struct le_pci_softc *)sc;
189 le_pci_wrcsr(struct lance_softc *sc, uint16_t port, uint16_t val) argument
191 struct le_pci_softc *lesc = (struct le_pci_softc *)sc;
208 le_pci_rdcsr(struct lance_softc *sc, uint16_t port) argument
210 struct le_pci_softc *lesc = (struct le_pci_softc *)sc;
231 le_pci_mediachange(struct lance_softc *sc) argument
233 struct ifmedia *ifm = &sc
277 le_pci_hwreset(struct lance_softc *sc) argument
295 struct lance_softc *sc = (struct lance_softc *)xsc; local
328 struct lance_softc *sc; local
488 struct lance_softc *sc; local
[all...]
/haiku-fatelf/src/add-ons/kernel/drivers/network/wlan/iprowifi2200/
H A Dglue.c32 struct iwi_softc* sc = (struct iwi_softc*)device_get_softc(dev); local
35 r = CSR_READ_4(sc, IWI_CSR_INTR);
39 atomic_set((int32*)&sc->sc_intr_status, r);
41 CSR_WRITE_4(sc, IWI_CSR_INTR_MASK, 0);
50 struct iwi_softc* sc = (struct iwi_softc*)device_get_softc(dev); local
52 CSR_WRITE_4(sc, IWI_CSR_INTR_MASK, IWI_INTR_MASK);
/haiku-fatelf/src/add-ons/kernel/drivers/network/wlan/marvell88w8335/dev/malo/
H A Dif_malo.c107 #define IFF_DUMPPKTS_RECV(sc, wh) \
108 (((sc->malo_debug & MALO_DEBUG_RECV) && \
109 ((sc->malo_debug & MALO_DEBUG_RECV_ALL) || !IS_BEACON(wh))) || \
110 (sc->malo_ifp->if_flags & (IFF_DEBUG|IFF_LINK2)) == \
112 #define IFF_DUMPPKTS_XMIT(sc) \
113 ((sc->malo_debug & MALO_DEBUG_XMIT) || \
114 (sc->malo_ifp->if_flags & (IFF_DEBUG | IFF_LINK2)) == \
116 #define DPRINTF(sc, m, fmt, ...) do { \
117 if (sc->malo_debug & (m)) \
121 #define DPRINTF(sc,
163 malo_bar0_read4(struct malo_softc *sc, bus_size_t off) argument
169 malo_bar0_write4(struct malo_softc *sc, bus_size_t off, uint32_t val) argument
178 malo_attach(uint16_t devid, struct malo_softc *sc) argument
404 struct malo_softc *sc = arg; local
461 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
543 malo_rxdma_setup(struct malo_softc *sc) argument
586 malo_txdma_setup(struct malo_softc *sc, struct malo_txq *txq) argument
630 malo_desc_cleanup(struct malo_softc *sc, struct malo_descdma *dd) argument
641 malo_rxdma_cleanup(struct malo_softc *sc) argument
665 malo_txdma_cleanup(struct malo_softc *sc, struct malo_txq *txq) argument
699 malo_dma_cleanup(struct malo_softc *sc) argument
710 malo_dma_setup(struct malo_softc *sc) argument
735 malo_hal_set_rxtxdma(struct malo_softc *sc) argument
756 malo_setup_hwdma(struct malo_softc *sc) argument
776 malo_txq_init(struct malo_softc *sc, struct malo_txq *txq, int qnum) argument
801 malo_tx_cleanupq(struct malo_softc *sc, struct malo_txq *txq) argument
811 malo_getbuf(struct malo_softc *sc, struct malo_txq *txq) argument
831 malo_tx_dmasetup(struct malo_softc *sc, struct malo_txbuf *bf, struct mbuf *m0) argument
967 malo_tx_processq(struct malo_softc *sc, struct malo_txq *txq) argument
1064 struct malo_softc *sc = arg; local
1085 malo_tx_start(struct malo_softc *sc, struct ieee80211_node *ni, struct malo_txbuf *bf, struct mbuf *m0) argument
1272 struct malo_softc *sc = ifp->if_softc; local
1344 struct malo_softc *sc; local
1364 malo_hal_reset(struct malo_softc *sc) argument
1392 malo_getrxmbuf(struct malo_softc *sc, struct malo_rxbuf *bf) argument
1420 malo_rxbuf_init(struct malo_softc *sc, struct malo_rxbuf *bf) argument
1458 malo_startrecv(struct malo_softc *sc) argument
1497 malo_init_locked(struct malo_softc *sc) argument
1552 struct malo_softc *sc = (struct malo_softc *) arg; local
1572 malo_setmcastfilter(struct malo_softc *sc) argument
1616 malo_mode_init(struct malo_softc *sc) argument
1636 malo_tx_draintxq(struct malo_softc *sc, struct malo_txq *txq) argument
1688 struct malo_softc *sc = ifp->if_softc; local
1727 struct malo_softc *sc = ifp->if_softc; local
1784 struct malo_softc *sc = ifp->if_softc; local
1812 struct malo_softc *sc = ic->ic_ifp->if_softc; local
1857 struct malo_softc *sc = ifp->if_softc; local
1916 malo_sysctlattach(struct malo_softc *sc) argument
1930 malo_announce(struct malo_softc *sc) argument
1968 malo_chan_set(struct malo_softc *sc, struct ieee80211_channel *chan) argument
2007 struct malo_softc *sc = ifp->if_softc; local
2016 struct malo_softc *sc = ifp->if_softc; local
2025 struct malo_softc *sc = ifp->if_softc; local
2036 struct malo_softc *sc = arg; local
2203 struct malo_softc *sc = ifp->if_softc; local
2214 malo_tx_cleanup(struct malo_softc *sc) argument
2223 malo_detach(struct malo_softc *sc) argument
2265 malo_shutdown(struct malo_softc *sc) argument
2271 malo_suspend(struct malo_softc *sc) argument
2282 malo_resume(struct malo_softc *sc) argument
[all...]

Completed in 281 milliseconds

1234567891011>>