Lines Matching full:p2p

18 	struct wil_p2p_info *p2p = &vif->p2p;  in wil_p2p_start_listen()  local
19 u8 channel = p2p->listen_chan.hw_value; in wil_p2p_start_listen()
42 INIT_WORK(&p2p->discovery_expired_work, wil_p2p_listen_expired); in wil_p2p_start_listen()
43 mod_timer(&p2p->discovery_timer, in wil_p2p_start_listen()
44 jiffies + msecs_to_jiffies(p2p->listen_duration)); in wil_p2p_start_listen()
64 struct wil_p2p_info *p2p = &vif->p2p; in wil_p2p_search() local
70 if (p2p->discovery_started) { in wil_p2p_search()
112 p2p->discovery_started = 1; in wil_p2p_search()
113 INIT_WORK(&p2p->discovery_expired_work, wil_p2p_search_expired); in wil_p2p_search()
114 mod_timer(&p2p->discovery_timer, in wil_p2p_search()
130 struct wil_p2p_info *p2p = &vif->p2p; in wil_p2p_listen() local
140 if (p2p->discovery_started) { in wil_p2p_listen()
146 memcpy(&p2p->listen_chan, chan, sizeof(*chan)); in wil_p2p_listen()
147 *cookie = ++p2p->cookie; in wil_p2p_listen()
148 p2p->listen_duration = duration; in wil_p2p_listen()
152 wil_dbg_misc(wil, "Delaying p2p listen until scan done\n"); in wil_p2p_listen()
153 p2p->pending_listen_wdev = wdev; in wil_p2p_listen()
154 p2p->discovery_started = 1; in wil_p2p_listen()
165 p2p->discovery_started = 1; in wil_p2p_listen()
179 struct wil_p2p_info *p2p = &vif->p2p; in wil_p2p_stop_discovery() local
180 u8 started = p2p->discovery_started; in wil_p2p_stop_discovery()
182 if (p2p->discovery_started) { in wil_p2p_stop_discovery()
183 if (p2p->pending_listen_wdev) { in wil_p2p_stop_discovery()
185 p2p->pending_listen_wdev = NULL; in wil_p2p_stop_discovery()
187 del_timer_sync(&p2p->discovery_timer); in wil_p2p_stop_discovery()
190 p2p->discovery_started = 0; in wil_p2p_stop_discovery()
199 struct wil_p2p_info *p2p = &vif->p2p; in wil_p2p_cancel_listen() local
204 if (cookie != p2p->cookie) { in wil_p2p_cancel_listen()
206 p2p->cookie, cookie); in wil_p2p_cancel_listen()
222 p2p->cookie, in wil_p2p_cancel_listen()
223 &p2p->listen_chan, in wil_p2p_cancel_listen()
233 struct wil_p2p_info *p2p = container_of(work, in wil_p2p_listen_expired() local
235 struct wil6210_vif *vif = container_of(p2p, in wil_p2p_listen_expired()
236 struct wil6210_vif, p2p); in wil_p2p_listen_expired()
251 p2p->cookie, in wil_p2p_listen_expired()
252 &p2p->listen_chan, in wil_p2p_listen_expired()
261 struct wil_p2p_info *p2p = container_of(work, in wil_p2p_search_expired() local
263 struct wil6210_vif *vif = container_of(p2p, in wil_p2p_search_expired()
264 struct wil6210_vif, p2p); in wil_p2p_search_expired()
293 struct wil_p2p_info *p2p = container_of(work, in wil_p2p_delayed_listen_work() local
295 struct wil6210_vif *vif = container_of(p2p, in wil_p2p_delayed_listen_work()
296 struct wil6210_vif, p2p); in wil_p2p_delayed_listen_work()
302 wil_dbg_misc(wil, "Checking delayed p2p listen\n"); in wil_p2p_delayed_listen_work()
303 if (!p2p->discovery_started || !p2p->pending_listen_wdev) in wil_p2p_delayed_listen_work()
318 cfg80211_remain_on_channel_expired(p2p->pending_listen_wdev, in wil_p2p_delayed_listen_work()
319 p2p->cookie, in wil_p2p_delayed_listen_work()
320 &p2p->listen_chan, in wil_p2p_delayed_listen_work()
325 cfg80211_ready_on_channel(p2p->pending_listen_wdev, p2p->cookie, in wil_p2p_delayed_listen_work()
326 &p2p->listen_chan, in wil_p2p_delayed_listen_work()
327 p2p->listen_duration, GFP_KERNEL); in wil_p2p_delayed_listen_work()
329 wil->radio_wdev = p2p->pending_listen_wdev; in wil_p2p_delayed_listen_work()
331 p2p->pending_listen_wdev = NULL; in wil_p2p_delayed_listen_work()
341 struct wil_p2p_info *p2p = &vif->p2p; in wil_p2p_stop_radio_operations() local
352 if (!p2p->discovery_started) { in wil_p2p_stop_radio_operations()
353 /* Regular scan on the p2p device */ in wil_p2p_stop_radio_operations()
360 /* Search or listen on p2p device */ in wil_p2p_stop_radio_operations()
372 p2p->cookie, in wil_p2p_stop_radio_operations()
373 &p2p->listen_chan, in wil_p2p_stop_radio_operations()