Lines Matching refs:urtwn_softc

203 static void		urtwn_sysctlattach(struct urtwn_softc *);
204 static void urtwn_drain_mbufq(struct urtwn_softc *);
205 static usb_error_t urtwn_do_request(struct urtwn_softc *,
212 static void urtwn_vap_clear_tx(struct urtwn_softc *,
214 static void urtwn_vap_clear_tx_queue(struct urtwn_softc *,
216 static struct mbuf * urtwn_rx_copy_to_mbuf(struct urtwn_softc *,
220 static struct mbuf * urtwn_rxeof(struct urtwn_softc *, uint8_t *, int);
221 static void urtwn_r88e_ratectl_tx_complete(struct urtwn_softc *,
223 static struct ieee80211_node *urtwn_rx_frame(struct urtwn_softc *,
225 static void urtwn_txeof(struct urtwn_softc *, struct urtwn_data *,
227 static int urtwn_alloc_list(struct urtwn_softc *,
229 static int urtwn_alloc_rx_list(struct urtwn_softc *);
230 static int urtwn_alloc_tx_list(struct urtwn_softc *);
231 static void urtwn_free_list(struct urtwn_softc *,
233 static void urtwn_free_rx_list(struct urtwn_softc *);
234 static void urtwn_free_tx_list(struct urtwn_softc *);
235 static struct urtwn_data * _urtwn_getbuf(struct urtwn_softc *);
236 static struct urtwn_data * urtwn_getbuf(struct urtwn_softc *);
237 static usb_error_t urtwn_write_region_1(struct urtwn_softc *, uint16_t,
239 static usb_error_t urtwn_write_1(struct urtwn_softc *, uint16_t, uint8_t);
240 static usb_error_t urtwn_write_2(struct urtwn_softc *, uint16_t, uint16_t);
241 static usb_error_t urtwn_write_4(struct urtwn_softc *, uint16_t, uint32_t);
242 static usb_error_t urtwn_read_region_1(struct urtwn_softc *, uint16_t,
244 static uint8_t urtwn_read_1(struct urtwn_softc *, uint16_t);
245 static uint16_t urtwn_read_2(struct urtwn_softc *, uint16_t);
246 static uint32_t urtwn_read_4(struct urtwn_softc *, uint16_t);
247 static int urtwn_fw_cmd(struct urtwn_softc *, uint8_t,
250 static int urtwn_cmd_sleepable(struct urtwn_softc *, const void *,
252 static void urtwn_r92c_rf_write(struct urtwn_softc *, int,
254 static void urtwn_r88e_rf_write(struct urtwn_softc *, int,
256 static uint32_t urtwn_rf_read(struct urtwn_softc *, int, uint8_t);
257 static int urtwn_llt_write(struct urtwn_softc *, uint32_t,
259 static int urtwn_efuse_read_next(struct urtwn_softc *, uint8_t *);
260 static int urtwn_efuse_read_data(struct urtwn_softc *, uint8_t *,
263 static void urtwn_dump_rom_contents(struct urtwn_softc *,
266 static int urtwn_efuse_read(struct urtwn_softc *, uint8_t *,
268 static int urtwn_efuse_switch_power(struct urtwn_softc *);
269 static int urtwn_read_chipid(struct urtwn_softc *);
270 static int urtwn_read_rom(struct urtwn_softc *);
271 static int urtwn_r88e_read_rom(struct urtwn_softc *);
272 static int urtwn_ra_init(struct urtwn_softc *);
273 static void urtwn_init_beacon(struct urtwn_softc *,
275 static int urtwn_setup_beacon(struct urtwn_softc *,
278 static int urtwn_tx_beacon(struct urtwn_softc *sc,
283 static void urtwn_key_set_cb(struct urtwn_softc *,
285 static void urtwn_key_del_cb(struct urtwn_softc *,
292 static void urtwn_tsf_sync_enable(struct urtwn_softc *,
294 static void urtwn_get_tsf(struct urtwn_softc *, uint64_t *);
295 static void urtwn_set_led(struct urtwn_softc *, int, int);
296 static void urtwn_set_mode(struct urtwn_softc *, uint8_t);
303 static void urtwn_calib_cb(struct urtwn_softc *,
306 static void urtwn_update_avgrssi(struct urtwn_softc *, int, int8_t);
307 static int8_t urtwn_get_rssi(struct urtwn_softc *, int, void *);
308 static int8_t urtwn_r88e_get_rssi(struct urtwn_softc *, int, void *);
309 static int urtwn_tx_data(struct urtwn_softc *,
312 static int urtwn_tx_raw(struct urtwn_softc *,
316 static void urtwn_tx_start(struct urtwn_softc *, struct mbuf *,
319 static void urtwn_start(struct urtwn_softc *);
321 static int urtwn_r92c_power_on(struct urtwn_softc *);
322 static int urtwn_r88e_power_on(struct urtwn_softc *);
323 static void urtwn_r92c_power_off(struct urtwn_softc *);
324 static void urtwn_r88e_power_off(struct urtwn_softc *);
325 static int urtwn_llt_init(struct urtwn_softc *);
327 static void urtwn_fw_reset(struct urtwn_softc *);
328 static void urtwn_r88e_fw_reset(struct urtwn_softc *);
329 static int urtwn_fw_loadpage(struct urtwn_softc *, int,
331 static int urtwn_load_firmware(struct urtwn_softc *);
333 static int urtwn_dma_init(struct urtwn_softc *);
334 static int urtwn_mac_init(struct urtwn_softc *);
335 static void urtwn_bb_init(struct urtwn_softc *);
336 static void urtwn_rf_init(struct urtwn_softc *);
337 static void urtwn_cam_init(struct urtwn_softc *);
338 static int urtwn_cam_write(struct urtwn_softc *, uint32_t,
340 static void urtwn_pa_bias_init(struct urtwn_softc *);
341 static void urtwn_rxfilter_init(struct urtwn_softc *);
342 static void urtwn_edca_init(struct urtwn_softc *);
343 static void urtwn_write_txpower(struct urtwn_softc *, int,
345 static void urtwn_get_txpower(struct urtwn_softc *, int,
348 static void urtwn_r88e_get_txpower(struct urtwn_softc *, int,
351 static void urtwn_set_txpower(struct urtwn_softc *,
354 static void urtwn_set_rx_bssid_all(struct urtwn_softc *, int);
355 static void urtwn_set_gain(struct urtwn_softc *, uint8_t);
363 static void urtwn_update_slot_cb(struct urtwn_softc *,
365 static void urtwn_update_aifs(struct urtwn_softc *, uint8_t);
367 static void urtwn_set_multi(struct urtwn_softc *);
368 static void urtwn_set_promisc(struct urtwn_softc *);
375 static void urtwn_set_chan(struct urtwn_softc *,
378 static void urtwn_iq_calib(struct urtwn_softc *);
379 static void urtwn_lc_calib(struct urtwn_softc *);
380 static void urtwn_temp_calib(struct urtwn_softc *);
381 static void urtwn_setup_static_keys(struct urtwn_softc *,
383 static int urtwn_init(struct urtwn_softc *);
384 static void urtwn_stop(struct urtwn_softc *);
385 static void urtwn_abort_xfers(struct urtwn_softc *);
388 static void urtwn_ms_delay(struct urtwn_softc *);
502 struct urtwn_softc *sc = device_get_softc(self);
667 urtwn_sysctlattach(struct urtwn_softc *sc)
682 struct urtwn_softc *sc = device_get_softc(self);
711 urtwn_drain_mbufq(struct urtwn_softc *sc)
725 urtwn_do_request(struct urtwn_softc *sc, struct usb_device_request *req,
753 struct urtwn_softc *sc = ic->ic_softc;
805 struct urtwn_softc *sc = ic->ic_softc;
827 urtwn_vap_clear_tx(struct urtwn_softc *sc, struct ieee80211vap *vap)
837 urtwn_vap_clear_tx_queue(struct urtwn_softc *sc, urtwn_datahead *head,
862 urtwn_rx_copy_to_mbuf(struct urtwn_softc *sc, struct r92c_rx_stat *stat,
916 struct urtwn_softc *sc = data->sc;
963 urtwn_rxeof(struct urtwn_softc *sc, uint8_t *buf, int len)
1014 urtwn_r88e_ratectl_tx_complete(struct urtwn_softc *sc, void *arg)
1049 urtwn_rx_frame(struct urtwn_softc *sc, struct mbuf *m, int8_t *rssi_p)
1128 struct urtwn_softc *sc = usbd_xfer_softc(xfer);
1225 urtwn_txeof(struct urtwn_softc *sc, struct urtwn_data *data, int status)
1245 urtwn_alloc_list(struct urtwn_softc *sc, struct urtwn_data data[],
1271 urtwn_alloc_rx_list(struct urtwn_softc *sc)
1290 urtwn_alloc_tx_list(struct urtwn_softc *sc)
1310 urtwn_free_list(struct urtwn_softc *sc, struct urtwn_data data[], int ndata)
1329 urtwn_free_rx_list(struct urtwn_softc *sc)
1338 urtwn_free_tx_list(struct urtwn_softc *sc)
1350 struct urtwn_softc *sc = usbd_xfer_softc(xfer);
1428 _urtwn_getbuf(struct urtwn_softc *sc)
1443 urtwn_getbuf(struct urtwn_softc *sc)
1458 urtwn_write_region_1(struct urtwn_softc *sc, uint16_t addr, uint8_t *buf,
1472 urtwn_write_1(struct urtwn_softc *sc, uint16_t addr, uint8_t val)
1478 urtwn_write_2(struct urtwn_softc *sc, uint16_t addr, uint16_t val)
1485 urtwn_write_4(struct urtwn_softc *sc, uint16_t addr, uint32_t val)
1492 urtwn_read_region_1(struct urtwn_softc *sc, uint16_t addr, uint8_t *buf,
1506 urtwn_read_1(struct urtwn_softc *sc, uint16_t addr)
1516 urtwn_read_2(struct urtwn_softc *sc, uint16_t addr)
1526 urtwn_read_4(struct urtwn_softc *sc, uint16_t addr)
1536 urtwn_fw_cmd(struct urtwn_softc *sc, uint8_t id, const void *buf, int len)
1584 struct urtwn_softc *sc = arg;
1613 urtwn_cmd_sleepable(struct urtwn_softc *sc, const void *ptr, size_t len,
1640 urtwn_rf_write(struct urtwn_softc *sc, int chain, uint8_t addr, uint32_t val)
1647 urtwn_r92c_rf_write(struct urtwn_softc *sc, int chain, uint8_t addr,
1656 urtwn_r88e_rf_write(struct urtwn_softc *sc, int chain, uint8_t addr,
1665 urtwn_rf_read(struct urtwn_softc *sc, int chain, uint8_t addr)
1694 urtwn_llt_write(struct urtwn_softc *sc, uint32_t addr, uint32_t data)
1716 urtwn_efuse_read_next(struct urtwn_softc *sc, uint8_t *val)
1753 urtwn_efuse_read_data(struct urtwn_softc *sc, uint8_t *rom, uint8_t off,
1782 urtwn_dump_rom_contents(struct urtwn_softc *sc, uint8_t *rom, uint16_t size)
1801 urtwn_efuse_read(struct urtwn_softc *sc, uint8_t *rom, uint16_t size)
1854 urtwn_efuse_switch_power(struct urtwn_softc *sc)
1890 urtwn_read_chipid(struct urtwn_softc *sc)
1918 urtwn_read_rom(struct urtwn_softc *sc)
1951 urtwn_r88e_read_rom(struct urtwn_softc *sc)
2008 urtwn_ra_init(struct urtwn_softc *sc)
2122 urtwn_init_beacon(struct urtwn_softc *sc, struct urtwn_vap *uvp)
2146 urtwn_setup_beacon(struct urtwn_softc *sc, struct ieee80211_node *ni)
2187 struct urtwn_softc *sc = vap->iv_ic->ic_softc;
2221 urtwn_tx_beacon(struct urtwn_softc *sc, struct urtwn_vap *uvp)
2245 struct urtwn_softc *sc = vap->iv_ic->ic_softc;
2282 urtwn_key_set_cb(struct urtwn_softc *sc, union sec_param *data)
2351 urtwn_key_del_cb(struct urtwn_softc *sc, union sec_param *data)
2372 struct urtwn_softc *sc = vap->iv_ic->ic_softc;
2401 struct urtwn_softc *sc = vap->iv_ic->ic_softc;
2428 struct urtwn_softc *sc = vap->iv_ic->ic_softc;
2464 urtwn_tsf_sync_enable(struct urtwn_softc *sc, struct ieee80211vap *vap)
2497 urtwn_get_tsf(struct urtwn_softc *sc, uint64_t *buf)
2503 urtwn_set_led(struct urtwn_softc *sc, int led, int on)
2530 urtwn_set_mode(struct urtwn_softc *sc, uint8_t mode)
2545 struct urtwn_softc *sc = vap->iv_ic->ic_softc;
2570 struct urtwn_softc *sc = ic->ic_softc;
2747 struct urtwn_softc *sc = arg;
2754 urtwn_calib_cb(struct urtwn_softc *sc, union sec_param *data)
2766 struct urtwn_softc *sc = arg;
2779 urtwn_update_avgrssi(struct urtwn_softc *sc, int rate, int8_t rssi)
2817 urtwn_get_rssi(struct urtwn_softc *sc, int rate, void *physt)
2843 urtwn_r88e_get_rssi(struct urtwn_softc *sc, int rate, void *physt)
2894 urtwn_tx_data(struct urtwn_softc *sc, struct ieee80211_node *ni,
3129 urtwn_tx_raw(struct urtwn_softc *sc, struct ieee80211_node *ni,
3237 urtwn_tx_start(struct urtwn_softc *sc, struct mbuf *m, uint8_t type,
3281 struct urtwn_softc *sc = ic->ic_softc;
3301 urtwn_start(struct urtwn_softc *sc)
3337 struct urtwn_softc *sc = ic->ic_softc;
3358 urtwn_power_on(struct urtwn_softc *sc)
3365 urtwn_r92c_power_on(struct urtwn_softc *sc)
3471 urtwn_r88e_power_on(struct urtwn_softc *sc)
3549 urtwn_power_off(struct urtwn_softc *sc)
3556 urtwn_r92c_power_off(struct urtwn_softc *sc)
3684 urtwn_r88e_power_off(struct urtwn_softc *sc)
3812 urtwn_llt_init(struct urtwn_softc *sc)
3844 urtwn_fw_reset(struct urtwn_softc *sc)
3864 urtwn_r88e_fw_reset(struct urtwn_softc *sc)
3874 urtwn_fw_loadpage(struct urtwn_softc *sc, int page, const uint8_t *buf, int len)
3905 urtwn_load_firmware(struct urtwn_softc *sc)
4028 urtwn_dma_init(struct urtwn_softc *sc)
4165 urtwn_mac_init(struct urtwn_softc *sc)
4192 urtwn_bb_init(struct urtwn_softc *sc)
4310 urtwn_rf_init(struct urtwn_softc *sc)
4389 urtwn_cam_init(struct urtwn_softc *sc)
4397 urtwn_cam_write(struct urtwn_softc *sc, uint32_t addr, uint32_t data)
4414 urtwn_pa_bias_init(struct urtwn_softc *sc)
4435 urtwn_rxfilter_init(struct urtwn_softc *sc)
4497 urtwn_edca_init(struct urtwn_softc *sc)
4510 urtwn_write_txpower(struct urtwn_softc *sc, int chain,
4570 urtwn_get_txpower(struct urtwn_softc *sc, int chain,
4669 urtwn_r88e_get_txpower(struct urtwn_softc *sc, int chain,
4739 urtwn_set_txpower(struct urtwn_softc *sc, struct ieee80211_channel *c,
4757 urtwn_set_rx_bssid_all(struct urtwn_softc *sc, int enable)
4770 urtwn_set_gain(struct urtwn_softc *sc, uint8_t gain)
4788 struct urtwn_softc *sc = ic->ic_softc;
4804 struct urtwn_softc *sc = ic->ic_softc;
4835 struct urtwn_softc *sc = ic->ic_softc;
4853 struct urtwn_softc *sc = ic->ic_softc;
4891 urtwn_update_slot_cb(struct urtwn_softc *sc, union sec_param *data)
4906 urtwn_update_aifs(struct urtwn_softc *sc, uint8_t slottime)
4937 urtwn_set_multi(struct urtwn_softc *sc)
4981 urtwn_set_promisc(struct urtwn_softc *sc)
5023 struct urtwn_softc *sc = ic->ic_softc;
5034 struct urtwn_softc *sc = ic->ic_softc;
5062 struct urtwn_softc *sc = ni->ni_ic->ic_softc;
5092 struct urtwn_softc *sc = ni->ni_ic->ic_softc;
5104 urtwn_set_chan(struct urtwn_softc *sc, struct ieee80211_channel *c,
5189 urtwn_iq_calib(struct urtwn_softc *sc)
5195 urtwn_lc_calib(struct urtwn_softc *sc)
5238 urtwn_temp_calib(struct urtwn_softc *sc)
5296 urtwn_setup_static_keys(struct urtwn_softc *sc, struct urtwn_vap *uvp)
5310 urtwn_init(struct urtwn_softc *sc)
5553 urtwn_stop(struct urtwn_softc *sc)
5576 urtwn_abort_xfers(struct urtwn_softc *sc)
5592 struct urtwn_softc *sc = ic->ic_softc;
5644 urtwn_ms_delay(struct urtwn_softc *sc)
5661 sizeof(struct urtwn_softc)