Lines Matching refs:wl
18 int wl1251_hw_init_hwenc_config(struct wl1251 *wl) in wl1251_hw_init_hwenc_config() argument
22 ret = wl1251_acx_feature_cfg(wl, 0); in wl1251_hw_init_hwenc_config()
28 ret = wl1251_acx_default_key(wl, wl->default_key); in wl1251_hw_init_hwenc_config()
37 int wl1251_hw_init_templates_config(struct wl1251 *wl) in wl1251_hw_init_templates_config() argument
43 ret = wl1251_cmd_template_set(wl, CMD_PROBE_REQ, NULL, in wl1251_hw_init_templates_config()
48 ret = wl1251_cmd_template_set(wl, CMD_NULL_DATA, NULL, in wl1251_hw_init_templates_config()
53 ret = wl1251_cmd_template_set(wl, CMD_PS_POLL, NULL, in wl1251_hw_init_templates_config()
58 ret = wl1251_cmd_template_set(wl, CMD_QOS_NULL_DATA, NULL, in wl1251_hw_init_templates_config()
64 ret = wl1251_cmd_template_set(wl, CMD_PROBE_RESP, NULL, in wl1251_hw_init_templates_config()
70 ret = wl1251_cmd_template_set(wl, CMD_BEACON, NULL, in wl1251_hw_init_templates_config()
78 ret = wl1251_cmd_vbm(wl, TIM_ELE_ID, partial_vbm, PARTIAL_VBM_MAX, 0); in wl1251_hw_init_templates_config()
82 ret = wl1251_cmd_vbm(wl, TIM_ELE_ID, partial_vbm, 1, 0); in wl1251_hw_init_templates_config()
89 int wl1251_hw_init_rx_config(struct wl1251 *wl, u32 config, u32 filter) in wl1251_hw_init_rx_config() argument
93 ret = wl1251_acx_rx_msdu_life_time(wl, RX_MSDU_LIFETIME_DEF); in wl1251_hw_init_rx_config()
97 ret = wl1251_acx_rx_config(wl, config, filter); in wl1251_hw_init_rx_config()
104 int wl1251_hw_init_phy_config(struct wl1251 *wl) in wl1251_hw_init_phy_config() argument
108 ret = wl1251_acx_pd_threshold(wl); in wl1251_hw_init_phy_config()
112 ret = wl1251_acx_slot(wl, DEFAULT_SLOT_TIME); in wl1251_hw_init_phy_config()
116 ret = wl1251_acx_group_address_tbl(wl, true, NULL, 0); in wl1251_hw_init_phy_config()
120 ret = wl1251_acx_service_period_timeout(wl); in wl1251_hw_init_phy_config()
124 ret = wl1251_acx_rts_threshold(wl, RTS_THRESHOLD_DEF); in wl1251_hw_init_phy_config()
131 int wl1251_hw_init_beacon_filter(struct wl1251 *wl) in wl1251_hw_init_beacon_filter() argument
136 ret = wl1251_acx_beacon_filter_opt(wl, false); in wl1251_hw_init_beacon_filter()
140 ret = wl1251_acx_beacon_filter_table(wl); in wl1251_hw_init_beacon_filter()
147 int wl1251_hw_init_pta(struct wl1251 *wl) in wl1251_hw_init_pta() argument
151 ret = wl1251_acx_sg_enable(wl); in wl1251_hw_init_pta()
155 ret = wl1251_acx_sg_cfg(wl); in wl1251_hw_init_pta()
162 int wl1251_hw_init_energy_detection(struct wl1251 *wl) in wl1251_hw_init_energy_detection() argument
166 ret = wl1251_acx_cca_threshold(wl); in wl1251_hw_init_energy_detection()
173 int wl1251_hw_init_beacon_broadcast(struct wl1251 *wl) in wl1251_hw_init_beacon_broadcast() argument
177 ret = wl1251_acx_bcn_dtim_options(wl); in wl1251_hw_init_beacon_broadcast()
184 int wl1251_hw_init_power_auth(struct wl1251 *wl) in wl1251_hw_init_power_auth() argument
186 return wl1251_acx_sleep_auth(wl, WL1251_PSM_CAM); in wl1251_hw_init_power_auth()
189 int wl1251_hw_init_mem_config(struct wl1251 *wl) in wl1251_hw_init_mem_config() argument
193 ret = wl1251_acx_mem_cfg(wl); in wl1251_hw_init_mem_config()
197 wl->target_mem_map = kzalloc(sizeof(struct wl1251_acx_mem_map), in wl1251_hw_init_mem_config()
199 if (!wl->target_mem_map) { in wl1251_hw_init_mem_config()
205 ret = wl1251_acx_mem_map(wl, wl->target_mem_map, in wl1251_hw_init_mem_config()
209 kfree(wl->target_mem_map); in wl1251_hw_init_mem_config()
210 wl->target_mem_map = NULL; in wl1251_hw_init_mem_config()
256 static int wl1251_hw_init_tx_queue_config(struct wl1251 *wl) in wl1251_hw_init_tx_queue_config() argument
259 struct wl1251_acx_mem_map *wl_mem_map = wl->target_mem_map; in wl1251_hw_init_tx_queue_config()
276 ret = wl1251_cmd_configure(wl, ACX_TX_QUEUE_CFG, in wl1251_hw_init_tx_queue_config()
282 wl1251_acx_ac_cfg(wl, AC_BE, CWMIN_BE, CWMAX_BE, AIFS_DIFS, TXOP_BE); in wl1251_hw_init_tx_queue_config()
283 wl1251_acx_ac_cfg(wl, AC_BK, CWMIN_BK, CWMAX_BK, AIFS_DIFS, TXOP_BK); in wl1251_hw_init_tx_queue_config()
284 wl1251_acx_ac_cfg(wl, AC_VI, CWMIN_VI, CWMAX_VI, AIFS_DIFS, TXOP_VI); in wl1251_hw_init_tx_queue_config()
285 wl1251_acx_ac_cfg(wl, AC_VO, CWMIN_VO, CWMAX_VO, AIFS_DIFS, TXOP_VO); in wl1251_hw_init_tx_queue_config()
292 static int wl1251_hw_init_data_path_config(struct wl1251 *wl) in wl1251_hw_init_data_path_config() argument
297 wl->data_path = kzalloc(sizeof(struct acx_data_path_params_resp), in wl1251_hw_init_data_path_config()
299 if (!wl->data_path) in wl1251_hw_init_data_path_config()
302 ret = wl1251_acx_data_path_params(wl, wl->data_path); in wl1251_hw_init_data_path_config()
304 kfree(wl->data_path); in wl1251_hw_init_data_path_config()
305 wl->data_path = NULL; in wl1251_hw_init_data_path_config()
313 int wl1251_hw_init(struct wl1251 *wl) in wl1251_hw_init() argument
318 ret = wl1251_hw_init_hwenc_config(wl); in wl1251_hw_init()
323 ret = wl1251_hw_init_templates_config(wl); in wl1251_hw_init()
328 ret = wl1251_hw_init_mem_config(wl); in wl1251_hw_init()
333 ret = wl1251_hw_init_data_path_config(wl); in wl1251_hw_init()
338 ret = wl1251_hw_init_rx_config(wl, in wl1251_hw_init()
347 ret = wl1251_hw_init_tx_queue_config(wl); in wl1251_hw_init()
352 ret = wl1251_hw_init_phy_config(wl); in wl1251_hw_init()
357 ret = wl1251_acx_conn_monit_params(wl); in wl1251_hw_init()
362 ret = wl1251_hw_init_beacon_filter(wl); in wl1251_hw_init()
367 ret = wl1251_hw_init_pta(wl); in wl1251_hw_init()
372 ret = wl1251_hw_init_energy_detection(wl); in wl1251_hw_init()
377 ret = wl1251_hw_init_beacon_broadcast(wl); in wl1251_hw_init()
382 ret = wl1251_cmd_data_path_rx(wl, wl->channel, 1); in wl1251_hw_init()
387 ret = wl1251_cmd_data_path_tx(wl, wl->channel, 1); in wl1251_hw_init()
392 ret = wl1251_hw_init_power_auth(wl); in wl1251_hw_init()
396 wl_mem_map = wl->target_mem_map; in wl1251_hw_init()
399 wl->data_path->tx_control_addr, in wl1251_hw_init()
401 wl->data_path->rx_control_addr); in wl1251_hw_init()
406 kfree(wl->data_path); in wl1251_hw_init()
409 kfree(wl->target_mem_map); in wl1251_hw_init()