• Home
  • Raw
  • Download

Lines Matching refs:wl

33 	struct wl1251 *wl;  in wl1251_elp_work()  local
36 wl = container_of(dwork, struct wl1251, elp_work); in wl1251_elp_work()
40 mutex_lock(&wl->mutex); in wl1251_elp_work()
42 if (wl->elp || wl->station_mode == STATION_ACTIVE_MODE) in wl1251_elp_work()
46 wl1251_write_elp(wl, HW_ACCESS_ELP_CTRL_REG_ADDR, ELPCTRL_SLEEP); in wl1251_elp_work()
47 wl->elp = true; in wl1251_elp_work()
50 mutex_unlock(&wl->mutex); in wl1251_elp_work()
56 void wl1251_ps_elp_sleep(struct wl1251 *wl) in wl1251_ps_elp_sleep() argument
60 if (wl->station_mode != STATION_ACTIVE_MODE) { in wl1251_ps_elp_sleep()
62 ieee80211_queue_delayed_work(wl->hw, &wl->elp_work, delay); in wl1251_ps_elp_sleep()
66 int wl1251_ps_elp_wakeup(struct wl1251 *wl) in wl1251_ps_elp_wakeup() argument
71 cancel_delayed_work(&wl->elp_work); in wl1251_ps_elp_wakeup()
73 if (!wl->elp) in wl1251_ps_elp_wakeup()
81 wl1251_write_elp(wl, HW_ACCESS_ELP_CTRL_REG_ADDR, ELPCTRL_WAKE_UP); in wl1251_ps_elp_wakeup()
83 elp_reg = wl1251_read_elp(wl, HW_ACCESS_ELP_CTRL_REG_ADDR); in wl1251_ps_elp_wakeup()
95 elp_reg = wl1251_read_elp(wl, HW_ACCESS_ELP_CTRL_REG_ADDR); in wl1251_ps_elp_wakeup()
101 wl->elp = false; in wl1251_ps_elp_wakeup()
106 int wl1251_ps_set_mode(struct wl1251 *wl, enum wl1251_station_mode mode) in wl1251_ps_set_mode() argument
115 ret = wl1251_acx_beacon_filter_opt(wl, true); in wl1251_ps_set_mode()
119 ret = wl1251_acx_wake_up_conditions(wl, in wl1251_ps_set_mode()
121 wl->listen_int); in wl1251_ps_set_mode()
125 ret = wl1251_acx_bet_enable(wl, WL1251_ACX_BET_ENABLE, in wl1251_ps_set_mode()
130 ret = wl1251_cmd_ps_mode(wl, CHIP_POWER_SAVE_MODE); in wl1251_ps_set_mode()
134 ret = wl1251_acx_sleep_auth(wl, WL1251_PSM_ELP); in wl1251_ps_set_mode()
141 ret = wl1251_acx_sleep_auth(wl, WL1251_PSM_ELP); in wl1251_ps_set_mode()
145 ret = wl1251_cmd_template_set(wl, CMD_DISCONNECT, NULL, 0); in wl1251_ps_set_mode()
153 ret = wl1251_acx_sleep_auth(wl, WL1251_PSM_CAM); in wl1251_ps_set_mode()
158 ret = wl1251_acx_bet_enable(wl, WL1251_ACX_BET_DISABLE, in wl1251_ps_set_mode()
164 ret = wl1251_acx_beacon_filter_opt(wl, false); in wl1251_ps_set_mode()
168 ret = wl1251_acx_wake_up_conditions(wl, in wl1251_ps_set_mode()
170 wl->listen_int); in wl1251_ps_set_mode()
174 ret = wl1251_cmd_ps_mode(wl, CHIP_ACTIVE_MODE); in wl1251_ps_set_mode()
180 wl->station_mode = mode; in wl1251_ps_set_mode()