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)
967 urtw_alloc_tx_data_list(struct urtw_softc *sc)
1004 urtw_free_tx_data_list(struct urtw_softc *sc)
1049 struct urtw_softc *sc = ic->ic_ifp->if_softc;
1068 urtw_led_init(struct urtw_softc *sc)
1102 urtw_8225_write_s16(struct urtw_softc *sc, uint8_t addr, int index,
1117 urtw_8225_read(struct urtw_softc *sc, uint8_t addr, uint32_t *data)
1207 urtw_8225_write_c(struct urtw_softc *sc, uint8_t addr, uint16_t data)
1240 urtw_8225_isv2(struct urtw_softc *sc, int *ret)
1273 urtw_get_rfchip(struct urtw_softc *sc)
1323 urtw_get_txpwr(struct urtw_softc *sc)
1394 urtw_get_macaddr(struct urtw_softc *sc)
1420 urtw_eprom_read32(struct urtw_softc *sc, uint32_t addr, uint32_t *data)
1496 urtw_eprom_readbit(struct urtw_softc *sc, int16_t *data)
1510 urtw_eprom_sendbits(struct urtw_softc *sc, int16_t *buf, int buflen)
1528 urtw_eprom_writebit(struct urtw_softc *sc, int16_t bit)
1544 urtw_eprom_ck(struct urtw_softc *sc)
1562 urtw_eprom_cs(struct urtw_softc *sc, int able)
1578 urtw_read8_c(struct urtw_softc *sc, int val, uint8_t *data, uint8_t idx)
1594 urtw_read8e(struct urtw_softc *sc, int val, uint8_t *data)
1610 urtw_read16_c(struct urtw_softc *sc, int val, uint16_t *data, uint8_t idx)
1626 urtw_read32_c(struct urtw_softc *sc, int val, uint32_t *data, uint8_t idx)
1642 urtw_write8_c(struct urtw_softc *sc, int val, uint8_t data, uint8_t idx)
1656 urtw_write8e(struct urtw_softc *sc, int val, uint8_t data)
1670 urtw_write16_c(struct urtw_softc *sc, int val, uint16_t data, uint8_t idx)
1684 urtw_write32_c(struct urtw_softc *sc, int val, uint32_t data, uint8_t idx)
1698 urtw_set_mode(struct urtw_softc *sc, uint32_t mode)
1712 urtw_8180_set_anaparam(struct urtw_softc *sc, uint32_t val)
1735 urtw_8185_set_anaparam2(struct urtw_softc *sc, uint32_t val)
1758 urtw_intr_disable(struct urtw_softc *sc)
1769 urtw_reset(struct urtw_softc *sc)
1824 urtw_led_on(struct urtw_softc *sc, int type)
1850 urtw_led_off(struct urtw_softc *sc, int type)
1877 urtw_led_mode0(struct urtw_softc *sc, int mode)
1926 urtw_led_mode1(struct urtw_softc *sc, int mode)
1932 urtw_led_mode2(struct urtw_softc *sc, int mode)
1938 urtw_led_mode3(struct urtw_softc *sc, int mode)
1946 struct urtw_softc *sc = arg;
1957 struct urtw_softc *sc = arg;
1967 urtw_led_ctl(struct urtw_softc *sc, int mode)
1993 urtw_led_blink(struct urtw_softc *sc)
2039 urtw_update_msr(struct urtw_softc *sc)
2098 urtw_set_rate(struct urtw_softc *sc)
2124 urtw_intr_enable(struct urtw_softc *sc)
2134 urtw_rx_setconf(struct urtw_softc *sc)
2175 urtw_rx_enable(struct urtw_softc *sc)
2209 urtw_tx_enable(struct urtw_softc *sc)
2254 struct urtw_softc *sc = ifp->if_softc;
2374 struct urtw_softc *sc = ifp->if_softc;
2428 struct urtw_softc *sc = ifp->if_softc;
2501 struct urtw_softc *sc = ifp->if_softc;
2522 struct urtw_softc *sc = data->sc;
2561 struct urtw_softc *sc = data->sc;
2596 urtw_tx_start(struct urtw_softc *sc, struct ieee80211_node *ni, struct mbuf *m0,
2707 urtw_8225_usb_init(struct urtw_softc *sc)
2734 urtw_8185_rf_pins_enable(struct urtw_softc *sc)
2744 urtw_8187_write_phy(struct urtw_softc *sc, uint8_t addr, uint32_t data)
2763 urtw_8187_write_phy_ofdm_c(struct urtw_softc *sc, uint8_t addr, uint32_t data)
2770 urtw_8187_write_phy_cck_c(struct urtw_softc *sc, uint8_t addr, uint32_t data)
2777 urtw_8225_setgain(struct urtw_softc *sc, int16_t gain)
2790 urtw_8225_set_txpwrlvl(struct urtw_softc *sc, int chan)
2843 urtw_8185_tx_antenna(struct urtw_softc *sc, uint8_t ant)
2856 struct urtw_softc *sc = rf->rf_sc;
2953 struct urtw_softc *sc = rf->rf_sc;
2989 struct urtw_softc *sc = rf->rf_sc;
3014 struct urtw_softc *sc = ifp->if_softc;
3058 struct urtw_softc *sc = data->sc;
3182 urtw_8225v2_setgain(struct urtw_softc *sc, int16_t gain)
3202 urtw_8225v2_set_txpwrlvl(struct urtw_softc *sc, int chan)
3251 struct urtw_softc *sc = rf->rf_sc;
3369 struct urtw_softc *sc = rf->rf_sc;
3404 urtw_set_chan(struct urtw_softc *sc, struct ieee80211_channel *c)
3438 struct urtw_softc *sc = arg;
3454 struct urtw_softc *sc = arg;
3516 urtw_8187b_update_wmm(struct urtw_softc *sc)
3548 urtw_8187b_reset(struct urtw_softc *sc)
3595 struct urtw_softc *sc = ifp->if_softc;
3732 urtw_8225v2_b_config_mac(struct urtw_softc *sc)
3756 urtw_8225v2_b_init_rfe(struct urtw_softc *sc)
3770 urtw_8225v2_b_update_chan(struct urtw_softc *sc)
3808 struct urtw_softc *sc = rf->rf_sc;
3904 struct urtw_softc *sc = rf->rf_sc;
3927 urtw_8225v2_b_set_txpwrlvl(struct urtw_softc *sc, int chan)
4030 urtw_set_bssid(struct urtw_softc *sc, const uint8_t *bssid)
4046 urtw_set_macaddr(struct urtw_softc *sc, const uint8_t *addr)