Lines Matching refs:ret

27 	int ret = 0, i;
35 ret = ath12k_mac_rfkill_config(ar);
36 if (ret && ret != -EOPNOTSUPP) {
37 ath12k_warn(ab, "failed to configure rfkill: %d", ret);
38 return ret;
42 return ret;
48 int ret, i;
58 ret = ath12k_mac_wait_tx_complete(ar);
59 if (ret) {
60 ath12k_warn(ab, "failed to wait tx complete: %d\n", ret);
62 return ret;
100 int ret;
106 ret = ath12k_hif_power_up(ab);
107 if (ret)
108 ath12k_warn(ab, "failed to power up hif during resume: %d\n", ret);
110 return ret;
197 int ret;
204 ret = firmware_request_nowarn(&fw, path, ab->dev);
205 if (ret)
206 return ERR_PTR(ret);
232 int ret, board_ie_id;
252 ret = -EINVAL;
263 ret = memcmp(board_ie_data, boardname, strlen(boardname));
264 if (ret)
285 ret = 0;
301 ret = -ENOENT;
304 return ret;
319 int ret, ie_id;
340 ret = -EINVAL;
346 ret = -EINVAL;
355 ret = -EINVAL;
373 ret = -EINVAL;
378 ret = ath12k_core_parse_bd_ie_board(ab, bd, data,
384 if (ret == -ENOENT)
387 else if (ret)
407 ret = -ENODATA;
415 return ret;
438 int ret;
442 ret = ath12k_core_create_board_name(ab, boardname, sizeof(boardname));
443 if (ret) {
444 ath12k_err(ab, "failed to create board name: %d", ret);
445 return ret;
449 ret = ath12k_core_fetch_board_data_api_n(ab, bd, boardname,
453 if (!ret)
456 ret = ath12k_core_create_fallback_board_name(ab, fallback_boardname,
458 if (ret) {
459 ath12k_err(ab, "failed to create fallback board name: %d", ret);
460 return ret;
463 ret = ath12k_core_fetch_board_data_api_n(ab, bd, fallback_boardname,
467 if (!ret)
471 ret = ath12k_core_fetch_board_data_api_1(ab, bd, ATH12K_DEFAULT_BOARD_FILE);
472 if (ret) {
483 return ret;
494 int ret;
496 ret = ath12k_core_create_board_name(ab, boardname, BOARD_NAME_SIZE);
497 if (ret) {
499 "failed to create board name for regdb: %d", ret);
503 ret = ath12k_core_fetch_board_data_api_n(ab, bd, boardname,
507 if (!ret)
510 ret = ath12k_core_create_bus_type_board_name(ab, default_boardname,
512 if (ret) {
514 "failed to create default board name for regdb: %d", ret);
518 ret = ath12k_core_fetch_board_data_api_n(ab, bd, default_boardname,
522 if (!ret)
525 ret = ath12k_core_fetch_board_data_api_1(ab, bd, ATH12K_REGDB_FILE_NAME);
526 if (ret)
531 if (!ret)
534 return ret;
649 int ret;
651 ret = ath12k_qmi_init_service(ab);
652 if (ret) {
653 ath12k_err(ab, "failed to initialize qmi :%d\n", ret);
654 return ret;
659 ret = ath12k_hif_power_up(ab);
660 if (ret) {
661 ath12k_err(ab, "failed to power up :%d\n", ret);
670 return ret;
683 int ret;
685 ret = ath12k_mac_register(ab);
686 if (ret) {
687 ath12k_err(ab, "failed register the radio with mac80211: %d\n", ret);
688 return ret;
691 ret = ath12k_dp_pdev_alloc(ab);
692 if (ret) {
693 ath12k_err(ab, "failed to attach DP pdev: %d\n", ret);
702 return ret;
715 int ret;
717 ret = ath12k_wmi_attach(ab);
718 if (ret) {
719 ath12k_err(ab, "failed to attach wmi: %d\n", ret);
720 return ret;
723 ret = ath12k_htc_init(ab);
724 if (ret) {
725 ath12k_err(ab, "failed to init htc: %d\n", ret);
729 ret = ath12k_hif_start(ab);
730 if (ret) {
731 ath12k_err(ab, "failed to start HIF: %d\n", ret);
735 ret = ath12k_htc_wait_target(&ab->htc);
736 if (ret) {
737 ath12k_err(ab, "failed to connect to HTC: %d\n", ret);
741 ret = ath12k_dp_htt_connect(&ab->dp);
742 if (ret) {
743 ath12k_err(ab, "failed to connect to HTT: %d\n", ret);
747 ret = ath12k_wmi_connect(ab);
748 if (ret) {
749 ath12k_err(ab, "failed to connect wmi: %d\n", ret);
753 ret = ath12k_htc_start(&ab->htc);
754 if (ret) {
755 ath12k_err(ab, "failed to start HTC: %d\n", ret);
759 ret = ath12k_wmi_wait_for_service_ready(ab);
760 if (ret) {
762 ret);
766 ret = ath12k_mac_allocate(ab);
767 if (ret) {
769 ret);
775 ret = ath12k_dp_rx_pdev_reo_setup(ab);
776 if (ret) {
777 ath12k_err(ab, "failed to initialize reo destination rings: %d\n", ret);
783 ret = ath12k_wmi_cmd_init(ab);
784 if (ret) {
785 ath12k_err(ab, "failed to send wmi init cmd: %d\n", ret);
789 ret = ath12k_wmi_wait_for_unified_ready(ab);
790 if (ret) {
792 ret);
798 ret = ath12k_wmi_set_hw_mode(ab, WMI_HOST_HW_MODE_DBS);
799 if (ret) {
800 ath12k_err(ab, "failed to send dbs mode: %d\n", ret);
805 ret = ath12k_dp_tx_htt_h2t_ver_req_msg(ab);
806 if (ret) {
808 ret);
812 ret = ath12k_acpi_start(ab);
813 if (ret)
815 ath12k_dbg(ab, ATH12K_DBG_BOOT, "acpi failed: %d\n", ret);
827 return ret;
833 int ret;
838 ret = ath12k_qmi_firmware_start(ab, mode);
839 if (ret) {
840 ath12k_err(ab, "failed to send firmware start: %d\n", ret);
841 return ret;
844 return ret;
849 int ret;
851 ret = ath12k_core_start_firmware(ab, ATH12K_FIRMWARE_MODE_NORMAL);
852 if (ret) {
853 ath12k_err(ab, "failed to start firmware: %d\n", ret);
854 return ret;
857 ret = ath12k_ce_init_pipes(ab);
858 if (ret) {
859 ath12k_err(ab, "failed to initialize CE: %d\n", ret);
863 ret = ath12k_dp_alloc(ab);
864 if (ret) {
865 ath12k_err(ab, "failed to init DP: %d\n", ret);
870 ret = ath12k_core_start(ab, ATH12K_FIRMWARE_MODE_NORMAL);
871 if (ret) {
872 ath12k_err(ab, "failed to start core: %d\n", ret);
876 ret = ath12k_core_pdev_create(ab);
877 if (ret) {
878 ath12k_err(ab, "failed to create pdev core: %d\n", ret);
883 ret = ath12k_core_rfkill_config(ab);
884 if (ret && ret != -EOPNOTSUPP) {
885 ath12k_err(ab, "failed to config rfkill: %d\n", ret);
904 return ret;
909 int ret;
923 ret = ath12k_hal_srng_init(ab);
924 if (ret)
925 return ret;
929 ret = ath12k_core_qmi_firmware_ready(ab);
930 if (ret)
939 return ret;
1087 int ret;
1089 ret = ath12k_core_reconfigure_on_crash(ab);
1090 if (ret) {
1175 int ret;
1177 ret = ath12k_hw_init(ab);
1178 if (ret) {
1179 ath12k_err(ab, "failed to init hw params: %d\n", ret);
1180 return ret;
1190 int ret;
1192 ret = ath12k_core_soc_create(ab);
1193 if (ret) {
1194 ath12k_err(ab, "failed to create soc core: %d\n", ret);
1195 return ret;