Lines Matching defs:wdev

25 	struct wfx_dev *wdev = container_of(to_delayed_work(work), struct wfx_dev,
28 wdev->chip_frozen = true;
29 wfx_tx_unlock(wdev);
32 void wfx_suspend_hot_dev(struct wfx_dev *wdev, enum sta_notify_cmd cmd)
36 if (cancel_delayed_work(&wdev->cooling_timeout_work))
37 wfx_tx_unlock(wdev);
40 schedule_delayed_work(&wdev->cooling_timeout_work, 10 * HZ);
41 wfx_tx_lock(wdev);
85 struct wfx_dev *wdev = hw->priv;
100 if (mutex_is_locked(&wdev->scan_lock))
103 mutex_lock(&wdev->conf_mutex);
104 while ((wvif = wvif_iterate(wdev, wvif)) != NULL) {
122 dev_dbg(wdev->dev, "do not forward probe request in AP mode\n");
132 mutex_unlock(&wdev->conf_mutex);
138 struct ieee80211_conf *conf = &wvif->wdev->hw->conf;
143 if (wdev_to_wvif(wvif->wdev, 0)) {
144 struct wfx_vif *wvif_ch0 = wdev_to_wvif(wvif->wdev, 0);
149 if (wdev_to_wvif(wvif->wdev, 1)) {
150 struct wfx_vif *wvif_ch1 = wdev_to_wvif(wvif->wdev, 1);
161 dev_info(wvif->wdev->dev, "ignoring requested PS mode");
167 if (wfx_api_older_than(wvif->wdev, 3, 2))
196 dev_warn(wvif->wdev->dev, "timeout while waiting of set_pm_mode_complete\n");
204 struct wfx_dev *wdev = hw->priv;
210 mutex_lock(&wdev->conf_mutex);
218 mutex_unlock(&wdev->conf_mutex);
224 struct wfx_dev *wdev = hw->priv;
227 while ((wvif = wvif_iterate(wdev, wvif)) != NULL)
269 struct wfx_dev *wdev = wvif->wdev;
271 wfx_tx_lock_flush(wdev);
274 if (wvif_count(wdev) <= 1)
276 wfx_tx_unlock(wdev);
280 while ((wvif = wvif_iterate(wdev, wvif)) != NULL)
325 skb = ieee80211_beacon_get(wvif->wdev->hw, vif, 0);
331 skb = ieee80211_proberesp_get(wvif->wdev->hw, vif);
342 struct sk_buff *skb = ieee80211_beacon_get(wvif->wdev->hw, vif, 0);
382 struct wfx_dev *wdev = wvif->wdev;
386 while ((wvif = wvif_iterate(wdev, wvif)) != NULL)
400 struct wfx_dev *wdev = wvif->wdev;
403 while ((wvif = wvif_iterate(wdev, wvif)) != NULL)
419 wfx_tx_lock_flush(wvif->wdev);
421 bss = cfg80211_get_bss(wvif->wdev->hw->wiphy, wvif->channel, conf->bssid, NULL, 0,
424 wfx_tx_unlock(wvif->wdev);
439 cfg80211_put_bss(wvif->wdev->hw->wiphy, bss);
453 wfx_tx_unlock(wvif->wdev);
506 wfx_bh_request_tx(wvif->wdev);
514 struct wfx_dev *wdev = hw->priv;
518 mutex_lock(&wdev->conf_mutex);
533 dev_warn(wdev->dev, "misunderstood change: ASSOC\n");
538 dev_warn(wdev->dev, "misunderstood change: BEACON_INFO\n");
581 mutex_unlock(&wdev->conf_mutex);
591 skb = ieee80211_beacon_get_tim(wvif->wdev->hw, vif, &tim_offset,
623 struct wfx_dev *wdev = hw->priv;
625 struct wfx_vif *wvif = wdev_to_wvif(wdev, sta_dev->vif_id);
628 dev_warn(wdev->dev, "%s: received event for non-existent vif\n", __func__);
643 if (mutex_is_locked(&wvif->wdev->scan_lock))
647 dev_warn(wvif->wdev->dev, "incorrect sequence (%d CAB in queue)",
650 wfx_bh_request_tx(wvif->wdev);
713 struct wfx_dev *wdev = hw->priv;
720 mutex_lock(&wdev->conf_mutex);
728 mutex_unlock(&wdev->conf_mutex);
732 wvif->wdev = wdev;
749 for (i = 0; i < ARRAY_SIZE(wdev->vif); i++) {
750 if (!wdev->vif[i]) {
751 wdev->vif[i] = vif;
756 WARN(i == ARRAY_SIZE(wdev->vif), "try to instantiate more vif than supported");
760 mutex_unlock(&wdev->conf_mutex);
763 while ((wvif = wvif_iterate(wdev, wvif)) != NULL) {
765 if (wvif_count(wdev) == 1)
775 struct wfx_dev *wdev = hw->priv;
781 mutex_lock(&wdev->conf_mutex);
789 wdev->vif[wvif->id] = NULL;
791 mutex_unlock(&wdev->conf_mutex);
794 while ((wvif = wvif_iterate(wdev, wvif)) != NULL) {
796 if (wvif_count(wdev) == 1)
810 struct wfx_dev *wdev = hw->priv;
812 WARN_ON(!skb_queue_empty_lockless(&wdev->tx_pending));