qmi.c (b2d54ca73a5a177490f3f1ee2d23ff6ab6045b25) qmi.c (bb0b0a6b96e6de854cb1e349e17bd0e8bf421a59)
1// SPDX-License-Identifier: BSD-3-Clause-Clear
2/*
3 * Copyright (c) 2018-2021 The Linux Foundation. All rights reserved.
4 * Copyright (c) 2021-2024 Qualcomm Innovation Center, Inc. All rights reserved.
5 */
6
7#include <linux/elf.h>
8

--- 2524 unchanged lines hidden (view full) ---

2533
2534static int ath12k_qmi_load_file_target_mem(struct ath12k_base *ab,
2535 const u8 *data, u32 len, u8 type)
2536{
2537 struct qmi_wlanfw_bdf_download_req_msg_v01 *req;
2538 struct qmi_wlanfw_bdf_download_resp_msg_v01 resp = {};
2539 struct qmi_txn txn;
2540 const u8 *temp = data;
1// SPDX-License-Identifier: BSD-3-Clause-Clear
2/*
3 * Copyright (c) 2018-2021 The Linux Foundation. All rights reserved.
4 * Copyright (c) 2021-2024 Qualcomm Innovation Center, Inc. All rights reserved.
5 */
6
7#include <linux/elf.h>
8

--- 2524 unchanged lines hidden (view full) ---

2533
2534static int ath12k_qmi_load_file_target_mem(struct ath12k_base *ab,
2535 const u8 *data, u32 len, u8 type)
2536{
2537 struct qmi_wlanfw_bdf_download_req_msg_v01 *req;
2538 struct qmi_wlanfw_bdf_download_resp_msg_v01 resp = {};
2539 struct qmi_txn txn;
2540 const u8 *temp = data;
2541 int ret;
2541 int ret = 0;
2542 u32 remaining = len;
2543
2544 req = kzalloc(sizeof(*req), GFP_KERNEL);
2545 if (!req)
2546 return -ENOMEM;
2547
2548 while (remaining) {
2549 req->valid = 1;

--- 851 unchanged lines hidden ---
2542 u32 remaining = len;
2543
2544 req = kzalloc(sizeof(*req), GFP_KERNEL);
2545 if (!req)
2546 return -ENOMEM;
2547
2548 while (remaining) {
2549 req->valid = 1;

--- 851 unchanged lines hidden ---