Lines Matching refs:wl

15 static int wl1251_event_scan_complete(struct wl1251 *wl,  in wl1251_event_scan_complete()  argument
24 if (wl->scanning) { in wl1251_event_scan_complete()
29 ieee80211_scan_completed(wl->hw, &info); in wl1251_event_scan_complete()
31 wl->scanning = false; in wl1251_event_scan_complete()
32 if (wl->hw->conf.flags & IEEE80211_CONF_IDLE) in wl1251_event_scan_complete()
33 ret = wl1251_ps_set_mode(wl, STATION_IDLE); in wl1251_event_scan_complete()
40 static int wl1251_event_ps_report(struct wl1251 *wl, in wl1251_event_ps_report() argument
51 if (wl->station_mode != STATION_POWER_SAVE_MODE) { in wl1251_event_ps_report()
53 wl->psm_entry_retry = 0; in wl1251_event_ps_report()
57 if (wl->psm_entry_retry < WL1251_PSM_ENTRY_RETRIES) { in wl1251_event_ps_report()
58 wl->psm_entry_retry++; in wl1251_event_ps_report()
59 ret = wl1251_ps_set_mode(wl, STATION_POWER_SAVE_MODE); in wl1251_event_ps_report()
62 wl->psm_entry_retry = 0; in wl1251_event_ps_report()
69 wl->psm_entry_retry = 0; in wl1251_event_ps_report()
83 static int wl1251_event_process(struct wl1251 *wl, struct event_mailbox *mbox) in wl1251_event_process() argument
94 ret = wl1251_event_scan_complete(wl, mbox); in wl1251_event_process()
102 if (wl->psm_requested && in wl1251_event_process()
103 wl->station_mode != STATION_ACTIVE_MODE) { in wl1251_event_process()
104 ret = wl1251_ps_set_mode(wl, STATION_ACTIVE_MODE); in wl1251_event_process()
112 ret = wl1251_event_ps_report(wl, mbox); in wl1251_event_process()
121 if (wl->vif && wl->vif->type == NL80211_IFTYPE_STATION) in wl1251_event_process()
122 ieee80211_beacon_loss(wl->vif); in wl1251_event_process()
126 if (wl->psm_requested) { in wl1251_event_process()
127 ret = wl1251_ps_set_mode(wl, STATION_POWER_SAVE_MODE); in wl1251_event_process()
133 if (wl->vif && wl->rssi_thold) { in wl1251_event_process()
137 ieee80211_cqm_rssi_notify(wl->vif, in wl1251_event_process()
145 ieee80211_cqm_rssi_notify(wl->vif, in wl1251_event_process()
158 int wl1251_event_wait(struct wl1251 *wl, u32 mask, int timeout_ms) in wl1251_event_wait() argument
172 events_vector = wl1251_mem_read32(wl, wl->mbox_ptr[0]); in wl1251_event_wait()
174 events_vector = wl1251_mem_read32(wl, wl->mbox_ptr[1]); in wl1251_event_wait()
181 int wl1251_event_unmask(struct wl1251 *wl) in wl1251_event_unmask() argument
185 ret = wl1251_acx_event_mbox_mask(wl, ~(wl->event_mask)); in wl1251_event_unmask()
192 void wl1251_event_mbox_config(struct wl1251 *wl) in wl1251_event_mbox_config() argument
194 wl->mbox_ptr[0] = wl1251_reg_read32(wl, REG_EVENT_MAILBOX_PTR); in wl1251_event_mbox_config()
195 wl->mbox_ptr[1] = wl->mbox_ptr[0] + sizeof(struct event_mailbox); in wl1251_event_mbox_config()
198 wl->mbox_ptr[0], wl->mbox_ptr[1]); in wl1251_event_mbox_config()
201 int wl1251_event_handle(struct wl1251 *wl, u8 mbox_num) in wl1251_event_handle() argument
218 wl1251_mem_read(wl, wl->mbox_ptr[mbox_num], mbox, in wl1251_event_handle()
222 ret = wl1251_event_process(wl, mbox); in wl1251_event_handle()
229 wl1251_reg_write32(wl, ACX_REG_INTERRUPT_TRIG, INTR_TRIG_EVENT_ACK); in wl1251_event_handle()