Lines Matching refs:resp

117 	struct wlfw_msa_info_resp_msg_v01 resp = {};  in ath10k_qmi_msa_mem_info_send_sync_msg()  local
129 wlfw_msa_info_resp_msg_v01_ei, &resp); in ath10k_qmi_msa_mem_info_send_sync_msg()
147 if (resp.resp.result != QMI_RESULT_SUCCESS_V01) { in ath10k_qmi_msa_mem_info_send_sync_msg()
148 ath10k_err(ar, "msa info req rejected: %d\n", resp.resp.error); in ath10k_qmi_msa_mem_info_send_sync_msg()
153 if (resp.mem_region_info_len > QMI_WLFW_MAX_MEM_REG_V01) { in ath10k_qmi_msa_mem_info_send_sync_msg()
155 resp.mem_region_info_len); in ath10k_qmi_msa_mem_info_send_sync_msg()
161 qmi->nr_mem_region = resp.mem_region_info_len; in ath10k_qmi_msa_mem_info_send_sync_msg()
162 for (i = 0; i < resp.mem_region_info_len; i++) { in ath10k_qmi_msa_mem_info_send_sync_msg()
163 if (resp.mem_region_info[i].size > ar->msa.mem_size || in ath10k_qmi_msa_mem_info_send_sync_msg()
164 resp.mem_region_info[i].region_addr > max_mapped_addr || in ath10k_qmi_msa_mem_info_send_sync_msg()
165 resp.mem_region_info[i].region_addr < ar->msa.paddr || in ath10k_qmi_msa_mem_info_send_sync_msg()
166 resp.mem_region_info[i].size + in ath10k_qmi_msa_mem_info_send_sync_msg()
167 resp.mem_region_info[i].region_addr > max_mapped_addr) { in ath10k_qmi_msa_mem_info_send_sync_msg()
169 resp.mem_region_info[i].region_addr, in ath10k_qmi_msa_mem_info_send_sync_msg()
170 resp.mem_region_info[i].size); in ath10k_qmi_msa_mem_info_send_sync_msg()
174 qmi->mem_region[i].addr = resp.mem_region_info[i].region_addr; in ath10k_qmi_msa_mem_info_send_sync_msg()
175 qmi->mem_region[i].size = resp.mem_region_info[i].size; in ath10k_qmi_msa_mem_info_send_sync_msg()
176 qmi->mem_region[i].secure = resp.mem_region_info[i].secure_flag; in ath10k_qmi_msa_mem_info_send_sync_msg()
195 struct wlfw_msa_ready_resp_msg_v01 resp = {}; in ath10k_qmi_msa_ready_send_sync_msg() local
202 wlfw_msa_ready_resp_msg_v01_ei, &resp); in ath10k_qmi_msa_ready_send_sync_msg()
220 if (resp.resp.result != QMI_RESULT_SUCCESS_V01) { in ath10k_qmi_msa_ready_send_sync_msg()
221 ath10k_err(ar, "msa ready request rejected: %d\n", resp.resp.error); in ath10k_qmi_msa_ready_send_sync_msg()
234 struct wlfw_bdf_download_resp_msg_v01 resp = {}; in ath10k_qmi_bdf_dnld_send_sync() local
270 &resp); in ath10k_qmi_bdf_dnld_send_sync()
294 if (resp.resp.result != QMI_RESULT_SUCCESS_V01 && in ath10k_qmi_bdf_dnld_send_sync()
296 resp.resp.result == QMI_ERR_MALFORMED_MSG_V01)) { in ath10k_qmi_bdf_dnld_send_sync()
298 resp.resp.error); in ath10k_qmi_bdf_dnld_send_sync()
320 struct wlfw_cal_report_resp_msg_v01 resp = {}; in ath10k_qmi_send_cal_report_req() local
334 &resp); in ath10k_qmi_send_cal_report_req()
361 if (resp.resp.result != QMI_RESULT_SUCCESS_V01) { in ath10k_qmi_send_cal_report_req()
362 ath10k_err(ar, "calibration request rejected: %d\n", resp.resp.error); in ath10k_qmi_send_cal_report_req()
379 struct wlfw_wlan_mode_resp_msg_v01 resp = {}; in ath10k_qmi_mode_send_sync_msg() local
386 &resp); in ath10k_qmi_mode_send_sync_msg()
408 if (resp.resp.result != QMI_RESULT_SUCCESS_V01) { in ath10k_qmi_mode_send_sync_msg()
409 ath10k_err(ar, "more request rejected: %d\n", resp.resp.error); in ath10k_qmi_mode_send_sync_msg()
428 struct wlfw_wlan_cfg_resp_msg_v01 resp = {}; in ath10k_qmi_cfg_send_sync_msg() local
440 &resp); in ath10k_qmi_cfg_send_sync_msg()
494 if (resp.resp.result != QMI_RESULT_SUCCESS_V01) { in ath10k_qmi_cfg_send_sync_msg()
495 ath10k_err(ar, "config request rejected: %d\n", resp.resp.error); in ath10k_qmi_cfg_send_sync_msg()
541 struct wlfw_cap_resp_msg_v01 *resp; in ath10k_qmi_cap_send_sync_msg() local
548 resp = kzalloc(sizeof(*resp), GFP_KERNEL); in ath10k_qmi_cap_send_sync_msg()
549 if (!resp) in ath10k_qmi_cap_send_sync_msg()
552 ret = qmi_txn_init(&qmi->qmi_hdl, &txn, wlfw_cap_resp_msg_v01_ei, resp); in ath10k_qmi_cap_send_sync_msg()
570 if (resp->resp.result != QMI_RESULT_SUCCESS_V01) { in ath10k_qmi_cap_send_sync_msg()
571 ath10k_err(ar, "capability req rejected: %d\n", resp->resp.error); in ath10k_qmi_cap_send_sync_msg()
576 if (resp->chip_info_valid) { in ath10k_qmi_cap_send_sync_msg()
577 qmi->chip_info.chip_id = resp->chip_info.chip_id; in ath10k_qmi_cap_send_sync_msg()
578 qmi->chip_info.chip_family = resp->chip_info.chip_family; in ath10k_qmi_cap_send_sync_msg()
583 if (resp->board_info_valid) in ath10k_qmi_cap_send_sync_msg()
584 qmi->board_info.board_id = resp->board_info.board_id; in ath10k_qmi_cap_send_sync_msg()
588 if (resp->soc_info_valid) in ath10k_qmi_cap_send_sync_msg()
589 qmi->soc_info.soc_id = resp->soc_info.soc_id; in ath10k_qmi_cap_send_sync_msg()
591 if (resp->fw_version_info_valid) { in ath10k_qmi_cap_send_sync_msg()
592 qmi->fw_version = resp->fw_version_info.fw_version; in ath10k_qmi_cap_send_sync_msg()
593 strscpy(qmi->fw_build_timestamp, resp->fw_version_info.fw_build_timestamp, in ath10k_qmi_cap_send_sync_msg()
597 if (resp->fw_build_id_valid) in ath10k_qmi_cap_send_sync_msg()
598 strscpy(qmi->fw_build_id, resp->fw_build_id, in ath10k_qmi_cap_send_sync_msg()
609 kfree(resp); in ath10k_qmi_cap_send_sync_msg()
613 kfree(resp); in ath10k_qmi_cap_send_sync_msg()
619 struct wlfw_host_cap_resp_msg_v01 resp = {}; in ath10k_qmi_host_cap_send_sync() local
631 &resp); in ath10k_qmi_host_cap_send_sync()
655 if (resp.resp.result != QMI_RESULT_SUCCESS_V01 && in ath10k_qmi_host_cap_send_sync()
656 resp.resp.error != QMI_ERR_NOT_SUPPORTED_V01) { in ath10k_qmi_host_cap_send_sync()
657 ath10k_err(ar, "host capability request rejected: %d\n", resp.resp.error); in ath10k_qmi_host_cap_send_sync()
672 struct wlfw_ini_resp_msg_v01 resp = {}; in ath10k_qmi_set_fw_log_mode() local
682 &resp); in ath10k_qmi_set_fw_log_mode()
700 if (resp.resp.result != QMI_RESULT_SUCCESS_V01) { in ath10k_qmi_set_fw_log_mode()
702 resp.resp.error); in ath10k_qmi_set_fw_log_mode()
717 struct wlfw_ind_register_resp_msg_v01 resp = {}; in ath10k_qmi_ind_register_send_sync_msg() local
737 wlfw_ind_register_resp_msg_v01_ei, &resp); in ath10k_qmi_ind_register_send_sync_msg()
755 if (resp.resp.result != QMI_RESULT_SUCCESS_V01) { in ath10k_qmi_ind_register_send_sync_msg()
756 ath10k_err(ar, "indication request rejected: %d\n", resp.resp.error); in ath10k_qmi_ind_register_send_sync_msg()
761 if (resp.fw_status_valid) { in ath10k_qmi_ind_register_send_sync_msg()
762 if (resp.fw_status & QMI_WLFW_FW_READY_V01) in ath10k_qmi_ind_register_send_sync_msg()