Lines Matching refs:ret
25 int ret, i; in wl1271_init_templates_config() local
29 ret = wl1271_cmd_template_set(wl, WL12XX_INVALID_ROLE_ID, in wl1271_init_templates_config()
33 if (ret < 0) in wl1271_init_templates_config()
34 return ret; in wl1271_init_templates_config()
36 ret = wl1271_cmd_template_set(wl, WL12XX_INVALID_ROLE_ID, in wl1271_init_templates_config()
40 if (ret < 0) in wl1271_init_templates_config()
41 return ret; in wl1271_init_templates_config()
44 ret = wl1271_cmd_template_set(wl, WL12XX_INVALID_ROLE_ID, in wl1271_init_templates_config()
49 if (ret < 0) in wl1271_init_templates_config()
50 return ret; in wl1271_init_templates_config()
52 ret = wl1271_cmd_template_set(wl, WL12XX_INVALID_ROLE_ID, in wl1271_init_templates_config()
57 if (ret < 0) in wl1271_init_templates_config()
58 return ret; in wl1271_init_templates_config()
61 ret = wl1271_cmd_template_set(wl, WL12XX_INVALID_ROLE_ID, in wl1271_init_templates_config()
65 if (ret < 0) in wl1271_init_templates_config()
66 return ret; in wl1271_init_templates_config()
68 ret = wl1271_cmd_template_set(wl, WL12XX_INVALID_ROLE_ID, in wl1271_init_templates_config()
72 if (ret < 0) in wl1271_init_templates_config()
73 return ret; in wl1271_init_templates_config()
75 ret = wl1271_cmd_template_set(wl, WL12XX_INVALID_ROLE_ID, in wl1271_init_templates_config()
80 if (ret < 0) in wl1271_init_templates_config()
81 return ret; in wl1271_init_templates_config()
83 ret = wl1271_cmd_template_set(wl, WL12XX_INVALID_ROLE_ID, in wl1271_init_templates_config()
87 if (ret < 0) in wl1271_init_templates_config()
88 return ret; in wl1271_init_templates_config()
90 ret = wl1271_cmd_template_set(wl, WL12XX_INVALID_ROLE_ID, in wl1271_init_templates_config()
94 if (ret < 0) in wl1271_init_templates_config()
95 return ret; in wl1271_init_templates_config()
99 ret = wl1271_cmd_template_set(wl, WL12XX_INVALID_ROLE_ID, in wl1271_init_templates_config()
103 if (ret < 0) in wl1271_init_templates_config()
104 return ret; in wl1271_init_templates_config()
110 ret = wl1271_cmd_template_set(wl, WL12XX_INVALID_ROLE_ID, in wl1271_init_templates_config()
114 if (ret < 0) in wl1271_init_templates_config()
115 return ret; in wl1271_init_templates_config()
117 ret = wl1271_cmd_template_set(wl, WL12XX_INVALID_ROLE_ID, in wl1271_init_templates_config()
121 if (ret < 0) in wl1271_init_templates_config()
122 return ret; in wl1271_init_templates_config()
124 ret = wl1271_cmd_template_set(wl, WL12XX_INVALID_ROLE_ID, in wl1271_init_templates_config()
129 if (ret < 0) in wl1271_init_templates_config()
130 return ret; in wl1271_init_templates_config()
133 ret = wl1271_cmd_template_set(wl, WL12XX_INVALID_ROLE_ID, in wl1271_init_templates_config()
137 if (ret < 0) in wl1271_init_templates_config()
138 return ret; in wl1271_init_templates_config()
148 int ret; in wl1271_ap_init_deauth_template() local
153 ret = -ENOMEM; in wl1271_ap_init_deauth_template()
161 ret = wl1271_cmd_template_set(wl, wlvif->role_id, in wl1271_ap_init_deauth_template()
167 return ret; in wl1271_ap_init_deauth_template()
175 int ret; in wl1271_ap_init_null_template() local
180 ret = -ENOMEM; in wl1271_ap_init_null_template()
194 ret = wl1271_cmd_template_set(wl, wlvif->role_id, in wl1271_ap_init_null_template()
200 return ret; in wl1271_ap_init_null_template()
208 int ret; in wl1271_ap_init_qos_null_template() local
213 ret = -ENOMEM; in wl1271_ap_init_qos_null_template()
227 ret = wl1271_cmd_template_set(wl, wlvif->role_id, in wl1271_ap_init_qos_null_template()
233 return ret; in wl1271_ap_init_qos_null_template()
238 int ret; in wl12xx_init_rx_config() local
240 ret = wl1271_acx_rx_msdu_life_time(wl); in wl12xx_init_rx_config()
241 if (ret < 0) in wl12xx_init_rx_config()
242 return ret; in wl12xx_init_rx_config()
250 int ret; in wl12xx_init_phy_vif_config() local
252 ret = wl1271_acx_slot(wl, wlvif, DEFAULT_SLOT_TIME); in wl12xx_init_phy_vif_config()
253 if (ret < 0) in wl12xx_init_phy_vif_config()
254 return ret; in wl12xx_init_phy_vif_config()
256 ret = wl1271_acx_service_period_timeout(wl, wlvif); in wl12xx_init_phy_vif_config()
257 if (ret < 0) in wl12xx_init_phy_vif_config()
258 return ret; in wl12xx_init_phy_vif_config()
260 ret = wl1271_acx_rts_threshold(wl, wlvif, wl->hw->wiphy->rts_threshold); in wl12xx_init_phy_vif_config()
261 if (ret < 0) in wl12xx_init_phy_vif_config()
262 return ret; in wl12xx_init_phy_vif_config()
270 int ret; in wl1271_init_sta_beacon_filter() local
272 ret = wl1271_acx_beacon_filter_table(wl, wlvif); in wl1271_init_sta_beacon_filter()
273 if (ret < 0) in wl1271_init_sta_beacon_filter()
274 return ret; in wl1271_init_sta_beacon_filter()
277 ret = wl1271_acx_beacon_filter_opt(wl, wlvif, false); in wl1271_init_sta_beacon_filter()
278 if (ret < 0) in wl1271_init_sta_beacon_filter()
279 return ret; in wl1271_init_sta_beacon_filter()
286 int ret; in wl1271_init_pta() local
288 ret = wl12xx_acx_sg_cfg(wl); in wl1271_init_pta()
289 if (ret < 0) in wl1271_init_pta()
290 return ret; in wl1271_init_pta()
292 ret = wl1271_acx_sg_enable(wl, wl->sg_enabled); in wl1271_init_pta()
293 if (ret < 0) in wl1271_init_pta()
294 return ret; in wl1271_init_pta()
301 int ret; in wl1271_init_energy_detection() local
303 ret = wl1271_acx_cca_threshold(wl); in wl1271_init_energy_detection()
304 if (ret < 0) in wl1271_init_energy_detection()
305 return ret; in wl1271_init_energy_detection()
313 int ret; in wl1271_init_beacon_broadcast() local
315 ret = wl1271_acx_bcn_dtim_options(wl, wlvif); in wl1271_init_beacon_broadcast()
316 if (ret < 0) in wl1271_init_beacon_broadcast()
317 return ret; in wl1271_init_beacon_broadcast()
324 int ret; in wl12xx_init_fwlog() local
329 ret = wl12xx_cmd_config_fwlog(wl); in wl12xx_init_fwlog()
330 if (ret < 0) in wl12xx_init_fwlog()
331 return ret; in wl12xx_init_fwlog()
339 int ret; in wl1271_sta_hw_init() local
342 ret = wl12xx_acx_config_ps(wl, wlvif); in wl1271_sta_hw_init()
343 if (ret < 0) in wl1271_sta_hw_init()
344 return ret; in wl1271_sta_hw_init()
347 ret = wl1271_acx_fm_coex(wl); in wl1271_sta_hw_init()
348 if (ret < 0) in wl1271_sta_hw_init()
349 return ret; in wl1271_sta_hw_init()
351 ret = wl1271_acx_sta_rate_policies(wl, wlvif); in wl1271_sta_hw_init()
352 if (ret < 0) in wl1271_sta_hw_init()
353 return ret; in wl1271_sta_hw_init()
362 int ret; in wl1271_sta_hw_init_post_mem() local
365 ret = wl1271_acx_keep_alive_mode(wl, wlvif, false); in wl1271_sta_hw_init_post_mem()
366 if (ret < 0) in wl1271_sta_hw_init_post_mem()
367 return ret; in wl1271_sta_hw_init_post_mem()
375 int ret; in wl1271_ap_hw_init() local
377 ret = wl1271_init_ap_rates(wl, wlvif); in wl1271_ap_hw_init()
378 if (ret < 0) in wl1271_ap_hw_init()
379 return ret; in wl1271_ap_hw_init()
382 ret = wlcore_hw_ap_sleep(wl); in wl1271_ap_hw_init()
383 if (ret < 0) in wl1271_ap_hw_init()
384 return ret; in wl1271_ap_hw_init()
392 int ret; in wl1271_ap_init_templates() local
394 ret = wl1271_ap_init_deauth_template(wl, wlvif); in wl1271_ap_init_templates()
395 if (ret < 0) in wl1271_ap_init_templates()
396 return ret; in wl1271_ap_init_templates()
398 ret = wl1271_ap_init_null_template(wl, vif); in wl1271_ap_init_templates()
399 if (ret < 0) in wl1271_ap_init_templates()
400 return ret; in wl1271_ap_init_templates()
402 ret = wl1271_ap_init_qos_null_template(wl, vif); in wl1271_ap_init_templates()
403 if (ret < 0) in wl1271_ap_init_templates()
404 return ret; in wl1271_ap_init_templates()
410 ret = wl1271_acx_beacon_filter_opt(wl, wlvif, false); in wl1271_ap_init_templates()
411 if (ret < 0) in wl1271_ap_init_templates()
412 return ret; in wl1271_ap_init_templates()
425 int i, ret; in wl1271_init_ap_rates() local
439 ret = wl1271_acx_ap_rate_policy(wl, &rc, wlvif->ap.mgmt_rate_idx); in wl1271_init_ap_rates()
440 if (ret < 0) in wl1271_init_ap_rates()
441 return ret; in wl1271_init_ap_rates()
448 ret = wl1271_acx_ap_rate_policy(wl, &rc, wlvif->ap.bcast_rate_idx); in wl1271_init_ap_rates()
449 if (ret < 0) in wl1271_init_ap_rates()
450 return ret; in wl1271_init_ap_rates()
473 ret = wl1271_acx_ap_rate_policy(wl, &rc, in wl1271_init_ap_rates()
475 if (ret < 0) in wl1271_init_ap_rates()
476 return ret; in wl1271_init_ap_rates()
504 int ret; in wl12xx_init_sta_role() local
506 ret = wl1271_acx_group_address_tbl(wl, wlvif, true, NULL, 0); in wl12xx_init_sta_role()
507 if (ret < 0) in wl12xx_init_sta_role()
508 return ret; in wl12xx_init_sta_role()
511 ret = wl1271_acx_conn_monit_params(wl, wlvif, false); in wl12xx_init_sta_role()
512 if (ret < 0) in wl12xx_init_sta_role()
513 return ret; in wl12xx_init_sta_role()
516 ret = wl1271_init_sta_beacon_filter(wl, wlvif); in wl12xx_init_sta_role()
517 if (ret < 0) in wl12xx_init_sta_role()
518 return ret; in wl12xx_init_sta_role()
521 ret = wl1271_init_beacon_broadcast(wl, wlvif); in wl12xx_init_sta_role()
522 if (ret < 0) in wl12xx_init_sta_role()
523 return ret; in wl12xx_init_sta_role()
526 ret = wl1271_acx_rssi_snr_avg_weights(wl, wlvif); in wl12xx_init_sta_role()
527 if (ret < 0) in wl12xx_init_sta_role()
528 return ret; in wl12xx_init_sta_role()
536 int ret; in wl12xx_init_ap_role() local
538 ret = wl1271_acx_ap_max_tx_retry(wl, wlvif); in wl12xx_init_ap_role()
539 if (ret < 0) in wl12xx_init_ap_role()
540 return ret; in wl12xx_init_ap_role()
543 ret = wl1271_acx_tx_power(wl, wlvif, wlvif->power_level); in wl12xx_init_ap_role()
544 if (ret < 0) in wl12xx_init_ap_role()
545 return ret; in wl12xx_init_ap_role()
561 int ret, i; in wl1271_init_vif_specific() local
566 ret = wl1271_acx_sleep_auth(wl, WL1271_PSM_ELP); in wl1271_init_vif_specific()
567 if (ret < 0) in wl1271_init_vif_specific()
568 return ret; in wl1271_init_vif_specific()
572 ret = wl1271_event_unmask(wl); in wl1271_init_vif_specific()
573 if (ret < 0) in wl1271_init_vif_specific()
574 return ret; in wl1271_init_vif_specific()
580 ret = wl1271_acx_sleep_auth(wl, sta_auth); in wl1271_init_vif_specific()
583 ret = wl1271_acx_sleep_auth(wl, WL1271_PSM_ELP); in wl1271_init_vif_specific()
585 if (ret < 0) in wl1271_init_vif_specific()
586 return ret; in wl1271_init_vif_specific()
591 ret = wl1271_ap_hw_init(wl, wlvif); in wl1271_init_vif_specific()
592 if (ret < 0) in wl1271_init_vif_specific()
593 return ret; in wl1271_init_vif_specific()
595 ret = wl12xx_init_ap_role(wl, wlvif); in wl1271_init_vif_specific()
596 if (ret < 0) in wl1271_init_vif_specific()
597 return ret; in wl1271_init_vif_specific()
599 ret = wl1271_sta_hw_init(wl, wlvif); in wl1271_init_vif_specific()
600 if (ret < 0) in wl1271_init_vif_specific()
601 return ret; in wl1271_init_vif_specific()
603 ret = wl12xx_init_sta_role(wl, wlvif); in wl1271_init_vif_specific()
604 if (ret < 0) in wl1271_init_vif_specific()
605 return ret; in wl1271_init_vif_specific()
614 ret = wl1271_acx_ac_cfg(wl, wlvif, conf_ac->ac, in wl1271_init_vif_specific()
617 if (ret < 0) in wl1271_init_vif_specific()
618 return ret; in wl1271_init_vif_specific()
621 ret = wl1271_acx_tid_cfg(wl, wlvif, in wl1271_init_vif_specific()
629 if (ret < 0) in wl1271_init_vif_specific()
630 return ret; in wl1271_init_vif_specific()
634 ret = wl1271_acx_feature_cfg(wl, wlvif); in wl1271_init_vif_specific()
635 if (ret < 0) in wl1271_init_vif_specific()
636 return ret; in wl1271_init_vif_specific()
640 ret = wl1271_ap_hw_init_post_mem(wl, vif); in wl1271_init_vif_specific()
642 ret = wl1271_sta_hw_init_post_mem(wl, vif); in wl1271_init_vif_specific()
644 if (ret < 0) in wl1271_init_vif_specific()
645 return ret; in wl1271_init_vif_specific()
648 ret = wl1271_set_ba_policies(wl, wlvif); in wl1271_init_vif_specific()
649 if (ret < 0) in wl1271_init_vif_specific()
650 return ret; in wl1271_init_vif_specific()
652 ret = wlcore_hw_init_vif(wl, wlvif); in wl1271_init_vif_specific()
653 if (ret < 0) in wl1271_init_vif_specific()
654 return ret; in wl1271_init_vif_specific()
661 int ret; in wl1271_hw_init() local
664 ret = wl->ops->hw_init(wl); in wl1271_hw_init()
665 if (ret < 0) in wl1271_hw_init()
666 return ret; in wl1271_hw_init()
669 ret = wl1271_init_templates_config(wl); in wl1271_hw_init()
670 if (ret < 0) in wl1271_hw_init()
671 return ret; in wl1271_hw_init()
673 ret = wl12xx_acx_mem_cfg(wl); in wl1271_hw_init()
674 if (ret < 0) in wl1271_hw_init()
675 return ret; in wl1271_hw_init()
678 ret = wl12xx_init_fwlog(wl); in wl1271_hw_init()
679 if (ret < 0) in wl1271_hw_init()
680 return ret; in wl1271_hw_init()
682 ret = wlcore_cmd_regdomain_config_locked(wl); in wl1271_hw_init()
683 if (ret < 0) in wl1271_hw_init()
684 return ret; in wl1271_hw_init()
687 ret = wl1271_init_pta(wl); in wl1271_hw_init()
688 if (ret < 0) in wl1271_hw_init()
689 return ret; in wl1271_hw_init()
692 ret = wl1271_acx_init_mem_config(wl); in wl1271_hw_init()
693 if (ret < 0) in wl1271_hw_init()
694 return ret; in wl1271_hw_init()
697 ret = wl12xx_init_rx_config(wl); in wl1271_hw_init()
698 if (ret < 0) in wl1271_hw_init()
701 ret = wl1271_acx_dco_itrim_params(wl); in wl1271_hw_init()
702 if (ret < 0) in wl1271_hw_init()
706 ret = wl1271_acx_tx_config_options(wl); in wl1271_hw_init()
707 if (ret < 0) in wl1271_hw_init()
711 ret = wl1271_acx_init_rx_interrupt(wl); in wl1271_hw_init()
712 if (ret < 0) in wl1271_hw_init()
716 ret = wl1271_init_energy_detection(wl); in wl1271_hw_init()
717 if (ret < 0) in wl1271_hw_init()
721 ret = wl1271_acx_frag_threshold(wl, wl->hw->wiphy->frag_threshold); in wl1271_hw_init()
722 if (ret < 0) in wl1271_hw_init()
726 ret = wl1271_cmd_data_path(wl, 1); in wl1271_hw_init()
727 if (ret < 0) in wl1271_hw_init()
731 ret = wl1271_acx_pm_config(wl); in wl1271_hw_init()
732 if (ret < 0) in wl1271_hw_init()
735 ret = wl12xx_acx_set_rate_mgmt_params(wl); in wl1271_hw_init()
736 if (ret < 0) in wl1271_hw_init()
740 ret = wl12xx_acx_config_hangover(wl); in wl1271_hw_init()
741 if (ret < 0) in wl1271_hw_init()
750 return ret; in wl1271_hw_init()