Lines Matching refs:ret

20 	int ret;  in wl1251_hw_init_hwenc_config()  local
22 ret = wl1251_acx_feature_cfg(wl, 0); in wl1251_hw_init_hwenc_config()
23 if (ret < 0) { in wl1251_hw_init_hwenc_config()
25 return ret; in wl1251_hw_init_hwenc_config()
28 ret = wl1251_acx_default_key(wl, wl->default_key); in wl1251_hw_init_hwenc_config()
29 if (ret < 0) { in wl1251_hw_init_hwenc_config()
31 return ret; in wl1251_hw_init_hwenc_config()
39 int ret; in wl1251_hw_init_templates_config() local
43 ret = wl1251_cmd_template_set(wl, CMD_PROBE_REQ, NULL, in wl1251_hw_init_templates_config()
45 if (ret < 0) in wl1251_hw_init_templates_config()
46 return ret; in wl1251_hw_init_templates_config()
48 ret = wl1251_cmd_template_set(wl, CMD_NULL_DATA, NULL, in wl1251_hw_init_templates_config()
50 if (ret < 0) in wl1251_hw_init_templates_config()
51 return ret; in wl1251_hw_init_templates_config()
53 ret = wl1251_cmd_template_set(wl, CMD_PS_POLL, NULL, in wl1251_hw_init_templates_config()
55 if (ret < 0) in wl1251_hw_init_templates_config()
56 return ret; in wl1251_hw_init_templates_config()
58 ret = wl1251_cmd_template_set(wl, CMD_QOS_NULL_DATA, NULL, in wl1251_hw_init_templates_config()
61 if (ret < 0) in wl1251_hw_init_templates_config()
62 return ret; in wl1251_hw_init_templates_config()
64 ret = wl1251_cmd_template_set(wl, CMD_PROBE_RESP, NULL, in wl1251_hw_init_templates_config()
67 if (ret < 0) in wl1251_hw_init_templates_config()
68 return ret; in wl1251_hw_init_templates_config()
70 ret = wl1251_cmd_template_set(wl, CMD_BEACON, NULL, in wl1251_hw_init_templates_config()
73 if (ret < 0) in wl1251_hw_init_templates_config()
74 return ret; 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()
79 if (ret < 0) in wl1251_hw_init_templates_config()
80 return ret; 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()
83 if (ret < 0) in wl1251_hw_init_templates_config()
84 return ret; in wl1251_hw_init_templates_config()
91 int ret; in wl1251_hw_init_rx_config() local
93 ret = wl1251_acx_rx_msdu_life_time(wl, RX_MSDU_LIFETIME_DEF); in wl1251_hw_init_rx_config()
94 if (ret < 0) in wl1251_hw_init_rx_config()
95 return ret; in wl1251_hw_init_rx_config()
97 ret = wl1251_acx_rx_config(wl, config, filter); in wl1251_hw_init_rx_config()
98 if (ret < 0) in wl1251_hw_init_rx_config()
99 return ret; in wl1251_hw_init_rx_config()
106 int ret; in wl1251_hw_init_phy_config() local
108 ret = wl1251_acx_pd_threshold(wl); in wl1251_hw_init_phy_config()
109 if (ret < 0) in wl1251_hw_init_phy_config()
110 return ret; in wl1251_hw_init_phy_config()
112 ret = wl1251_acx_slot(wl, DEFAULT_SLOT_TIME); in wl1251_hw_init_phy_config()
113 if (ret < 0) in wl1251_hw_init_phy_config()
114 return ret; in wl1251_hw_init_phy_config()
116 ret = wl1251_acx_group_address_tbl(wl, true, NULL, 0); in wl1251_hw_init_phy_config()
117 if (ret < 0) in wl1251_hw_init_phy_config()
118 return ret; in wl1251_hw_init_phy_config()
120 ret = wl1251_acx_service_period_timeout(wl); in wl1251_hw_init_phy_config()
121 if (ret < 0) in wl1251_hw_init_phy_config()
122 return ret; in wl1251_hw_init_phy_config()
124 ret = wl1251_acx_rts_threshold(wl, RTS_THRESHOLD_DEF); in wl1251_hw_init_phy_config()
125 if (ret < 0) in wl1251_hw_init_phy_config()
126 return ret; in wl1251_hw_init_phy_config()
133 int ret; in wl1251_hw_init_beacon_filter() local
136 ret = wl1251_acx_beacon_filter_opt(wl, false); in wl1251_hw_init_beacon_filter()
137 if (ret < 0) in wl1251_hw_init_beacon_filter()
138 return ret; in wl1251_hw_init_beacon_filter()
140 ret = wl1251_acx_beacon_filter_table(wl); in wl1251_hw_init_beacon_filter()
141 if (ret < 0) in wl1251_hw_init_beacon_filter()
142 return ret; in wl1251_hw_init_beacon_filter()
149 int ret; in wl1251_hw_init_pta() local
151 ret = wl1251_acx_sg_enable(wl); in wl1251_hw_init_pta()
152 if (ret < 0) in wl1251_hw_init_pta()
153 return ret; in wl1251_hw_init_pta()
155 ret = wl1251_acx_sg_cfg(wl); in wl1251_hw_init_pta()
156 if (ret < 0) in wl1251_hw_init_pta()
157 return ret; in wl1251_hw_init_pta()
164 int ret; in wl1251_hw_init_energy_detection() local
166 ret = wl1251_acx_cca_threshold(wl); in wl1251_hw_init_energy_detection()
167 if (ret < 0) in wl1251_hw_init_energy_detection()
168 return ret; in wl1251_hw_init_energy_detection()
175 int ret; in wl1251_hw_init_beacon_broadcast() local
177 ret = wl1251_acx_bcn_dtim_options(wl); in wl1251_hw_init_beacon_broadcast()
178 if (ret < 0) in wl1251_hw_init_beacon_broadcast()
179 return ret; in wl1251_hw_init_beacon_broadcast()
191 int ret; in wl1251_hw_init_mem_config() local
193 ret = wl1251_acx_mem_cfg(wl); in wl1251_hw_init_mem_config()
194 if (ret < 0) in wl1251_hw_init_mem_config()
195 return ret; in wl1251_hw_init_mem_config()
205 ret = wl1251_acx_mem_map(wl, wl->target_mem_map, in wl1251_hw_init_mem_config()
207 if (ret < 0) { in wl1251_hw_init_mem_config()
211 return ret; in wl1251_hw_init_mem_config()
260 int ret, i; in wl1251_hw_init_tx_queue_config() local
266 ret = -ENOMEM; in wl1251_hw_init_tx_queue_config()
271 ret = wl1251_hw_init_txq_fill(i, config, in wl1251_hw_init_tx_queue_config()
273 if (ret < 0) in wl1251_hw_init_tx_queue_config()
276 ret = wl1251_cmd_configure(wl, ACX_TX_QUEUE_CFG, in wl1251_hw_init_tx_queue_config()
278 if (ret < 0) in wl1251_hw_init_tx_queue_config()
289 return ret; in wl1251_hw_init_tx_queue_config()
294 int ret; in wl1251_hw_init_data_path_config() local
302 ret = wl1251_acx_data_path_params(wl, wl->data_path); in wl1251_hw_init_data_path_config()
303 if (ret < 0) { in wl1251_hw_init_data_path_config()
306 return ret; in wl1251_hw_init_data_path_config()
316 int ret; in wl1251_hw_init() local
318 ret = wl1251_hw_init_hwenc_config(wl); in wl1251_hw_init()
319 if (ret < 0) in wl1251_hw_init()
320 return ret; in wl1251_hw_init()
323 ret = wl1251_hw_init_templates_config(wl); in wl1251_hw_init()
324 if (ret < 0) in wl1251_hw_init()
325 return ret; in wl1251_hw_init()
328 ret = wl1251_hw_init_mem_config(wl); in wl1251_hw_init()
329 if (ret < 0) in wl1251_hw_init()
330 return ret; in wl1251_hw_init()
333 ret = wl1251_hw_init_data_path_config(wl); in wl1251_hw_init()
334 if (ret < 0) in wl1251_hw_init()
338 ret = wl1251_hw_init_rx_config(wl, in wl1251_hw_init()
343 if (ret < 0) in wl1251_hw_init()
347 ret = wl1251_hw_init_tx_queue_config(wl); in wl1251_hw_init()
348 if (ret < 0) in wl1251_hw_init()
352 ret = wl1251_hw_init_phy_config(wl); in wl1251_hw_init()
353 if (ret < 0) in wl1251_hw_init()
357 ret = wl1251_acx_conn_monit_params(wl); in wl1251_hw_init()
358 if (ret < 0) in wl1251_hw_init()
362 ret = wl1251_hw_init_beacon_filter(wl); in wl1251_hw_init()
363 if (ret < 0) in wl1251_hw_init()
367 ret = wl1251_hw_init_pta(wl); in wl1251_hw_init()
368 if (ret < 0) in wl1251_hw_init()
372 ret = wl1251_hw_init_energy_detection(wl); in wl1251_hw_init()
373 if (ret < 0) in wl1251_hw_init()
377 ret = wl1251_hw_init_beacon_broadcast(wl); in wl1251_hw_init()
378 if (ret < 0) in wl1251_hw_init()
382 ret = wl1251_cmd_data_path_rx(wl, wl->channel, 1); in wl1251_hw_init()
383 if (ret < 0) in wl1251_hw_init()
387 ret = wl1251_cmd_data_path_tx(wl, wl->channel, 1); in wl1251_hw_init()
388 if (ret < 0) in wl1251_hw_init()
392 ret = wl1251_hw_init_power_auth(wl); in wl1251_hw_init()
393 if (ret < 0) in wl1251_hw_init()
411 return ret; in wl1251_hw_init()