Lines Matching defs:wl

19 	struct wl1251 *wl;
22 wl = container_of(dwork, struct wl1251, elp_work);
26 mutex_lock(&wl->mutex);
28 if (wl->elp || wl->station_mode == STATION_ACTIVE_MODE)
32 wl1251_write_elp(wl, HW_ACCESS_ELP_CTRL_REG_ADDR, ELPCTRL_SLEEP);
33 wl->elp = true;
36 mutex_unlock(&wl->mutex);
42 void wl1251_ps_elp_sleep(struct wl1251 *wl)
46 if (wl->station_mode != STATION_ACTIVE_MODE) {
48 ieee80211_queue_delayed_work(wl->hw, &wl->elp_work, delay);
52 int wl1251_ps_elp_wakeup(struct wl1251 *wl)
57 cancel_delayed_work(&wl->elp_work);
59 if (!wl->elp)
67 wl1251_write_elp(wl, HW_ACCESS_ELP_CTRL_REG_ADDR, ELPCTRL_WAKE_UP);
69 elp_reg = wl1251_read_elp(wl, HW_ACCESS_ELP_CTRL_REG_ADDR);
81 elp_reg = wl1251_read_elp(wl, HW_ACCESS_ELP_CTRL_REG_ADDR);
87 wl->elp = false;
92 int wl1251_ps_set_mode(struct wl1251 *wl, enum wl1251_station_mode mode)
101 ret = wl1251_acx_beacon_filter_opt(wl, true);
105 ret = wl1251_acx_wake_up_conditions(wl,
107 wl->listen_int);
111 ret = wl1251_acx_bet_enable(wl, WL1251_ACX_BET_ENABLE,
116 ret = wl1251_cmd_ps_mode(wl, CHIP_POWER_SAVE_MODE);
120 ret = wl1251_acx_sleep_auth(wl, WL1251_PSM_ELP);
127 ret = wl1251_acx_sleep_auth(wl, WL1251_PSM_ELP);
131 ret = wl1251_cmd_template_set(wl, CMD_DISCONNECT, NULL, 0);
139 ret = wl1251_acx_sleep_auth(wl, WL1251_PSM_CAM);
144 ret = wl1251_acx_bet_enable(wl, WL1251_ACX_BET_DISABLE,
150 ret = wl1251_acx_beacon_filter_opt(wl, false);
154 ret = wl1251_acx_wake_up_conditions(wl,
156 wl->listen_int);
160 ret = wl1251_cmd_ps_mode(wl, CHIP_ACTIVE_MODE);
166 wl->station_mode = mode;