Lines Matching refs:resp

122 	struct wlfw_msa_info_resp_msg_v01 resp = {};  in ath10k_qmi_msa_mem_info_send_sync_msg()  local
134 wlfw_msa_info_resp_msg_v01_ei, &resp); in ath10k_qmi_msa_mem_info_send_sync_msg()
152 if (resp.resp.result != QMI_RESULT_SUCCESS_V01) { in ath10k_qmi_msa_mem_info_send_sync_msg()
153 ath10k_err(ar, "msa info req rejected: %d\n", resp.resp.error); in ath10k_qmi_msa_mem_info_send_sync_msg()
158 if (resp.mem_region_info_len > QMI_WLFW_MAX_MEM_REG_V01) { in ath10k_qmi_msa_mem_info_send_sync_msg()
160 resp.mem_region_info_len); in ath10k_qmi_msa_mem_info_send_sync_msg()
166 qmi->nr_mem_region = resp.mem_region_info_len; in ath10k_qmi_msa_mem_info_send_sync_msg()
167 for (i = 0; i < resp.mem_region_info_len; i++) { in ath10k_qmi_msa_mem_info_send_sync_msg()
168 if (resp.mem_region_info[i].size > ar->msa.mem_size || in ath10k_qmi_msa_mem_info_send_sync_msg()
169 resp.mem_region_info[i].region_addr > max_mapped_addr || in ath10k_qmi_msa_mem_info_send_sync_msg()
170 resp.mem_region_info[i].region_addr < ar->msa.paddr || in ath10k_qmi_msa_mem_info_send_sync_msg()
171 resp.mem_region_info[i].size + in ath10k_qmi_msa_mem_info_send_sync_msg()
172 resp.mem_region_info[i].region_addr > max_mapped_addr) { in ath10k_qmi_msa_mem_info_send_sync_msg()
174 resp.mem_region_info[i].region_addr, in ath10k_qmi_msa_mem_info_send_sync_msg()
175 resp.mem_region_info[i].size); in ath10k_qmi_msa_mem_info_send_sync_msg()
179 qmi->mem_region[i].addr = resp.mem_region_info[i].region_addr; in ath10k_qmi_msa_mem_info_send_sync_msg()
180 qmi->mem_region[i].size = resp.mem_region_info[i].size; in ath10k_qmi_msa_mem_info_send_sync_msg()
181 qmi->mem_region[i].secure = resp.mem_region_info[i].secure_flag; in ath10k_qmi_msa_mem_info_send_sync_msg()
200 struct wlfw_msa_ready_resp_msg_v01 resp = {}; in ath10k_qmi_msa_ready_send_sync_msg() local
207 wlfw_msa_ready_resp_msg_v01_ei, &resp); in ath10k_qmi_msa_ready_send_sync_msg()
225 if (resp.resp.result != QMI_RESULT_SUCCESS_V01) { in ath10k_qmi_msa_ready_send_sync_msg()
226 ath10k_err(ar, "msa ready request rejected: %d\n", resp.resp.error); in ath10k_qmi_msa_ready_send_sync_msg()
239 struct wlfw_bdf_download_resp_msg_v01 resp = {}; in ath10k_qmi_bdf_dnld_send_sync() local
275 &resp); in ath10k_qmi_bdf_dnld_send_sync()
299 if (resp.resp.result != QMI_RESULT_SUCCESS_V01 && in ath10k_qmi_bdf_dnld_send_sync()
301 resp.resp.result == QMI_ERR_MALFORMED_MSG_V01)) { in ath10k_qmi_bdf_dnld_send_sync()
303 resp.resp.error); in ath10k_qmi_bdf_dnld_send_sync()
325 struct wlfw_cal_report_resp_msg_v01 resp = {}; in ath10k_qmi_send_cal_report_req() local
339 &resp); in ath10k_qmi_send_cal_report_req()
366 if (resp.resp.result != QMI_RESULT_SUCCESS_V01) { in ath10k_qmi_send_cal_report_req()
367 ath10k_err(ar, "calibration request rejected: %d\n", resp.resp.error); in ath10k_qmi_send_cal_report_req()
384 struct wlfw_wlan_mode_resp_msg_v01 resp = {}; in ath10k_qmi_mode_send_sync_msg() local
391 &resp); in ath10k_qmi_mode_send_sync_msg()
413 if (resp.resp.result != QMI_RESULT_SUCCESS_V01) { in ath10k_qmi_mode_send_sync_msg()
414 ath10k_err(ar, "more request rejected: %d\n", resp.resp.error); in ath10k_qmi_mode_send_sync_msg()
433 struct wlfw_wlan_cfg_resp_msg_v01 resp = {}; in ath10k_qmi_cfg_send_sync_msg() local
445 &resp); in ath10k_qmi_cfg_send_sync_msg()
499 if (resp.resp.result != QMI_RESULT_SUCCESS_V01) { in ath10k_qmi_cfg_send_sync_msg()
500 ath10k_err(ar, "config request rejected: %d\n", resp.resp.error); in ath10k_qmi_cfg_send_sync_msg()
573 struct wlfw_cap_resp_msg_v01 *resp; in ath10k_qmi_cap_send_sync_msg() local
580 resp = kzalloc(sizeof(*resp), GFP_KERNEL); in ath10k_qmi_cap_send_sync_msg()
581 if (!resp) in ath10k_qmi_cap_send_sync_msg()
584 ret = qmi_txn_init(&qmi->qmi_hdl, &txn, wlfw_cap_resp_msg_v01_ei, resp); in ath10k_qmi_cap_send_sync_msg()
602 if (resp->resp.result != QMI_RESULT_SUCCESS_V01) { in ath10k_qmi_cap_send_sync_msg()
603 ath10k_err(ar, "capability req rejected: %d\n", resp->resp.error); in ath10k_qmi_cap_send_sync_msg()
608 if (resp->chip_info_valid) { in ath10k_qmi_cap_send_sync_msg()
609 qmi->chip_info.chip_id = resp->chip_info.chip_id; in ath10k_qmi_cap_send_sync_msg()
610 qmi->chip_info.chip_family = resp->chip_info.chip_family; in ath10k_qmi_cap_send_sync_msg()
615 if (resp->board_info_valid) in ath10k_qmi_cap_send_sync_msg()
616 qmi->board_info.board_id = resp->board_info.board_id; in ath10k_qmi_cap_send_sync_msg()
620 if (resp->soc_info_valid) in ath10k_qmi_cap_send_sync_msg()
621 qmi->soc_info.soc_id = resp->soc_info.soc_id; in ath10k_qmi_cap_send_sync_msg()
623 if (resp->fw_version_info_valid) { in ath10k_qmi_cap_send_sync_msg()
624 qmi->fw_version = resp->fw_version_info.fw_version; in ath10k_qmi_cap_send_sync_msg()
625 strscpy(qmi->fw_build_timestamp, resp->fw_version_info.fw_build_timestamp, in ath10k_qmi_cap_send_sync_msg()
629 if (resp->fw_build_id_valid) in ath10k_qmi_cap_send_sync_msg()
630 strscpy(qmi->fw_build_id, resp->fw_build_id, in ath10k_qmi_cap_send_sync_msg()
641 if (resp->fw_build_id_valid) in ath10k_qmi_cap_send_sync_msg()
644 kfree(resp); in ath10k_qmi_cap_send_sync_msg()
648 kfree(resp); in ath10k_qmi_cap_send_sync_msg()
654 struct wlfw_host_cap_resp_msg_v01 resp = {}; in ath10k_qmi_host_cap_send_sync() local
666 &resp); in ath10k_qmi_host_cap_send_sync()
690 if (resp.resp.result != QMI_RESULT_SUCCESS_V01 && in ath10k_qmi_host_cap_send_sync()
691 resp.resp.error != QMI_ERR_NOT_SUPPORTED_V01) { in ath10k_qmi_host_cap_send_sync()
692 ath10k_err(ar, "host capability request rejected: %d\n", resp.resp.error); in ath10k_qmi_host_cap_send_sync()
707 struct wlfw_ini_resp_msg_v01 resp = {}; in ath10k_qmi_set_fw_log_mode() local
717 &resp); in ath10k_qmi_set_fw_log_mode()
735 if (resp.resp.result != QMI_RESULT_SUCCESS_V01) { in ath10k_qmi_set_fw_log_mode()
737 resp.resp.error); in ath10k_qmi_set_fw_log_mode()
752 struct wlfw_ind_register_resp_msg_v01 resp = {}; in ath10k_qmi_ind_register_send_sync_msg() local
772 wlfw_ind_register_resp_msg_v01_ei, &resp); in ath10k_qmi_ind_register_send_sync_msg()
790 if (resp.resp.result != QMI_RESULT_SUCCESS_V01) { in ath10k_qmi_ind_register_send_sync_msg()
791 ath10k_err(ar, "indication request rejected: %d\n", resp.resp.error); in ath10k_qmi_ind_register_send_sync_msg()
796 if (resp.fw_status_valid) { in ath10k_qmi_ind_register_send_sync_msg()
797 if (resp.fw_status & QMI_WLFW_FW_READY_V01) in ath10k_qmi_ind_register_send_sync_msg()