Lines Matching refs:resp

89 	struct wlfw_msa_info_resp_msg_v01 *resp;  in wlfw_msa_mem_info_send_sync_msg()  local
102 resp = kzalloc(sizeof(*resp), GFP_KERNEL); in wlfw_msa_mem_info_send_sync_msg()
103 if (!resp) { in wlfw_msa_mem_info_send_sync_msg()
114 wlfw_msa_info_resp_msg_v01_ei, resp); in wlfw_msa_mem_info_send_sync_msg()
137 } else if (resp->resp.result != QMI_RESULT_SUCCESS_V01) { in wlfw_msa_mem_info_send_sync_msg()
140 resp->resp.result, resp->resp.error); in wlfw_msa_mem_info_send_sync_msg()
141 ret = -resp->resp.result; in wlfw_msa_mem_info_send_sync_msg()
146 resp->mem_region_info_len); in wlfw_msa_mem_info_send_sync_msg()
148 if (resp->mem_region_info_len > QMI_WLFW_MAX_NUM_MEMORY_REGIONS_V01) { in wlfw_msa_mem_info_send_sync_msg()
151 resp->mem_region_info_len); in wlfw_msa_mem_info_send_sync_msg()
158 priv->nr_mem_region = resp->mem_region_info_len; in wlfw_msa_mem_info_send_sync_msg()
159 for (i = 0; i < resp->mem_region_info_len; i++) { in wlfw_msa_mem_info_send_sync_msg()
161 if (resp->mem_region_info[i].size > priv->msa_mem_size || in wlfw_msa_mem_info_send_sync_msg()
162 resp->mem_region_info[i].region_addr >= max_mapped_addr || in wlfw_msa_mem_info_send_sync_msg()
163 resp->mem_region_info[i].region_addr < priv->msa_pa || in wlfw_msa_mem_info_send_sync_msg()
164 resp->mem_region_info[i].size + in wlfw_msa_mem_info_send_sync_msg()
165 resp->mem_region_info[i].region_addr > max_mapped_addr) { in wlfw_msa_mem_info_send_sync_msg()
167 resp->mem_region_info[i].region_addr, in wlfw_msa_mem_info_send_sync_msg()
168 resp->mem_region_info[i].size); in wlfw_msa_mem_info_send_sync_msg()
174 resp->mem_region_info[i].region_addr; in wlfw_msa_mem_info_send_sync_msg()
176 resp->mem_region_info[i].size; in wlfw_msa_mem_info_send_sync_msg()
178 resp->mem_region_info[i].secure_flag; in wlfw_msa_mem_info_send_sync_msg()
185 kfree(resp); in wlfw_msa_mem_info_send_sync_msg()
192 kfree(resp); in wlfw_msa_mem_info_send_sync_msg()
202 struct wlfw_msa_ready_resp_msg_v01 *resp; in wlfw_msa_ready_send_sync_msg() local
215 resp = kzalloc(sizeof(*resp), GFP_KERNEL); in wlfw_msa_ready_send_sync_msg()
216 if (!resp) { in wlfw_msa_ready_send_sync_msg()
224 wlfw_msa_ready_resp_msg_v01_ei, resp); in wlfw_msa_ready_send_sync_msg()
248 } else if (resp->resp.result != QMI_RESULT_SUCCESS_V01) { in wlfw_msa_ready_send_sync_msg()
251 resp->resp.result, resp->resp.error); in wlfw_msa_ready_send_sync_msg()
252 ret = -resp->resp.result; in wlfw_msa_ready_send_sync_msg()
258 kfree(resp); in wlfw_msa_ready_send_sync_msg()
263 kfree(resp); in wlfw_msa_ready_send_sync_msg()
273 struct wlfw_device_info_resp_msg_v01 *resp; in wlfw_device_info_send_msg() local
286 resp = kzalloc(sizeof(*resp), GFP_KERNEL); in wlfw_device_info_send_msg()
287 if (!resp) { in wlfw_device_info_send_msg()
295 wlfw_device_info_resp_msg_v01_ei, resp); in wlfw_device_info_send_msg()
319 } else if (resp->resp.result != QMI_RESULT_SUCCESS_V01) { in wlfw_device_info_send_msg()
322 resp->resp.result, resp->resp.error); in wlfw_device_info_send_msg()
323 ret = -resp->resp.result; in wlfw_device_info_send_msg()
329 if (resp->bar_addr_valid) in wlfw_device_info_send_msg()
330 priv->mem_base_pa = resp->bar_addr; in wlfw_device_info_send_msg()
332 if (resp->bar_size_valid) in wlfw_device_info_send_msg()
333 priv->mem_base_size = resp->bar_size; in wlfw_device_info_send_msg()
348 if (resp->mhi_state_info_addr_valid) in wlfw_device_info_send_msg()
349 priv->mhi_state_info_pa = resp->mhi_state_info_addr; in wlfw_device_info_send_msg()
351 if (resp->mhi_state_info_size_valid) in wlfw_device_info_send_msg()
352 priv->mhi_state_info_size = resp->mhi_state_info_size; in wlfw_device_info_send_msg()
357 kfree(resp); in wlfw_device_info_send_msg()
362 kfree(resp); in wlfw_device_info_send_msg()
444 struct wlfw_soc_wake_resp_msg_v01 *resp; in wlfw_send_soc_wake_msg() local
460 resp = kzalloc(sizeof(*resp), GFP_KERNEL); in wlfw_send_soc_wake_msg()
461 if (!resp) { in wlfw_send_soc_wake_msg()
471 wlfw_soc_wake_resp_msg_v01_ei, resp); in wlfw_send_soc_wake_msg()
494 } else if (resp->resp.result != QMI_RESULT_SUCCESS_V01) { in wlfw_send_soc_wake_msg()
497 resp->resp.result, resp->resp.error); in wlfw_send_soc_wake_msg()
498 ret = -resp->resp.result; in wlfw_send_soc_wake_msg()
504 kfree(resp); in wlfw_send_soc_wake_msg()
510 kfree(resp); in wlfw_send_soc_wake_msg()
519 struct wlfw_ind_register_resp_msg_v01 *resp; in wlfw_ind_register_send_sync_msg() local
532 resp = kzalloc(sizeof(*resp), GFP_KERNEL); in wlfw_ind_register_send_sync_msg()
533 if (!resp) { in wlfw_ind_register_send_sync_msg()
574 wlfw_ind_register_resp_msg_v01_ei, resp); in wlfw_ind_register_send_sync_msg()
598 } else if (resp->resp.result != QMI_RESULT_SUCCESS_V01) { in wlfw_ind_register_send_sync_msg()
601 resp->resp.result, resp->resp.error); in wlfw_ind_register_send_sync_msg()
602 ret = -resp->resp.result; in wlfw_ind_register_send_sync_msg()
608 if (resp->fw_status_valid && in wlfw_ind_register_send_sync_msg()
609 (resp->fw_status & QMI_WLFW_ALREADY_REGISTERED_V01)) { in wlfw_ind_register_send_sync_msg()
615 kfree(resp); in wlfw_ind_register_send_sync_msg()
623 kfree(resp); in wlfw_ind_register_send_sync_msg()
632 struct wlfw_cal_report_resp_msg_v01 *resp; in wlfw_cal_report_req() local
648 resp = kzalloc(sizeof(*resp), GFP_KERNEL); in wlfw_cal_report_req()
649 if (!resp) { in wlfw_cal_report_req()
656 wlfw_cal_report_resp_msg_v01_ei, resp); in wlfw_cal_report_req()
680 } else if (resp->resp.result != QMI_RESULT_SUCCESS_V01) { in wlfw_cal_report_req()
682 resp->resp.result, resp->resp.error); in wlfw_cal_report_req()
683 ret = -resp->resp.result; in wlfw_cal_report_req()
687 kfree(resp); in wlfw_cal_report_req()
700 struct wlfw_cap_resp_msg_v01 *resp; in wlfw_cap_send_sync_msg() local
713 resp = kzalloc(sizeof(*resp), GFP_KERNEL); in wlfw_cap_send_sync_msg()
714 if (!resp) { in wlfw_cap_send_sync_msg()
721 ret = qmi_txn_init(&priv->qmi, &txn, wlfw_cap_resp_msg_v01_ei, resp); in wlfw_cap_send_sync_msg()
745 } else if (resp->resp.result != QMI_RESULT_SUCCESS_V01) { in wlfw_cap_send_sync_msg()
746 ret = -resp->resp.result; in wlfw_cap_send_sync_msg()
747 if (resp->resp.error == QMI_ERR_PLAT_CCPM_CLK_INIT_FAILED) { in wlfw_cap_send_sync_msg()
753 resp->resp.result, resp->resp.error); in wlfw_cap_send_sync_msg()
759 if (resp->chip_info_valid) { in wlfw_cap_send_sync_msg()
760 priv->chip_info.chip_id = resp->chip_info.chip_id; in wlfw_cap_send_sync_msg()
761 priv->chip_info.chip_family = resp->chip_info.chip_family; in wlfw_cap_send_sync_msg()
763 if (resp->board_info_valid) in wlfw_cap_send_sync_msg()
764 priv->board_id = resp->board_info.board_id; in wlfw_cap_send_sync_msg()
767 if (resp->soc_info_valid) in wlfw_cap_send_sync_msg()
768 priv->soc_id = resp->soc_info.soc_id; in wlfw_cap_send_sync_msg()
769 if (resp->fw_version_info_valid) { in wlfw_cap_send_sync_msg()
771 resp->fw_version_info.fw_version; in wlfw_cap_send_sync_msg()
773 resp->fw_version_info.fw_build_timestamp, in wlfw_cap_send_sync_msg()
777 if (resp->dev_mem_info_valid) { in wlfw_cap_send_sync_msg()
780 resp->dev_mem_info[i].start; in wlfw_cap_send_sync_msg()
782 resp->dev_mem_info[i].size; in wlfw_cap_send_sync_msg()
789 if (resp->voltage_mv_valid) { in wlfw_cap_send_sync_msg()
790 priv->cpr_info.voltage = resp->voltage_mv; in wlfw_cap_send_sync_msg()
796 if (resp->fw_build_id_valid) in wlfw_cap_send_sync_msg()
797 strlcpy(priv->fw_build_id, resp->fw_build_id, in wlfw_cap_send_sync_msg()
800 if (resp->rd_card_chain_cap_valid) { in wlfw_cap_send_sync_msg()
801 priv->rd_card_chain_cap = (enum icnss_rd_card_chain_cap)resp->rd_card_chain_cap; in wlfw_cap_send_sync_msg()
802 if (resp->rd_card_chain_cap == WLFW_RD_CARD_CHAIN_CAP_1x1_V01) in wlfw_cap_send_sync_msg()
806 if (resp->foundry_name_valid) in wlfw_cap_send_sync_msg()
807 priv->foundry_name = resp->foundry_name[0]; in wlfw_cap_send_sync_msg()
808 else if (resp->chip_info_valid && priv->chip_info.chip_id == UMC_CHIP_ID) in wlfw_cap_send_sync_msg()
811 if (resp->he_channel_width_cap_valid) in wlfw_cap_send_sync_msg()
813 (enum icnss_phy_he_channel_width_cap)resp->he_channel_width_cap; in wlfw_cap_send_sync_msg()
815 if (resp->phy_qam_cap_valid) in wlfw_cap_send_sync_msg()
816 priv->phy_qam_cap = (enum icnss_phy_qam_cap)resp->phy_qam_cap; in wlfw_cap_send_sync_msg()
818 if (resp->serial_id_valid) { in wlfw_cap_send_sync_msg()
819 priv->serial_id = resp->serial_id; in wlfw_cap_send_sync_msg()
821 resp->serial_id.serial_id_msb, in wlfw_cap_send_sync_msg()
822 resp->serial_id.serial_id_lsb); in wlfw_cap_send_sync_msg()
838 kfree(resp); in wlfw_cap_send_sync_msg()
843 kfree(resp); in wlfw_cap_send_sync_msg()
852 struct dms_get_mac_address_resp_msg_v01 resp; in icnss_qmi_get_dms_mac() local
862 memset(&resp, 0, sizeof(resp)); in icnss_qmi_get_dms_mac()
864 dms_get_mac_address_resp_msg_v01_ei, &resp); in icnss_qmi_get_dms_mac()
888 if (resp.resp.result != QMI_RESULT_SUCCESS_V01) { in icnss_qmi_get_dms_mac()
889 if (resp.resp.error == DMS_MAC_NOT_PROVISIONED) { in icnss_qmi_get_dms_mac()
894 resp.resp.result, resp.resp.error); in icnss_qmi_get_dms_mac()
896 ret = -resp.resp.result; in icnss_qmi_get_dms_mac()
899 if (!resp.mac_address_valid || in icnss_qmi_get_dms_mac()
900 resp.mac_address_len != QMI_WLFW_MAC_ADDR_SIZE_V01) { in icnss_qmi_get_dms_mac()
906 memcpy(priv->dms.mac, resp.mac_address, QMI_WLFW_MAC_ADDR_SIZE_V01); in icnss_qmi_get_dms_mac()
916 struct wlfw_mac_addr_resp_msg_v01 resp = {0}; in icnss_wlfw_wlan_mac_req_send_sync() local
924 wlfw_mac_addr_resp_msg_v01_ei, &resp); in icnss_wlfw_wlan_mac_req_send_sync()
956 if (resp.resp.result != QMI_RESULT_SUCCESS_V01) { in icnss_wlfw_wlan_mac_req_send_sync()
958 resp.resp.result); in icnss_wlfw_wlan_mac_req_send_sync()
959 ret = -resp.resp.result; in icnss_wlfw_wlan_mac_req_send_sync()
1120 struct wlfw_bdf_download_resp_msg_v01 *resp; in icnss_wlfw_bdf_dnld_send_sync() local
1135 resp = kzalloc(sizeof(*resp), GFP_KERNEL); in icnss_wlfw_bdf_dnld_send_sync()
1136 if (!resp) { in icnss_wlfw_bdf_dnld_send_sync()
1181 wlfw_bdf_download_resp_msg_v01_ei, resp); in icnss_wlfw_bdf_dnld_send_sync()
1207 if (resp->resp.result != QMI_RESULT_SUCCESS_V01) { in icnss_wlfw_bdf_dnld_send_sync()
1209 icnss_bdf_type_to_str(bdf_type), resp->resp.result, in icnss_wlfw_bdf_dnld_send_sync()
1210 resp->resp.error); in icnss_wlfw_bdf_dnld_send_sync()
1211 ret = -resp->resp.result; in icnss_wlfw_bdf_dnld_send_sync()
1223 kfree(resp); in icnss_wlfw_bdf_dnld_send_sync()
1232 kfree(resp); in icnss_wlfw_bdf_dnld_send_sync()
1241 struct wlfw_qdss_trace_data_resp_msg_v01 *resp; in icnss_wlfw_qdss_data_send_sync() local
1252 resp = kzalloc(sizeof(*resp), GFP_KERNEL); in icnss_wlfw_qdss_data_send_sync()
1253 if (!resp) { in icnss_wlfw_qdss_data_send_sync()
1266 while (remaining && resp->end == 0) { in icnss_wlfw_qdss_data_send_sync()
1268 wlfw_qdss_trace_data_resp_msg_v01_ei, resp); in icnss_wlfw_qdss_data_send_sync()
1295 } else if (resp->resp.result != QMI_RESULT_SUCCESS_V01) { in icnss_wlfw_qdss_data_send_sync()
1297 resp->resp.result, resp->resp.error); in icnss_wlfw_qdss_data_send_sync()
1298 ret = -resp->resp.result; in icnss_wlfw_qdss_data_send_sync()
1305 __func__, resp->total_size, resp->data_len); in icnss_wlfw_qdss_data_send_sync()
1307 if ((resp->total_size_valid == 1 && in icnss_wlfw_qdss_data_send_sync()
1308 resp->total_size == total_size) && in icnss_wlfw_qdss_data_send_sync()
1309 (resp->seg_id_valid == 1 && resp->seg_id == req->seg_id) && in icnss_wlfw_qdss_data_send_sync()
1310 (resp->data_valid == 1 && in icnss_wlfw_qdss_data_send_sync()
1311 resp->data_len <= QMI_WLFW_MAX_DATA_SIZE_V01) && in icnss_wlfw_qdss_data_send_sync()
1312 resp->data_len <= remaining) { in icnss_wlfw_qdss_data_send_sync()
1314 resp->data, resp->data_len); in icnss_wlfw_qdss_data_send_sync()
1319 resp->total_size_valid, in icnss_wlfw_qdss_data_send_sync()
1320 resp->total_size, in icnss_wlfw_qdss_data_send_sync()
1321 resp->seg_id_valid, in icnss_wlfw_qdss_data_send_sync()
1322 resp->seg_id, in icnss_wlfw_qdss_data_send_sync()
1323 resp->data_valid, in icnss_wlfw_qdss_data_send_sync()
1324 resp->data_len); in icnss_wlfw_qdss_data_send_sync()
1329 remaining -= resp->data_len; in icnss_wlfw_qdss_data_send_sync()
1330 p_qdss_trace_data_temp += resp->data_len; in icnss_wlfw_qdss_data_send_sync()
1334 if (remaining == 0 && (resp->end_valid && resp->end)) { in icnss_wlfw_qdss_data_send_sync()
1346 remaining, resp->end_valid, resp->end); in icnss_wlfw_qdss_data_send_sync()
1355 kfree(resp); in icnss_wlfw_qdss_data_send_sync()
1362 struct wlfw_qdss_trace_config_download_resp_msg_v01 *resp; in icnss_wlfw_qdss_dnld_send_sync() local
1377 resp = kzalloc(sizeof(*resp), GFP_KERNEL); in icnss_wlfw_qdss_dnld_send_sync()
1378 if (!resp) { in icnss_wlfw_qdss_dnld_send_sync()
1417 resp); in icnss_wlfw_qdss_dnld_send_sync()
1443 if (resp->resp.result != QMI_RESULT_SUCCESS_V01) { in icnss_wlfw_qdss_dnld_send_sync()
1445 resp->resp.result, resp->resp.error); in icnss_wlfw_qdss_dnld_send_sync()
1446 ret = -resp->resp.result; in icnss_wlfw_qdss_dnld_send_sync()
1457 kfree(resp); in icnss_wlfw_qdss_dnld_send_sync()
1465 kfree(resp); in icnss_wlfw_qdss_dnld_send_sync()
1474 struct wlfw_wlan_mode_resp_msg_v01 *resp; in wlfw_wlan_mode_send_sync_msg() local
1498 resp = kzalloc(sizeof(*resp), GFP_KERNEL); in wlfw_wlan_mode_send_sync_msg()
1499 if (!resp) { in wlfw_wlan_mode_send_sync_msg()
1518 wlfw_wlan_mode_resp_msg_v01_ei, resp); in wlfw_wlan_mode_send_sync_msg()
1540 } else if (resp->resp.result != QMI_RESULT_SUCCESS_V01) { in wlfw_wlan_mode_send_sync_msg()
1543 resp->resp.result, resp->resp.error); in wlfw_wlan_mode_send_sync_msg()
1544 ret = -resp->resp.result; in wlfw_wlan_mode_send_sync_msg()
1560 kfree(resp); in wlfw_wlan_mode_send_sync_msg()
1565 kfree(resp); in wlfw_wlan_mode_send_sync_msg()
1579 struct wlfw_qdss_trace_mode_resp_msg_v01 *resp; in wlfw_send_qdss_trace_mode_req() local
1589 resp = kzalloc(sizeof(*resp), GFP_KERNEL); in wlfw_send_qdss_trace_mode_req()
1590 if (!resp) { in wlfw_send_qdss_trace_mode_req()
1611 wlfw_qdss_trace_mode_resp_msg_v01_ei, resp); in wlfw_send_qdss_trace_mode_req()
1633 } else if (resp->resp.result != QMI_RESULT_SUCCESS_V01) { in wlfw_send_qdss_trace_mode_req()
1636 resp->resp.result, resp->resp.error); in wlfw_send_qdss_trace_mode_req()
1637 rc = -resp->resp.result; in wlfw_send_qdss_trace_mode_req()
1642 kfree(resp); in wlfw_send_qdss_trace_mode_req()
1664 struct wlfw_wlan_cfg_resp_msg_v01 *resp; in wlfw_wlan_cfg_send_sync_msg() local
1676 resp = kzalloc(sizeof(*resp), GFP_KERNEL); in wlfw_wlan_cfg_send_sync_msg()
1677 if (!resp) { in wlfw_wlan_cfg_send_sync_msg()
1687 wlfw_wlan_cfg_resp_msg_v01_ei, resp); in wlfw_wlan_cfg_send_sync_msg()
1709 } else if (resp->resp.result != QMI_RESULT_SUCCESS_V01) { in wlfw_wlan_cfg_send_sync_msg()
1712 resp->resp.result, resp->resp.error); in wlfw_wlan_cfg_send_sync_msg()
1713 ret = -resp->resp.result; in wlfw_wlan_cfg_send_sync_msg()
1719 kfree(resp); in wlfw_wlan_cfg_send_sync_msg()
1724 kfree(resp); in wlfw_wlan_cfg_send_sync_msg()
1734 struct wlfw_shutdown_resp_msg_v01 *resp; in wlfw_send_modem_shutdown_msg() local
1750 resp = kzalloc(sizeof(*resp), GFP_KERNEL); in wlfw_send_modem_shutdown_msg()
1751 if (!resp) { in wlfw_send_modem_shutdown_msg()
1760 wlfw_shutdown_resp_msg_v01_ei, resp); in wlfw_send_modem_shutdown_msg()
1783 } else if (resp->resp.result != QMI_RESULT_SUCCESS_V01) { in wlfw_send_modem_shutdown_msg()
1785 resp->resp.result, resp->resp.error); in wlfw_send_modem_shutdown_msg()
1786 ret = -resp->resp.result; in wlfw_send_modem_shutdown_msg()
1791 kfree(resp); in wlfw_send_modem_shutdown_msg()
1800 struct wlfw_ini_resp_msg_v01 *resp; in wlfw_ini_send_sync_msg() local
1813 resp = kzalloc(sizeof(*resp), GFP_KERNEL); in wlfw_ini_send_sync_msg()
1814 if (!resp) { in wlfw_ini_send_sync_msg()
1824 ret = qmi_txn_init(&priv->qmi, &txn, wlfw_ini_resp_msg_v01_ei, resp); in wlfw_ini_send_sync_msg()
1844 } else if (resp->resp.result != QMI_RESULT_SUCCESS_V01) { in wlfw_ini_send_sync_msg()
1847 resp->resp.result, resp->resp.error); in wlfw_ini_send_sync_msg()
1848 ret = -resp->resp.result; in wlfw_ini_send_sync_msg()
1854 kfree(resp); in wlfw_ini_send_sync_msg()
1859 kfree(resp); in wlfw_ini_send_sync_msg()
1871 struct wlfw_athdiag_read_resp_msg_v01 *resp; in wlfw_athdiag_read_send_sync_msg() local
1884 resp = kzalloc(sizeof(*resp), GFP_KERNEL); in wlfw_athdiag_read_send_sync_msg()
1885 if (!resp) { in wlfw_athdiag_read_send_sync_msg()
1895 wlfw_athdiag_read_resp_msg_v01_ei, resp); in wlfw_athdiag_read_send_sync_msg()
1917 } else if (resp->resp.result != QMI_RESULT_SUCCESS_V01) { in wlfw_athdiag_read_send_sync_msg()
1919 resp->resp.result, resp->resp.error); in wlfw_athdiag_read_send_sync_msg()
1920 ret = -resp->resp.result; in wlfw_athdiag_read_send_sync_msg()
1926 if (!resp->data_valid || resp->data_len < data_len) { in wlfw_athdiag_read_send_sync_msg()
1928 resp->data_valid, resp->data_len); in wlfw_athdiag_read_send_sync_msg()
1933 memcpy(data, resp->data, resp->data_len); in wlfw_athdiag_read_send_sync_msg()
1936 kfree(resp); in wlfw_athdiag_read_send_sync_msg()
1947 struct wlfw_athdiag_write_resp_msg_v01 *resp; in wlfw_athdiag_write_send_sync_msg() local
1960 resp = kzalloc(sizeof(*resp), GFP_KERNEL); in wlfw_athdiag_write_send_sync_msg()
1961 if (!resp) { in wlfw_athdiag_write_send_sync_msg()
1972 wlfw_athdiag_write_resp_msg_v01_ei, resp); in wlfw_athdiag_write_send_sync_msg()
1994 } else if (resp->resp.result != QMI_RESULT_SUCCESS_V01) { in wlfw_athdiag_write_send_sync_msg()
1996 resp->resp.result, resp->resp.error); in wlfw_athdiag_write_send_sync_msg()
1997 ret = -resp->resp.result; in wlfw_athdiag_write_send_sync_msg()
2004 kfree(resp); in wlfw_athdiag_write_send_sync_msg()
2013 struct wlfw_rejuvenate_ack_resp_msg_v01 *resp; in wlfw_rejuvenate_ack_send_sync_msg() local
2026 resp = kzalloc(sizeof(*resp), GFP_KERNEL); in wlfw_rejuvenate_ack_send_sync_msg()
2027 if (!resp) { in wlfw_rejuvenate_ack_send_sync_msg()
2035 wlfw_rejuvenate_ack_resp_msg_v01_ei, resp); in wlfw_rejuvenate_ack_send_sync_msg()
2060 } else if (resp->resp.result != QMI_RESULT_SUCCESS_V01) { in wlfw_rejuvenate_ack_send_sync_msg()
2063 resp->resp.result, resp->resp.error); in wlfw_rejuvenate_ack_send_sync_msg()
2064 ret = -resp->resp.result; in wlfw_rejuvenate_ack_send_sync_msg()
2070 kfree(resp); in wlfw_rejuvenate_ack_send_sync_msg()
2075 kfree(resp); in wlfw_rejuvenate_ack_send_sync_msg()
2086 struct wlfw_dynamic_feature_mask_resp_msg_v01 *resp; in wlfw_dynamic_feature_mask_send_sync_msg() local
2110 resp = kzalloc(sizeof(*resp), GFP_KERNEL); in wlfw_dynamic_feature_mask_send_sync_msg()
2111 if (!resp) { in wlfw_dynamic_feature_mask_send_sync_msg()
2120 wlfw_dynamic_feature_mask_resp_msg_v01_ei, resp); in wlfw_dynamic_feature_mask_send_sync_msg()
2142 } else if (resp->resp.result != QMI_RESULT_SUCCESS_V01) { in wlfw_dynamic_feature_mask_send_sync_msg()
2144 resp->resp.result, resp->resp.error); in wlfw_dynamic_feature_mask_send_sync_msg()
2145 ret = -resp->resp.result; in wlfw_dynamic_feature_mask_send_sync_msg()
2150 resp->prev_mask_valid, resp->prev_mask, in wlfw_dynamic_feature_mask_send_sync_msg()
2151 resp->curr_mask_valid, resp->curr_mask); in wlfw_dynamic_feature_mask_send_sync_msg()
2154 kfree(resp); in wlfw_dynamic_feature_mask_send_sync_msg()
2182 struct wlfw_qdss_trace_mem_info_resp_msg_v01 *resp; in wlfw_qdss_trace_mem_info_send_sync() local
2198 resp = kzalloc(sizeof(*resp), GFP_KERNEL); in wlfw_qdss_trace_mem_info_send_sync()
2199 if (!resp) { in wlfw_qdss_trace_mem_info_send_sync()
2224 wlfw_qdss_trace_mem_info_resp_msg_v01_ei, resp); in wlfw_qdss_trace_mem_info_send_sync()
2249 if (resp->resp.result != QMI_RESULT_SUCCESS_V01) { in wlfw_qdss_trace_mem_info_send_sync()
2251 resp->resp.result, resp->resp.error); in wlfw_qdss_trace_mem_info_send_sync()
2252 ret = -resp->resp.result; in wlfw_qdss_trace_mem_info_send_sync()
2257 kfree(resp); in wlfw_qdss_trace_mem_info_send_sync()
2262 kfree(resp); in wlfw_qdss_trace_mem_info_send_sync()
2270 struct wlfw_m3_dump_upload_done_resp_msg_v01 *resp; in icnss_wlfw_m3_dump_upload_done_send_sync() local
2278 resp = kzalloc(sizeof(*resp), GFP_KERNEL); in icnss_wlfw_m3_dump_upload_done_send_sync()
2279 if (!resp) { in icnss_wlfw_m3_dump_upload_done_send_sync()
2291 wlfw_m3_dump_upload_done_resp_msg_v01_ei, resp); in icnss_wlfw_m3_dump_upload_done_send_sync()
2314 } else if (resp->resp.result != QMI_RESULT_SUCCESS_V01) { in icnss_wlfw_m3_dump_upload_done_send_sync()
2316 resp->resp.result, resp->resp.error); in icnss_wlfw_m3_dump_upload_done_send_sync()
2317 ret = -resp->resp.result; in icnss_wlfw_m3_dump_upload_done_send_sync()
2323 kfree(resp); in icnss_wlfw_m3_dump_upload_done_send_sync()
2805 struct wlfw_wfc_call_status_resp_msg_v01 *resp; in icnss_wlfw_wfc_call_status_send_sync() local
2818 resp = kzalloc(sizeof(*resp), GFP_KERNEL); in icnss_wlfw_wfc_call_status_send_sync()
2819 if (!resp) { in icnss_wlfw_wfc_call_status_send_sync()
2853 wlfw_wfc_call_status_resp_msg_v01_ei, resp); in icnss_wlfw_wfc_call_status_send_sync()
2878 if (resp->resp.result != QMI_RESULT_SUCCESS_V01) { in icnss_wlfw_wfc_call_status_send_sync()
2880 resp->resp.result, resp->resp.error); in icnss_wlfw_wfc_call_status_send_sync()
2881 ret = -resp->resp.result; in icnss_wlfw_wfc_call_status_send_sync()
2887 kfree(resp); in icnss_wlfw_wfc_call_status_send_sync()
2896 struct ims_private_service_wfc_call_twt_config_rsp_msg_v01 *resp; in icnss_ims_wfc_call_twt_cfg_send_sync() local
2909 resp = kzalloc(sizeof(*resp), GFP_KERNEL); in icnss_ims_wfc_call_twt_cfg_send_sync()
2910 if (!resp) { in icnss_ims_wfc_call_twt_cfg_send_sync()
2935 resp); in icnss_ims_wfc_call_twt_cfg_send_sync()
2959 if (resp->resp.result != QMI_RESULT_SUCCESS_V01) { in icnss_ims_wfc_call_twt_cfg_send_sync()
2961 resp->resp.result, resp->resp.error); in icnss_ims_wfc_call_twt_cfg_send_sync()
2962 ret = -resp->resp.result; in icnss_ims_wfc_call_twt_cfg_send_sync()
2968 kfree(resp); in icnss_ims_wfc_call_twt_cfg_send_sync()
3375 struct wlfw_host_cap_resp_msg_v01 *resp; in wlfw_host_cap_send_sync() local
3390 resp = kzalloc(sizeof(*resp), GFP_KERNEL); in wlfw_host_cap_send_sync()
3391 if (!resp) { in wlfw_host_cap_send_sync()
3482 wlfw_host_cap_resp_msg_v01_ei, resp); in wlfw_host_cap_send_sync()
3507 if (resp->resp.result != QMI_RESULT_SUCCESS_V01) { in wlfw_host_cap_send_sync()
3509 resp->resp.result, resp->resp.error); in wlfw_host_cap_send_sync()
3510 ret = -resp->resp.result; in wlfw_host_cap_send_sync()
3515 kfree(resp); in wlfw_host_cap_send_sync()
3521 kfree(resp); in wlfw_host_cap_send_sync()
3529 struct wlfw_get_info_resp_msg_v01 *resp; in icnss_wlfw_get_info_send_sync() local
3544 resp = kzalloc(sizeof(*resp), flags); in icnss_wlfw_get_info_send_sync()
3545 if (!resp) { in icnss_wlfw_get_info_send_sync()
3555 wlfw_get_info_resp_msg_v01_ei, resp); in icnss_wlfw_get_info_send_sync()
3580 if (resp->resp.result != QMI_RESULT_SUCCESS_V01) { in icnss_wlfw_get_info_send_sync()
3582 resp->resp.result, resp->resp.error); in icnss_wlfw_get_info_send_sync()
3583 ret = -resp->resp.result; in icnss_wlfw_get_info_send_sync()
3588 kfree(resp); in icnss_wlfw_get_info_send_sync()
3593 kfree(resp); in icnss_wlfw_get_info_send_sync()
3601 struct wlfw_subsys_restart_level_resp_msg_v01 *resp; in wlfw_subsys_restart_level_msg() local
3616 resp = kzalloc(sizeof(*resp), GFP_KERNEL); in wlfw_subsys_restart_level_msg()
3617 if (!resp) { in wlfw_subsys_restart_level_msg()
3628 wlfw_subsys_restart_level_resp_msg_v01_ei, resp); in wlfw_subsys_restart_level_msg()
3651 } else if (resp->resp.result != QMI_RESULT_SUCCESS_V01) { in wlfw_subsys_restart_level_msg()
3653 resp->resp.result, resp->resp.error); in wlfw_subsys_restart_level_msg()
3654 ret = -resp->resp.result; in wlfw_subsys_restart_level_msg()
3660 kfree(resp); in wlfw_subsys_restart_level_msg()
3666 kfree(resp); in wlfw_subsys_restart_level_msg()
3675 struct wlfw_vbatt_resp_msg_v01 *resp; in icnss_send_vbatt_update() local
3690 resp = kzalloc(sizeof(*resp), GFP_KERNEL); in icnss_send_vbatt_update()
3691 if (!resp) { in icnss_send_vbatt_update()
3698 ret = qmi_txn_init(&priv->qmi, &txn, wlfw_vbatt_resp_msg_v01_ei, resp); in icnss_send_vbatt_update()
3720 } else if (resp->resp.result != QMI_RESULT_SUCCESS_V01) { in icnss_send_vbatt_update()
3722 resp->resp.result, resp->resp.error); in icnss_send_vbatt_update()
3723 ret = -resp->resp.result; in icnss_send_vbatt_update()
3727 kfree(resp); in icnss_send_vbatt_update()
3732 kfree(resp); in icnss_send_vbatt_update()
3742 struct wlfw_wlan_hw_init_cfg_resp_msg_v01 *resp; in wlfw_wlan_hw_init_cfg_msg() local
3754 resp = kzalloc(sizeof(*resp), GFP_KERNEL); in wlfw_wlan_hw_init_cfg_msg()
3755 if (!resp) { in wlfw_wlan_hw_init_cfg_msg()
3764 wlfw_wlan_hw_init_cfg_resp_msg_v01_ei, resp); in wlfw_wlan_hw_init_cfg_msg()
3787 } else if (resp->resp.result != QMI_RESULT_SUCCESS_V01) { in wlfw_wlan_hw_init_cfg_msg()
3789 resp->resp.result, resp->resp.error); in wlfw_wlan_hw_init_cfg_msg()
3790 ret = -resp->resp.result; in wlfw_wlan_hw_init_cfg_msg()
3794 kfree(resp); in wlfw_wlan_hw_init_cfg_msg()
3800 kfree(resp); in wlfw_wlan_hw_init_cfg_msg()
3857 struct ims_private_service_subscribe_for_indications_rsp_msg_v01 *resp = in ims_subscribe_for_indication_resp_cb() local
3867 if (resp->resp.result != QMI_RESULT_SUCCESS_V01) { in ims_subscribe_for_indication_resp_cb()
3869 resp->resp.result, resp->resp.error); in ims_subscribe_for_indication_resp_cb()
3870 txn->result = -resp->resp.result; in ims_subscribe_for_indication_resp_cb()