H A D | if_bwn.c | 537 struct bwn_mac *mac; in bwn_attach() local 549 mac = NULL; in bwn_attach() 615 mac = malloc(sizeof(*mac), M_DEVBUF, M_WAITOK | M_ZERO); in bwn_attach() 616 mac->mac_sc = sc; in bwn_attach() 617 mac->mac_status = BWN_MAC_STATUS_UNINIT; in bwn_attach() 619 mac->mac_flags |= BWN_MAC_FLAG_BADFRAME_PREEMP; in bwn_attach() 621 TASK_INIT(&mac->mac_hwreset, 0, bwn_hwreset, mac); in bwn_attach() 622 NET_TASK_INIT(&mac in bwn_attach() 838 bwn_phy_detach(struct bwn_mac * mac) bwn_phy_detach() argument 849 struct bwn_mac *mac = sc->sc_curmac; bwn_detach() local 979 struct bwn_mac *mac = sc->sc_curmac; bwn_start() local 1029 struct bwn_mac *mac = sc->sc_curmac; bwn_tx_isfull() local 1057 struct bwn_mac *mac = sc->sc_curmac; bwn_tx_start() local 1077 bwn_pio_tx_start(struct bwn_mac * mac,struct ieee80211_node * ni,struct mbuf ** mp) bwn_pio_tx_start() argument 1151 bwn_pio_select(struct bwn_mac * mac,uint8_t prio) bwn_pio_select() argument 1172 bwn_dma_tx_start(struct bwn_mac * mac,struct ieee80211_node * ni,struct mbuf ** mp) bwn_dma_tx_start() argument 1282 bwn_attach_core(struct bwn_mac * mac) bwn_attach_core() argument 1498 bwn_reset_core(struct bwn_mac * mac,int g_mode) bwn_reset_core() argument 1560 bwn_phy_getinfo(struct bwn_mac * mac,int gmode) bwn_phy_getinfo() argument 1623 bwn_chiptest(struct bwn_mac * mac) bwn_chiptest() argument 1667 bwn_setup_channels(struct bwn_mac * mac,int have_bg,int have_a) bwn_setup_channels() argument 1703 bwn_shm_read_4(struct bwn_mac * mac,uint16_t way,uint16_t offset) bwn_shm_read_4() argument 1729 bwn_shm_read_2(struct bwn_mac * mac,uint16_t way,uint16_t offset) bwn_shm_read_2() argument 1753 bwn_shm_ctlword(struct bwn_mac * mac,uint16_t way,uint16_t offset) bwn_shm_ctlword() argument 1765 bwn_shm_write_4(struct bwn_mac * mac,uint16_t way,uint16_t offset,uint32_t value) bwn_shm_write_4() argument 1788 bwn_shm_write_2(struct bwn_mac * mac,uint16_t way,uint16_t offset,uint16_t value) bwn_shm_write_2() argument 1827 struct bwn_mac *mac = sc->sc_curmac; bwn_raw_xmit() local 1860 struct bwn_mac *mac; bwn_updateslot() local 1881 struct bwn_mac *mac = sc->sc_curmac; bwn_update_promisc() local 1902 struct bwn_mac *mac = sc->sc_curmac; bwn_wme_update() local 1927 struct bwn_mac *mac; bwn_scan_start() local 1944 struct bwn_mac *mac; bwn_scan_end() local 1960 struct bwn_mac *mac = sc->sc_curmac; bwn_set_channel() local 2056 struct bwn_mac *mac; bwn_init() local 2094 struct bwn_mac *mac = sc->sc_curmac; bwn_stop() local 2174 bwn_core_forceclk(struct bwn_mac * mac,bool force) bwn_core_forceclk() argument 2202 bwn_core_init(struct bwn_mac * mac) bwn_core_init() argument 2332 bwn_core_start(struct bwn_mac * mac) bwn_core_start() argument 2358 bwn_core_exit(struct bwn_mac * mac) bwn_core_exit() argument 2385 bwn_bt_disable(struct bwn_mac * mac) bwn_bt_disable() argument 2394 bwn_chip_init(struct bwn_mac * mac) bwn_chip_init() argument 2485 bwn_hf_read(struct bwn_mac * mac) bwn_hf_read() argument 2498 bwn_hf_write(struct bwn_mac * mac,uint64_t value) bwn_hf_write() argument 2510 bwn_set_txretry(struct bwn_mac * mac,int s,int l) bwn_set_txretry() argument 2518 bwn_rate_init(struct bwn_mac * mac) bwn_rate_init() argument 2548 bwn_rate_write(struct bwn_mac * mac,uint16_t rate,int ofdm) bwn_rate_write() argument 2608 bwn_set_phytxctl(struct bwn_mac * mac) bwn_set_phytxctl() argument 2620 bwn_pio_init(struct bwn_mac * mac) bwn_pio_init() argument 2637 bwn_pio_set_txqueue(struct bwn_mac * mac,struct bwn_pio_txqueue * tq,int index) bwn_pio_set_txqueue() argument 2665 bwn_pio_idx2base(struct bwn_mac * mac,int index) bwn_pio_idx2base() argument 2698 bwn_pio_setupqueue_rx(struct bwn_mac * mac,struct bwn_pio_rxqueue * prq,int index) bwn_pio_setupqueue_rx() argument 2725 bwn_pio_read_2(struct bwn_mac * mac,struct bwn_pio_txqueue * tq,uint16_t offset) bwn_pio_read_2() argument 2733 bwn_dma_rxdirectfifo(struct bwn_mac * mac,int idx,uint8_t enable) bwn_dma_rxdirectfifo() argument 2800 bwn_dma_init(struct bwn_mac * mac) bwn_dma_init() argument 2815 bwn_dma_ringsetup(struct bwn_mac * mac,int controller_index,int for_tx) bwn_dma_ringsetup() argument 3223 struct bwn_mac *mac = dr->dr_mac; bwn_dma_allocringmemory() local 3268 struct bwn_mac *mac; bwn_dma_setup() local 3370 struct bwn_mac *mac = dr->dr_mac; bwn_dma_free_descbufs() local 3400 bwn_dma_tx_reset(struct bwn_mac * mac,uint16_t base,int type) bwn_dma_tx_reset() argument 3459 bwn_dma_rx_reset(struct bwn_mac * mac,uint16_t base,int type) bwn_dma_rx_reset() argument 3538 bwn_wme_init(struct bwn_mac * mac) bwn_wme_init() argument 3550 bwn_spu_setdelay(struct bwn_mac * mac,int idle) bwn_spu_setdelay() argument 3566 bwn_bt_enable(struct bwn_mac * mac) bwn_bt_enable() argument 3587 bwn_set_macaddr(struct bwn_mac * mac) bwn_set_macaddr() argument 3596 bwn_clear_keys(struct bwn_mac * mac) bwn_clear_keys() argument 3615 bwn_crypt_init(struct bwn_mac * mac) bwn_crypt_init() argument 3630 bwn_chip_exit(struct bwn_mac * mac) bwn_chip_exit() argument 3636 bwn_fw_fillinfo(struct bwn_mac * mac) bwn_fw_fillinfo() argument 3658 bwn_gpio_control(struct bwn_mac * mac,uint32_t pins) bwn_gpio_control() argument 3691 bwn_gpio_init(struct bwn_mac * mac) bwn_gpio_init() argument 3717 bwn_fw_loadinitvals(struct bwn_mac * mac) bwn_fw_loadinitvals() argument 3743 bwn_phy_init(struct bwn_mac * mac) bwn_phy_init() argument 3773 bwn_set_txantenna(struct bwn_mac * mac,int antenna) bwn_set_txantenna() argument 3791 bwn_set_opmode(struct bwn_mac * mac) bwn_set_opmode() argument 3837 bwn_dummy_transmission(struct bwn_mac * mac,int ofdm,int paon) bwn_dummy_transmission() argument 3920 bwn_ram_write(struct bwn_mac * mac,uint16_t offset,uint32_t val) bwn_ram_write() argument 3936 bwn_mac_suspend(struct bwn_mac * mac) bwn_mac_suspend() argument 3973 bwn_mac_enable(struct bwn_mac * mac) bwn_mac_enable() argument 4004 bwn_psctl(struct bwn_mac * mac,uint32_t flags) bwn_psctl() argument 4035 bwn_fw_gets(struct bwn_mac * mac,enum bwn_fwtype type) bwn_fw_gets() argument 4268 bwn_fw_get(struct bwn_mac * mac,enum bwn_fwtype type,const char * name,struct bwn_fwfile * bfw) bwn_fw_get() argument 4325 bwn_release_firmware(struct bwn_mac * mac) bwn_release_firmware() argument 4345 bwn_fw_loaducode(struct bwn_mac * mac) bwn_fw_loaducode() argument 4487 bwn_fwcaps_read(struct bwn_mac * mac) bwn_fwcaps_read() argument 4496 bwn_fwinitvals_write(struct bwn_mac * mac,const struct bwn_fwinitvals * ivals,size_t count,size_t array_size) bwn_fwinitvals_write() argument 4549 bwn_switch_channel(struct bwn_mac * mac,int chan) bwn_switch_channel() argument 4599 bwn_wme_load(struct bwn_mac * mac) bwn_wme_load() argument 4615 bwn_wme_loadparams(struct bwn_mac * mac,const struct wmeParams * p,uint16_t shm_offset) bwn_wme_loadparams() argument 4658 bwn_mac_write_bssid(struct bwn_mac * mac) bwn_mac_write_bssid() argument 4680 bwn_mac_setfilter(struct bwn_mac * mac,uint16_t offset,const uint8_t * macaddr) bwn_mac_setfilter() argument 4704 bwn_key_dowrite(struct bwn_mac * mac,uint8_t index,uint8_t algorithm,const uint8_t * key,size_t key_len,const uint8_t * mac_addr) bwn_key_dowrite() argument 4730 bwn_key_macwrite(struct bwn_mac * mac,uint8_t index,const uint8_t * addr) bwn_key_macwrite() argument 4766 bwn_key_write(struct bwn_mac * mac,uint8_t index,uint8_t algorithm,const uint8_t * key) bwn_key_write() argument 4786 bwn_phy_exit(struct bwn_mac * mac) bwn_phy_exit() argument 4795 bwn_dma_free(struct bwn_mac * mac) bwn_dma_free() argument 4812 bwn_core_stop(struct bwn_mac * mac) bwn_core_stop() argument 4837 struct bwn_mac *mac; bwn_switch_band() local 4905 bwn_rf_turnon(struct bwn_mac * mac) bwn_rf_turnon() argument 4917 bwn_rf_turnoff(struct bwn_mac * mac) bwn_rf_turnoff() argument 4932 bwn_phy_reset(struct bwn_mac * mac) bwn_phy_reset() argument 4965 struct bwn_mac *mac = sc->sc_curmac; bwn_newstate() local 5015 bwn_set_pretbtt(struct bwn_mac * mac) bwn_set_pretbtt() argument 5032 struct bwn_mac *mac = arg; bwn_intr() local 5076 struct bwn_mac *mac = arg; bwn_intrtask() local 5186 bwn_restart(struct bwn_mac * mac,const char * msg) bwn_restart() argument 5199 bwn_intr_ucode_debug(struct bwn_mac * mac) bwn_intr_ucode_debug() argument 5231 bwn_intr_tbtt_indication(struct bwn_mac * mac) bwn_intr_tbtt_indication() argument 5243 bwn_intr_atim_end(struct bwn_mac * mac) bwn_intr_atim_end() argument 5254 bwn_intr_beacon(struct bwn_mac * mac) bwn_intr_beacon() argument 5299 bwn_intr_pmq(struct bwn_mac * mac) bwn_intr_pmq() argument 5312 bwn_intr_noise(struct bwn_mac * mac) bwn_intr_noise() argument 5366 struct bwn_mac *mac = prq->prq_mac; bwn_pio_rx() local 5406 bwn_intr_txeof(struct bwn_mac * mac) bwn_intr_txeof() argument 5460 struct bwn_mac *mac = arg; bwn_hwreset() local 5489 bwn_handle_fwpanic(struct bwn_mac * mac) bwn_handle_fwpanic() argument 5502 bwn_load_beacon0(struct bwn_mac * mac) bwn_load_beacon0() argument 5509 bwn_load_beacon1(struct bwn_mac * mac) bwn_load_beacon1() argument 5516 bwn_jssi_read(struct bwn_mac * mac) bwn_jssi_read() argument 5528 bwn_noise_gensample(struct bwn_mac * mac) bwn_noise_gensample() argument 5561 struct bwn_mac *mac = dr->dr_mac; bwn_dma_rxeof() local 5639 bwn_handle_txeof(struct bwn_mac * mac,const struct bwn_txstatus * status) bwn_handle_txeof() argument 5669 struct bwn_mac *mac = prq->prq_mac; bwn_pio_rxeof() local 5798 struct bwn_mac *mac = dr->dr_mac; bwn_dma_newbuf() local 5922 bwn_rx_rssi_calc(struct bwn_mac * mac,uint8_t in_rssi,int ofdm,int adjust_2053,int adjust_2050) bwn_rx_rssi_calc() argument 5974 bwn_rxeof(struct bwn_mac * mac,struct mbuf * m,const void * _rxhdr) bwn_rxeof() argument 6136 bwn_dma_handle_txeof(struct bwn_mac * mac,const struct bwn_txstatus * status) bwn_dma_handle_txeof() argument 6191 bwn_pio_handle_txeof(struct bwn_mac * mac,const struct bwn_txstatus * status) bwn_pio_handle_txeof() argument 6223 bwn_phy_txpower_check(struct bwn_mac * mac,uint32_t flags) bwn_phy_txpower_check() argument 6320 bwn_set_txhdr_phyctl1(struct bwn_mac * mac,uint8_t bitrate) bwn_set_txhdr_phyctl1() argument 6391 bwn_set_txhdr(struct bwn_mac * mac,struct ieee80211_node * ni,struct mbuf * m,struct bwn_txhdr * txhdr,uint16_t cookie) bwn_set_txhdr() argument 6687 bwn_antenna_sanitize(struct bwn_mac * mac,uint8_t n) bwn_antenna_sanitize() argument 6745 bwn_pio_write_multi_4(struct bwn_mac * mac,struct bwn_pio_txqueue * tq,uint32_t ctl,const void * _data,int len) bwn_pio_write_multi_4() argument 6782 bwn_pio_write_4(struct bwn_mac * mac,struct bwn_pio_txqueue * tq,uint16_t offset,uint32_t value) bwn_pio_write_4() argument 6790 bwn_pio_write_multi_2(struct bwn_mac * mac,struct bwn_pio_txqueue * tq,uint16_t ctl,const void * _data,int len) bwn_pio_write_multi_2() argument 6811 bwn_pio_write_mbuf_2(struct bwn_mac * mac,struct bwn_pio_txqueue * tq,uint16_t ctl,struct mbuf * m0) bwn_pio_write_mbuf_2() argument 6844 bwn_set_slot_time(struct bwn_mac * mac,uint16_t time) bwn_set_slot_time() argument 6859 bwn_dma_select(struct bwn_mac * mac,uint8_t prio) bwn_dma_select() argument 6899 bwn_pio_parse_cookie(struct bwn_mac * mac,uint16_t cookie,struct bwn_pio_txpkt ** pack) bwn_pio_parse_cookie() argument 6938 struct bwn_mac *mac = arg; bwn_txpwr() local 6954 bwn_task_15s(struct bwn_mac * mac) bwn_task_15s() argument 6973 bwn_task_30s(struct bwn_mac * mac) bwn_task_30s() argument 6985 bwn_task_60s(struct bwn_mac * mac) bwn_task_60s() argument 6996 struct bwn_mac *mac = arg; bwn_tasks() local 7014 bwn_plcp_get_ofdmrate(struct bwn_mac * mac,struct bwn_plcp6 * plcp,uint8_t a) bwn_plcp_get_ofdmrate() argument 7044 bwn_plcp_get_cckrate(struct bwn_mac * mac,struct bwn_plcp6 * plcp) bwn_plcp_get_cckrate() argument 7063 bwn_rx_radiotap(struct bwn_mac * mac,struct mbuf * m,const struct bwn_rxhdr4 * rxhdr,struct bwn_plcp6 * plcp,int rate,int rssi,int noise) bwn_rx_radiotap() argument 7105 bwn_tsf_read(struct bwn_mac * mac,uint64_t * tsf) bwn_tsf_read() argument 7120 bwn_dma_attach(struct bwn_mac * mac) bwn_dma_attach() argument 7301 bwn_dma_parse_cookie(struct bwn_mac * mac,const struct bwn_txstatus * status,uint16_t cookie,int * slot) bwn_dma_parse_cookie() argument 7350 bwn_dma_stop(struct bwn_mac * mac) bwn_dma_stop() argument 7377 bwn_pio_stop(struct bwn_mac * mac) bwn_pio_stop() argument 7393 bwn_led_attach(struct bwn_mac * mac) bwn_led_attach() argument 7480 bwn_led_newstate(struct bwn_mac * mac,enum ieee80211_state nstate) bwn_led_newstate() argument 7541 bwn_led_event(struct bwn_mac * mac,int event) bwn_led_event() argument 7577 bwn_led_blink_start(struct bwn_mac * mac,int on_dur,int off_dur) bwn_led_blink_start() argument 7601 struct bwn_mac *mac = arg; bwn_led_blink_next() local 7616 struct bwn_mac *mac = arg; bwn_led_blink_end() local 7652 struct bwn_mac *mac = sc->sc_curmac; bwn_rfswitch() local 7699 struct bwn_mac *mac; bwn_sysctl_node() local [all...] |