Home | History | Annotate | Download | only in usb

Lines Matching refs:urtw_softc

485 static int		urtw_alloc_rx_data_list(struct urtw_softc *);
486 static void urtw_free_rx_data_list(struct urtw_softc *);
487 static int urtw_alloc_tx_data_list(struct urtw_softc *);
488 static void urtw_free_tx_data_list(struct urtw_softc *);
491 static int urtw_tx_start(struct urtw_softc *,
504 static void urtw_set_chan(struct urtw_softc *, struct ieee80211_channel *);
508 static usbd_status urtw_set_rate(struct urtw_softc *);
509 static usbd_status urtw_update_msr(struct urtw_softc *);
510 static usbd_status urtw_read8_c(struct urtw_softc *, int, uint8_t *, uint8_t);
511 static usbd_status urtw_read16_c(struct urtw_softc *, int, uint16_t *, uint8_t);
512 static usbd_status urtw_read32_c(struct urtw_softc *, int, uint32_t *, uint8_t);
513 static usbd_status urtw_write8_c(struct urtw_softc *, int, uint8_t, uint8_t);
514 static usbd_status urtw_write16_c(struct urtw_softc *, int, uint16_t, uint8_t);
515 static usbd_status urtw_write32_c(struct urtw_softc *, int, uint32_t, uint8_t);
516 static usbd_status urtw_eprom_cs(struct urtw_softc *, int);
517 static usbd_status urtw_eprom_ck(struct urtw_softc *);
518 static usbd_status urtw_eprom_sendbits(struct urtw_softc *, int16_t *,
520 static usbd_status urtw_eprom_read32(struct urtw_softc *, uint32_t,
522 static usbd_status urtw_eprom_readbit(struct urtw_softc *, int16_t *);
523 static usbd_status urtw_eprom_writebit(struct urtw_softc *, int16_t);
524 static usbd_status urtw_get_macaddr(struct urtw_softc *);
525 static usbd_status urtw_get_txpwr(struct urtw_softc *);
526 static usbd_status urtw_get_rfchip(struct urtw_softc *);
527 static usbd_status urtw_led_init(struct urtw_softc *);
528 static usbd_status urtw_8185_rf_pins_enable(struct urtw_softc *);
529 static usbd_status urtw_8185_tx_antenna(struct urtw_softc *, uint8_t);
530 static usbd_status urtw_8187_write_phy(struct urtw_softc *, uint8_t, uint32_t);
531 static usbd_status urtw_8187_write_phy_ofdm_c(struct urtw_softc *, uint8_t,
533 static usbd_status urtw_8187_write_phy_cck_c(struct urtw_softc *, uint8_t,
535 static usbd_status urtw_8225_setgain(struct urtw_softc *, int16_t);
536 static usbd_status urtw_8225_usb_init(struct urtw_softc *);
537 static usbd_status urtw_8225_write_c(struct urtw_softc *, uint8_t, uint16_t);
538 static usbd_status urtw_8225_write_s16(struct urtw_softc *, uint8_t, int,
540 static usbd_status urtw_8225_read(struct urtw_softc *, uint8_t, uint32_t *);
544 static usbd_status urtw_8225_set_txpwrlvl(struct urtw_softc *, int);
547 static usbd_status urtw_8225v2_set_txpwrlvl(struct urtw_softc *, int);
548 static usbd_status urtw_8225v2_setgain(struct urtw_softc *, int16_t);
549 static usbd_status urtw_8225_isv2(struct urtw_softc *, int *);
550 static usbd_status urtw_read8e(struct urtw_softc *, int, uint8_t *);
551 static usbd_status urtw_write8e(struct urtw_softc *, int, uint8_t);
552 static usbd_status urtw_8180_set_anaparam(struct urtw_softc *, uint32_t);
553 static usbd_status urtw_8185_set_anaparam2(struct urtw_softc *, uint32_t);
554 static usbd_status urtw_open_pipes(struct urtw_softc *);
555 static usbd_status urtw_close_pipes(struct urtw_softc *);
556 static usbd_status urtw_intr_enable(struct urtw_softc *);
557 static usbd_status urtw_intr_disable(struct urtw_softc *);
558 static usbd_status urtw_reset(struct urtw_softc *);
559 static usbd_status urtw_led_on(struct urtw_softc *, int);
560 static usbd_status urtw_led_ctl(struct urtw_softc *, int);
561 static usbd_status urtw_led_blink(struct urtw_softc *);
562 static usbd_status urtw_led_mode0(struct urtw_softc *, int);
563 static usbd_status urtw_led_mode1(struct urtw_softc *, int);
564 static usbd_status urtw_led_mode2(struct urtw_softc *, int);
565 static usbd_status urtw_led_mode3(struct urtw_softc *, int);
566 static usbd_status urtw_rx_setconf(struct urtw_softc *);
567 static usbd_status urtw_rx_enable(struct urtw_softc *);
568 static usbd_status urtw_tx_enable(struct urtw_softc *);
569 static usbd_status urtw_8187b_update_wmm(struct urtw_softc *);
570 static usbd_status urtw_8187b_reset(struct urtw_softc *);
572 static usbd_status urtw_8225v2_b_config_mac(struct urtw_softc *);
573 static usbd_status urtw_8225v2_b_init_rfe(struct urtw_softc *);
574 static usbd_status urtw_8225v2_b_update_chan(struct urtw_softc *);
577 static usbd_status urtw_8225v2_b_set_txpwrlvl(struct urtw_softc *, int);
578 static int urtw_set_bssid(struct urtw_softc *, const uint8_t *);
579 static int urtw_set_macaddr(struct urtw_softc *, const uint8_t *);
586 CFATTACH_DECL_NEW(urtw, sizeof(struct urtw_softc),
605 struct urtw_softc *sc = device_private(self);
776 struct urtw_softc *sc = device_private(self);
815 struct urtw_softc *sc = device_private(self);
827 urtw_close_pipes(struct urtw_softc *sc)
847 urtw_open_pipes(struct urtw_softc *sc)
900 urtw_alloc_rx_data_list(struct urtw_softc *sc)
944 urtw_free_rx_data_list(struct urtw_softc *sc)
965 urtw_alloc_tx_data_list(struct urtw_softc *sc)
1002 urtw_free_tx_data_list(struct urtw_softc *sc)
1047 struct urtw_softc *sc = ic->ic_ifp->if_softc;
1066 urtw_led_init(struct urtw_softc *sc)
1100 urtw_8225_write_s16(struct urtw_softc *sc, uint8_t addr, int index,
1115 urtw_8225_read(struct urtw_softc *sc, uint8_t addr, uint32_t *data)
1205 urtw_8225_write_c(struct urtw_softc *sc, uint8_t addr, uint16_t data)
1238 urtw_8225_isv2(struct urtw_softc *sc, int *ret)
1271 urtw_get_rfchip(struct urtw_softc *sc)
1321 urtw_get_txpwr(struct urtw_softc *sc)
1392 urtw_get_macaddr(struct urtw_softc *sc)
1418 urtw_eprom_read32(struct urtw_softc *sc, uint32_t addr, uint32_t *data)
1494 urtw_eprom_readbit(struct urtw_softc *sc, int16_t *data)
1508 urtw_eprom_sendbits(struct urtw_softc *sc, int16_t *buf, int buflen)
1526 urtw_eprom_writebit(struct urtw_softc *sc, int16_t bit)
1542 urtw_eprom_ck(struct urtw_softc *sc)
1560 urtw_eprom_cs(struct urtw_softc *sc, int able)
1576 urtw_read8_c(struct urtw_softc *sc, int val, uint8_t *data, uint8_t idx)
1592 urtw_read8e(struct urtw_softc *sc, int val, uint8_t *data)
1608 urtw_read16_c(struct urtw_softc *sc, int val, uint16_t *data, uint8_t idx)
1624 urtw_read32_c(struct urtw_softc *sc, int val, uint32_t *data, uint8_t idx)
1640 urtw_write8_c(struct urtw_softc *sc, int val, uint8_t data, uint8_t idx)
1654 urtw_write8e(struct urtw_softc *sc, int val, uint8_t data)
1668 urtw_write16_c(struct urtw_softc *sc, int val, uint16_t data, uint8_t idx)
1682 urtw_write32_c(struct urtw_softc *sc, int val, uint32_t data, uint8_t idx)
1696 urtw_set_mode(struct urtw_softc *sc, uint32_t mode)
1710 urtw_8180_set_anaparam(struct urtw_softc *sc, uint32_t val)
1733 urtw_8185_set_anaparam2(struct urtw_softc *sc, uint32_t val)
1756 urtw_intr_disable(struct urtw_softc *sc)
1767 urtw_reset(struct urtw_softc *sc)
1822 urtw_led_on(struct urtw_softc *sc, int type)
1848 urtw_led_off(struct urtw_softc *sc, int type)
1875 urtw_led_mode0(struct urtw_softc *sc, int mode)
1924 urtw_led_mode1(struct urtw_softc *sc, int mode)
1930 urtw_led_mode2(struct urtw_softc *sc, int mode)
1936 urtw_led_mode3(struct urtw_softc *sc, int mode)
1944 struct urtw_softc *sc = arg;
1955 struct urtw_softc *sc = arg;
1965 urtw_led_ctl(struct urtw_softc *sc, int mode)
1991 urtw_led_blink(struct urtw_softc *sc)
2037 urtw_update_msr(struct urtw_softc *sc)
2096 urtw_set_rate(struct urtw_softc *sc)
2122 urtw_intr_enable(struct urtw_softc *sc)
2132 urtw_rx_setconf(struct urtw_softc *sc)
2173 urtw_rx_enable(struct urtw_softc *sc)
2207 urtw_tx_enable(struct urtw_softc *sc)
2252 struct urtw_softc *sc = ifp->if_softc;
2372 struct urtw_softc *sc = ifp->if_softc;
2426 struct urtw_softc *sc = ifp->if_softc;
2499 struct urtw_softc *sc = ifp->if_softc;
2520 struct urtw_softc *sc = data->sc;
2559 struct urtw_softc *sc = data->sc;
2594 urtw_tx_start(struct urtw_softc *sc, struct ieee80211_node *ni, struct mbuf *m0,
2705 urtw_8225_usb_init(struct urtw_softc *sc)
2732 urtw_8185_rf_pins_enable(struct urtw_softc *sc)
2742 urtw_8187_write_phy(struct urtw_softc *sc, uint8_t addr, uint32_t data)
2761 urtw_8187_write_phy_ofdm_c(struct urtw_softc *sc, uint8_t addr, uint32_t data)
2768 urtw_8187_write_phy_cck_c(struct urtw_softc *sc, uint8_t addr, uint32_t data)
2775 urtw_8225_setgain(struct urtw_softc *sc, int16_t gain)
2788 urtw_8225_set_txpwrlvl(struct urtw_softc *sc, int chan)
2841 urtw_8185_tx_antenna(struct urtw_softc *sc, uint8_t ant)
2854 struct urtw_softc *sc = rf->rf_sc;
2951 struct urtw_softc *sc = rf->rf_sc;
2987 struct urtw_softc *sc = rf->rf_sc;
3012 struct urtw_softc *sc = ifp->if_softc;
3056 struct urtw_softc *sc = data->sc;
3180 urtw_8225v2_setgain(struct urtw_softc *sc, int16_t gain)
3200 urtw_8225v2_set_txpwrlvl(struct urtw_softc *sc, int chan)
3249 struct urtw_softc *sc = rf->rf_sc;
3367 struct urtw_softc *sc = rf->rf_sc;
3402 urtw_set_chan(struct urtw_softc *sc, struct ieee80211_channel *c)
3436 struct urtw_softc *sc = arg;
3452 struct urtw_softc *sc = arg;
3514 urtw_8187b_update_wmm(struct urtw_softc *sc)
3546 urtw_8187b_reset(struct urtw_softc *sc)
3593 struct urtw_softc *sc = ifp->if_softc;
3730 urtw_8225v2_b_config_mac(struct urtw_softc *sc)
3754 urtw_8225v2_b_init_rfe(struct urtw_softc *sc)
3768 urtw_8225v2_b_update_chan(struct urtw_softc *sc)
3806 struct urtw_softc *sc = rf->rf_sc;
3902 struct urtw_softc *sc = rf->rf_sc;
3925 urtw_8225v2_b_set_txpwrlvl(struct urtw_softc *sc, int chan)
4028 urtw_set_bssid(struct urtw_softc *sc, const uint8_t *bssid)
4044 urtw_set_macaddr(struct urtw_softc *sc, const uint8_t *addr)