Lines Matching refs:wlc

304 	if (wl->wlc) {  in brcms_free()
305 brcms_c_detach(wl->wlc); in brcms_free()
306 wl->wlc = NULL; in brcms_free()
335 if (wl->wlc) { in brcms_remove()
410 brcms_err(wl->wlc->hw->d11core, "ops->tx called while down\n"); in brcms_ops_tx()
414 if (brcms_c_sendpkt_mac80211(wl->wlc, skb, hw)) in brcms_ops_tx()
427 err = brcms_request_fw(wl, wl->wlc->hw->d11core); in brcms_ops_start()
453 brcms_err(wl->wlc->hw->d11core, "%s: brcms_up() returned %d\n", in brcms_ops_start()
456 bcma_core_pci_power_save(wl->wlc->hw->d11core->bus, true); in brcms_ops_start()
467 if (wl->wlc == NULL) in brcms_ops_stop()
471 status = brcms_c_chipmatch(wl->wlc->hw->d11core); in brcms_ops_stop()
474 brcms_err(wl->wlc->hw->d11core, in brcms_ops_stop()
479 bcma_core_pci_power_save(wl->wlc->hw->d11core->bus, false); in brcms_ops_stop()
496 brcms_err(wl->wlc->hw->d11core, in brcms_ops_add_interface()
503 wl->wlc->vif = vif; in brcms_ops_add_interface()
505 brcms_c_mute(wl->wlc, false); in brcms_ops_add_interface()
507 brcms_c_start_station(wl->wlc, vif->addr); in brcms_ops_add_interface()
509 brcms_c_start_ap(wl->wlc, vif->addr, vif->bss_conf.bssid, in brcms_ops_add_interface()
512 brcms_c_start_adhoc(wl->wlc, vif->addr); in brcms_ops_add_interface()
524 wl->wlc->vif = NULL; in brcms_ops_remove_interface()
532 struct bcma_device *core = wl->wlc->hw->d11core; in brcms_ops_config()
538 brcms_c_set_beacon_listen_interval(wl->wlc, in brcms_ops_config()
551 err = brcms_c_set_tx_power(wl->wlc, conf->power_level); in brcms_ops_config()
557 new_int = brcms_c_get_tx_power(wl->wlc); in brcms_ops_config()
567 err = brcms_c_set_channel(wl->wlc, in brcms_ops_config()
573 err = brcms_c_set_rate_limit(wl->wlc, in brcms_ops_config()
588 struct bcma_device *core = wl->wlc->hw->d11core; in brcms_ops_bss_info_changed()
597 brcms_c_associate_upd(wl->wlc, vif->cfg.assoc); in brcms_ops_bss_info_changed()
609 brcms_c_set_shortslot_override(wl->wlc, val); in brcms_ops_bss_info_changed()
618 brcms_c_protection_upd(wl->wlc, BRCMS_PROT_N_CFG, in brcms_ops_bss_info_changed()
620 brcms_c_protection_upd(wl->wlc, BRCMS_PROT_N_NONGF, in brcms_ops_bss_info_changed()
622 brcms_c_protection_upd(wl->wlc, BRCMS_PROT_N_OBSS, in brcms_ops_bss_info_changed()
635 brcms_c_get_current_rateset(wl->wlc, &rs); in brcms_ops_bss_info_changed()
639 bi = hw->wiphy->bands[brcms_c_get_curband(wl->wlc)]; in brcms_ops_bss_info_changed()
651 error = brcms_c_set_rateset(wl->wlc, &rs); in brcms_ops_bss_info_changed()
660 brcms_c_set_beacon_period(wl->wlc, info->beacon_int); in brcms_ops_bss_info_changed()
666 brcms_c_set_addrmatch(wl->wlc, RCM_BSSID_OFFSET, info->bssid); in brcms_ops_bss_info_changed()
672 brcms_c_set_ssid(wl->wlc, vif->cfg.ssid, vif->cfg.ssid_len); in brcms_ops_bss_info_changed()
682 brcms_c_set_new_beacon(wl->wlc, beacon, tim_offset, in brcms_ops_bss_info_changed()
692 brcms_c_set_new_probe_resp(wl->wlc, probe_resp); in brcms_ops_bss_info_changed()
702 brcms_c_enable_probe_resp(wl->wlc, true); in brcms_ops_bss_info_changed()
704 brcms_c_enable_probe_resp(wl->wlc, false); in brcms_ops_bss_info_changed()
744 struct bcma_device *core = wl->wlc->hw->d11core; in brcms_ops_configure_filter()
763 brcms_c_mac_promisc(wl->wlc, *total_flags); in brcms_ops_configure_filter()
774 brcms_c_scan_start(wl->wlc); in brcms_ops_sw_scan_start()
784 brcms_c_scan_stop(wl->wlc); in brcms_ops_sw_scan_complete()
797 brcms_c_wme_setparams(wl->wlc, queue, params, true); in brcms_ops_conf_tx()
808 struct scb *scb = &wl->wlc->pri_scb; in brcms_ops_sta_add()
829 struct scb *scb = &wl->wlc->pri_scb; in brcms_ops_ampdu_action()
845 status = brcms_c_aggregatable(wl->wlc, tid); in brcms_ops_ampdu_action()
848 brcms_dbg_ht(wl->wlc->hw->d11core, in brcms_ops_ampdu_action()
858 brcms_c_ampdu_flush(wl->wlc, sta, tid); in brcms_ops_ampdu_action()
870 brcms_c_ampdu_tx_operational(wl->wlc, tid, buf_size, in brcms_ops_ampdu_action()
877 brcms_err(wl->wlc->hw->d11core, in brcms_ops_ampdu_action()
890 blocked = brcms_c_check_radio_disabled(wl->wlc); in brcms_ops_rfkill_poll()
901 result = brcms_c_tx_flush_completed(wl->wlc); in brcms_tx_flush_completed()
918 brcms_dbg_mac80211(wl->wlc->hw->d11core, in brcms_ops_flush()
928 tsf = brcms_c_tsf_get(wl->wlc); in brcms_ops_get_tsf()
940 brcms_c_tsf_set(wl->wlc, tsf); in brcms_ops_set_tsf()
952 if (wl->wlc->vif) in brcms_ops_beacon_set_tim()
953 beacon = ieee80211_beacon_get_tim(hw, wl->wlc->vif, in brcms_ops_beacon_set_tim()
956 brcms_c_set_new_beacon(wl->wlc, beacon, tim_offset, in brcms_ops_beacon_set_tim()
957 wl->wlc->vif->bss_conf.dtim_period); in brcms_ops_beacon_set_tim()
998 brcms_c_intrsupd(wl->wlc); in brcms_dpc()
1002 wl->resched = brcms_c_dpc(wl->wlc, true); in brcms_dpc()
1031 if (brcms_c_isr(wl->wlc)) { in brcms_isr()
1048 struct brcms_c_info *wlc = wl->wlc; in ieee_hw_rate_init() local
1056 phy_type = brcms_c_get_phy_type(wl->wlc, 0); in ieee_hw_rate_init()
1058 band = &wlc->bandstate[BAND_2G_INDEX]->band; in ieee_hw_rate_init()
1074 band = &wlc->bandstate[BAND_5G_INDEX]->band; in ieee_hw_rate_init()
1157 wl->wlc = brcms_c_attach((void *)wl, pdev, unit, false, &err); in brcms_attach()
1158 if (!wl->wlc) { in brcms_attach()
1163 wl->pub = brcms_c_pub(wl->wlc); in brcms_attach()
1184 brcms_c_regd_init(wl->wlc); in brcms_attach()
1279 brcms_dbg_info(wl->wlc->hw->d11core, "brcms_suspend ok\n"); in brcms_suspend()
1348 brcms_err(wl->wlc->hw->d11core, "Shouldn't be here %s\n", __func__); in brcms_txflowcontrol()
1356 brcms_dbg_info(wl->wlc->hw->d11core, "Initializing wl%d\n", in brcms_init()
1359 brcms_c_init(wl->wlc, wl->mute_tx); in brcms_init()
1367 brcms_dbg_info(wl->wlc->hw->d11core, "Resetting wl%d\n", wl->pub->unit); in brcms_reset()
1368 brcms_c_reset(wl->wlc); in brcms_reset()
1381 brcms_err(wl->wlc->hw->d11core, "wl%d: fatal error, reinitializing\n", in brcms_fatal_error()
1382 wl->wlc->pub->unit); in brcms_fatal_error()
1396 brcms_c_intrson(wl->wlc); in brcms_intrson()
1406 status = brcms_c_intrsoff(wl->wlc); in brcms_intrsoff()
1416 brcms_c_intrsrestore(wl->wlc, macintmask); in brcms_intrsrestore()
1430 error = brcms_c_up(wl->wlc); in brcms_up()
1444 ret_val = brcms_c_down(wl->wlc); in brcms_down()
1528 brcms_dbg_info(t->wl->wlc->hw->d11core, in brcms_add_timer()
1620 brcms_err(wl->wlc->hw->d11core, in brcms_ucode_init_buf()
1644 brcms_err(wl->wlc->hw->d11core, in brcms_ucode_init_uint()
1653 brcms_err(wl->wlc->hw->d11core, in brcms_ucode_init_uint()
1728 bool blocked = brcms_c_check_radio_disabled(wl->wlc); in brcms_rfkill_set_hw_state()