FreeBSD kernel usb device Code
|
#include <sys/cdefs.h>
#include "opt_wlan.h"
#include <sys/param.h>
#include <sys/eventhandler.h>
#include <sys/sockio.h>
#include <sys/sysctl.h>
#include <sys/lock.h>
#include <sys/mutex.h>
#include <sys/mbuf.h>
#include <sys/kernel.h>
#include <sys/socket.h>
#include <sys/systm.h>
#include <sys/malloc.h>
#include <sys/module.h>
#include <sys/bus.h>
#include <sys/endian.h>
#include <sys/linker.h>
#include <sys/firmware.h>
#include <sys/kdb.h>
#include <net/bpf.h>
#include <net/if.h>
#include <net/if_var.h>
#include <net/if_arp.h>
#include <net/ethernet.h>
#include <net/if_dl.h>
#include <net/if_media.h>
#include <net/if_types.h>
#include <netinet/in.h>
#include <netinet/in_systm.h>
#include <netinet/in_var.h>
#include <netinet/if_ether.h>
#include <netinet/ip.h>
#include <net80211/ieee80211_var.h>
#include <net80211/ieee80211_regdomain.h>
#include <net80211/ieee80211_radiotap.h>
#include <net80211/ieee80211_ratectl.h>
#include <dev/usb/usb.h>
#include <dev/usb/usbdi.h>
#include "usbdevs.h"
#include <dev/usb/usb_debug.h>
#include <dev/usb/usb_msctest.h>
#include <dev/usb/wlan/if_runreg.h>
#include <dev/usb/wlan/if_runvar.h>
Go to the source code of this file.
Data Structures | |
struct | rt2860_rate |
struct | rfprog |
struct | rt5592_freqs |
Macros | |
#define | USB_DEBUG_VAR run_debug |
#define | RUN_DPRINTF(_sc, _m, ...) do { (void) _sc; } while (0) |
#define | IEEE80211_HAS_ADDR4(wh) IEEE80211_IS_DSTODS(wh) |
#define | RUN_CMDQ_GET(c) (atomic_fetchadd_32((c), 1) & RUN_CMDQ_MASQ) |
#define | RUN_DEV(v, p) { USB_VP(USB_VENDOR_##v, USB_PRODUCT_##v##_##p) } |
#define | RUN_DEV_EJECT(v, p) { USB_VPI(USB_VENDOR_##v, USB_PRODUCT_##v##_##p, RUN_EJECT) } |
#define | RUN_EJECT 1 |
#define | RT2860_RIDX_CCK1 0 |
#define | RT2860_RIDX_CCK11 3 |
#define | RT2860_RIDX_OFDM6 4 |
#define | RT2860_RIDX_MCS0 12 |
#define | RT2860_RIDX_MAX 36 |
#define | CCK(mcs) (mcs) |
#define | OFDM(mcs) (1 << 3 | (mcs)) |
Functions | |
__FBSDID ("$FreeBSD$") | |
static void | run_autoinst (void *, struct usb_device *, struct usb_attach_arg *) |
static int | run_driver_loaded (struct module *, int, void *) |
static void | run_bulk_tx_callbackN (struct usb_xfer *xfer, usb_error_t error, u_int index) |
static struct ieee80211vap * | run_vap_create (struct ieee80211com *, const char[IFNAMSIZ], int, enum ieee80211_opmode, int, const uint8_t[IEEE80211_ADDR_LEN], const uint8_t[IEEE80211_ADDR_LEN]) |
static void | run_vap_delete (struct ieee80211vap *) |
static void | run_cmdq_cb (void *, int) |
static void | run_setup_tx_list (struct run_softc *, struct run_endpoint_queue *) |
static void | run_unsetup_tx_list (struct run_softc *, struct run_endpoint_queue *) |
static int | run_load_microcode (struct run_softc *) |
static int | run_reset (struct run_softc *) |
static usb_error_t | run_do_request (struct run_softc *, struct usb_device_request *, void *) |
static int | run_read (struct run_softc *, uint16_t, uint32_t *) |
static int | run_read_region_1 (struct run_softc *, uint16_t, uint8_t *, int) |
static int | run_write_2 (struct run_softc *, uint16_t, uint16_t) |
static int | run_write (struct run_softc *, uint16_t, uint32_t) |
static int | run_write_region_1 (struct run_softc *, uint16_t, const uint8_t *, int) |
static int | run_set_region_4 (struct run_softc *, uint16_t, uint32_t, int) |
static int | run_efuse_read (struct run_softc *, uint16_t, uint16_t *, int) |
static int | run_efuse_read_2 (struct run_softc *, uint16_t, uint16_t *) |
static int | run_eeprom_read_2 (struct run_softc *, uint16_t, uint16_t *) |
static int | run_rt2870_rf_write (struct run_softc *, uint32_t) |
static int | run_rt3070_rf_read (struct run_softc *, uint8_t, uint8_t *) |
static int | run_rt3070_rf_write (struct run_softc *, uint8_t, uint8_t) |
static int | run_bbp_read (struct run_softc *, uint8_t, uint8_t *) |
static int | run_bbp_write (struct run_softc *, uint8_t, uint8_t) |
static int | run_mcu_cmd (struct run_softc *, uint8_t, uint16_t) |
static const char * | run_get_rf (uint16_t) |
static void | run_rt3593_get_txpower (struct run_softc *) |
static void | run_get_txpower (struct run_softc *) |
static int | run_read_eeprom (struct run_softc *) |
static struct ieee80211_node * | run_node_alloc (struct ieee80211vap *, const uint8_t mac[IEEE80211_ADDR_LEN]) |
static int | run_media_change (struct ifnet *) |
static int | run_newstate (struct ieee80211vap *, enum ieee80211_state, int) |
static int | run_wme_update (struct ieee80211com *) |
static void | run_key_set_cb (void *) |
static int | run_key_set (struct ieee80211vap *, struct ieee80211_key *) |
static void | run_key_delete_cb (void *) |
static int | run_key_delete (struct ieee80211vap *, struct ieee80211_key *) |
static void | run_ratectl_to (void *) |
static void | run_ratectl_cb (void *, int) |
static void | run_drain_fifo (void *) |
static void | run_iter_func (void *, struct ieee80211_node *) |
static void | run_newassoc_cb (void *) |
static void | run_newassoc (struct ieee80211_node *, int) |
static void | run_recv_mgmt (struct ieee80211_node *, struct mbuf *, int, const struct ieee80211_rx_stats *, int, int) |
static void | run_rx_frame (struct run_softc *, struct mbuf *, uint32_t) |
static void | run_tx_free (struct run_endpoint_queue *pq, struct run_tx_data *, int) |
static void | run_set_tx_desc (struct run_softc *, struct run_tx_data *) |
static int | run_tx (struct run_softc *, struct mbuf *, struct ieee80211_node *) |
static int | run_tx_mgt (struct run_softc *, struct mbuf *, struct ieee80211_node *) |
static int | run_sendprot (struct run_softc *, const struct mbuf *, struct ieee80211_node *, int, int) |
static int | run_tx_param (struct run_softc *, struct mbuf *, struct ieee80211_node *, const struct ieee80211_bpf_params *) |
static int | run_raw_xmit (struct ieee80211_node *, struct mbuf *, const struct ieee80211_bpf_params *) |
static int | run_transmit (struct ieee80211com *, struct mbuf *) |
static void | run_start (struct run_softc *) |
static void | run_parent (struct ieee80211com *) |
static void | run_iq_calib (struct run_softc *, u_int) |
static void | run_set_agc (struct run_softc *, uint8_t) |
static void | run_select_chan_group (struct run_softc *, int) |
static void | run_set_rx_antenna (struct run_softc *, int) |
static void | run_rt2870_set_chan (struct run_softc *, u_int) |
static void | run_rt3070_set_chan (struct run_softc *, u_int) |
static void | run_rt3572_set_chan (struct run_softc *, u_int) |
static void | run_rt3593_set_chan (struct run_softc *, u_int) |
static void | run_rt5390_set_chan (struct run_softc *, u_int) |
static void | run_rt5592_set_chan (struct run_softc *, u_int) |
static int | run_set_chan (struct run_softc *, struct ieee80211_channel *) |
static void | run_set_channel (struct ieee80211com *) |
static void | run_getradiocaps (struct ieee80211com *, int, int *, struct ieee80211_channel[]) |
static void | run_scan_start (struct ieee80211com *) |
static void | run_scan_end (struct ieee80211com *) |
static void | run_update_beacon (struct ieee80211vap *, int) |
static void | run_update_beacon_cb (void *) |
static void | run_updateprot (struct ieee80211com *) |
static void | run_updateprot_cb (void *) |
static void | run_usb_timeout_cb (void *) |
static void | run_reset_livelock (struct run_softc *) |
static void | run_enable_tsf_sync (struct run_softc *) |
static void | run_enable_tsf (struct run_softc *) |
static void | run_disable_tsf (struct run_softc *) |
static void | run_get_tsf (struct run_softc *, uint64_t *) |
static void | run_enable_mrr (struct run_softc *) |
static void | run_set_txpreamble (struct run_softc *) |
static void | run_set_basicrates (struct run_softc *) |
static void | run_set_leds (struct run_softc *, uint16_t) |
static void | run_set_bssid (struct run_softc *, const uint8_t *) |
static void | run_set_macaddr (struct run_softc *, const uint8_t *) |
static void | run_updateslot (struct ieee80211com *) |
static void | run_updateslot_cb (void *) |
static void | run_update_mcast (struct ieee80211com *) |
static int8_t | run_rssi2dbm (struct run_softc *, uint8_t, uint8_t) |
static void | run_update_promisc_locked (struct run_softc *) |
static void | run_update_promisc (struct ieee80211com *) |
static void | run_rt5390_bbp_init (struct run_softc *) |
static int | run_bbp_init (struct run_softc *) |
static int | run_rt3070_rf_init (struct run_softc *) |
static void | run_rt3593_rf_init (struct run_softc *) |
static void | run_rt5390_rf_init (struct run_softc *) |
static int | run_rt3070_filter_calib (struct run_softc *, uint8_t, uint8_t, uint8_t *) |
static void | run_rt3070_rf_setup (struct run_softc *) |
static void | run_rt3593_rf_setup (struct run_softc *) |
static void | run_rt5390_rf_setup (struct run_softc *) |
static int | run_txrx_enable (struct run_softc *) |
static void | run_adjust_freq_offset (struct run_softc *) |
static void | run_init_locked (struct run_softc *) |
static void | run_stop (void *) |
static void | run_delay (struct run_softc *, u_int) |
static void | run_update_chw (struct ieee80211com *ic) |
static int | run_ampdu_enable (struct ieee80211_node *ni, struct ieee80211_tx_ampdu *tap) |
static int | run_match (device_t self) |
static int | run_attach (device_t self) |
static void | run_drain_mbufq (struct run_softc *sc) |
static int | run_detach (device_t self) |
static __inline int | run_srom_read (struct run_softc *sc, uint16_t addr, uint16_t *val) |
static __inline uint32_t | b4inc (uint32_t b32, int8_t delta) |
static __inline uint8_t | run_maxrssi_chain (struct run_softc *sc, const struct rt2860_rxwi *rxwi) |
static void | run_bulk_rx_callback (struct usb_xfer *xfer, usb_error_t error) |
static void | run_bulk_tx_callback0 (struct usb_xfer *xfer, usb_error_t error) |
static void | run_bulk_tx_callback1 (struct usb_xfer *xfer, usb_error_t error) |
static void | run_bulk_tx_callback2 (struct usb_xfer *xfer, usb_error_t error) |
static void | run_bulk_tx_callback3 (struct usb_xfer *xfer, usb_error_t error) |
static void | run_bulk_tx_callback4 (struct usb_xfer *xfer, usb_error_t error) |
static void | run_bulk_tx_callback5 (struct usb_xfer *xfer, usb_error_t error) |
DRIVER_MODULE (run, uhub, run_driver, run_devclass, run_driver_loaded, NULL) | |
MODULE_DEPEND (run, wlan, 1, 1, 1) | |
MODULE_DEPEND (run, usb, 1, 1, 1) | |
MODULE_DEPEND (run, firmware, 1, 1, 1) | |
MODULE_VERSION (run, 1) | |
USB_PNP_HOST_INFO (run_devs) | |
Variables | |
static const STRUCT_USB_HOST_ID | run_devs [] |
static device_probe_t | run_match |
static device_attach_t | run_attach |
static device_detach_t | run_detach |
static usb_callback_t | run_bulk_rx_callback |
static usb_callback_t | run_bulk_tx_callback0 |
static usb_callback_t | run_bulk_tx_callback1 |
static usb_callback_t | run_bulk_tx_callback2 |
static usb_callback_t | run_bulk_tx_callback3 |
static usb_callback_t | run_bulk_tx_callback4 |
static usb_callback_t | run_bulk_tx_callback5 |
static eventhandler_tag | run_etag |
static const struct rt2860_rate | rt2860_rates [] |
struct { | |
uint16_t reg | |
uint32_t val | |
} | rt2870_def_mac [] |
struct { | |
uint8_t reg | |
uint8_t val | |
} | rt2860_def_bbp [] |
struct { | |
uint8_t reg | |
uint8_t val | |
} | rt5390_def_bbp [] |
struct { | |
uint8_t reg | |
uint8_t val | |
} | rt5592_def_bbp [] |
static const uint8_t | rt5592_bbp_r196 [] |
static const struct rfprog | rt2860_rf2850 [] |
struct { | |
uint8_t n | |
uint8_t r | |
uint8_t k | |
} | rt3070_freqs [] |
static const struct rt5592_freqs | rt5592_freqs_20mhz [] |
static const struct rt5592_freqs | rt5592_freqs_40mhz [] |
struct { | |
uint8_t reg | |
uint8_t val | |
} | rt3070_def_rf [] |
struct { | |
uint8_t reg | |
uint8_t val | |
} | rt3572_def_rf [] |
struct { | |
uint8_t reg | |
uint8_t val | |
} | rt3593_def_rf [] |
struct { | |
uint8_t reg | |
uint8_t val | |
} | rt5390_def_rf [] |
struct { | |
uint8_t reg | |
uint8_t val | |
} | rt5392_def_rf [] |
struct { | |
uint8_t reg | |
uint8_t val | |
} | rt5592_def_rf [] |
struct { | |
uint8_t reg | |
uint8_t val | |
} | rt5592_2ghz_def_rf [] |
struct { | |
uint8_t reg | |
uint8_t val | |
} | rt5592_5ghz_def_rf [] |
struct { | |
u_int firstchan | |
u_int lastchan | |
uint8_t reg | |
uint8_t val | |
} | rt5592_chan_5ghz [] |
static const struct usb_config | run_config [RUN_N_XFER] |
static device_method_t | run_methods [] |
static driver_t | run_driver |
static devclass_t | run_devclass |
#define CCK | ( | mcs | ) | (mcs) |
#define OFDM | ( | mcs | ) | (1 << 3 | (mcs)) |
#define RUN_CMDQ_GET | ( | c | ) | (atomic_fetchadd_32((c), 1) & RUN_CMDQ_MASQ) |
#define RUN_DEV | ( | v, | |
p | |||
) | { USB_VP(USB_VENDOR_##v, USB_PRODUCT_##v##_##p) } |
#define RUN_DPRINTF | ( | _sc, | |
_m, | |||
... | |||
) | do { (void) _sc; } while (0) |
#define RUN_EJECT 1 |
__FBSDID | ( | "$FreeBSD$" | ) |
|
static |
Definition at line 1690 of file if_run.c.
Referenced by run_read_eeprom().
DRIVER_MODULE | ( | run | , |
uhub | , | ||
run_driver | , | ||
run_devclass | , | ||
run_driver_loaded | , | ||
NULL | |||
) |
MODULE_DEPEND | ( | run | , |
firmware | , | ||
1 | , | ||
1 | , | ||
1 | |||
) |
MODULE_DEPEND | ( | run | , |
usb | , | ||
1 | , | ||
1 | , | ||
1 | |||
) |
MODULE_DEPEND | ( | run | , |
wlan | , | ||
1 | , | ||
1 | , | ||
1 | |||
) |
MODULE_VERSION | ( | run | , |
1 | |||
) |
|
static |
Definition at line 6084 of file if_run.c.
References run_softc::freq, run_mcu_cmd(), and run_rt3070_rf_read().
Referenced by run_rt3593_rf_init(), run_rt3593_set_chan(), run_rt5390_rf_init(), run_rt5390_set_chan(), and run_rt5592_set_chan().
|
static |
Definition at line 6419 of file if_run.c.
Referenced by run_attach().
|
static |
Definition at line 783 of file if_run.c.
References run_softc::cmdq_task, usb_attach_arg::device, device_set_usb_desc(), error, run_softc::mac_rev, run_softc::mac_ver, run_softc::nrxchains, run_softc::ntxchains, run_softc::ratectl_ch, run_softc::ratectl_task, run_softc::rf_rev, RT2860_ASIC_VER_ID, RT2860_IFACE_INDEX, RT3070_RF_2020, run_ampdu_enable(), run_cmdq_cb(), run_config, run_delay(), run_detach, RUN_EJECT, RUN_FLAG_FWLOAD_NEEDED, run_get_rf(), run_getradiocaps(), RUN_LOCK, RUN_N_XFER, run_newassoc(), run_node_alloc(), run_parent(), run_ratectl_cb(), run_raw_xmit(), run_read(), run_read_eeprom(), RUN_RX_RADIOTAP_PRESENT, run_scan_end(), run_scan_start(), run_set_channel(), run_transmit(), RUN_TX_RADIOTAP_PRESENT, RUN_UNLOCK, run_update_chw(), run_update_mcast(), run_update_promisc(), run_updateslot(), run_vap_create(), run_vap_delete(), run_wme_update(), run_softc::sc_dev, run_softc::sc_flags, run_softc::sc_ic, run_softc::sc_mtx, run_softc::sc_snd, run_softc::sc_udev, run_softc::sc_xfer, usb_callout_init_mtx, USB_GET_DRIVER_INFO, usbd_errstr(), and usbd_transfer_setup().
|
static |
Definition at line 728 of file if_run.c.
References usb_attach_arg::dev_state, id, usb_interface::idesc, MSC_EJECT_STOPUNIT, run_devs, UAA_DEV_EJECTING, UAA_DEV_READY, UICLASS_MASS, usb_msc_eject(), usbd_get_iface(), and usbd_lookup_id_by_uaa().
Referenced by run_driver_loaded().
|
static |
Definition at line 5470 of file if_run.c.
References error, run_softc::mac_rev, run_softc::mac_ver, reg, rt2860_def_bbp, run_bbp_read(), run_bbp_write(), run_rt5390_bbp_init(), and val.
Referenced by run_init_locked().
|
static |
Definition at line 1611 of file if_run.c.
References error, reg, RT2860_BBP_CSR_CFG, RT2860_BBP_CSR_KICK, RT2860_BBP_CSR_READ, run_read(), run_write(), and val.
Referenced by run_bbp_init(), run_init_locked(), run_rt3070_filter_calib(), run_rt3070_rf_init(), run_rt3070_rf_setup(), run_rt3593_rf_init(), run_rt3593_rf_setup(), run_rt5390_bbp_init(), run_rt5390_rf_setup(), run_set_agc(), and run_set_rx_antenna().
|
static |
Definition at line 1643 of file if_run.c.
References error, reg, RT2860_BBP_CSR_CFG, RT2860_BBP_CSR_KICK, run_read(), run_write(), and val.
Referenced by run_bbp_init(), run_init_locked(), run_iq_calib(), run_rt3070_filter_calib(), run_rt3070_rf_init(), run_rt3070_rf_setup(), run_rt3572_set_chan(), run_rt3593_rf_setup(), run_rt3593_set_chan(), run_rt5390_bbp_init(), run_rt5390_rf_setup(), run_select_chan_group(), run_set_agc(), and run_set_rx_antenna().
|
static |
Definition at line 3015 of file if_run.c.
References error, run_softc::mac_ver, RUN_DPRINTF, RUN_LOCK, RUN_MAX_RXSZ, run_rx_frame(), RUN_UNLOCK, run_softc::rx_m, run_softc::sc_dev, run_softc::sc_ic, USB_ERR_CANCELLED, USB_ERR_TIMEOUT, USB_GET_STATE, USB_ST_SETUP, USB_ST_TRANSFERRED, usbd_transfer_submit(), usbd_xfer_set_frame_data(), usbd_xfer_set_frames(), usbd_xfer_set_stall(), usbd_xfer_softc(), and usbd_xfer_status().
|
static |
Definition at line 3317 of file if_run.c.
References error, and run_bulk_tx_callbackN().
|
static |
Definition at line 3323 of file if_run.c.
References error, and run_bulk_tx_callbackN().
|
static |
Definition at line 3329 of file if_run.c.
References error, and run_bulk_tx_callbackN().
|
static |
Definition at line 3335 of file if_run.c.
References error, and run_bulk_tx_callbackN().
|
static |
Definition at line 3341 of file if_run.c.
References error, and run_bulk_tx_callbackN().
|
static |
Definition at line 3347 of file if_run.c.
References error, and run_bulk_tx_callbackN().
|
static |
Definition at line 3178 of file if_run.c.
References run_cmdq::arg0, run_softc::cmdq, run_softc::cmdq_store, run_softc::cmdq_task, data, error, run_cmdq::func, IEEE80211_HAS_ADDR4, index, run_softc::mac_ver, next, rt2860_txwi::phy, rt2860_rate::rate, RT2860_PHY_SHPRE, rt2860_rates, RUN_CMDQ_GET, RUN_DPRINTF, RUN_LOCK, RUN_MAX_TXSZ, run_start(), run_tx_free(), RUN_TX_RING_COUNT, RUN_UNLOCK, run_usb_timeout_cb(), run_softc::sc_dev, run_softc::sc_epq, run_softc::sc_ic, size, run_endpoint_queue::tx_nfree, run_endpoint_queue::tx_qh, USB_ERR_CANCELLED, USB_ERR_TIMEOUT, USB_GET_STATE, USB_ST_SETUP, USB_ST_TRANSFERRED, usbd_copy_in(), usbd_errstr(), usbd_frame_zero(), usbd_m_copy_in(), usbd_transfer_submit(), usbd_xfer_get_frame(), usbd_xfer_get_priv(), usbd_xfer_set_frame_len(), usbd_xfer_set_priv(), usbd_xfer_set_stall(), usbd_xfer_softc(), usbd_xfer_status(), run_tx_radiotap_header::wt_flags, run_tx_radiotap_header::wt_hwqueue, and run_tx_radiotap_header::wt_rate.
Referenced by run_bulk_tx_callback0(), run_bulk_tx_callback1(), run_bulk_tx_callback2(), run_bulk_tx_callback3(), run_bulk_tx_callback4(), and run_bulk_tx_callback5().
|
static |
Definition at line 1146 of file if_run.c.
References run_cmdq::arg0, run_softc::cmdq, run_softc::cmdq_exec, run_softc::cmdq_run, run_cmdq::func, RUN_CMDQ_GO, RUN_CMDQ_MASQ, RUN_DPRINTF, RUN_LOCK, and RUN_UNLOCK.
Referenced by run_attach().
|
static |
Definition at line 6405 of file if_run.c.
References run_softc::sc_mtx, USB_MS_TO_TICKS, and usb_pause_mtx().
Referenced by run_attach(), run_do_request(), run_efuse_read(), run_init_locked(), run_load_microcode(), run_reset_livelock(), run_rt2870_set_chan(), run_rt3070_filter_calib(), run_rt3070_rf_init(), run_rt3572_set_chan(), run_rt3593_rf_init(), run_rt5390_rf_init(), run_rt5390_set_chan(), run_set_chan(), run_stop(), and run_txrx_enable().
|
static |
Definition at line 947 of file if_run.c.
References run_softc::cmdq_key_set, run_softc::cmdq_run, run_softc::cmdq_task, run_softc::ratectl_ch, run_softc::ratectl_run, run_softc::ratectl_task, RUN_CMDQ_ABORT, run_drain_mbufq(), RUN_EP_QUEUES, RUN_LOCK, RUN_N_XFER, RUN_RATECTL_OFF, RUN_UNLOCK, run_unsetup_tx_list(), run_softc::sc_detached, run_softc::sc_epq, run_softc::sc_ic, run_softc::sc_mtx, run_softc::sc_xfer, usb_callout_drain, and usbd_transfer_unsetup().
|
static |
Definition at line 5258 of file if_run.c.
References RT2860_BCN_TIME_CFG, RT2860_BCN_TX_EN, RT2860_TBTT_TIMER_EN, RT2860_TSF_TIMER_EN, run_read(), and run_write().
Referenced by run_init_locked(), run_newstate(), and run_scan_start().
|
static |
Definition at line 1329 of file if_run.c.
References data, req, run_delay(), RUN_DPRINTF, RUN_LOCK_ASSERT, run_softc::sc_mtx, run_softc::sc_udev, usbd_do_request_flags(), and usbd_errstr().
Referenced by run_read_region_1(), run_write_2(), and run_write_region_1().
|
static |
Definition at line 2623 of file if_run.c.
References run_softc::fifo_cnt, retry, RT2860_TX_STAT_FIFO, RT2860_TXQ_ACKREQ, RT2860_TXQ_MCS_SHIFT, RT2860_TXQ_OK, RT2860_TXQ_PID_SHIFT, RT2860_TXQ_VLD, RT2860_TXQ_WCID_SHIFT, RT2870_WCID_MAX, RUN_DPRINTF, RUN_LOCK_ASSERT, run_read(), RUN_RETRY, RUN_SUCCESS, RUN_TXCNT, run_softc::sc_ic, and run_softc::wcid_stats.
Referenced by run_ratectl_cb(), and run_tx().
|
static |
Definition at line 932 of file if_run.c.
References RUN_LOCK_ASSERT, and run_softc::sc_snd.
Referenced by run_detach(), and run_stop().
|
static |
Definition at line 751 of file if_run.c.
References run_autoinst(), and run_etag.
|
static |
Definition at line 1513 of file if_run.c.
References addr, error, req, RT2870_EEPROM_READ, run_softc::sc_mtx, run_softc::sc_udev, usbd_do_request, USETW, UT_READ_VENDOR_DEVICE, and val.
Referenced by run_read_eeprom().
|
static |
Definition at line 1459 of file if_run.c.
References addr, count, error, reg, RT3070_EFSROM_AIN_MASK, RT3070_EFSROM_AIN_SHIFT, RT3070_EFSROM_KICK, RT3070_EFSROM_MODE_MASK, RT3070_EFUSE_AOUT_MASK, RT3070_EFUSE_CTRL, RT3070_EFUSE_DATA3, run_delay(), run_read(), run_write(), and val.
Referenced by run_efuse_read_2(), and run_iq_calib().
|
static |
Definition at line 1507 of file if_run.c.
References addr, run_efuse_read(), and val.
Referenced by run_read_eeprom().
|
static |
Definition at line 5277 of file if_run.c.
References CCK, OFDM, RT2860_LG_FBK_CFG0, RT2860_LG_FBK_CFG1, and run_write().
Referenced by run_newstate().
|
static |
Definition at line 5246 of file if_run.c.
References RT2860_BCN_TIME_CFG, RT2860_BCN_TX_EN, RT2860_TBTT_TIMER_EN, RT2860_TSF_TIMER_EN, run_read(), and run_write().
Referenced by run_newstate().
|
static |
Definition at line 5204 of file if_run.c.
References RT2860_BCN_TIME_CFG, RT2860_BCN_TX_EN, RT2860_TBTT_TIMER_EN, RT2860_TSF_SYNC_MODE_SHIFT, RT2860_TSF_TIMER_EN, RUN_DPRINTF, run_read(), RUN_VAP, run_write(), and run_softc::sc_ic.
Referenced by run_newstate(), and run_scan_end().
|
static |
Definition at line 1707 of file if_run.c.
References RT2860_RF_2720, RT2860_RF_2750, RT2860_RF_2820, RT2860_RF_2850, RT3070_RF_2020, RT3070_RF_3020, RT3070_RF_3021, RT3070_RF_3022, RT3070_RF_3052, RT3593_RF_3053, RT5390_RF_5370, RT5390_RF_5372, and RT5592_RF_5592.
Referenced by run_attach().
|
static |
Definition at line 5270 of file if_run.c.
References RT2860_TSF_TIMER_DW0, and run_read_region_1().
Referenced by run_recv_mgmt(), and run_rx_frame().
|
static |
Definition at line 1785 of file if_run.c.
References chan, run_softc::mac_ver, RT2860_EEPROM_PWR2GHZ_BASE1, RT2860_EEPROM_PWR2GHZ_BASE2, RT2860_EEPROM_PWR5GHZ_BASE1, RT2860_EEPROM_PWR5GHZ_BASE2, rt2860_rf2850, RUN_DPRINTF, run_srom_read(), run_softc::txpow1, run_softc::txpow2, and val.
Referenced by run_read_eeprom().
|
static |
Definition at line 4936 of file if_run.c.
References run_softc::rf_rev, RT2860_RF_2750, RT2860_RF_2850, RT3070_RF_2020, RT3070_RF_3052, RT3593_RF_3053, RT5592_RF_5592, and run_chan_5ghz.
Referenced by run_attach().
|
static |
Definition at line 6098 of file if_run.c.
References run_softc::bbp, run_softc::cmdq_key_set, run_softc::cmdq_run, fail, run_softc::led, run_softc::mac_rev, run_softc::mac_ver, run_softc::nrxchains, run_softc::ntxchains, reg, run_softc::reg, run_softc::rf_rev, RT2860_ASIC_VER_ID, RT2860_AUTO_RSP_CFG, RT2860_AUTO_RSP_EN, RT2860_BAC_ACKPOLICY_EN, RT2860_BBP_HRST, RT2860_CTS_40M_MODE_EN, RT2860_DLY_PAPE_EN_SHIFT, RT2860_H2M_BBPAGENT, RT2860_H2M_MAILBOX, RT2860_HT_FBK_CFG1, RT2860_LED_RADIO, RT2860_LG_FBK_CFG0, RT2860_MAC_SRST, RT2860_MAC_STATUS_REG, RT2860_MAC_SYS_CTRL, RT2860_MAX_LEN_CFG, RT2860_MCU_CMD_LED1, RT2860_MCU_CMD_LED2, RT2860_MCU_CMD_LED3, RT2860_PME_OEN, RT2860_RX_DMA_BUSY, RT2860_RX_STATUS_BUSY, RT2860_SKEY, RT2860_SKEY_MODE_0_7, RT2860_SYS_CTRL, RT2860_TX_DMA_BUSY, RT2860_TX_PWR_CFG, RT2860_TX_STATUS_BUSY, RT2860_TX_SW_CFG0, RT2860_TX_WB_DDONE, RT2860_TXOP_CTRL_CFG, RT2860_TXOP_HLDR_ET, RT2860_US_CYC_CNT, RT2860_USB_DMA_CFG, RT2860_WCID_ATTR, RT2860_WCID_ENTRY, RT2860_WMM_AIFSN_CFG, RT2860_WMM_CWMAX_CFG, RT2860_WMM_CWMIN_CFG, RT2860_WMM_TXOP0_CFG, RT2860_WMM_TXOP1_CFG, RT2860_WPDMA_GLO_CFG, rt2870_def_mac, RT3070_RF_3020, RT5390_RF_5370, run_bbp_init(), run_bbp_read(), run_bbp_write(), RUN_BULK_RX, RUN_CMDQ_GO, run_delay(), run_disable_tsf(), RUN_EP_QUEUES, run_load_microcode(), run_mcu_cmd(), RUN_N_XFER, run_read(), run_reset(), run_rt3070_rf_init(), run_rt3070_rf_setup(), run_rt3593_rf_init(), run_rt3593_rf_setup(), run_rt5390_rf_init(), run_rt5390_rf_setup(), RUN_RUNNING, run_set_chan(), run_set_leds(), run_set_macaddr(), run_set_region_4(), run_set_rx_antenna(), run_setup_tx_list(), run_stop(), run_txrx_enable(), run_updateprot_cb(), run_write(), run_softc::sc_dev, run_softc::sc_epq, run_softc::sc_flags, run_softc::sc_ic, run_softc::sc_xfer, run_softc::txpow20mhz, usbd_transfer_start(), usbd_xfer_set_stall(), val, and run_softc::val.
Referenced by run_media_change(), and run_parent().
|
static |
Definition at line 3898 of file if_run.c.
References chan, RT5390_EEPROM_IQ_GAIN_CAL_TX0_2GHZ, RT5390_EEPROM_IQ_GAIN_CAL_TX0_CH100_TO_CH138_5GHZ, RT5390_EEPROM_IQ_GAIN_CAL_TX0_CH140_TO_CH165_5GHZ, RT5390_EEPROM_IQ_GAIN_CAL_TX0_CH36_TO_CH64_5GHZ, RT5390_EEPROM_IQ_GAIN_CAL_TX1_2GHZ, RT5390_EEPROM_IQ_GAIN_CAL_TX1_CH100_TO_CH138_5GHZ, RT5390_EEPROM_IQ_GAIN_CAL_TX1_CH140_TO_CH165_5GHZ, RT5390_EEPROM_IQ_GAIN_CAL_TX1_CH36_TO_CH64_5GHZ, RT5390_EEPROM_IQ_PHASE_CAL_TX0_2GHZ, RT5390_EEPROM_IQ_PHASE_CAL_TX0_CH100_TO_CH138_5GHZ, RT5390_EEPROM_IQ_PHASE_CAL_TX0_CH140_TO_CH165_5GHZ, RT5390_EEPROM_IQ_PHASE_CAL_TX0_CH36_TO_CH64_5GHZ, RT5390_EEPROM_IQ_PHASE_CAL_TX1_2GHZ, RT5390_EEPROM_IQ_PHASE_CAL_TX1_CH100_TO_CH138_5GHZ, RT5390_EEPROM_IQ_PHASE_CAL_TX1_CH140_TO_CH165_5GHZ, RT5390_EEPROM_IQ_PHASE_CAL_TX1_CH36_TO_CH64_5GHZ, RT5390_EEPROM_RF_IQ_COMPENSATION_CTL, RT5390_EEPROM_RF_IQ_IMBALANCE_COMPENSATION_CTL, run_bbp_write(), run_efuse_read(), and val.
Referenced by run_set_chan().
|
static |
Definition at line 2681 of file if_run.c.
References run_node::amrr_ridx, error, fail, run_node::ni, rt2860_rates, RT2860_RIDX_MAX, RT2860_TX_STA_CNT0, RT2870_WCID_MAX, RUN_AID2WCID, RUN_DPRINTF, RUN_LOCK, RUN_NODE, run_read_region_1(), RUN_RETRY, RUN_SUCCESS, RUN_TXCNT, RUN_UNLOCK, run_softc::rvp_cnt, run_softc::sc_txs, tx, and run_softc::wcid_stats.
Referenced by run_ratectl_cb().
|
static |
Definition at line 2550 of file if_run.c.
References run_cmdq::arg0, run_cmdq::arg1, run_softc::cmdq, run_softc::cmdq_store, run_softc::cmdq_task, run_cmdq::func, k, run_cmdq::key, RUN_CMDQ_GET, RUN_DPRINTF, and run_key_delete_cb().
Referenced by run_vap_create().
|
static |
Definition at line 2515 of file if_run.c.
References run_cmdq::arg1, run_softc::cmdq, k, run_cmdq::key, RT2860_SKEY_MODE_0_7, RT2860_WCID_ATTR, RT2860_WCID_ENTRY, RUN_DPRINTF, RUN_LOCK_ASSERT, run_read(), run_set_region_4(), and run_write().
Referenced by run_key_delete().
|
static |
Definition at line 2481 of file if_run.c.
References run_cmdq::arg0, run_cmdq::arg1, run_softc::cmdq, run_softc::cmdq_key_set, run_softc::cmdq_store, run_softc::cmdq_task, run_cmdq::func, k, run_cmdq::k, run_cmdq::mac, RUN_CMDQ_GET, RUN_CMDQ_GO, RUN_DPRINTF, run_key_set_cb(), RUN_LOCK, and RUN_UNLOCK.
Referenced by run_vap_create().
|
static |
Definition at line 2355 of file if_run.c.
References run_cmdq::arg1, k, run_cmdq::k, run_cmdq::mac, RT2860_IVEIV, RT2860_MODE_AES_CCMP, RT2860_MODE_TKIP, RT2860_MODE_WEP104, RT2860_MODE_WEP40, RT2860_PKEY, RT2860_RX_PKEY_EN, RT2860_SKEY, RT2860_SKEY_MODE_0_7, RT2860_WCID_ATTR, RUN_AID2WCID, RUN_DPRINTF, RUN_LOCK_ASSERT, run_read(), RUN_VAP, run_write(), and run_write_region_1().
Referenced by run_key_set().
|
static |
Definition at line 1218 of file if_run.c.
References error, fail, run_softc::mac_ver, req, RT2860_H2M_BBPAGENT, RT2860_H2M_INTSRC, RT2860_H2M_MAILBOX, RT2860_H2M_MAILBOX_CID, RT2860_H2M_MAILBOX_STATUS, RT2860_MCU_CMD_RFRESET, RT2860_MCU_READY, RT2860_SYS_CTRL, RT2870_FW_BASE, RT2870_RESET, run_delay(), RUN_FLAG_FWLOAD_NEEDED, RUN_LOCK, run_mcu_cmd(), run_read(), RUN_UNLOCK, run_write(), run_write_region_1(), run_softc::sc_dev, run_softc::sc_flags, run_softc::sc_mtx, run_softc::sc_udev, usbd_do_request, USETW, and UT_WRITE_VENDOR_DEVICE.
Referenced by run_init_locked().
|
static |
Definition at line 768 of file if_run.c.
References usbd_lookup_info::bConfigIndex, usbd_lookup_info::bIfaceIndex, usb_attach_arg::info, RT2860_IFACE_INDEX, run_devs, usb_attach_arg::usb_mode, USB_MODE_HOST, and usbd_lookup_id_by_uaa().
|
static |
Definition at line 2826 of file if_run.c.
References run_softc::nrxchains, and rt2860_rxwi::rssi.
Referenced by run_rx_frame().
|
static |
Definition at line 1665 of file if_run.c.
References error, RT2860_H2M_BUSY, RT2860_H2M_MAILBOX, RT2860_HOST_CMD, RT2860_TOKEN_NO_INTR, run_read(), and run_write().
Referenced by run_adjust_freq_offset(), run_init_locked(), run_load_microcode(), run_set_leds(), and run_set_rx_antenna().
|
static |
Definition at line 2119 of file if_run.c.
References error, run_node::fix_ridx, run_node::ni, rt2860_rates, RT2860_RIDX_MAX, RUN_DPRINTF, run_init_locked(), RUN_LOCK, RUN_NODE, RUN_RUNNING, and RUN_UNLOCK.
Referenced by run_vap_create().
|
static |
Definition at line 2770 of file if_run.c.
References run_cmdq::arg0, run_cmdq::arg1, run_softc::cmdq, run_softc::cmdq_store, run_softc::cmdq_task, run_cmdq::func, run_node::mgt_ridx, run_node::ni, run_softc::ratectl_ch, run_softc::ratectl_run, rt2860_rates, RT2860_RIDX_MAX, RT2870_WCID_MAX, RUN_AID2WCID, RUN_CMDQ_GET, RUN_DPRINTF, RUN_LOCK, run_newassoc_cb(), RUN_NODE, RUN_RATECTL_OFF, run_ratectl_to(), RUN_UNLOCK, run_softc::sc_dev, usb_callout_reset, and run_cmdq::wcid.
Referenced by run_attach().
|
static |
Definition at line 2754 of file if_run.c.
References run_cmdq::arg1, run_softc::cmdq, RT2860_WCID_ENTRY, RUN_LOCK_ASSERT, run_write_region_1(), run_cmdq::wcid, and run_softc::wcid_stats.
Referenced by run_newassoc().
|
static |
Definition at line 2169 of file if_run.c.
References run_softc::adhoc_running, run_softc::ap_running, run_vap::beacon_mbuf, run_vap::newstate, run_softc::ratectl_ch, run_softc::ratectl_run, RT2860_LED_LINK_2GHZ, RT2860_LED_LINK_5GHZ, RT2860_LED_RADIO, RT2860_TX_STA_CNT0, run_disable_tsf(), RUN_DPRINTF, run_enable_mrr(), run_enable_tsf(), run_enable_tsf_sync(), RUN_LOCK, RUN_RATECTL_OFF, run_ratectl_to(), run_read_region_1(), run_set_basicrates(), run_set_bssid(), run_set_leds(), run_set_txpreamble(), RUN_UNLOCK, run_update_beacon_cb(), run_updateslot(), RUN_VAP, run_softc::runbmap, run_softc::running, run_vap::rvp_id, run_softc::sc_bssid, run_softc::sta_running, usb_callout_reset, usb_callout_stop, and run_vap::vap.
Referenced by run_vap_create().
|
static |
Definition at line 2112 of file if_run.c.
Referenced by run_attach().
|
static |
Definition at line 3873 of file if_run.c.
References run_init_locked(), RUN_LOCK, RUN_RUNNING, run_stop(), RUN_UNLOCK, run_update_promisc_locked(), run_softc::rvp_cnt, run_softc::sc_detached, and run_softc::sc_flags.
Referenced by run_attach().
|
static |
Definition at line 2590 of file if_run.c.
References run_softc::ratectl_ch, run_softc::ratectl_run, run_drain_fifo(), run_iter_func(), RUN_LOCK, RUN_RATECTL_OFF, run_ratectl_to(), run_reset_livelock(), RUN_UNLOCK, run_softc::rvp_cnt, run_softc::sc_ic, and usb_callout_reset.
Referenced by run_attach().
|
static |
Definition at line 2579 of file if_run.c.
References run_softc::ratectl_task, and run_softc::sc_ic.
Referenced by run_newassoc(), run_newstate(), and run_ratectl_cb().
|
static |
Definition at line 3791 of file if_run.c.
References error, RUN_DPRINTF, RUN_LOCK, RUN_RUNNING, run_tx_mgt(), run_tx_param(), RUN_UNLOCK, and run_softc::sc_flags.
Referenced by run_attach().
|
static |
Definition at line 1351 of file if_run.c.
References error, reg, run_read_region_1(), and val.
Referenced by run_attach(), run_bbp_read(), run_bbp_write(), run_disable_tsf(), run_drain_fifo(), run_efuse_read(), run_enable_tsf(), run_enable_tsf_sync(), run_init_locked(), run_key_delete_cb(), run_key_set_cb(), run_load_microcode(), run_mcu_cmd(), run_read_eeprom(), run_reset_livelock(), run_rt2870_rf_write(), run_rt3070_rf_init(), run_rt3070_rf_read(), run_rt3070_rf_write(), run_rt3572_set_chan(), run_rt3593_rf_init(), run_rt5390_rf_init(), run_rt5592_set_chan(), run_select_chan_group(), run_set_rx_antenna(), run_set_txpreamble(), run_stop(), run_txrx_enable(), run_update_promisc_locked(), and run_updateslot_cb().
|
static |
Definition at line 1849 of file if_run.c.
References b4inc(), run_softc::bbp, run_softc::calib_2ghz, run_softc::calib_5ghz, run_softc::ext_2ghz_lna, run_softc::ext_5ghz_lna, run_softc::freq, run_softc::led, run_softc::leds, run_softc::lna, run_softc::mac_ver, run_softc::nrxchains, run_softc::ntxchains, run_softc::patch_dac, reg, run_softc::reg, run_softc::rf, run_softc::rf_rev, run_softc::rfswitch, run_softc::rssi_2ghz, run_softc::rssi_5ghz, RT2860_EEPROM_ANTENNA, RT2860_EEPROM_BBP_BASE, RT2860_EEPROM_CONFIG, RT2860_EEPROM_DELTAPWR, RT2860_EEPROM_FREQ_LEDS, RT2860_EEPROM_LED1, RT2860_EEPROM_LED2, RT2860_EEPROM_LED3, RT2860_EEPROM_LNA, RT2860_EEPROM_MAC01, RT2860_EEPROM_MAC23, RT2860_EEPROM_MAC45, RT2860_EEPROM_RPWR, RT2860_EEPROM_RSSI1_2GHZ, RT2860_EEPROM_RSSI1_5GHZ, RT2860_EEPROM_RSSI2_2GHZ, RT2860_EEPROM_RSSI2_5GHZ, RT2860_EEPROM_VERSION, RT2860_RF_2820, RT3070_EFUSE_CTRL, RT3070_RF_3020, RT3070_RF_3052, RT3070_SEL_EFUSE, RT3071_EEPROM_RF_BASE, RT3593_EEPROM_FREQ, RT3593_EEPROM_FREQ_LEDS, RT3593_EEPROM_LED1, RT3593_EEPROM_LED2, RT3593_EEPROM_LED3, RT3593_EEPROM_LNA, RT3593_EEPROM_LNA_5GHZ, RT3593_EEPROM_RSSI1_2GHZ, RT3593_EEPROM_RSSI1_5GHZ, RT3593_EEPROM_RSSI2_2GHZ, RT3593_EEPROM_RSSI2_5GHZ, RUN_DPRINTF, run_eeprom_read_2(), run_efuse_read_2(), run_get_txpower(), run_read(), run_rt3593_get_txpower(), run_srom_read(), run_softc::sc_dev, run_softc::sc_ic, run_softc::sc_srom_read, run_softc::txmixgain_2ghz, run_softc::txmixgain_5ghz, run_softc::txpow20mhz, run_softc::txpow40mhz_2ghz, run_softc::txpow40mhz_5ghz, val, and run_softc::val.
Referenced by run_attach().
|
static |
Definition at line 1365 of file if_run.c.
References len, reg, req, RT2870_READ_REGION_1, run_do_request(), USETW, and UT_READ_VENDOR_DEVICE.
Referenced by run_get_tsf(), run_iter_func(), run_newstate(), and run_read().
|
static |
Definition at line 2841 of file if_run.c.
References run_vap::recv_mgmt, RUN_DPRINTF, run_get_tsf(), RUN_LOCK, RUN_UNLOCK, RUN_VAP, and run_vap::vap.
Referenced by run_vap_create().
|
static |
Definition at line 1316 of file if_run.c.
References req, RT2870_RESET, run_softc::sc_mtx, run_softc::sc_udev, usbd_do_request, USETW, and UT_WRITE_VENDOR_DEVICE.
Referenced by run_init_locked().
|
static |
Definition at line 5150 of file if_run.c.
References RT2860_DEBUG, RT2860_MAC_RX_EN, RT2860_MAC_SRST, RT2860_MAC_SYS_CTRL, RT2860_MAC_TX_EN, run_delay(), RUN_DPRINTF, RUN_LOCK_ASSERT, run_read(), and run_write().
Referenced by run_ratectl_cb(), and run_usb_timeout_cb().
|
static |
Definition at line 5388 of file if_run.c.
References chan, run_softc::lna, run_softc::rssi_2ghz, run_softc::rssi_5ghz, and run_softc::sc_ic.
Referenced by run_rx_frame().
|
static |
Definition at line 1542 of file if_run.c.
References error, RT2860_RF_CSR_CFG0, RT2860_RF_REG_CTRL, run_read(), run_write(), and val.
Referenced by run_rt2870_set_chan().
|
static |
Definition at line 4159 of file if_run.c.
References rfprog::chan, chan, run_softc::freq, run_softc::nrxchains, run_softc::ntxchains, r1, rfprog::r2, r2, rfprog::r3, rfprog::r4, r4, rt2860_rf2850, run_delay(), run_rt2870_rf_write(), run_softc::txpow1, and run_softc::txpow2.
Referenced by run_set_chan().
|
static |
Definition at line 5777 of file if_run.c.
References init, run_bbp_read(), run_bbp_write(), run_delay(), run_rt3070_rf_read(), run_rt3070_rf_write(), and val.
Referenced by run_rt3070_rf_init().
|
static |
Definition at line 5520 of file if_run.c.
References run_softc::bbp25, run_softc::bbp26, run_softc::ext_2ghz_lna, run_softc::mac_rev, run_softc::mac_ver, run_softc::patch_dac, reg, run_softc::rf24_20mhz, run_softc::rf24_40mhz, rt3070_def_rf, RT3070_GPIO_SWITCH, RT3070_LDO_CFG0, RT3070_OPT_14, RT3070_RF_BLOCK, RT3070_RX0_PD, RT3070_RX1_PD, RT3070_RX_LO1, RT3070_RX_LO2, RT3070_TX0_PD, RT3070_TX1_PD, RT3070_TX_LO2, rt3572_def_rf, run_bbp_read(), run_bbp_write(), run_delay(), run_read(), run_rt3070_filter_calib(), run_rt3070_rf_read(), run_rt3070_rf_write(), run_write(), run_softc::txmixgain_2ghz, and val.
Referenced by run_init_locked().
|
static |
Definition at line 1560 of file if_run.c.
References error, reg, RT3070_RF_CSR_CFG, RT3070_RF_KICK, run_read(), run_write(), and val.
Referenced by run_adjust_freq_offset(), run_rt3070_filter_calib(), run_rt3070_rf_init(), run_rt3070_rf_setup(), run_rt3070_set_chan(), run_rt3572_set_chan(), run_rt3593_rf_init(), run_rt3593_rf_setup(), run_rt3593_set_chan(), run_rt5390_rf_init(), run_rt5390_rf_setup(), run_rt5390_set_chan(), and run_rt5592_set_chan().
|
static |
Definition at line 5842 of file if_run.c.
References run_softc::mac_rev, run_softc::mac_ver, run_softc::nrxchains, run_softc::ntxchains, run_softc::patch_dac, run_softc::reg, run_softc::rf, RT2860_TX_SW_CFG1, RT2860_TX_SW_CFG2, run_bbp_read(), run_bbp_write(), run_rt3070_rf_read(), run_rt3070_rf_write(), run_write(), run_softc::txmixgain_2ghz, and run_softc::val.
Referenced by run_init_locked().
|
static |
Definition at line 1592 of file if_run.c.
References error, reg, RT3070_RF_CSR_CFG, RT3070_RF_KICK, RT3070_RF_WRITE, run_read(), run_write(), and val.
Referenced by run_rt3070_filter_calib(), run_rt3070_rf_init(), run_rt3070_rf_setup(), run_rt3070_set_chan(), run_rt3572_set_chan(), run_rt3593_rf_init(), run_rt3593_rf_setup(), run_rt3593_set_chan(), run_rt5390_rf_init(), run_rt5390_rf_setup(), run_rt5390_set_chan(), run_rt5592_set_chan(), and run_select_chan_group().
|
static |
Definition at line 4230 of file if_run.c.
References rfprog::chan, chan, run_softc::freq, k, n, run_softc::nrxchains, run_softc::ntxchains, r, run_softc::rf24_20mhz, rt2860_rf2850, rt3070_freqs, run_rt3070_rf_read(), run_rt3070_rf_write(), run_softc::txpow1, and run_softc::txpow2.
Referenced by run_set_chan().
|
static |
Definition at line 4295 of file if_run.c.
References run_softc::bbp25, run_softc::bbp26, rfprog::chan, chan, run_softc::freq, k, n, run_softc::nrxchains, run_softc::ntxchains, r, run_softc::rf24_20mhz, RT2860_GPIO_CTRL, rt2860_rf2850, rt3070_freqs, run_bbp_write(), run_delay(), run_read(), run_rt3070_rf_read(), run_rt3070_rf_write(), run_write(), run_softc::txmixgain_2ghz, run_softc::txmixgain_5ghz, run_softc::txpow1, and run_softc::txpow2.
Referenced by run_set_chan().
|
static |
Definition at line 1728 of file if_run.c.
References addr, run_softc::ntxchains, RT2860_EEPROM_PWR2GHZ_BASE1, RT2860_EEPROM_PWR2GHZ_BASE2, RT3593_EEPROM_PWR2GHZ_BASE1, RT3593_EEPROM_PWR2GHZ_BASE2, RT3593_EEPROM_PWR2GHZ_BASE3, RT3593_EEPROM_PWR5GHZ_BASE1, RT3593_EEPROM_PWR5GHZ_BASE2, RT3593_EEPROM_PWR5GHZ_BASE3, run_srom_read(), run_softc::txpow1, run_softc::txpow2, run_softc::txpow3, and val.
Referenced by run_read_eeprom().
|
static |
Definition at line 5664 of file if_run.c.
References run_softc::bbp25, run_softc::bbp26, reg, run_softc::rf24_20mhz, run_softc::rf24_40mhz, RT3070_GPIO_SWITCH, RT3070_LDO_CFG0, RT3070_OPT_14, RT3593_AUTOTUNE_BYPASS, rt3593_def_rf, RT5390_RESCAL, run_adjust_freq_offset(), run_bbp_read(), run_delay(), run_read(), run_rt3070_rf_read(), run_rt3070_rf_write(), run_write(), and val.
Referenced by run_init_locked().
|
static |
Definition at line 5921 of file if_run.c.
References run_softc::mac_rev, run_softc::nrxchains, run_softc::patch_dac, RT2860_TX_SW_CFG1, RT2860_TX_SW_CFG2, RT3070_PLL_PD, RT3070_RF_BLOCK, RT3593_TX_LO1, RT3593_TX_LO2, RT5390_MAC_IF_CTRL, RT5390_MLD, RT5390_RX_LO1, RT5390_RX_LO2, run_bbp_read(), run_bbp_write(), run_rt3070_rf_read(), run_rt3070_rf_write(), run_write(), and run_softc::txmixgain_2ghz.
Referenced by run_init_locked().
|
static |
Definition at line 4445 of file if_run.c.
References run_softc::bbp25, run_softc::bbp26, rfprog::chan, chan, k, n, run_softc::ntxchains, r, run_softc::rf24_20mhz, rt2860_rf2850, rt3070_freqs, RT3070_PLL_PD, RT3070_RF_BLOCK, RT3070_RX0_PD, RT3070_RX1_PD, RT3070_RX2_PD, RT3070_TX0_PD, RT3070_TX1_PD, RT3070_TX2_PD, RT5390_VCOCAL, run_adjust_freq_offset(), run_bbp_write(), run_rt3070_rf_read(), run_rt3070_rf_write(), run_softc::txpow1, run_softc::txpow2, and run_softc::txpow3.
Referenced by run_set_chan().
|
static |
Definition at line 5412 of file if_run.c.
References run_softc::mac_rev, run_softc::mac_ver, run_softc::nrxchains, reg, rt5390_def_bbp, RT5390_MAC_IF_CTRL, RT5390_MLD, rt5592_bbp_r196, rt5592_def_bbp, run_bbp_read(), run_bbp_write(), and val.
Referenced by run_bbp_init().
|
static |
Definition at line 5713 of file if_run.c.
References run_softc::mac_rev, run_softc::mac_ver, reg, run_softc::rf24_20mhz, run_softc::rf24_40mhz, RT3070_OPT_14, rt5390_def_rf, RT5390_RESCAL, rt5392_def_rf, rt5592_def_rf, run_adjust_freq_offset(), run_delay(), run_read(), run_rt3070_rf_read(), run_rt3070_rf_write(), run_write(), and val.
Referenced by run_init_locked().
|
static |
Definition at line 5991 of file if_run.c.
References run_softc::mac_rev, run_softc::mac_ver, run_softc::nrxchains, run_softc::ntxchains, run_softc::patch_dac, RT2860_TX_SW_CFG1, RT2860_TX_SW_CFG2, RT5390_MAC_IF_CTRL, RT5390_RX_LO1, RT5390_RX_LO2, run_bbp_read(), run_bbp_write(), run_rt3070_rf_read(), run_rt3070_rf_write(), and run_write().
Referenced by run_init_locked().
|
static |
Definition at line 4605 of file if_run.c.
References rfprog::chan, chan, k, run_softc::mac_rev, run_softc::mac_ver, n, r, rt2860_rf2850, rt3070_freqs, RT3070_PLL_PD, RT3070_RF_BLOCK, RT3070_RX0_PD, RT3070_RX1_PD, RT3070_TX0_PD, RT3070_TX1_PD, RT5390_VCOCAL, run_adjust_freq_offset(), run_delay(), run_rt3070_rf_read(), run_rt3070_rf_write(), run_softc::txpow1, and run_softc::txpow2.
Referenced by run_set_chan().
|
static |
Definition at line 4715 of file if_run.c.
References rfprog::chan, chan, firstchan, rt5592_freqs::k, lastchan, rt5592_freqs::m, rt5592_freqs::n, run_softc::nrxchains, run_softc::ntxchains, rt5592_freqs::r, reg, rt2860_rf2850, RT3070_LDO_CFG0, RT3070_PLL_PD, RT3070_RF_BLOCK, RT3070_RX0_PD, RT3070_RX1_PD, RT3070_TX0_PD, RT3070_TX1_PD, RT5390_VCOCAL, rt5592_2ghz_def_rf, rt5592_5ghz_def_rf, rt5592_chan_5ghz, RT5592_DEBUG_INDEX, rt5592_freqs_20mhz, rt5592_freqs_40mhz, RT5592_SEL_XTAL, run_adjust_freq_offset(), run_read(), run_rt3070_rf_read(), run_rt3070_rf_write(), run_write(), run_softc::txpow1, run_softc::txpow2, and val.
Referenced by run_set_chan().
|
static |
Definition at line 2870 of file if_run.c.
References fail, rt2870_rxd::flags, rt2860_rxwi::keyidx, len, rt2860_rxwi::len, run_softc::mac_ver, rt2860_rxwi::phy, rt2860_rxwi::rssi, RT2860_PHY_CCK, RT2860_PHY_MCS, RT2860_PHY_MODE, RT2860_PHY_OFDM, RT2860_PHY_SHPRE, RT2860_RX_CRCERR, RT2860_RX_DEC, RT2860_RX_ICVERR, RT2860_RX_L2PAD, RT2860_RX_MICERR, RUN_DPRINTF, run_get_tsf(), RUN_LOCK, run_maxrssi_chain(), run_rssi2dbm(), RUN_UNLOCK, run_softc::sc_ic, run_rx_radiotap_header::wr_antenna, run_rx_radiotap_header::wr_antsignal, run_rx_radiotap_header::wr_dbm_antsignal, run_rx_radiotap_header::wr_flags, run_rx_radiotap_header::wr_rate, and run_rx_radiotap_header::wr_tsf.
Referenced by run_bulk_rx_callback().
|
static |
Definition at line 4980 of file if_run.c.
References run_enable_tsf_sync(), RUN_LOCK, run_set_bssid(), RUN_UNLOCK, and run_softc::sc_bssid.
Referenced by run_attach().
|
static |
Definition at line 4964 of file if_run.c.
References run_disable_tsf(), RUN_LOCK, run_set_bssid(), and RUN_UNLOCK.
Referenced by run_attach().
|
static |
Definition at line 4015 of file if_run.c.
References run_softc::ext_2ghz_lna, run_softc::ext_5ghz_lna, run_softc::lna, run_softc::mac_ver, run_softc::nrxchains, run_softc::ntxchains, RT2860_5G_BAND_SEL_N, RT2860_5G_BAND_SEL_P, RT2860_GPIO_CTRL, RT2860_LNA_PE0_EN, RT2860_LNA_PE1_EN, RT2860_PA_PE_A0_EN, RT2860_PA_PE_A1_EN, RT2860_PA_PE_G0_EN, RT2860_PA_PE_G1_EN, RT2860_RFTR_EN, RT2860_TRSW_EN, RT2860_TX_BAND_CFG, RT2860_TX_PIN_CFG, run_bbp_write(), run_read(), run_rt3070_rf_write(), run_set_agc(), and run_write().
Referenced by run_set_chan().
|
static |
Definition at line 3648 of file if_run.c.
References data, rt2870_txd::flags, rt2860_txwi::flags, next, rt2860_rates, RT2860_RIDX_MAX, RT2860_TX_ACK, RT2860_TX_FRAG, RT2860_TX_QSEL_EDCA, RUN_DPRINTF, RUN_LOCK_ASSERT, run_set_tx_desc(), run_softc::sc_epq, run_softc::sc_xfer, run_endpoint_queue::tx_fh, run_endpoint_queue::tx_nfree, run_endpoint_queue::tx_qh, rt2860_txwi::txop, usbd_transfer_start(), rt2860_txwi::wcid, and rt2860_txwi::xflags.
Referenced by run_tx_param().
|
static |
Definition at line 3999 of file if_run.c.
References run_softc::bbp, run_softc::mac_ver, run_bbp_read(), and run_bbp_write().
Referenced by run_select_chan_group().
|
static |
Definition at line 5315 of file if_run.c.
References RT2860_LEGACY_BASIC_RATE, run_write(), and run_softc::sc_ic.
Referenced by run_newstate().
|
static |
Definition at line 5336 of file if_run.c.
References RT2860_MAC_BSSID_DW0, RT2860_MAC_BSSID_DW1, and run_write().
Referenced by run_newstate(), run_scan_end(), and run_scan_start().
|
static |
Definition at line 4879 of file if_run.c.
References chan, run_softc::mac_ver, run_delay(), run_iq_calib(), run_rt2870_set_chan(), run_rt3070_set_chan(), run_rt3572_set_chan(), run_rt3593_set_chan(), run_rt5390_set_chan(), run_rt5592_set_chan(), run_select_chan_group(), and run_softc::sc_ic.
Referenced by run_init_locked(), and run_set_channel().
|
static |
Definition at line 4924 of file if_run.c.
References RUN_LOCK, run_set_chan(), and RUN_UNLOCK.
Referenced by run_attach().
|
static |
Definition at line 5329 of file if_run.c.
References run_softc::leds, RT2860_MCU_CMD_LEDS, and run_mcu_cmd().
Referenced by run_init_locked(), run_newstate(), and run_stop().
|
static |
Definition at line 5345 of file if_run.c.
References addr, RT2860_MAC_ADDR_DW0, RT2860_MAC_ADDR_DW1, and run_write().
Referenced by run_init_locked().
|
static |
Definition at line 1448 of file if_run.c.
References error, len, reg, run_write(), and val.
Referenced by run_init_locked(), run_key_delete_cb(), and run_vap_delete().
|
static |
Definition at line 4852 of file if_run.c.
References run_softc::rf_rev, RT2860_GPIO_CTRL, RT2860_MCU_CMD_ANTSEL, RT5390_RF_5370, run_bbp_read(), run_bbp_write(), run_mcu_cmd(), run_read(), and run_write().
Referenced by run_init_locked().
|
static |
Definition at line 3353 of file if_run.c.
References data, IEEE80211_HAS_ADDR4, rt2870_txd::len, rt2860_txwi::len, run_softc::mac_ver, rt2860_rate::mcs, pad, rt2860_rate::phy, rt2860_txwi::phy, RT2860_PHY_CCK, RT2860_PHY_HT_MIX, RT2860_PHY_OFDM, RT2860_PHY_SHPRE, rt2860_rates, RT2860_RIDX_CCK1, RT2860_TX_NSEQ, RT2860_TX_TXOP_BACKOFF, RT2860_TX_TXOP_HT, run_softc::sc_ic, rt2860_txwi::txop, and rt2860_txwi::xflags.
Referenced by run_sendprot(), run_tx(), run_tx_mgt(), and run_tx_param().
|
static |
Definition at line 5301 of file if_run.c.
References RT2860_AUTO_RSP_CFG, RT2860_CCK_SHORT_EN, run_read(), run_write(), and run_softc::sc_ic.
Referenced by run_newstate().
|
static |
Definition at line 1176 of file if_run.c.
References data, next, RUN_TX_RING_COUNT, run_tx_data::sc, run_endpoint_queue::tx_data, run_endpoint_queue::tx_fh, run_endpoint_queue::tx_nfree, and run_endpoint_queue::tx_qh.
Referenced by run_init_locked().
|
static |
Definition at line 1535 of file if_run.c.
References addr, run_softc::sc_srom_read, and val.
Referenced by run_get_txpower(), run_read_eeprom(), and run_rt3593_get_txpower().
|
static |
Definition at line 3853 of file if_run.c.
References RUN_LOCK_ASSERT, RUN_RUNNING, run_tx(), run_softc::sc_flags, and run_softc::sc_snd.
Referenced by run_bulk_tx_callbackN(), and run_transmit().
|
static |
Definition at line 6323 of file if_run.c.
References run_softc::cmdq_key_set, run_softc::cmdq_run, run_softc::ratectl_run, RT2860_BBP_HRST, RT2860_MAC_RX_EN, RT2860_MAC_SRST, RT2860_MAC_SYS_CTRL, RT2860_MAC_TX_EN, RT2860_RX_DMA_BUSY, RT2860_RX_DMA_EN, RT2860_TX2Q_PCNT_MASK, RT2860_TX_DMA_BUSY, RT2860_TX_DMA_EN, RT2860_TXRXQ_PCNT, RT2860_USB_DMA_CFG, RT2860_WPDMA_GLO_CFG, run_delay(), RUN_DPRINTF, run_drain_mbufq(), RUN_EP_QUEUES, RUN_LOCK, RUN_LOCK_ASSERT, RUN_N_XFER, RUN_RATECTL_OFF, run_read(), RUN_RUNNING, run_set_leds(), RUN_UNLOCK, run_unsetup_tx_list(), run_write(), run_softc::rx_m, run_softc::sc_dev, run_softc::sc_epq, run_softc::sc_flags, run_softc::sc_xfer, and usbd_transfer_drain().
Referenced by run_init_locked(), and run_parent().
|
static |
Definition at line 3831 of file if_run.c.
References error, RUN_LOCK, RUN_RUNNING, run_start(), RUN_UNLOCK, run_softc::sc_flags, and run_softc::sc_snd.
Referenced by run_attach().
|
static |
Definition at line 3423 of file if_run.c.
References run_node::amrr_ridx, run_cmdq::arg0, run_softc::cmdq, run_softc::cmdq_store, run_softc::cmdq_task, rt2860_rate::ctl_ridx, data, run_softc::fifo_cnt, run_node::fix_ridx, rt2870_txd::flags, rt2860_txwi::flags, run_cmdq::func, rt2860_txwi::len, rt2860_rate::lp_ack_dur, rt2860_rate::mcs, next, run_node::ni, rt2860_rate::rate, rt2860_rates, RT2860_RIDX_CCK1, RT2860_RIDX_OFDM6, RT2860_TX_ACK, RT2860_TX_PID_SHIFT, RT2860_TX_QSEL_EDCA, RT2860_TX_QSEL_HCCA, RUN_AID2WCID, RUN_CMDQ_GET, RUN_DPRINTF, run_drain_fifo(), RUN_LOCK_ASSERT, RUN_NODE, run_set_tx_desc(), run_softc::rvp_cnt, run_softc::sc_epq, run_softc::sc_ic, run_softc::sc_xfer, rt2860_rate::sp_ack_dur, run_endpoint_queue::tx_fh, run_endpoint_queue::tx_nfree, run_endpoint_queue::tx_qh, rt2860_txwi::txop, type, usbd_transfer_start(), USETW, rt2860_txwi::wcid, and rt2860_txwi::xflags.
Referenced by run_start().
|
static |
Definition at line 3164 of file if_run.c.
References data, next, run_endpoint_queue::tx_fh, and run_endpoint_queue::tx_nfree.
Referenced by run_bulk_tx_callbackN().
|
static |
Definition at line 3585 of file if_run.c.
References data, rt2870_txd::flags, rt2860_txwi::flags, run_node::mgt_ridx, next, run_node::ni, rt2860_rate::rate, rt2860_rates, RT2860_TX_ACK, RT2860_TX_QSEL_EDCA, RT2860_TX_TS, RUN_DPRINTF, RUN_LOCK_ASSERT, RUN_NODE, run_set_tx_desc(), run_softc::sc_epq, run_softc::sc_ic, run_softc::sc_xfer, run_endpoint_queue::tx_fh, run_endpoint_queue::tx_nfree, run_endpoint_queue::tx_qh, rt2860_txwi::txop, usbd_transfer_start(), USETW, rt2860_txwi::wcid, and rt2860_txwi::xflags.
Referenced by run_raw_xmit().
|
static |
Definition at line 3715 of file if_run.c.
References data, error, rt2870_txd::flags, rt2860_txwi::flags, next, rt2860_rates, RT2860_RIDX_MAX, RT2860_TX_ACK, RT2860_TX_QSEL_EDCA, RT2860_TX_TXOP_SIFS, RUN_DPRINTF, RUN_LOCK_ASSERT, run_sendprot(), run_set_tx_desc(), run_softc::sc_epq, run_softc::sc_xfer, run_endpoint_queue::tx_fh, run_endpoint_queue::tx_nfree, run_endpoint_queue::tx_qh, rt2860_txwi::txop, usbd_transfer_start(), rt2860_txwi::wcid, and rt2860_txwi::xflags.
Referenced by run_raw_xmit().
|
static |
Definition at line 6038 of file if_run.c.
References error, RT2860_DROP_ACK, RT2860_DROP_BA, RT2860_DROP_CFACK, RT2860_DROP_CFEND, RT2860_DROP_CRC_ERR, RT2860_DROP_CTRL_RSV, RT2860_DROP_CTS, RT2860_DROP_DUPL, RT2860_DROP_PHY_ERR, RT2860_DROP_PSPOLL, RT2860_DROP_RTS, RT2860_DROP_UC_NOME, RT2860_DROP_VER_ERR, RT2860_MAC_RX_EN, RT2860_MAC_SYS_CTRL, RT2860_MAC_TX_EN, RT2860_RX_DMA_BUSY, RT2860_RX_DMA_EN, RT2860_RX_FILTR_CFG, RT2860_TX_DMA_BUSY, RT2860_TX_DMA_EN, RT2860_TX_WB_DDONE, RT2860_USB_DMA_CFG, RT2860_USB_RX_AGG_EN, RT2860_USB_RX_AGG_LMT, RT2860_USB_RX_AGG_TO, RT2860_USB_RX_EN, RT2860_USB_TX_EN, RT2860_WPDMA_GLO_CFG, run_delay(), run_read(), run_write(), and run_softc::sc_ic.
Referenced by run_init_locked().
|
static |
Definition at line 1194 of file if_run.c.
References data, RUN_TX_RING_COUNT, run_endpoint_queue::tx_data, run_endpoint_queue::tx_fh, run_endpoint_queue::tx_nfree, and run_endpoint_queue::tx_qh.
Referenced by run_detach(), and run_stop().
|
static |
Definition at line 4999 of file if_run.c.
References run_cmdq::arg0, run_vap::beacon_mbuf, run_softc::cmdq, run_softc::cmdq_store, run_softc::cmdq_task, run_cmdq::func, RUN_CMDQ_GET, RUN_DPRINTF, run_update_beacon_cb(), run_updateprot(), run_updateslot(), RUN_VAP, and run_vap::vap.
Referenced by run_vap_create().
|
static |
Definition at line 5041 of file if_run.c.
References run_vap::beacon_mbuf, rt2860_txwi::flags, rt2860_txwi::len, run_softc::mac_ver, rt2860_txwi::phy, RT2860_BCN_BASE, RT2860_PHY_OFDM, rt2860_rates, RT2860_RIDX_CCK1, RT2860_RIDX_OFDM6, RT2860_TX_NSEQ, RT2860_TX_TS, RT2860_TX_TXOP_HT, RUN_VAP, run_write_region_1(), run_vap::rvp_id, rt2860_txwi::txop, run_vap::vap, rt2860_txwi::wcid, and rt2860_txwi::xflags.
Referenced by run_newstate(), and run_update_beacon().
|
static |
Definition at line 6412 of file if_run.c.
Referenced by run_attach().
|
static |
Definition at line 5383 of file if_run.c.
Referenced by run_attach().
|
static |
Definition at line 5191 of file if_run.c.
References RUN_LOCK, RUN_RUNNING, RUN_UNLOCK, run_update_promisc_locked(), and run_softc::sc_flags.
Referenced by run_attach().
|
static |
Definition at line 5174 of file if_run.c.
References RT2860_DROP_UC_NOME, RT2860_RX_FILTR_CFG, RUN_DPRINTF, run_read(), run_write(), and run_softc::sc_ic.
Referenced by run_parent(), and run_update_promisc().
|
static |
Definition at line 5092 of file if_run.c.
References run_cmdq::arg0, run_softc::cmdq, run_softc::cmdq_store, run_softc::cmdq_task, run_cmdq::func, RUN_CMDQ_GET, RUN_DPRINTF, and run_updateprot_cb().
Referenced by run_update_beacon().
|
static |
Definition at line 5105 of file if_run.c.
References RT2860_CCK_PROT_CFG, RT2860_OFDM_PROT_CFG, RT2860_PHY_OFDM, RT2860_PROT_CTRL_CTS, RT2860_PROT_CTRL_RTS_CTS, RT2860_PROT_NAV_SHORT, rt2860_rates, RT2860_RIDX_CCK11, RT2860_RIDX_OFDM6, RT2860_RTSTH_EN, RT2860_TXOP_ALLOW_ALL, and run_write().
Referenced by run_init_locked(), and run_updateprot().
|
static |
Definition at line 5354 of file if_run.c.
References run_cmdq::arg0, run_softc::cmdq, run_softc::cmdq_store, run_softc::cmdq_task, run_cmdq::func, RUN_CMDQ_GET, RUN_DPRINTF, and run_updateslot_cb().
Referenced by run_attach(), run_newstate(), and run_update_beacon().
|
static |
Definition at line 5370 of file if_run.c.
References RT2860_BKOFF_SLOT_CFG, run_read(), and run_write().
Referenced by run_updateslot().
|
static |
Definition at line 5129 of file if_run.c.
References RUN_DPRINTF, RUN_LOCK_ASSERT, and run_reset_livelock().
Referenced by run_bulk_tx_callbackN().
|
static |
Definition at line 986 of file if_run.c.
References run_softc::cmdq_run, name, run_vap::newstate, run_vap::recv_mgmt, RT2870_WCID_MAX, RUN_CMDQ_GO, RUN_DPRINTF, run_key_delete(), run_key_set(), run_media_change(), run_newstate(), run_recv_mgmt(), run_update_beacon(), RUN_VAP_MAX, run_softc::rvp_bmap, run_softc::rvp_cnt, run_vap::rvp_id, run_softc::sc_dev, and run_vap::vap.
Referenced by run_attach().
|
static |
Definition at line 1101 of file if_run.c.
References run_vap::beacon_mbuf, run_softc::ratectl_run, RT2860_BCN_BASE, RT2860_SKEY, RUN_DPRINTF, RUN_LOCK, run_set_region_4(), RUN_UNLOCK, RUN_VAP, run_softc::rvp_bmap, run_softc::rvp_cnt, run_vap::rvp_id, and run_vap::vap.
Referenced by run_attach().
|
static |
Definition at line 2298 of file if_run.c.
References error, RT2860_EDCA_AC_CFG, RT2860_WMM_AIFSN_CFG, RT2860_WMM_CWMAX_CFG, RT2860_WMM_CWMIN_CFG, RT2860_WMM_TXOP0_CFG, RT2860_WMM_TXOP1_CFG, RUN_DPRINTF, RUN_LOCK, RUN_UNLOCK, and run_write().
Referenced by run_attach().
|
static |
Definition at line 1393 of file if_run.c.
References error, reg, run_write_2(), and val.
Referenced by run_bbp_read(), run_bbp_write(), run_disable_tsf(), run_efuse_read(), run_enable_mrr(), run_enable_tsf(), run_enable_tsf_sync(), run_init_locked(), run_key_delete_cb(), run_key_set_cb(), run_load_microcode(), run_mcu_cmd(), run_reset_livelock(), run_rt2870_rf_write(), run_rt3070_rf_init(), run_rt3070_rf_read(), run_rt3070_rf_setup(), run_rt3070_rf_write(), run_rt3572_set_chan(), run_rt3593_rf_init(), run_rt3593_rf_setup(), run_rt5390_rf_init(), run_rt5390_rf_setup(), run_rt5592_set_chan(), run_select_chan_group(), run_set_basicrates(), run_set_bssid(), run_set_macaddr(), run_set_region_4(), run_set_rx_antenna(), run_set_txpreamble(), run_stop(), run_txrx_enable(), run_update_promisc_locked(), run_updateprot_cb(), run_updateslot_cb(), and run_wme_update().
|
static |
Definition at line 1379 of file if_run.c.
References reg, req, RT2870_WRITE_2, run_do_request(), USETW, UT_WRITE_VENDOR_DEVICE, and val.
Referenced by run_write(), and run_write_region_1().
|
static |
Definition at line 1403 of file if_run.c.
References error, len, reg, req, RT2870_WRITE_REGION_1, run_do_request(), run_write_2(), USETW, and UT_WRITE_VENDOR_DEVICE.
Referenced by run_key_set_cb(), run_load_microcode(), run_newassoc_cb(), and run_update_beacon_cb().
USB_PNP_HOST_INFO | ( | run_devs | ) |
u_int firstchan |
Definition at line 648 of file if_run.c.
Referenced by run_rt5592_set_chan().
uint8_t k |
Definition at line 612 of file if_run.c.
Referenced by rsu_key_alloc(), rsu_key_delete(), rsu_key_set(), rsu_process_key(), rsu_set_key_group(), rsu_set_key_pair(), rsu_tx_start(), rum_common_key_set(), rum_group_key_del_cb(), rum_group_key_set_cb(), rum_key_alloc(), rum_key_delete(), rum_key_set(), rum_pair_key_del_cb(), rum_pair_key_set_cb(), rum_setup_tx_desc(), rum_tx_crypto_flags(), rum_tx_data(), rum_tx_mgt(), run_key_delete(), run_key_delete_cb(), run_key_set(), run_key_set_cb(), run_rt3070_set_chan(), run_rt3572_set_chan(), run_rt3593_set_chan(), run_rt5390_set_chan(), uath_tx_start(), upgt_tx_start(), ural_tx_data(), ural_tx_mgt(), urtw_tx_start(), xhci_interrupt_poll(), and zyd_tx_start().
u_int lastchan |
Definition at line 649 of file if_run.c.
Referenced by run_rt5592_set_chan().
uint8_t n |
Definition at line 612 of file if_run.c.
Referenced by atmegadci_init(), atmegadci_xfer_setup(), avr32dci_clear_stall_sub(), avr32dci_init(), avr32dci_uninit(), avr32dci_xfer_setup(), cdce_free_queue(), dwc_otg_xfer_setup(), ehci_xfer_setup(), fg_get_pressures(), ipheth_free_queue(), musbotg_xfer_setup(), ohci_xfer_setup(), run_rt3070_set_chan(), run_rt3572_set_chan(), run_rt3593_set_chan(), run_rt5390_set_chan(), u3g_attach(), u3g_sael_m460_init(), ubser_attach(), uether_rxflush(), uhci_reset(), uhci_xfer_setup(), ukbd_attach(), umcs7840_attach(), upgt_fw_load(), usb_hw_ep_find_match(), usb_temp_setup(), usbd_get_no_alts(), usbd_req_get_string_any(), usbd_req_reset_port(), usbd_req_warm_reset_port(), usbd_transfer_poll(), usbd_transfer_setup(), usbd_xfer_set_frames(), usbhid_intr_setup(), uss820dci_init(), uss820dci_xfer_setup(), xhci_device_resume(), xhci_device_suspend(), and xhci_xfer_setup().
uint8_t r |
Definition at line 612 of file if_run.c.
Referenced by run_rt3070_set_chan(), run_rt3572_set_chan(), run_rt3593_set_chan(), run_rt5390_set_chan(), udl_ctrl_msg(), urndis_ctrl_msg(), and zyd_al2230_bandedge6().
uint8_t reg |
Definition at line 572 of file if_run.c.
Referenced by run_bbp_init(), run_bbp_read(), run_bbp_write(), run_efuse_read(), run_init_locked(), run_read(), run_read_eeprom(), run_read_region_1(), run_rt3070_rf_init(), run_rt3070_rf_read(), run_rt3070_rf_write(), run_rt3593_rf_init(), run_rt5390_bbp_init(), run_rt5390_rf_init(), run_rt5592_set_chan(), run_set_region_4(), run_write(), run_write_2(), and run_write_region_1().
const struct { ... } rt2860_def_bbp[] |
Referenced by run_bbp_init().
|
static |
|
static |
Referenced by run_get_txpower(), run_rt2870_set_chan(), run_rt3070_set_chan(), run_rt3572_set_chan(), run_rt3593_set_chan(), run_rt5390_set_chan(), and run_rt5592_set_chan().
const struct { ... } rt2870_def_mac[] |
Referenced by run_init_locked().
const struct { ... } rt3070_def_rf[] |
Referenced by run_rt3070_rf_init().
struct { ... } rt3070_freqs[] |
Referenced by run_rt3070_set_chan(), run_rt3572_set_chan(), run_rt3593_set_chan(), and run_rt5390_set_chan().
const struct { ... } rt3572_def_rf[] |
Referenced by run_rt3070_rf_init().
const struct { ... } rt3593_def_rf[] |
Referenced by run_rt3593_rf_init().
const struct { ... } rt5390_def_bbp[] |
Referenced by run_rt5390_bbp_init().
const struct { ... } rt5390_def_rf[] |
Referenced by run_rt5390_rf_init().
const struct { ... } rt5392_def_rf[] |
Referenced by run_rt5390_rf_init().
const struct { ... } rt5592_2ghz_def_rf[] |
Referenced by run_rt5592_set_chan().
const struct { ... } rt5592_5ghz_def_rf[] |
Referenced by run_rt5592_set_chan().
|
static |
Definition at line 592 of file if_run.c.
Referenced by run_rt5390_bbp_init().
const struct { ... } rt5592_chan_5ghz[] |
Referenced by run_rt5592_set_chan().
const struct { ... } rt5592_def_bbp[] |
Referenced by run_rt5390_bbp_init().
const struct { ... } rt5592_def_rf[] |
Referenced by run_rt5390_rf_init().
|
static |
Referenced by run_rt5592_set_chan().
|
static |
Referenced by run_rt5592_set_chan().
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
Definition at line 656 of file if_run.c.
Referenced by run_attach().
|
static |
Definition at line 366 of file if_run.c.
Referenced by run_attach().
|
static |
Definition at line 131 of file if_run.c.
Referenced by run_autoinst(), and run_match().
|
static |
|
static |
Definition at line 507 of file if_run.c.
Referenced by run_driver_loaded().
|
static |
uint8_t val |
Definition at line 573 of file if_run.c.
Referenced by run_bbp_init(), run_bbp_read(), run_bbp_write(), run_eeprom_read_2(), run_efuse_read(), run_efuse_read_2(), run_get_txpower(), run_init_locked(), run_iq_calib(), run_read(), run_read_eeprom(), run_rt2870_rf_write(), run_rt3070_filter_calib(), run_rt3070_rf_init(), run_rt3070_rf_read(), run_rt3070_rf_write(), run_rt3593_get_txpower(), run_rt3593_rf_init(), run_rt5390_bbp_init(), run_rt5390_rf_init(), run_rt5592_set_chan(), run_set_region_4(), run_srom_read(), run_write(), and run_write_2().