Lines Matching refs:resp

115 	struct qmi_response_type_v01 *resp = rsp;  in qmi_send_wait()  local
135 } else if (resp->result != QMI_RESULT_SUCCESS_V01) { in qmi_send_wait()
138 resp->error); in qmi_send_wait()
139 ret = -resp->result; in qmi_send_wait()
153 struct wlfw_ind_register_resp_msg_v01 *resp; in cnss_wlfw_ind_register_send_sync() local
164 resp = kzalloc(sizeof(*resp), GFP_KERNEL); in cnss_wlfw_ind_register_send_sync()
165 if (!resp) { in cnss_wlfw_ind_register_send_sync()
197 wlfw_ind_register_resp_msg_v01_ei, resp); in cnss_wlfw_ind_register_send_sync()
222 if (resp->resp.result != QMI_RESULT_SUCCESS_V01) { in cnss_wlfw_ind_register_send_sync()
224 resp->resp.result, resp->resp.error); in cnss_wlfw_ind_register_send_sync()
225 ret = -resp->resp.result; in cnss_wlfw_ind_register_send_sync()
229 if (resp->fw_status_valid) { in cnss_wlfw_ind_register_send_sync()
230 if (resp->fw_status & QMI_WLFW_ALREADY_REGISTERED_V01) { in cnss_wlfw_ind_register_send_sync()
237 kfree(resp); in cnss_wlfw_ind_register_send_sync()
245 kfree(resp); in cnss_wlfw_ind_register_send_sync()
281 struct wlfw_host_cap_resp_msg_v01 *resp; in cnss_wlfw_host_cap_send_sync() local
295 resp = kzalloc(sizeof(*resp), GFP_KERNEL); in cnss_wlfw_host_cap_send_sync()
296 if (!resp) { in cnss_wlfw_host_cap_send_sync()
369 wlfw_host_cap_resp_msg_v01_ei, resp); in cnss_wlfw_host_cap_send_sync()
394 if (resp->resp.result != QMI_RESULT_SUCCESS_V01) { in cnss_wlfw_host_cap_send_sync()
396 resp->resp.result, resp->resp.error); in cnss_wlfw_host_cap_send_sync()
397 ret = -resp->resp.result; in cnss_wlfw_host_cap_send_sync()
402 kfree(resp); in cnss_wlfw_host_cap_send_sync()
408 kfree(resp); in cnss_wlfw_host_cap_send_sync()
415 struct wlfw_respond_mem_resp_msg_v01 *resp; in cnss_wlfw_respond_mem_send_sync() local
427 resp = kzalloc(sizeof(*resp), GFP_KERNEL); in cnss_wlfw_respond_mem_send_sync()
428 if (!resp) { in cnss_wlfw_respond_mem_send_sync()
464 wlfw_respond_mem_resp_msg_v01_ei, resp); in cnss_wlfw_respond_mem_send_sync()
489 if (resp->resp.result != QMI_RESULT_SUCCESS_V01) { in cnss_wlfw_respond_mem_send_sync()
491 resp->resp.result, resp->resp.error); in cnss_wlfw_respond_mem_send_sync()
492 ret = -resp->resp.result; in cnss_wlfw_respond_mem_send_sync()
497 kfree(resp); in cnss_wlfw_respond_mem_send_sync()
503 kfree(resp); in cnss_wlfw_respond_mem_send_sync()
510 struct wlfw_cap_resp_msg_v01 *resp; in cnss_wlfw_tgt_cap_send_sync() local
522 resp = kzalloc(sizeof(*resp), GFP_KERNEL); in cnss_wlfw_tgt_cap_send_sync()
523 if (!resp) { in cnss_wlfw_tgt_cap_send_sync()
529 wlfw_cap_resp_msg_v01_ei, resp); in cnss_wlfw_tgt_cap_send_sync()
554 if (resp->resp.result != QMI_RESULT_SUCCESS_V01) { in cnss_wlfw_tgt_cap_send_sync()
556 resp->resp.result, resp->resp.error); in cnss_wlfw_tgt_cap_send_sync()
557 ret = -resp->resp.result; in cnss_wlfw_tgt_cap_send_sync()
561 if (resp->chip_info_valid) { in cnss_wlfw_tgt_cap_send_sync()
562 plat_priv->chip_info.chip_id = resp->chip_info.chip_id; in cnss_wlfw_tgt_cap_send_sync()
563 plat_priv->chip_info.chip_family = resp->chip_info.chip_family; in cnss_wlfw_tgt_cap_send_sync()
565 if (resp->board_info_valid) in cnss_wlfw_tgt_cap_send_sync()
566 plat_priv->board_info.board_id = resp->board_info.board_id; in cnss_wlfw_tgt_cap_send_sync()
569 if (resp->soc_info_valid) in cnss_wlfw_tgt_cap_send_sync()
570 plat_priv->soc_info.soc_id = resp->soc_info.soc_id; in cnss_wlfw_tgt_cap_send_sync()
571 if (resp->fw_version_info_valid) { in cnss_wlfw_tgt_cap_send_sync()
573 resp->fw_version_info.fw_version; in cnss_wlfw_tgt_cap_send_sync()
574 fw_build_timestamp = resp->fw_version_info.fw_build_timestamp; in cnss_wlfw_tgt_cap_send_sync()
577 resp->fw_version_info.fw_build_timestamp, in cnss_wlfw_tgt_cap_send_sync()
580 if (resp->fw_build_id_valid) { in cnss_wlfw_tgt_cap_send_sync()
581 resp->fw_build_id[QMI_WLFW_MAX_BUILD_ID_LEN] = '\0'; in cnss_wlfw_tgt_cap_send_sync()
582 strlcpy(plat_priv->fw_build_id, resp->fw_build_id, in cnss_wlfw_tgt_cap_send_sync()
586 if (resp->voltage_mv_valid) { in cnss_wlfw_tgt_cap_send_sync()
587 plat_priv->cpr_info.voltage = resp->voltage_mv; in cnss_wlfw_tgt_cap_send_sync()
592 if (resp->time_freq_hz_valid) { in cnss_wlfw_tgt_cap_send_sync()
593 plat_priv->device_freq_hz = resp->time_freq_hz; in cnss_wlfw_tgt_cap_send_sync()
597 if (resp->otp_version_valid) in cnss_wlfw_tgt_cap_send_sync()
598 plat_priv->otp_version = resp->otp_version; in cnss_wlfw_tgt_cap_send_sync()
599 if (resp->dev_mem_info_valid) { in cnss_wlfw_tgt_cap_send_sync()
602 resp->dev_mem_info[i].start; in cnss_wlfw_tgt_cap_send_sync()
604 resp->dev_mem_info[i].size; in cnss_wlfw_tgt_cap_send_sync()
610 if (resp->fw_caps_valid) { in cnss_wlfw_tgt_cap_send_sync()
612 !!(resp->fw_caps & QMI_WLFW_HOST_PCIE_GEN_SWITCH_V01); in cnss_wlfw_tgt_cap_send_sync()
614 !!(resp->fw_caps & QMI_WLFW_AUX_UC_SUPPORT_V01); in cnss_wlfw_tgt_cap_send_sync()
617 plat_priv->fw_caps = resp->fw_caps; in cnss_wlfw_tgt_cap_send_sync()
620 if (resp->hang_data_length_valid && in cnss_wlfw_tgt_cap_send_sync()
621 resp->hang_data_length && in cnss_wlfw_tgt_cap_send_sync()
622 resp->hang_data_length <= WLFW_MAX_HANG_EVENT_DATA_SIZE) in cnss_wlfw_tgt_cap_send_sync()
623 plat_priv->hang_event_data_len = resp->hang_data_length; in cnss_wlfw_tgt_cap_send_sync()
627 if (resp->hang_data_addr_offset_valid) in cnss_wlfw_tgt_cap_send_sync()
628 plat_priv->hang_data_addr_offset = resp->hang_data_addr_offset; in cnss_wlfw_tgt_cap_send_sync()
632 if (resp->hwid_bitmap_valid) in cnss_wlfw_tgt_cap_send_sync()
633 plat_priv->hwid_bitmap = resp->hwid_bitmap; in cnss_wlfw_tgt_cap_send_sync()
635 if (resp->ol_cpr_cfg_valid) in cnss_wlfw_tgt_cap_send_sync()
636 cnss_aop_ol_cpr_cfg_setup(plat_priv, &resp->ol_cpr_cfg); in cnss_wlfw_tgt_cap_send_sync()
654 if (resp->serial_id_valid) { in cnss_wlfw_tgt_cap_send_sync()
655 plat_priv->serial_id = resp->serial_id; in cnss_wlfw_tgt_cap_send_sync()
657 resp->serial_id.serial_id_msb, in cnss_wlfw_tgt_cap_send_sync()
658 resp->serial_id.serial_id_lsb); in cnss_wlfw_tgt_cap_send_sync()
676 kfree(resp); in cnss_wlfw_tgt_cap_send_sync()
682 kfree(resp); in cnss_wlfw_tgt_cap_send_sync()
781 struct wlfw_bdf_download_resp_msg_v01 *resp; in cnss_wlfw_bdf_dnld_send_sync() local
796 resp = kzalloc(sizeof(*resp), GFP_KERNEL); in cnss_wlfw_bdf_dnld_send_sync()
797 if (!resp) { in cnss_wlfw_bdf_dnld_send_sync()
849 wlfw_bdf_download_resp_msg_v01_ei, resp); in cnss_wlfw_bdf_dnld_send_sync()
875 if (resp->resp.result != QMI_RESULT_SUCCESS_V01) { in cnss_wlfw_bdf_dnld_send_sync()
877 cnss_bdf_type_to_str(bdf_type), resp->resp.result, in cnss_wlfw_bdf_dnld_send_sync()
878 resp->resp.error); in cnss_wlfw_bdf_dnld_send_sync()
879 ret = -resp->resp.result; in cnss_wlfw_bdf_dnld_send_sync()
890 if (resp->host_bdf_data_valid) { in cnss_wlfw_bdf_dnld_send_sync()
892 if (!(resp->host_bdf_data & QMI_WLFW_HW_XPA_V01)) in cnss_wlfw_bdf_dnld_send_sync()
896 resp->host_bdf_data & QMI_WLFW_CBC_FILE_DOWNLOAD_V01; in cnss_wlfw_bdf_dnld_send_sync()
898 resp->host_bdf_data & QMI_WLFW_HW_XPA_V01, in cnss_wlfw_bdf_dnld_send_sync()
902 kfree(resp); in cnss_wlfw_bdf_dnld_send_sync()
913 kfree(resp); in cnss_wlfw_bdf_dnld_send_sync()
921 struct wlfw_tme_lite_info_resp_msg_v01 *resp; in cnss_wlfw_tme_patch_dnld_send_sync() local
936 resp = kzalloc(sizeof(*resp), GFP_KERNEL); in cnss_wlfw_tme_patch_dnld_send_sync()
937 if (!resp) { in cnss_wlfw_tme_patch_dnld_send_sync()
956 wlfw_tme_lite_info_resp_msg_v01_ei, resp); in cnss_wlfw_tme_patch_dnld_send_sync()
981 if (resp->resp.result != QMI_RESULT_SUCCESS_V01) { in cnss_wlfw_tme_patch_dnld_send_sync()
983 resp->resp.result, resp->resp.error); in cnss_wlfw_tme_patch_dnld_send_sync()
984 ret = -resp->resp.result; in cnss_wlfw_tme_patch_dnld_send_sync()
989 kfree(resp); in cnss_wlfw_tme_patch_dnld_send_sync()
994 kfree(resp); in cnss_wlfw_tme_patch_dnld_send_sync()
1002 struct wlfw_tme_lite_info_resp_msg_v01 *resp; in cnss_wlfw_tme_opt_file_dnld_send_sync() local
1018 resp = kzalloc(sizeof(*resp), GFP_KERNEL); in cnss_wlfw_tme_opt_file_dnld_send_sync()
1019 if (!resp) { in cnss_wlfw_tme_opt_file_dnld_send_sync()
1050 wlfw_tme_lite_info_resp_msg_v01_ei, resp); in cnss_wlfw_tme_opt_file_dnld_send_sync()
1075 if (resp->resp.result != QMI_RESULT_SUCCESS_V01) { in cnss_wlfw_tme_opt_file_dnld_send_sync()
1076 ret = -resp->resp.result; in cnss_wlfw_tme_opt_file_dnld_send_sync()
1077 if (resp->resp.error == QMI_ERR_HARDWARE_RESTRICTED_V01) { in cnss_wlfw_tme_opt_file_dnld_send_sync()
1080 } else if (resp->resp.error == QMI_ERR_ENOMEM_V01) { in cnss_wlfw_tme_opt_file_dnld_send_sync()
1085 resp->resp.result, resp->resp.error); in cnss_wlfw_tme_opt_file_dnld_send_sync()
1090 kfree(resp); in cnss_wlfw_tme_opt_file_dnld_send_sync()
1096 kfree(resp); in cnss_wlfw_tme_opt_file_dnld_send_sync()
1103 struct wlfw_m3_info_resp_msg_v01 *resp; in cnss_wlfw_m3_dnld_send_sync() local
1115 resp = kzalloc(sizeof(*resp), GFP_KERNEL); in cnss_wlfw_m3_dnld_send_sync()
1116 if (!resp) { in cnss_wlfw_m3_dnld_send_sync()
1134 wlfw_m3_info_resp_msg_v01_ei, resp); in cnss_wlfw_m3_dnld_send_sync()
1159 if (resp->resp.result != QMI_RESULT_SUCCESS_V01) { in cnss_wlfw_m3_dnld_send_sync()
1161 resp->resp.result, resp->resp.error); in cnss_wlfw_m3_dnld_send_sync()
1162 ret = -resp->resp.result; in cnss_wlfw_m3_dnld_send_sync()
1167 kfree(resp); in cnss_wlfw_m3_dnld_send_sync()
1173 kfree(resp); in cnss_wlfw_m3_dnld_send_sync()
1180 struct wlfw_aux_uc_info_resp_msg_v01 *resp; in cnss_wlfw_aux_dnld_send_sync() local
1192 resp = kzalloc(sizeof(*resp), GFP_KERNEL); in cnss_wlfw_aux_dnld_send_sync()
1193 if (!resp) { in cnss_wlfw_aux_dnld_send_sync()
1211 wlfw_aux_uc_info_resp_msg_v01_ei, resp); in cnss_wlfw_aux_dnld_send_sync()
1236 if (resp->resp.result != QMI_RESULT_SUCCESS_V01) { in cnss_wlfw_aux_dnld_send_sync()
1238 resp->resp.result, resp->resp.error); in cnss_wlfw_aux_dnld_send_sync()
1239 ret = -resp->resp.result; in cnss_wlfw_aux_dnld_send_sync()
1244 kfree(resp); in cnss_wlfw_aux_dnld_send_sync()
1250 kfree(resp); in cnss_wlfw_aux_dnld_send_sync()
1258 struct wlfw_mac_addr_resp_msg_v01 resp = {0}; in cnss_wlfw_wlan_mac_req_send_sync() local
1266 wlfw_mac_addr_resp_msg_v01_ei, &resp); in cnss_wlfw_wlan_mac_req_send_sync()
1298 if (resp.resp.result != QMI_RESULT_SUCCESS_V01) { in cnss_wlfw_wlan_mac_req_send_sync()
1300 resp.resp.result); in cnss_wlfw_wlan_mac_req_send_sync()
1301 ret = -resp.resp.result; in cnss_wlfw_wlan_mac_req_send_sync()
1312 struct wlfw_qdss_trace_data_resp_msg_v01 *resp; in cnss_wlfw_qdss_data_send_sync() local
1323 resp = kzalloc(sizeof(*resp), GFP_KERNEL); in cnss_wlfw_qdss_data_send_sync()
1324 if (!resp) { in cnss_wlfw_qdss_data_send_sync()
1337 while (remaining && resp->end == 0) { in cnss_wlfw_qdss_data_send_sync()
1339 wlfw_qdss_trace_data_resp_msg_v01_ei, resp); in cnss_wlfw_qdss_data_send_sync()
1366 } else if (resp->resp.result != QMI_RESULT_SUCCESS_V01) { in cnss_wlfw_qdss_data_send_sync()
1368 resp->resp.result, resp->resp.error); in cnss_wlfw_qdss_data_send_sync()
1369 ret = -resp->resp.result; in cnss_wlfw_qdss_data_send_sync()
1376 __func__, resp->total_size, resp->data_len); in cnss_wlfw_qdss_data_send_sync()
1378 if ((resp->total_size_valid == 1 && in cnss_wlfw_qdss_data_send_sync()
1379 resp->total_size == total_size) && in cnss_wlfw_qdss_data_send_sync()
1380 (resp->seg_id_valid == 1 && resp->seg_id == req->seg_id) && in cnss_wlfw_qdss_data_send_sync()
1381 (resp->data_valid == 1 && in cnss_wlfw_qdss_data_send_sync()
1382 resp->data_len <= QMI_WLFW_MAX_DATA_SIZE_V01) && in cnss_wlfw_qdss_data_send_sync()
1383 resp->data_len <= remaining) { in cnss_wlfw_qdss_data_send_sync()
1385 resp->data, resp->data_len); in cnss_wlfw_qdss_data_send_sync()
1390 resp->total_size_valid, in cnss_wlfw_qdss_data_send_sync()
1391 resp->total_size, in cnss_wlfw_qdss_data_send_sync()
1392 resp->seg_id_valid, in cnss_wlfw_qdss_data_send_sync()
1393 resp->seg_id, in cnss_wlfw_qdss_data_send_sync()
1394 resp->data_valid, in cnss_wlfw_qdss_data_send_sync()
1395 resp->data_len); in cnss_wlfw_qdss_data_send_sync()
1400 remaining -= resp->data_len; in cnss_wlfw_qdss_data_send_sync()
1401 p_qdss_trace_data_temp += resp->data_len; in cnss_wlfw_qdss_data_send_sync()
1405 if (remaining == 0 && (resp->end_valid && resp->end)) { in cnss_wlfw_qdss_data_send_sync()
1418 remaining, resp->end_valid, resp->end); in cnss_wlfw_qdss_data_send_sync()
1428 kfree(resp); in cnss_wlfw_qdss_data_send_sync()
1455 struct wlfw_qdss_trace_config_download_resp_msg_v01 *resp; in cnss_wlfw_qdss_dnld_send_sync() local
1470 resp = kzalloc(sizeof(*resp), GFP_KERNEL); in cnss_wlfw_qdss_dnld_send_sync()
1471 if (!resp) { in cnss_wlfw_qdss_dnld_send_sync()
1525 resp); in cnss_wlfw_qdss_dnld_send_sync()
1551 if (resp->resp.result != QMI_RESULT_SUCCESS_V01) { in cnss_wlfw_qdss_dnld_send_sync()
1553 resp->resp.result, resp->resp.error); in cnss_wlfw_qdss_dnld_send_sync()
1554 ret = -resp->resp.result; in cnss_wlfw_qdss_dnld_send_sync()
1565 kfree(resp); in cnss_wlfw_qdss_dnld_send_sync()
1573 kfree(resp); in cnss_wlfw_qdss_dnld_send_sync()
1585 struct wlfw_qdss_trace_mode_resp_msg_v01 *resp; in wlfw_send_qdss_trace_mode_req() local
1595 resp = kzalloc(sizeof(*resp), GFP_KERNEL); in wlfw_send_qdss_trace_mode_req()
1596 if (!resp) { in wlfw_send_qdss_trace_mode_req()
1617 wlfw_qdss_trace_mode_resp_msg_v01_ei, resp); in wlfw_send_qdss_trace_mode_req()
1639 } else if (resp->resp.result != QMI_RESULT_SUCCESS_V01) { in wlfw_send_qdss_trace_mode_req()
1641 resp->resp.result, resp->resp.error); in wlfw_send_qdss_trace_mode_req()
1642 rc = -resp->resp.result; in wlfw_send_qdss_trace_mode_req()
1646 kfree(resp); in wlfw_send_qdss_trace_mode_req()
1650 kfree(resp); in wlfw_send_qdss_trace_mode_req()
1672 struct wlfw_wlan_mode_resp_msg_v01 *resp; in cnss_wlfw_wlan_mode_send_sync() local
1692 resp = kzalloc(sizeof(*resp), GFP_KERNEL); in cnss_wlfw_wlan_mode_send_sync()
1693 if (!resp) { in cnss_wlfw_wlan_mode_send_sync()
1703 wlfw_wlan_mode_resp_msg_v01_ei, resp); in cnss_wlfw_wlan_mode_send_sync()
1728 if (resp->resp.result != QMI_RESULT_SUCCESS_V01) { in cnss_wlfw_wlan_mode_send_sync()
1730 cnss_qmi_mode_to_str(mode), mode, resp->resp.result, in cnss_wlfw_wlan_mode_send_sync()
1731 resp->resp.error); in cnss_wlfw_wlan_mode_send_sync()
1732 ret = -resp->resp.result; in cnss_wlfw_wlan_mode_send_sync()
1737 kfree(resp); in cnss_wlfw_wlan_mode_send_sync()
1748 kfree(resp); in cnss_wlfw_wlan_mode_send_sync()
1757 struct wlfw_wlan_cfg_resp_msg_v01 *resp; in cnss_wlfw_wlan_cfg_send_sync() local
1772 resp = kzalloc(sizeof(*resp), GFP_KERNEL); in cnss_wlfw_wlan_cfg_send_sync()
1773 if (!resp) { in cnss_wlfw_wlan_cfg_send_sync()
1881 wlfw_wlan_cfg_resp_msg_v01_ei, resp); in cnss_wlfw_wlan_cfg_send_sync()
1906 if (resp->resp.result != QMI_RESULT_SUCCESS_V01) { in cnss_wlfw_wlan_cfg_send_sync()
1908 resp->resp.result, resp->resp.error); in cnss_wlfw_wlan_cfg_send_sync()
1909 ret = -resp->resp.result; in cnss_wlfw_wlan_cfg_send_sync()
1914 kfree(resp); in cnss_wlfw_wlan_cfg_send_sync()
1920 kfree(resp); in cnss_wlfw_wlan_cfg_send_sync()
1929 struct wlfw_athdiag_read_resp_msg_v01 *resp; in cnss_wlfw_athdiag_read_send_sync() local
1949 resp = kzalloc(sizeof(*resp), GFP_KERNEL); in cnss_wlfw_athdiag_read_send_sync()
1950 if (!resp) { in cnss_wlfw_athdiag_read_send_sync()
1960 wlfw_athdiag_read_resp_msg_v01_ei, resp); in cnss_wlfw_athdiag_read_send_sync()
1985 if (resp->resp.result != QMI_RESULT_SUCCESS_V01) { in cnss_wlfw_athdiag_read_send_sync()
1987 resp->resp.result, resp->resp.error); in cnss_wlfw_athdiag_read_send_sync()
1988 ret = -resp->resp.result; in cnss_wlfw_athdiag_read_send_sync()
1992 if (!resp->data_valid || resp->data_len != data_len) { in cnss_wlfw_athdiag_read_send_sync()
1994 resp->data_valid, resp->data_len); in cnss_wlfw_athdiag_read_send_sync()
1999 memcpy(data, resp->data, resp->data_len); in cnss_wlfw_athdiag_read_send_sync()
2002 kfree(resp); in cnss_wlfw_athdiag_read_send_sync()
2007 kfree(resp); in cnss_wlfw_athdiag_read_send_sync()
2016 struct wlfw_athdiag_write_resp_msg_v01 *resp; in cnss_wlfw_athdiag_write_send_sync() local
2036 resp = kzalloc(sizeof(*resp), GFP_KERNEL); in cnss_wlfw_athdiag_write_send_sync()
2037 if (!resp) { in cnss_wlfw_athdiag_write_send_sync()
2048 wlfw_athdiag_write_resp_msg_v01_ei, resp); in cnss_wlfw_athdiag_write_send_sync()
2073 if (resp->resp.result != QMI_RESULT_SUCCESS_V01) { in cnss_wlfw_athdiag_write_send_sync()
2075 resp->resp.result, resp->resp.error); in cnss_wlfw_athdiag_write_send_sync()
2076 ret = -resp->resp.result; in cnss_wlfw_athdiag_write_send_sync()
2081 kfree(resp); in cnss_wlfw_athdiag_write_send_sync()
2086 kfree(resp); in cnss_wlfw_athdiag_write_send_sync()
2094 struct wlfw_ini_resp_msg_v01 *resp; in cnss_wlfw_ini_send_sync() local
2108 resp = kzalloc(sizeof(*resp), GFP_KERNEL); in cnss_wlfw_ini_send_sync()
2109 if (!resp) { in cnss_wlfw_ini_send_sync()
2118 wlfw_ini_resp_msg_v01_ei, resp); in cnss_wlfw_ini_send_sync()
2143 if (resp->resp.result != QMI_RESULT_SUCCESS_V01) { in cnss_wlfw_ini_send_sync()
2145 fw_log_mode, resp->resp.result, resp->resp.error); in cnss_wlfw_ini_send_sync()
2146 ret = -resp->resp.result; in cnss_wlfw_ini_send_sync()
2151 kfree(resp); in cnss_wlfw_ini_send_sync()
2156 kfree(resp); in cnss_wlfw_ini_send_sync()
2163 struct wlfw_pcie_gen_switch_resp_msg_v01 resp = {0}; in cnss_wlfw_send_pcie_gen_speed_sync() local
2182 wlfw_pcie_gen_switch_resp_msg_v01_ei, &resp); in cnss_wlfw_send_pcie_gen_speed_sync()
2206 if (resp.resp.result != QMI_RESULT_SUCCESS_V01) { in cnss_wlfw_send_pcie_gen_speed_sync()
2208 plat_priv->pcie_gen_speed, resp.resp.result, in cnss_wlfw_send_pcie_gen_speed_sync()
2209 resp.resp.error); in cnss_wlfw_send_pcie_gen_speed_sync()
2210 ret = -resp.resp.result; in cnss_wlfw_send_pcie_gen_speed_sync()
2221 struct wlfw_antenna_switch_resp_msg_v01 *resp; in cnss_wlfw_antenna_switch_send_sync() local
2235 resp = kzalloc(sizeof(*resp), GFP_KERNEL); in cnss_wlfw_antenna_switch_send_sync()
2236 if (!resp) { in cnss_wlfw_antenna_switch_send_sync()
2242 wlfw_antenna_switch_resp_msg_v01_ei, resp); in cnss_wlfw_antenna_switch_send_sync()
2267 if (resp->resp.result != QMI_RESULT_SUCCESS_V01) { in cnss_wlfw_antenna_switch_send_sync()
2269 resp->resp.result, resp->resp.error); in cnss_wlfw_antenna_switch_send_sync()
2270 ret = -resp->resp.result; in cnss_wlfw_antenna_switch_send_sync()
2274 if (resp->antenna_valid) in cnss_wlfw_antenna_switch_send_sync()
2275 plat_priv->antenna = resp->antenna; in cnss_wlfw_antenna_switch_send_sync()
2278 resp->antenna_valid, resp->antenna); in cnss_wlfw_antenna_switch_send_sync()
2281 kfree(resp); in cnss_wlfw_antenna_switch_send_sync()
2286 kfree(resp); in cnss_wlfw_antenna_switch_send_sync()
2293 struct wlfw_antenna_grant_resp_msg_v01 *resp; in cnss_wlfw_antenna_grant_send_sync() local
2307 resp = kzalloc(sizeof(*resp), GFP_KERNEL); in cnss_wlfw_antenna_grant_send_sync()
2308 if (!resp) { in cnss_wlfw_antenna_grant_send_sync()
2317 wlfw_antenna_grant_resp_msg_v01_ei, resp); in cnss_wlfw_antenna_grant_send_sync()
2342 if (resp->resp.result != QMI_RESULT_SUCCESS_V01) { in cnss_wlfw_antenna_grant_send_sync()
2344 resp->resp.result, resp->resp.error); in cnss_wlfw_antenna_grant_send_sync()
2345 ret = -resp->resp.result; in cnss_wlfw_antenna_grant_send_sync()
2350 kfree(resp); in cnss_wlfw_antenna_grant_send_sync()
2355 kfree(resp); in cnss_wlfw_antenna_grant_send_sync()
2362 struct wlfw_qdss_trace_mem_info_resp_msg_v01 *resp; in cnss_wlfw_qdss_trace_mem_info_send_sync() local
2375 resp = kzalloc(sizeof(*resp), GFP_KERNEL); in cnss_wlfw_qdss_trace_mem_info_send_sync()
2376 if (!resp) { in cnss_wlfw_qdss_trace_mem_info_send_sync()
2399 wlfw_qdss_trace_mem_info_resp_msg_v01_ei, resp); in cnss_wlfw_qdss_trace_mem_info_send_sync()
2424 if (resp->resp.result != QMI_RESULT_SUCCESS_V01) { in cnss_wlfw_qdss_trace_mem_info_send_sync()
2426 resp->resp.result, resp->resp.error); in cnss_wlfw_qdss_trace_mem_info_send_sync()
2427 ret = -resp->resp.result; in cnss_wlfw_qdss_trace_mem_info_send_sync()
2432 kfree(resp); in cnss_wlfw_qdss_trace_mem_info_send_sync()
2437 kfree(resp); in cnss_wlfw_qdss_trace_mem_info_send_sync()
2445 struct wlfw_wfc_call_status_resp_msg_v01 *resp; in cnss_wlfw_send_host_wfc_call_status() local
2457 resp = kzalloc(sizeof(*resp), GFP_KERNEL); in cnss_wlfw_send_host_wfc_call_status()
2458 if (!resp) { in cnss_wlfw_send_host_wfc_call_status()
2470 wlfw_wfc_call_status_resp_msg_v01_ei, resp); in cnss_wlfw_send_host_wfc_call_status()
2496 if (resp->resp.result != QMI_RESULT_SUCCESS_V01) { in cnss_wlfw_send_host_wfc_call_status()
2498 resp->resp.result, resp->resp.error); in cnss_wlfw_send_host_wfc_call_status()
2505 kfree(resp); in cnss_wlfw_send_host_wfc_call_status()
2514 struct wlfw_wfc_call_status_resp_msg_v01 *resp; in cnss_wlfw_wfc_call_status_send_sync() local
2526 resp = kzalloc(sizeof(*resp), GFP_KERNEL); in cnss_wlfw_wfc_call_status_send_sync()
2527 if (!resp) { in cnss_wlfw_wfc_call_status_send_sync()
2561 wlfw_wfc_call_status_resp_msg_v01_ei, resp); in cnss_wlfw_wfc_call_status_send_sync()
2586 if (resp->resp.result != QMI_RESULT_SUCCESS_V01) { in cnss_wlfw_wfc_call_status_send_sync()
2588 resp->resp.result, resp->resp.error); in cnss_wlfw_wfc_call_status_send_sync()
2589 ret = -resp->resp.result; in cnss_wlfw_wfc_call_status_send_sync()
2595 kfree(resp); in cnss_wlfw_wfc_call_status_send_sync()
2602 struct wlfw_dynamic_feature_mask_resp_msg_v01 *resp; in cnss_wlfw_dynamic_feature_mask_send_sync() local
2614 resp = kzalloc(sizeof(*resp), GFP_KERNEL); in cnss_wlfw_dynamic_feature_mask_send_sync()
2615 if (!resp) { in cnss_wlfw_dynamic_feature_mask_send_sync()
2624 wlfw_dynamic_feature_mask_resp_msg_v01_ei, resp); in cnss_wlfw_dynamic_feature_mask_send_sync()
2650 if (resp->resp.result != QMI_RESULT_SUCCESS_V01) { in cnss_wlfw_dynamic_feature_mask_send_sync()
2652 resp->resp.result, resp->resp.error); in cnss_wlfw_dynamic_feature_mask_send_sync()
2653 ret = -resp->resp.result; in cnss_wlfw_dynamic_feature_mask_send_sync()
2659 kfree(resp); in cnss_wlfw_dynamic_feature_mask_send_sync()
2667 struct wlfw_get_info_resp_msg_v01 *resp; in cnss_wlfw_get_info_send_sync() local
2681 resp = kzalloc(sizeof(*resp), GFP_KERNEL); in cnss_wlfw_get_info_send_sync()
2682 if (!resp) { in cnss_wlfw_get_info_send_sync()
2692 wlfw_get_info_resp_msg_v01_ei, resp); in cnss_wlfw_get_info_send_sync()
2717 if (resp->resp.result != QMI_RESULT_SUCCESS_V01) { in cnss_wlfw_get_info_send_sync()
2719 resp->resp.result, resp->resp.error); in cnss_wlfw_get_info_send_sync()
2720 ret = -resp->resp.result; in cnss_wlfw_get_info_send_sync()
2725 kfree(resp); in cnss_wlfw_get_info_send_sync()
2730 kfree(resp); in cnss_wlfw_get_info_send_sync()
2881 struct wlfw_cal_report_resp_msg_v01 resp = {0}; in cnss_wlfw_cal_report_req_send_sync() local
2891 wlfw_cal_report_resp_msg_v01_ei, &resp); in cnss_wlfw_cal_report_req_send_sync()
2913 if (resp.resp.result != QMI_RESULT_SUCCESS_V01) { in cnss_wlfw_cal_report_req_send_sync()
2915 resp.resp.result, resp.resp.error); in cnss_wlfw_cal_report_req_send_sync()
2916 ret = -resp.resp.result; in cnss_wlfw_cal_report_req_send_sync()
3145 struct ims_private_service_wfc_call_twt_config_rsp_msg_v01 *resp; in cnss_ims_wfc_call_twt_cfg_send_sync() local
3158 resp = kzalloc(sizeof(*resp), GFP_KERNEL); in cnss_ims_wfc_call_twt_cfg_send_sync()
3159 if (!resp) { in cnss_ims_wfc_call_twt_cfg_send_sync()
3184 resp); in cnss_ims_wfc_call_twt_cfg_send_sync()
3208 if (resp->resp.result != QMI_RESULT_SUCCESS_V01) { in cnss_ims_wfc_call_twt_cfg_send_sync()
3210 resp->resp.result, resp->resp.error); in cnss_ims_wfc_call_twt_cfg_send_sync()
3211 ret = -resp->resp.result; in cnss_ims_wfc_call_twt_cfg_send_sync()
3217 kfree(resp); in cnss_ims_wfc_call_twt_cfg_send_sync()
3560 struct dms_get_mac_address_resp_msg_v01 resp; in cnss_qmi_get_dms_mac() local
3570 memset(&resp, 0, sizeof(resp)); in cnss_qmi_get_dms_mac()
3572 dms_get_mac_address_resp_msg_v01_ei, &resp); in cnss_qmi_get_dms_mac()
3596 if (resp.resp.result != QMI_RESULT_SUCCESS_V01) { in cnss_qmi_get_dms_mac()
3598 resp.resp.result, resp.resp.error); in cnss_qmi_get_dms_mac()
3599 ret = -resp.resp.result; in cnss_qmi_get_dms_mac()
3602 if (!resp.mac_address_valid || in cnss_qmi_get_dms_mac()
3603 resp.mac_address_len != QMI_WLFW_MAC_ADDR_SIZE_V01) { in cnss_qmi_get_dms_mac()
3609 memcpy(plat_priv->dms.mac, resp.mac_address, QMI_WLFW_MAC_ADDR_SIZE_V01); in cnss_qmi_get_dms_mac()
3732 struct coex_antenna_switch_to_wlan_resp_msg_v01 *resp; in coex_antenna_switch_to_wlan_send_sync_msg() local
3744 resp = kzalloc(sizeof(*resp), GFP_KERNEL); in coex_antenna_switch_to_wlan_send_sync_msg()
3745 if (!resp) { in coex_antenna_switch_to_wlan_send_sync_msg()
3753 coex_antenna_switch_to_wlan_resp_msg_v01_ei, resp); in coex_antenna_switch_to_wlan_send_sync_msg()
3777 } else if (resp->resp.result != QMI_RESULT_SUCCESS_V01) { in coex_antenna_switch_to_wlan_send_sync_msg()
3779 resp->resp.result, resp->resp.error); in coex_antenna_switch_to_wlan_send_sync_msg()
3780 ret = -resp->resp.result; in coex_antenna_switch_to_wlan_send_sync_msg()
3784 if (resp->grant_valid) in coex_antenna_switch_to_wlan_send_sync_msg()
3785 plat_priv->grant = resp->grant; in coex_antenna_switch_to_wlan_send_sync_msg()
3787 cnss_pr_dbg("Coex antenna grant: 0x%llx\n", resp->grant); in coex_antenna_switch_to_wlan_send_sync_msg()
3789 kfree(resp); in coex_antenna_switch_to_wlan_send_sync_msg()
3794 kfree(resp); in coex_antenna_switch_to_wlan_send_sync_msg()
3803 struct coex_antenna_switch_to_mdm_resp_msg_v01 *resp; in coex_antenna_switch_to_mdm_send_sync_msg() local
3815 resp = kzalloc(sizeof(*resp), GFP_KERNEL); in coex_antenna_switch_to_mdm_send_sync_msg()
3816 if (!resp) { in coex_antenna_switch_to_mdm_send_sync_msg()
3824 coex_antenna_switch_to_mdm_resp_msg_v01_ei, resp); in coex_antenna_switch_to_mdm_send_sync_msg()
3848 } else if (resp->resp.result != QMI_RESULT_SUCCESS_V01) { in coex_antenna_switch_to_mdm_send_sync_msg()
3850 resp->resp.result, resp->resp.error); in coex_antenna_switch_to_mdm_send_sync_msg()
3851 ret = -resp->resp.result; in coex_antenna_switch_to_mdm_send_sync_msg()
3855 kfree(resp); in coex_antenna_switch_to_mdm_send_sync_msg()
3860 kfree(resp); in coex_antenna_switch_to_mdm_send_sync_msg()
3869 struct wlfw_subsys_restart_level_resp_msg_v01 resp; in cnss_send_subsys_restart_level_msg() local
3886 ret = qmi_send_wait(&plat_priv->qmi_wlfw, &req, &resp, in cnss_send_subsys_restart_level_msg()
4012 struct ims_private_service_subscribe_for_indications_rsp_msg_v01 *resp = in ims_subscribe_for_indication_resp_cb() local
4022 if (resp->resp.result != QMI_RESULT_SUCCESS_V01) { in ims_subscribe_for_indication_resp_cb()
4024 resp->resp.result, resp->resp.error); in ims_subscribe_for_indication_resp_cb()
4025 txn->result = -resp->resp.result; in ims_subscribe_for_indication_resp_cb()