• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/drivers/net/wireless/wl12xx/

Lines Matching refs:wl

33 	struct wl1271 *wl;
36 wl = container_of(dwork, struct wl1271, elp_work);
40 mutex_lock(&wl->mutex);
42 if (test_bit(WL1271_FLAG_IN_ELP, &wl->flags) ||
43 (!test_bit(WL1271_FLAG_PSM, &wl->flags) &&
44 !test_bit(WL1271_FLAG_IDLE, &wl->flags)))
48 wl1271_raw_write32(wl, HW_ACCESS_ELP_CTRL_REG_ADDR, ELPCTRL_SLEEP);
49 set_bit(WL1271_FLAG_IN_ELP, &wl->flags);
52 mutex_unlock(&wl->mutex);
58 void wl1271_ps_elp_sleep(struct wl1271 *wl)
60 if (test_bit(WL1271_FLAG_PSM, &wl->flags) ||
61 test_bit(WL1271_FLAG_IDLE, &wl->flags)) {
62 cancel_delayed_work(&wl->elp_work);
63 ieee80211_queue_delayed_work(wl->hw, &wl->elp_work,
68 int wl1271_ps_elp_wakeup(struct wl1271 *wl, bool chip_awake)
76 if (!test_bit(WL1271_FLAG_IN_ELP, &wl->flags))
85 spin_lock_irqsave(&wl->wl_lock, flags);
86 if (work_pending(&wl->irq_work) || chip_awake)
89 wl->elp_compl = &compl;
90 spin_unlock_irqrestore(&wl->wl_lock, flags);
92 wl1271_raw_write32(wl, HW_ACCESS_ELP_CTRL_REG_ADDR, ELPCTRL_WAKE_UP);
107 clear_bit(WL1271_FLAG_IN_ELP, &wl->flags);
114 spin_lock_irqsave(&wl->wl_lock, flags);
115 wl->elp_compl = NULL;
116 spin_unlock_irqrestore(&wl->wl_lock, flags);
123 int wl1271_ps_set_mode(struct wl1271 *wl, enum wl1271_cmd_ps_mode mode,
132 ret = wl1271_cmd_ps_mode(wl, STATION_POWER_SAVE_MODE, send);
136 set_bit(WL1271_FLAG_PSM, &wl->flags);
141 ret = wl1271_ps_elp_wakeup(wl, false);
146 ret = wl1271_acx_bet_enable(wl, false);
151 ret = wl1271_acx_beacon_filter_opt(wl, false);
155 ret = wl1271_cmd_ps_mode(wl, STATION_ACTIVE_MODE, send);
159 clear_bit(WL1271_FLAG_PSM, &wl->flags);