Lines Matching refs:ret
34 int ret; in wl1251_hw_init_hwenc_config() local
36 ret = wl1251_acx_feature_cfg(wl); in wl1251_hw_init_hwenc_config()
37 if (ret < 0) { in wl1251_hw_init_hwenc_config()
39 return ret; in wl1251_hw_init_hwenc_config()
42 ret = wl1251_acx_default_key(wl, wl->default_key); in wl1251_hw_init_hwenc_config()
43 if (ret < 0) { in wl1251_hw_init_hwenc_config()
45 return ret; in wl1251_hw_init_hwenc_config()
53 int ret; in wl1251_hw_init_templates_config() local
57 ret = wl1251_cmd_template_set(wl, CMD_PROBE_REQ, NULL, in wl1251_hw_init_templates_config()
59 if (ret < 0) in wl1251_hw_init_templates_config()
60 return ret; in wl1251_hw_init_templates_config()
62 ret = wl1251_cmd_template_set(wl, CMD_NULL_DATA, NULL, in wl1251_hw_init_templates_config()
64 if (ret < 0) in wl1251_hw_init_templates_config()
65 return ret; in wl1251_hw_init_templates_config()
67 ret = wl1251_cmd_template_set(wl, CMD_PS_POLL, NULL, in wl1251_hw_init_templates_config()
69 if (ret < 0) in wl1251_hw_init_templates_config()
70 return ret; in wl1251_hw_init_templates_config()
72 ret = wl1251_cmd_template_set(wl, CMD_QOS_NULL_DATA, NULL, in wl1251_hw_init_templates_config()
75 if (ret < 0) in wl1251_hw_init_templates_config()
76 return ret; in wl1251_hw_init_templates_config()
78 ret = wl1251_cmd_template_set(wl, CMD_PROBE_RESP, NULL, in wl1251_hw_init_templates_config()
81 if (ret < 0) in wl1251_hw_init_templates_config()
82 return ret; in wl1251_hw_init_templates_config()
84 ret = wl1251_cmd_template_set(wl, CMD_BEACON, NULL, in wl1251_hw_init_templates_config()
87 if (ret < 0) in wl1251_hw_init_templates_config()
88 return ret; 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()
93 if (ret < 0) in wl1251_hw_init_templates_config()
94 return ret; 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()
97 if (ret < 0) in wl1251_hw_init_templates_config()
98 return ret; in wl1251_hw_init_templates_config()
105 int ret; in wl1251_hw_init_rx_config() local
107 ret = wl1251_acx_rx_msdu_life_time(wl, RX_MSDU_LIFETIME_DEF); in wl1251_hw_init_rx_config()
108 if (ret < 0) in wl1251_hw_init_rx_config()
109 return ret; in wl1251_hw_init_rx_config()
111 ret = wl1251_acx_rx_config(wl, config, filter); in wl1251_hw_init_rx_config()
112 if (ret < 0) in wl1251_hw_init_rx_config()
113 return ret; in wl1251_hw_init_rx_config()
120 int ret; in wl1251_hw_init_phy_config() local
122 ret = wl1251_acx_pd_threshold(wl); in wl1251_hw_init_phy_config()
123 if (ret < 0) in wl1251_hw_init_phy_config()
124 return ret; in wl1251_hw_init_phy_config()
126 ret = wl1251_acx_slot(wl, DEFAULT_SLOT_TIME); in wl1251_hw_init_phy_config()
127 if (ret < 0) in wl1251_hw_init_phy_config()
128 return ret; in wl1251_hw_init_phy_config()
130 ret = wl1251_acx_group_address_tbl(wl); in wl1251_hw_init_phy_config()
131 if (ret < 0) in wl1251_hw_init_phy_config()
132 return ret; in wl1251_hw_init_phy_config()
134 ret = wl1251_acx_service_period_timeout(wl); in wl1251_hw_init_phy_config()
135 if (ret < 0) in wl1251_hw_init_phy_config()
136 return ret; in wl1251_hw_init_phy_config()
138 ret = wl1251_acx_rts_threshold(wl, RTS_THRESHOLD_DEF); in wl1251_hw_init_phy_config()
139 if (ret < 0) in wl1251_hw_init_phy_config()
140 return ret; in wl1251_hw_init_phy_config()
147 int ret; in wl1251_hw_init_beacon_filter() local
150 ret = wl1251_acx_beacon_filter_opt(wl, false); in wl1251_hw_init_beacon_filter()
151 if (ret < 0) in wl1251_hw_init_beacon_filter()
152 return ret; in wl1251_hw_init_beacon_filter()
154 ret = wl1251_acx_beacon_filter_table(wl); in wl1251_hw_init_beacon_filter()
155 if (ret < 0) in wl1251_hw_init_beacon_filter()
156 return ret; in wl1251_hw_init_beacon_filter()
163 int ret; in wl1251_hw_init_pta() local
165 ret = wl1251_acx_sg_enable(wl); in wl1251_hw_init_pta()
166 if (ret < 0) in wl1251_hw_init_pta()
167 return ret; in wl1251_hw_init_pta()
169 ret = wl1251_acx_sg_cfg(wl); in wl1251_hw_init_pta()
170 if (ret < 0) in wl1251_hw_init_pta()
171 return ret; in wl1251_hw_init_pta()
178 int ret; in wl1251_hw_init_energy_detection() local
180 ret = wl1251_acx_cca_threshold(wl); in wl1251_hw_init_energy_detection()
181 if (ret < 0) in wl1251_hw_init_energy_detection()
182 return ret; in wl1251_hw_init_energy_detection()
189 int ret; in wl1251_hw_init_beacon_broadcast() local
191 ret = wl1251_acx_bcn_dtim_options(wl); in wl1251_hw_init_beacon_broadcast()
192 if (ret < 0) in wl1251_hw_init_beacon_broadcast()
193 return ret; in wl1251_hw_init_beacon_broadcast()
205 int ret; in wl1251_hw_init_mem_config() local
207 ret = wl1251_acx_mem_cfg(wl); in wl1251_hw_init_mem_config()
208 if (ret < 0) in wl1251_hw_init_mem_config()
209 return ret; in wl1251_hw_init_mem_config()
219 ret = wl1251_acx_mem_map(wl, wl->target_mem_map, in wl1251_hw_init_mem_config()
221 if (ret < 0) { in wl1251_hw_init_mem_config()
225 return ret; in wl1251_hw_init_mem_config()
274 int ret, i; in wl1251_hw_init_tx_queue_config() local
280 ret = -ENOMEM; in wl1251_hw_init_tx_queue_config()
285 ret = wl1251_hw_init_txq_fill(i, config, in wl1251_hw_init_tx_queue_config()
287 if (ret < 0) in wl1251_hw_init_tx_queue_config()
290 ret = wl1251_cmd_configure(wl, ACX_TX_QUEUE_CFG, in wl1251_hw_init_tx_queue_config()
292 if (ret < 0) in wl1251_hw_init_tx_queue_config()
303 return ret; in wl1251_hw_init_tx_queue_config()
308 int ret; in wl1251_hw_init_data_path_config() local
318 ret = wl1251_acx_data_path_params(wl, wl->data_path); in wl1251_hw_init_data_path_config()
319 if (ret < 0) { in wl1251_hw_init_data_path_config()
322 return ret; in wl1251_hw_init_data_path_config()
332 int ret; in wl1251_hw_init() local
334 ret = wl1251_hw_init_hwenc_config(wl); in wl1251_hw_init()
335 if (ret < 0) in wl1251_hw_init()
336 return ret; in wl1251_hw_init()
339 ret = wl1251_hw_init_templates_config(wl); in wl1251_hw_init()
340 if (ret < 0) in wl1251_hw_init()
341 return ret; in wl1251_hw_init()
344 ret = wl1251_hw_init_mem_config(wl); in wl1251_hw_init()
345 if (ret < 0) in wl1251_hw_init()
346 return ret; in wl1251_hw_init()
349 ret = wl1251_hw_init_data_path_config(wl); in wl1251_hw_init()
350 if (ret < 0) in wl1251_hw_init()
354 ret = wl1251_hw_init_rx_config(wl, in wl1251_hw_init()
359 if (ret < 0) in wl1251_hw_init()
363 ret = wl1251_hw_init_tx_queue_config(wl); in wl1251_hw_init()
364 if (ret < 0) in wl1251_hw_init()
368 ret = wl1251_hw_init_phy_config(wl); in wl1251_hw_init()
369 if (ret < 0) in wl1251_hw_init()
373 ret = wl1251_acx_conn_monit_params(wl); in wl1251_hw_init()
374 if (ret < 0) in wl1251_hw_init()
378 ret = wl1251_hw_init_beacon_filter(wl); in wl1251_hw_init()
379 if (ret < 0) in wl1251_hw_init()
383 ret = wl1251_hw_init_pta(wl); in wl1251_hw_init()
384 if (ret < 0) in wl1251_hw_init()
388 ret = wl1251_hw_init_energy_detection(wl); in wl1251_hw_init()
389 if (ret < 0) in wl1251_hw_init()
393 ret = wl1251_hw_init_beacon_broadcast(wl); in wl1251_hw_init()
394 if (ret < 0) in wl1251_hw_init()
398 ret = wl1251_cmd_data_path(wl, wl->channel, 1); in wl1251_hw_init()
399 if (ret < 0) in wl1251_hw_init()
403 ret = wl1251_hw_init_power_auth(wl); in wl1251_hw_init()
404 if (ret < 0) in wl1251_hw_init()
422 return ret; in wl1251_hw_init()