Lines Matching full:testmode
6 #include "testmode.h"
38 "testmode event wmi cmd_id %d skb %p skb->len %d\n",
45 if (!ar->testmode.utf_monitor) {
50 /* Only testmode.c should be handling events from utf firmware,
61 "failed to allocate skb for testmode wmi event\n");
68 "failed to put testmode wmi event cmd attribute: %d\n",
77 "failed to put testmode wmi event cmd_id: %d\n",
86 "failed to copy skb to testmode wmi event: %d\n",
106 "testmode cmd get version_major %d version_minor %d\n",
150 ath10k_dbg(ar, ATH10K_DBG_TESTMODE, "testmode fw request '%s': %d\n",
194 &ar->testmode.utf_mode_fw.fw_file);
196 ath10k_dbg(ar, ATH10K_DBG_TESTMODE, "testmode using fw utf api 2");
200 ret = ath10k_tm_fetch_utf_firmware_api_1(ar, &ar->testmode.utf_mode_fw.fw_file);
206 ath10k_dbg(ar, ATH10K_DBG_TESTMODE, "testmode using utf api 1");
209 utf_mode_fw = &ar->testmode.utf_mode_fw;
231 ath10k_dbg(ar, ATH10K_DBG_TESTMODE, "testmode cmd utf start\n");
246 if (WARN_ON(ar->testmode.utf_mode_fw.fw_file.firmware != NULL)) {
258 if (ar->testmode.utf_mode_fw.fw_file.codeswap_data &&
259 ar->testmode.utf_mode_fw.fw_file.codeswap_len) {
261 &ar->testmode.utf_mode_fw.fw_file);
271 ar->testmode.utf_monitor = true;
274 ath10k_dbg(ar, ATH10K_DBG_TESTMODE, "testmode wmi version %d\n",
275 ar->testmode.utf_mode_fw.fw_file.wmi_op_version);
279 ath10k_err(ar, "failed to power up hif (testmode): %d\n", ret);
285 &ar->testmode.utf_mode_fw);
287 ath10k_err(ar, "failed to start core (testmode): %d\n", ret);
294 if (strlen(ar->testmode.utf_mode_fw.fw_file.fw_version) > 0)
295 ver = ar->testmode.utf_mode_fw.fw_file.fw_version;
309 if (ar->testmode.utf_mode_fw.fw_file.codeswap_data &&
310 ar->testmode.utf_mode_fw.fw_file.codeswap_len)
312 &ar->testmode.utf_mode_fw.fw_file);
314 release_firmware(ar->testmode.utf_mode_fw.fw_file.firmware);
315 ar->testmode.utf_mode_fw.fw_file.firmware = NULL;
332 ar->testmode.utf_monitor = false;
336 if (ar->testmode.utf_mode_fw.fw_file.codeswap_data &&
337 ar->testmode.utf_mode_fw.fw_file.codeswap_len)
339 &ar->testmode.utf_mode_fw.fw_file);
341 release_firmware(ar->testmode.utf_mode_fw.fw_file.firmware);
342 ar->testmode.utf_mode_fw.fw_file.firmware = NULL;
351 ath10k_dbg(ar, ATH10K_DBG_TESTMODE, "testmode cmd utf stop\n");
400 "testmode cmd wmi cmd_id %d buf %p buf_len %d\n",
415 ath10k_warn(ar, "failed to transmit wmi command (testmode): %d\n",