• Home
  • Raw
  • Download

Lines Matching refs:rdev

80 	struct cfg80211_registered_device *rdev = dev_to_rdev(dev);  in wiphy_dev_release()  local
82 cfg80211_dev_free(rdev); in wiphy_dev_release()
86 static void cfg80211_leave_all(struct cfg80211_registered_device *rdev) in cfg80211_leave_all() argument
90 list_for_each_entry(wdev, &rdev->wiphy.wdev_list, list) in cfg80211_leave_all()
91 cfg80211_leave(rdev, wdev); in cfg80211_leave_all()
96 struct cfg80211_registered_device *rdev = dev_to_rdev(dev); in wiphy_suspend() local
99 rdev->suspend_at = ktime_get_boottime_seconds(); in wiphy_suspend()
102 wiphy_lock(&rdev->wiphy); in wiphy_suspend()
103 if (rdev->wiphy.registered) { in wiphy_suspend()
104 if (!rdev->wiphy.wowlan_config) { in wiphy_suspend()
105 cfg80211_leave_all(rdev); in wiphy_suspend()
106 cfg80211_process_rdev_events(rdev); in wiphy_suspend()
108 if (rdev->ops->suspend) in wiphy_suspend()
109 ret = rdev_suspend(rdev, rdev->wiphy.wowlan_config); in wiphy_suspend()
112 cfg80211_leave_all(rdev); in wiphy_suspend()
113 cfg80211_process_rdev_events(rdev); in wiphy_suspend()
114 ret = rdev_suspend(rdev, NULL); in wiphy_suspend()
117 wiphy_unlock(&rdev->wiphy); in wiphy_suspend()
125 struct cfg80211_registered_device *rdev = dev_to_rdev(dev); in wiphy_resume() local
129 cfg80211_bss_age(rdev, ktime_get_boottime_seconds() - rdev->suspend_at); in wiphy_resume()
132 wiphy_lock(&rdev->wiphy); in wiphy_resume()
133 if (rdev->wiphy.registered && rdev->ops->resume) in wiphy_resume()
134 ret = rdev_resume(rdev); in wiphy_resume()
135 wiphy_unlock(&rdev->wiphy); in wiphy_resume()
138 cfg80211_shutdown_all_interfaces(&rdev->wiphy); in wiphy_resume()