Lines Matching refs:wl
32 int wl1251_hw_init_hwenc_config(struct wl1251 *wl) in wl1251_hw_init_hwenc_config() argument
36 ret = wl1251_acx_feature_cfg(wl, 0); in wl1251_hw_init_hwenc_config()
42 ret = wl1251_acx_default_key(wl, wl->default_key); in wl1251_hw_init_hwenc_config()
51 int wl1251_hw_init_templates_config(struct wl1251 *wl) in wl1251_hw_init_templates_config() argument
57 ret = wl1251_cmd_template_set(wl, CMD_PROBE_REQ, NULL, in wl1251_hw_init_templates_config()
62 ret = wl1251_cmd_template_set(wl, CMD_NULL_DATA, NULL, in wl1251_hw_init_templates_config()
67 ret = wl1251_cmd_template_set(wl, CMD_PS_POLL, NULL, in wl1251_hw_init_templates_config()
72 ret = wl1251_cmd_template_set(wl, CMD_QOS_NULL_DATA, NULL, in wl1251_hw_init_templates_config()
78 ret = wl1251_cmd_template_set(wl, CMD_PROBE_RESP, NULL, in wl1251_hw_init_templates_config()
84 ret = wl1251_cmd_template_set(wl, CMD_BEACON, NULL, in wl1251_hw_init_templates_config()
92 ret = wl1251_cmd_vbm(wl, TIM_ELE_ID, partial_vbm, PARTIAL_VBM_MAX, 0); in wl1251_hw_init_templates_config()
96 ret = wl1251_cmd_vbm(wl, TIM_ELE_ID, partial_vbm, 1, 0); in wl1251_hw_init_templates_config()
103 int wl1251_hw_init_rx_config(struct wl1251 *wl, u32 config, u32 filter) in wl1251_hw_init_rx_config() argument
107 ret = wl1251_acx_rx_msdu_life_time(wl, RX_MSDU_LIFETIME_DEF); in wl1251_hw_init_rx_config()
111 ret = wl1251_acx_rx_config(wl, config, filter); in wl1251_hw_init_rx_config()
118 int wl1251_hw_init_phy_config(struct wl1251 *wl) in wl1251_hw_init_phy_config() argument
122 ret = wl1251_acx_pd_threshold(wl); in wl1251_hw_init_phy_config()
126 ret = wl1251_acx_slot(wl, DEFAULT_SLOT_TIME); in wl1251_hw_init_phy_config()
130 ret = wl1251_acx_group_address_tbl(wl, true, NULL, 0); in wl1251_hw_init_phy_config()
134 ret = wl1251_acx_service_period_timeout(wl); in wl1251_hw_init_phy_config()
138 ret = wl1251_acx_rts_threshold(wl, RTS_THRESHOLD_DEF); in wl1251_hw_init_phy_config()
145 int wl1251_hw_init_beacon_filter(struct wl1251 *wl) in wl1251_hw_init_beacon_filter() argument
150 ret = wl1251_acx_beacon_filter_opt(wl, false); in wl1251_hw_init_beacon_filter()
154 ret = wl1251_acx_beacon_filter_table(wl); in wl1251_hw_init_beacon_filter()
161 int wl1251_hw_init_pta(struct wl1251 *wl) in wl1251_hw_init_pta() argument
165 ret = wl1251_acx_sg_enable(wl); in wl1251_hw_init_pta()
169 ret = wl1251_acx_sg_cfg(wl); in wl1251_hw_init_pta()
176 int wl1251_hw_init_energy_detection(struct wl1251 *wl) in wl1251_hw_init_energy_detection() argument
180 ret = wl1251_acx_cca_threshold(wl); in wl1251_hw_init_energy_detection()
187 int wl1251_hw_init_beacon_broadcast(struct wl1251 *wl) in wl1251_hw_init_beacon_broadcast() argument
191 ret = wl1251_acx_bcn_dtim_options(wl); in wl1251_hw_init_beacon_broadcast()
198 int wl1251_hw_init_power_auth(struct wl1251 *wl) in wl1251_hw_init_power_auth() argument
200 return wl1251_acx_sleep_auth(wl, WL1251_PSM_CAM); in wl1251_hw_init_power_auth()
203 int wl1251_hw_init_mem_config(struct wl1251 *wl) in wl1251_hw_init_mem_config() argument
207 ret = wl1251_acx_mem_cfg(wl); in wl1251_hw_init_mem_config()
211 wl->target_mem_map = kzalloc(sizeof(struct wl1251_acx_mem_map), in wl1251_hw_init_mem_config()
213 if (!wl->target_mem_map) { in wl1251_hw_init_mem_config()
219 ret = wl1251_acx_mem_map(wl, wl->target_mem_map, in wl1251_hw_init_mem_config()
223 kfree(wl->target_mem_map); in wl1251_hw_init_mem_config()
224 wl->target_mem_map = NULL; in wl1251_hw_init_mem_config()
270 static int wl1251_hw_init_tx_queue_config(struct wl1251 *wl) in wl1251_hw_init_tx_queue_config() argument
273 struct wl1251_acx_mem_map *wl_mem_map = wl->target_mem_map; in wl1251_hw_init_tx_queue_config()
290 ret = wl1251_cmd_configure(wl, ACX_TX_QUEUE_CFG, in wl1251_hw_init_tx_queue_config()
296 wl1251_acx_ac_cfg(wl, AC_BE, CWMIN_BE, CWMAX_BE, AIFS_DIFS, TXOP_BE); in wl1251_hw_init_tx_queue_config()
297 wl1251_acx_ac_cfg(wl, AC_BK, CWMIN_BK, CWMAX_BK, AIFS_DIFS, TXOP_BK); in wl1251_hw_init_tx_queue_config()
298 wl1251_acx_ac_cfg(wl, AC_VI, CWMIN_VI, CWMAX_VI, AIFS_DIFS, TXOP_VI); in wl1251_hw_init_tx_queue_config()
299 wl1251_acx_ac_cfg(wl, AC_VO, CWMIN_VO, CWMAX_VO, AIFS_DIFS, TXOP_VO); in wl1251_hw_init_tx_queue_config()
306 static int wl1251_hw_init_data_path_config(struct wl1251 *wl) in wl1251_hw_init_data_path_config() argument
311 wl->data_path = kzalloc(sizeof(struct acx_data_path_params_resp), in wl1251_hw_init_data_path_config()
313 if (!wl->data_path) { in wl1251_hw_init_data_path_config()
318 ret = wl1251_acx_data_path_params(wl, wl->data_path); in wl1251_hw_init_data_path_config()
320 kfree(wl->data_path); in wl1251_hw_init_data_path_config()
321 wl->data_path = NULL; in wl1251_hw_init_data_path_config()
329 int wl1251_hw_init(struct wl1251 *wl) in wl1251_hw_init() argument
334 ret = wl1251_hw_init_hwenc_config(wl); in wl1251_hw_init()
339 ret = wl1251_hw_init_templates_config(wl); in wl1251_hw_init()
344 ret = wl1251_hw_init_mem_config(wl); in wl1251_hw_init()
349 ret = wl1251_hw_init_data_path_config(wl); in wl1251_hw_init()
354 ret = wl1251_hw_init_rx_config(wl, in wl1251_hw_init()
363 ret = wl1251_hw_init_tx_queue_config(wl); in wl1251_hw_init()
368 ret = wl1251_hw_init_phy_config(wl); in wl1251_hw_init()
373 ret = wl1251_acx_conn_monit_params(wl); in wl1251_hw_init()
378 ret = wl1251_hw_init_beacon_filter(wl); in wl1251_hw_init()
383 ret = wl1251_hw_init_pta(wl); in wl1251_hw_init()
388 ret = wl1251_hw_init_energy_detection(wl); in wl1251_hw_init()
393 ret = wl1251_hw_init_beacon_broadcast(wl); in wl1251_hw_init()
398 ret = wl1251_cmd_data_path_rx(wl, wl->channel, 1); in wl1251_hw_init()
403 ret = wl1251_cmd_data_path_tx(wl, wl->channel, 1); in wl1251_hw_init()
408 ret = wl1251_hw_init_power_auth(wl); in wl1251_hw_init()
412 wl_mem_map = wl->target_mem_map; in wl1251_hw_init()
415 wl->data_path->tx_control_addr, in wl1251_hw_init()
417 wl->data_path->rx_control_addr); in wl1251_hw_init()
422 kfree(wl->data_path); in wl1251_hw_init()
425 kfree(wl->target_mem_map); in wl1251_hw_init()