urtw_softc
urtw_free_tx_data_list(struct urtw_softc *sc)
struct urtw_softc *sc = ic->ic_ifp->if_softc;
urtw_led_init(struct urtw_softc *sc)
urtw_8225_write_s16(struct urtw_softc *sc, uint8_t addr, int index,
urtw_8225_read(struct urtw_softc *sc, uint8_t addr, uint32_t *data)
urtw_8225_write_c(struct urtw_softc *sc, uint8_t addr, uint16_t data)
urtw_8225_isv2(struct urtw_softc *sc, int *ret)
urtw_get_rfchip(struct urtw_softc *sc)
urtw_get_txpwr(struct urtw_softc *sc)
urtw_get_macaddr(struct urtw_softc *sc)
urtw_eprom_read32(struct urtw_softc *sc, uint32_t addr, uint32_t *data)
urtw_eprom_readbit(struct urtw_softc *sc, int16_t *data)
urtw_eprom_sendbits(struct urtw_softc *sc, int16_t *buf, int buflen)
urtw_eprom_writebit(struct urtw_softc *sc, int16_t bit)
urtw_eprom_ck(struct urtw_softc *sc)
urtw_eprom_cs(struct urtw_softc *sc, int able)
urtw_read8_c(struct urtw_softc *sc, int val, uint8_t *data, uint8_t idx)
urtw_read8e(struct urtw_softc *sc, int val, uint8_t *data)
urtw_read16_c(struct urtw_softc *sc, int val, uint16_t *data, uint8_t idx)
urtw_read32_c(struct urtw_softc *sc, int val, uint32_t *data, uint8_t idx)
urtw_write8_c(struct urtw_softc *sc, int val, uint8_t data, uint8_t idx)
urtw_write8e(struct urtw_softc *sc, int val, uint8_t data)
urtw_write16_c(struct urtw_softc *sc, int val, uint16_t data, uint8_t idx)
urtw_write32_c(struct urtw_softc *sc, int val, uint32_t data, uint8_t idx)
urtw_set_mode(struct urtw_softc *sc, uint32_t mode)
urtw_8180_set_anaparam(struct urtw_softc *sc, uint32_t val)
urtw_8185_set_anaparam2(struct urtw_softc *sc, uint32_t val)
urtw_intr_disable(struct urtw_softc *sc)
urtw_reset(struct urtw_softc *sc)
urtw_led_on(struct urtw_softc *sc, int type)
urtw_led_off(struct urtw_softc *sc, int type)
urtw_led_mode0(struct urtw_softc *sc, int mode)
urtw_led_mode1(struct urtw_softc *sc, int mode)
urtw_led_mode2(struct urtw_softc *sc, int mode)
urtw_led_mode3(struct urtw_softc *sc, int mode)
struct urtw_softc *sc = arg;
struct urtw_softc *sc = arg;
urtw_led_ctl(struct urtw_softc *sc, int mode)
urtw_led_blink(struct urtw_softc *sc)
urtw_update_msr(struct urtw_softc *sc)
urtw_set_rate(struct urtw_softc *sc)
urtw_intr_enable(struct urtw_softc *sc)
urtw_rx_setconf(struct urtw_softc *sc)
urtw_rx_enable(struct urtw_softc *sc)
urtw_tx_enable(struct urtw_softc *sc)
struct urtw_softc *sc = ifp->if_softc;
struct urtw_softc *sc = ifp->if_softc;
struct urtw_softc *sc = ifp->if_softc;
struct urtw_softc *sc = ifp->if_softc;
struct urtw_softc *sc = data->sc;
struct urtw_softc *sc = data->sc;
urtw_tx_start(struct urtw_softc *sc, struct ieee80211_node *ni, struct mbuf *m0,
urtw_8225_usb_init(struct urtw_softc *sc)
urtw_8185_rf_pins_enable(struct urtw_softc *sc)
urtw_8187_write_phy(struct urtw_softc *sc, uint8_t addr, uint32_t data)
urtw_8187_write_phy_ofdm_c(struct urtw_softc *sc, uint8_t addr, uint32_t data)
urtw_8187_write_phy_cck_c(struct urtw_softc *sc, uint8_t addr, uint32_t data)
urtw_8225_setgain(struct urtw_softc *sc, int16_t gain)
urtw_8225_set_txpwrlvl(struct urtw_softc *sc, int chan)
urtw_8185_tx_antenna(struct urtw_softc *sc, uint8_t ant)
struct urtw_softc *sc = rf->rf_sc;
struct urtw_softc *sc = rf->rf_sc;
struct urtw_softc *sc = rf->rf_sc;
struct urtw_softc *sc = ifp->if_softc;
struct urtw_softc *sc = data->sc;
urtw_8225v2_setgain(struct urtw_softc *sc, int16_t gain)
urtw_8225v2_set_txpwrlvl(struct urtw_softc *sc, int chan)
struct urtw_softc *sc = rf->rf_sc;
struct urtw_softc *sc = rf->rf_sc;
urtw_set_chan(struct urtw_softc *sc, struct ieee80211_channel *c)
struct urtw_softc *sc = arg;
struct urtw_softc *sc = arg;
urtw_8187b_update_wmm(struct urtw_softc *sc)
urtw_8187b_reset(struct urtw_softc *sc)
struct urtw_softc *sc = ifp->if_softc;
urtw_8225v2_b_config_mac(struct urtw_softc *sc)
urtw_8225v2_b_init_rfe(struct urtw_softc *sc)
urtw_8225v2_b_update_chan(struct urtw_softc *sc)
struct urtw_softc *sc = rf->rf_sc;
struct urtw_softc *sc = rf->rf_sc;
urtw_8225v2_b_set_txpwrlvl(struct urtw_softc *sc, int chan)
urtw_set_bssid(struct urtw_softc *sc, const uint8_t *bssid)
urtw_set_macaddr(struct urtw_softc *sc, const uint8_t *addr)
static int urtw_alloc_rx_data_list(struct urtw_softc *);
static void urtw_free_rx_data_list(struct urtw_softc *);
static int urtw_alloc_tx_data_list(struct urtw_softc *);
static void urtw_free_tx_data_list(struct urtw_softc *);
static int urtw_tx_start(struct urtw_softc *,
static void urtw_set_chan(struct urtw_softc *, struct ieee80211_channel *);
static usbd_status urtw_set_rate(struct urtw_softc *);
static usbd_status urtw_update_msr(struct urtw_softc *);
static usbd_status urtw_read8_c(struct urtw_softc *, int, uint8_t *, uint8_t);
static usbd_status urtw_read16_c(struct urtw_softc *, int, uint16_t *, uint8_t);
static usbd_status urtw_read32_c(struct urtw_softc *, int, uint32_t *, uint8_t);
static usbd_status urtw_write8_c(struct urtw_softc *, int, uint8_t, uint8_t);
static usbd_status urtw_write16_c(struct urtw_softc *, int, uint16_t, uint8_t);
static usbd_status urtw_write32_c(struct urtw_softc *, int, uint32_t, uint8_t);
static usbd_status urtw_eprom_cs(struct urtw_softc *, int);
static usbd_status urtw_eprom_ck(struct urtw_softc *);
static usbd_status urtw_eprom_sendbits(struct urtw_softc *, int16_t *,
static usbd_status urtw_eprom_read32(struct urtw_softc *, uint32_t,
static usbd_status urtw_eprom_readbit(struct urtw_softc *, int16_t *);
static usbd_status urtw_eprom_writebit(struct urtw_softc *, int16_t);
static usbd_status urtw_get_macaddr(struct urtw_softc *);
static usbd_status urtw_get_txpwr(struct urtw_softc *);
static usbd_status urtw_get_rfchip(struct urtw_softc *);
static usbd_status urtw_led_init(struct urtw_softc *);
static usbd_status urtw_8185_rf_pins_enable(struct urtw_softc *);
static usbd_status urtw_8185_tx_antenna(struct urtw_softc *, uint8_t);
static usbd_status urtw_8187_write_phy(struct urtw_softc *, uint8_t, uint32_t);
static usbd_status urtw_8187_write_phy_ofdm_c(struct urtw_softc *, uint8_t,
static usbd_status urtw_8187_write_phy_cck_c(struct urtw_softc *, uint8_t,
static usbd_status urtw_8225_setgain(struct urtw_softc *, int16_t);
static usbd_status urtw_8225_usb_init(struct urtw_softc *);
static usbd_status urtw_8225_write_c(struct urtw_softc *, uint8_t, uint16_t);
static usbd_status urtw_8225_write_s16(struct urtw_softc *, uint8_t, int,
static usbd_status urtw_8225_read(struct urtw_softc *, uint8_t, uint32_t *);
static usbd_status urtw_8225_set_txpwrlvl(struct urtw_softc *, int);
static usbd_status urtw_8225v2_set_txpwrlvl(struct urtw_softc *, int);
static usbd_status urtw_8225v2_setgain(struct urtw_softc *, int16_t);
static usbd_status urtw_8225_isv2(struct urtw_softc *, int *);
static usbd_status urtw_read8e(struct urtw_softc *, int, uint8_t *);
static usbd_status urtw_write8e(struct urtw_softc *, int, uint8_t);
static usbd_status urtw_8180_set_anaparam(struct urtw_softc *, uint32_t);
static usbd_status urtw_8185_set_anaparam2(struct urtw_softc *, uint32_t);
static usbd_status urtw_open_pipes(struct urtw_softc *);
static usbd_status urtw_close_pipes(struct urtw_softc *);
static usbd_status urtw_intr_enable(struct urtw_softc *);
static usbd_status urtw_intr_disable(struct urtw_softc *);
static usbd_status urtw_reset(struct urtw_softc *);
static usbd_status urtw_led_on(struct urtw_softc *, int);
static usbd_status urtw_led_ctl(struct urtw_softc *, int);
static usbd_status urtw_led_blink(struct urtw_softc *);
static usbd_status urtw_led_mode0(struct urtw_softc *, int);
static usbd_status urtw_led_mode1(struct urtw_softc *, int);
static usbd_status urtw_led_mode2(struct urtw_softc *, int);
static usbd_status urtw_led_mode3(struct urtw_softc *, int);
static usbd_status urtw_rx_setconf(struct urtw_softc *);
static usbd_status urtw_rx_enable(struct urtw_softc *);
static usbd_status urtw_tx_enable(struct urtw_softc *);
static usbd_status urtw_8187b_update_wmm(struct urtw_softc *);
static usbd_status urtw_8187b_reset(struct urtw_softc *);
static usbd_status urtw_8225v2_b_config_mac(struct urtw_softc *);
static usbd_status urtw_8225v2_b_init_rfe(struct urtw_softc *);
static usbd_status urtw_8225v2_b_update_chan(struct urtw_softc *);
static usbd_status urtw_8225v2_b_set_txpwrlvl(struct urtw_softc *, int);
static int urtw_set_bssid(struct urtw_softc *, const uint8_t *);
static int urtw_set_macaddr(struct urtw_softc *, const uint8_t *);
CFATTACH_DECL_NEW(urtw, sizeof(struct urtw_softc),
struct urtw_softc *sc = device_private(self);
struct urtw_softc *sc = device_private(self);
struct urtw_softc *sc = device_private(self);
urtw_close_pipes(struct urtw_softc *sc)
urtw_open_pipes(struct urtw_softc *sc)
urtw_alloc_rx_data_list(struct urtw_softc *sc)
urtw_free_rx_data_list(struct urtw_softc *sc)
urtw_alloc_tx_data_list(struct urtw_softc *sc)
struct urtw_softc *sc;
struct urtw_softc *sc;
struct urtw_softc *rf_sc;