From patchwork Fri Aug 9 09:26:07 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kalle Valo X-Patchwork-Id: 11085995 X-Patchwork-Delegate: kvalo@adurom.com Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 5BBCA1395 for ; Fri, 9 Aug 2019 09:26:17 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 4A67C28C40 for ; Fri, 9 Aug 2019 09:26:17 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 3EB6C28C51; Fri, 9 Aug 2019 09:26:17 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 4631128C55 for ; Fri, 9 Aug 2019 09:26:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-ID:Date:To:From: Subject:Reply-To:Cc:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=awdRaS1QuuJb6jiBGJ1Yu7sbTI7agpmENX/aQoYNLpg=; b=RG+ChuePLU5Hwg Mp+hlppXzVznNXu+z+Jkzrj3XFhehJJgP01kehLkMxLxJOH0KRT+C2lsHgWi2jYJ+UTCwM1VKuvBt uuqFw3/8sFRBTNP0AD6/PbFlYaVI3Ms2gogyCvdwl9QqxPPSuqySQLeCasSeH1qBxl92wrLjJG7Fo iSBAOS9oVNEZ4T1z7s1gtvAwWB8rILhPguG4SBFN2TXjr1yEQYQeSMPyZ7r0oFZyqukQUSb3qiGFk ln4TSlm+MSkNWDMU1EIESNmAg2oUVsm+x3QhpXw3eietBaj/WiXpKE9w6pFEqC9qpdPW9zNlRXW+F EsbNmGh9DTWdAc/JmI6Q==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92 #3 (Red Hat Linux)) id 1hw1A6-0000bb-9X; Fri, 09 Aug 2019 09:26:14 +0000 Received: from smtp.codeaurora.org ([198.145.29.96]) by bombadil.infradead.org with esmtps (Exim 4.92 #3 (Red Hat Linux)) id 1hw1A3-0000ar-QF for ath11k@lists.infradead.org; Fri, 09 Aug 2019 09:26:13 +0000 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id C2ECD60710; Fri, 9 Aug 2019 09:26:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1565342770; bh=+JuPuxy3tY7V0StJAjZkd4v/xngUTMjeEuFFFnPGuTg=; h=Subject:From:To:Date:From; b=gyr5egjGPmYztBGnbJkw87zgk9XMYrBkaW/TZvT4jr1h1unwgxAQudUhvL4ZmqyMa OuXXoRAw3i+rG8iTYLz/FKtwtZYjaxJWdlJpnwMDGU6/C4nyuBpW0xHQbBcNA/5dKn jhOxVzYlAg9Q3GZN6YIcndfXKRR45KHexReAe7EE= Received: from [127.0.1.1] (88-114-240-156.elisa-laajakaista.fi [88.114.240.156]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: kvalo@smtp.codeaurora.org) by smtp.codeaurora.org (Postfix) with ESMTPSA id D4CA9602B7 for ; Fri, 9 Aug 2019 09:26:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1565342770; bh=+JuPuxy3tY7V0StJAjZkd4v/xngUTMjeEuFFFnPGuTg=; h=Subject:From:To:Date:From; b=gyr5egjGPmYztBGnbJkw87zgk9XMYrBkaW/TZvT4jr1h1unwgxAQudUhvL4ZmqyMa OuXXoRAw3i+rG8iTYLz/FKtwtZYjaxJWdlJpnwMDGU6/C4nyuBpW0xHQbBcNA/5dKn jhOxVzYlAg9Q3GZN6YIcndfXKRR45KHexReAe7EE= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org D4CA9602B7 Authentication-Results: pdx-caf-mail.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: pdx-caf-mail.web.codeaurora.org; spf=none smtp.mailfrom=kvalo@codeaurora.org Subject: [PATCH 01/15] ath11k: rename per_transfer_context to skb From: Kalle Valo To: ath11k@lists.infradead.org Date: Fri, 09 Aug 2019 12:26:07 +0300 Message-ID: <156534276745.30736.11736417077894270794.stgit@x230> User-Agent: StGit/0.19 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190809_022611_901385_3B8F6110 X-CRM114-Status: GOOD ( 11.62 ) X-BeenThere: ath11k@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "ath11k" Errors-To: ath11k-bounces+patchwork-ath11k=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP Rename the field to skb to make it more clear what it contains. While at it, change also two function parameters to use skb instead context. No functional changes. Only compile tested. Signed-off-by: Kalle Valo --- drivers/net/wireless/ath/ath11k/ce.c | 24 +++++++++++------------- drivers/net/wireless/ath/ath11k/ce.h | 2 +- 2 files changed, 12 insertions(+), 14 deletions(-) diff --git a/drivers/net/wireless/ath/ath11k/ce.c b/drivers/net/wireless/ath/ath11k/ce.c index 4ac65a16d72f..c1b170cf45ba 100644 --- a/drivers/net/wireless/ath/ath11k/ce.c +++ b/drivers/net/wireless/ath/ath11k/ce.c @@ -142,7 +142,7 @@ static int ath11k_ce_rx_buf_enqueue_pipe(struct ath11k_ce_pipe *pipe, ath11k_hal_ce_dst_set_desc(desc, paddr); - ring->per_transfer_context[write_index] = skb; + ring->skb[write_index] = skb; write_index = CE_RING_IDX_INCR(nentries_mask, write_index); ring->write_index = write_index; @@ -212,7 +212,7 @@ static int ath11k_ce_rx_post_pipe(struct ath11k_ce_pipe *pipe) } static int ath11k_ce_completed_recv_next(struct ath11k_ce_pipe *pipe, - struct sk_buff **context, int *nbytes) + struct sk_buff **skb, int *nbytes) { struct ath11k_base *ab = pipe->ab; struct hal_srng *srng; @@ -244,8 +244,8 @@ static int ath11k_ce_completed_recv_next(struct ath11k_ce_pipe *pipe, goto err; } - *context = pipe->dest_ring->per_transfer_context[sw_index]; - pipe->dest_ring->per_transfer_context[sw_index] = NULL; + *skb = pipe->dest_ring->skb[sw_index]; + pipe->dest_ring->skb[sw_index] = NULL; sw_index = CE_RING_IDX_INCR(nentries_mask, sw_index); pipe->dest_ring->sw_index = sw_index; @@ -302,7 +302,7 @@ static void ath11k_ce_recv_process_cb(struct ath11k_ce_pipe *pipe) } static int ath11k_ce_completed_send_next(struct ath11k_ce_pipe *pipe, - struct sk_buff **transfer_contextp) + struct sk_buff **skb) { struct ath11k_base *ab = pipe->ab; struct hal_srng *srng; @@ -328,9 +328,9 @@ static int ath11k_ce_completed_send_next(struct ath11k_ce_pipe *pipe, goto err_unlock; } - *transfer_contextp = pipe->src_ring->per_transfer_context[sw_index]; + *skb = pipe->src_ring->skb[sw_index]; - pipe->src_ring->per_transfer_context[sw_index] = NULL; + pipe->src_ring->skb[sw_index] = NULL; sw_index = CE_RING_IDX_INCR(nentries_mask, sw_index); pipe->src_ring->sw_index = sw_index; @@ -412,9 +412,7 @@ ath11k_ce_alloc_ring(struct ath11k_base *ab, int nentries, int desc_sz) struct ath11k_ce_ring *ce_ring; dma_addr_t base_addr; - ce_ring = kzalloc(sizeof(*ce_ring) + - (nentries * - sizeof(*ce_ring->per_transfer_context)), + ce_ring = kzalloc(sizeof(*ce_ring) + (nentries * sizeof(*ce_ring->skb)), GFP_KERNEL); if (ce_ring == NULL) return ERR_PTR(-ENOMEM); @@ -568,7 +566,7 @@ int ath11k_ce_send(struct ath11k_base *ab, struct sk_buff *skb, u8 pipe_id, ath11k_hal_ce_src_set_desc(desc, ATH11K_SKB_CB(skb)->paddr, skb->len, transfer_id, byte_swap_data); - pipe->src_ring->per_transfer_context[write_index] = skb; + pipe->src_ring->skb[write_index] = skb; pipe->src_ring->write_index = CE_RING_IDX_INCR(nentries_mask, write_index); @@ -599,11 +597,11 @@ static void ath11k_ce_rx_pipe_cleanup(struct ath11k_ce_pipe *pipe) return; for (i = 0; i < ring->nentries; i++) { - skb = ring->per_transfer_context[i]; + skb = ring->skb[i]; if (!skb) continue; - ring->per_transfer_context[i] = NULL; + ring->skb[i] = NULL; dma_unmap_single(ab->dev, ATH11K_SKB_RXCB(skb)->paddr, skb->len + skb_tailroom(skb), DMA_FROM_DEVICE); dev_kfree_skb_any(skb); diff --git a/drivers/net/wireless/ath/ath11k/ce.h b/drivers/net/wireless/ath/ath11k/ce.h index 5cc3fea55e0f..40926d06463e 100644 --- a/drivers/net/wireless/ath/ath11k/ce.h +++ b/drivers/net/wireless/ath/ath11k/ce.h @@ -139,7 +139,7 @@ struct ath11k_ce_ring { u32 hal_ring_id; /* keep last */ - struct sk_buff *per_transfer_context[0]; + struct sk_buff *skb[0]; }; struct ath11k_ce_pipe { From patchwork Fri Aug 9 09:26:15 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kalle Valo X-Patchwork-Id: 11085997 X-Patchwork-Delegate: kvalo@adurom.com Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 4F58D14D5 for ; Fri, 9 Aug 2019 09:26:23 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 3F50928C40 for ; Fri, 9 Aug 2019 09:26:23 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 3342C28C52; Fri, 9 Aug 2019 09:26:23 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id DE4CB28C40 for ; Fri, 9 Aug 2019 09:26:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-ID:Date:To:From:Subject:Reply-To:Cc:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=q5xLD3ehGm1QWHyK5Z/dGSsQjDJn4pqEhaTyYCtCIK0=; b=B2g9r5LOoNKdO0 1WbTRrkq5NwBV3dwqmTQEEVNHd91K5HINHUKfvVc1vGiJw7r7mSlIE44e4bxzUpKDZ9vm0hSwb3+L nHthicRxYrl8QhWRutjnlXhrZrIXEt44/ONGqMwzZY0jWestZDL93KmhUENRrzDiB5v3aWkT4bWXU nk8ic30iz4A76Qsrkv13JB59UYPOKQXUEcsxprNcgDXGQjZBGAIuSPnI2kQyBapqSHqe7iR8st1Yg 4XE9Orct5CJn+e1xK9tW6Qn7fsfoWJ73yvtQSMrjKZXXJHSjXPXybOGIxNAdz9gljFXlp6POowqwg NdMYYeBzPvSpDq6PPbJQ==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92 #3 (Red Hat Linux)) id 1hw1AD-0000cn-IX; Fri, 09 Aug 2019 09:26:21 +0000 Received: from smtp.codeaurora.org ([198.145.29.96]) by bombadil.infradead.org with esmtps (Exim 4.92 #3 (Red Hat Linux)) id 1hw1AA-0000cW-Vm for ath11k@lists.infradead.org; Fri, 09 Aug 2019 09:26:20 +0000 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id ADE6E608BA; Fri, 9 Aug 2019 09:26:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1565342778; bh=FaE8mNfK6atRgGh2Wz4dPcfM1/ZZ5ue0ULufNZhzB7A=; h=Subject:From:To:Date:In-Reply-To:References:From; b=F5u7TjUBzzVGRoLC+VBtsfQ5XQIT7fZbIlYEmlwNvs8UDGq9TjwJiBO4VtU7TmgmQ mC3RxQK0pCdUI4+4/KFSMLaYZ1N8Mb3BzlEq0jP+xaI5+4M52gaHM5haBchlHhg/qv 9eLMbj66kvGyWTHFEYRWY2qTKf5OK64yOf4jlV3c= Received: from [127.0.1.1] (88-114-240-156.elisa-laajakaista.fi [88.114.240.156]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: kvalo@smtp.codeaurora.org) by smtp.codeaurora.org (Postfix) with ESMTPSA id E97746074F for ; Fri, 9 Aug 2019 09:26:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1565342778; bh=FaE8mNfK6atRgGh2Wz4dPcfM1/ZZ5ue0ULufNZhzB7A=; h=Subject:From:To:Date:In-Reply-To:References:From; b=F5u7TjUBzzVGRoLC+VBtsfQ5XQIT7fZbIlYEmlwNvs8UDGq9TjwJiBO4VtU7TmgmQ mC3RxQK0pCdUI4+4/KFSMLaYZ1N8Mb3BzlEq0jP+xaI5+4M52gaHM5haBchlHhg/qv 9eLMbj66kvGyWTHFEYRWY2qTKf5OK64yOf4jlV3c= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org E97746074F Authentication-Results: pdx-caf-mail.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: pdx-caf-mail.web.codeaurora.org; spf=none smtp.mailfrom=kvalo@codeaurora.org Subject: [PATCH 02/15] ath11k: remove unused struct ath11k_ce_sg_item From: Kalle Valo To: ath11k@lists.infradead.org Date: Fri, 09 Aug 2019 12:26:15 +0300 Message-ID: <156534277569.30736.11927985442085470666.stgit@x230> In-Reply-To: <156534276745.30736.11736417077894270794.stgit@x230> References: <156534276745.30736.11736417077894270794.stgit@x230> User-Agent: StGit/0.19 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190809_022619_041025_B4B20ED7 X-CRM114-Status: UNSURE ( 8.28 ) X-CRM114-Notice: Please train this message. X-BeenThere: ath11k@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "ath11k" Errors-To: ath11k-bounces+patchwork-ath11k=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP No need to have unused structures laying around. Signed-off-by: Kalle Valo --- drivers/net/wireless/ath/ath11k/ce.h | 8 -------- 1 file changed, 8 deletions(-) diff --git a/drivers/net/wireless/ath/ath11k/ce.h b/drivers/net/wireless/ath/ath11k/ce.h index 40926d06463e..b9f8a0b4cd7e 100644 --- a/drivers/net/wireless/ath/ath11k/ce.h +++ b/drivers/net/wireless/ath/ath11k/ce.h @@ -164,14 +164,6 @@ struct ath11k_ce { spinlock_t ce_lock; }; -struct ath11k_ce_sg_item { - u16 transfer_id; - void *transfer_context; /* NULL = tx completion callback not called */ - void *vaddr; /* for debugging mostly */ - u32 paddr; - u16 len; -}; - void ath11k_ce_cleanup_pipes(struct ath11k_base *ab); void ath11k_ce_rx_replenish_retry(struct timer_list *t); void ath11k_ce_per_engine_service(struct ath11k_base *ab, u16 ce_id); From patchwork Fri Aug 9 09:26:23 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kalle Valo X-Patchwork-Id: 11085999 X-Patchwork-Delegate: kvalo@adurom.com Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id DBEB214D5 for ; Fri, 9 Aug 2019 09:26:31 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C68A828C2D for ; Fri, 9 Aug 2019 09:26:31 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id B488C28C42; Fri, 9 Aug 2019 09:26:31 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 43CB728C2D for ; Fri, 9 Aug 2019 09:26:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-ID:Date:To:From:Subject:Reply-To:Cc:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=W65+pi9jczxY6TUi4alWsnwMuP//tHFHfMqnqvoUYNs=; b=VyWEQmaqo6L5Q7 UmTIthfNNb2MqowC0duMblnlg/qkd9ouYlgkRbfjdalYoNo9WdUdFccE4KTpeuA08nx88OJbv5qmV 46VLkK6hBNRhJKay9qZ2SWXaWP/wfCMjDS4d5hRBZDduFIq9LVObW7EipzlnpH8lWAnPvLCVsLg4H 0IJX/yk2Ltou01qjDsnqO632WQwQIAtkdUxPxky1tIyKN3n6dJTMbtkjDQcOi/qGNkNwdMZYo+DnS tOBBabYic/BS3oW62JqBzeXtLYaAlIbKQBbxsMFK4twbaTH1V55Y7UYTnoJt3tvKQ5qiPFdvY4t6u A9UDG9mM766cWK9hsYpw==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92 #3 (Red Hat Linux)) id 1hw1AL-0000e4-T2; Fri, 09 Aug 2019 09:26:29 +0000 Received: from smtp.codeaurora.org ([198.145.29.96]) by bombadil.infradead.org with esmtps (Exim 4.92 #3 (Red Hat Linux)) id 1hw1AJ-0000dl-8n for ath11k@lists.infradead.org; Fri, 09 Aug 2019 09:26:28 +0000 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id EC8546090E; Fri, 9 Aug 2019 09:26:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1565342787; bh=OQCEB4QGloqmufgqcUaJto7MwvHidT8nYn7VqyBCkPM=; h=Subject:From:To:Date:In-Reply-To:References:From; b=fZo917+6uEnNekGpFJbnqoNIxQYScESWfj+f8kuzQRq84xoCxZjNBTRoKUNzmmqUH b+WK9lAEHLivvkuwkv7Akun4zLYhxx8wAnZIJ1NllNiyOT1BvGVhTYwgx4M/Li3lD0 yJvEcp17bHsGr7R8IbNoOygGL5aC+Za0lZlEhaCA= Received: from [127.0.1.1] (88-114-240-156.elisa-laajakaista.fi [88.114.240.156]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: kvalo@smtp.codeaurora.org) by smtp.codeaurora.org (Postfix) with ESMTPSA id 0437F608FF for ; Fri, 9 Aug 2019 09:26:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1565342786; bh=OQCEB4QGloqmufgqcUaJto7MwvHidT8nYn7VqyBCkPM=; h=Subject:From:To:Date:In-Reply-To:References:From; b=GxyAaJNKfom9wSTxOdw1d0FLpEwnxtty6X3j3aZOoPckWapbSomxWOPTVyXg0Tb3d 5HAjHZk9EqkBbGsg6jSJ5minBuhPntGZajVqsb2kWmU7Q1OVnwrcDa4KEbjYK3nYa9 MZQfnEaMuAC6yMSQp4Bm68BXzaM8XkQq0c/VT7lM= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 0437F608FF Authentication-Results: pdx-caf-mail.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: pdx-caf-mail.web.codeaurora.org; spf=none smtp.mailfrom=kvalo@codeaurora.org Subject: [PATCH 03/15] ath11k: cleanup and rename ath11k_send_crash_inject_cmd() From: Kalle Valo To: ath11k@lists.infradead.org Date: Fri, 09 Aug 2019 12:26:23 +0300 Message-ID: <156534278378.30736.15842499109433409233.stgit@x230> In-Reply-To: <156534276745.30736.11736417077894270794.stgit@x230> References: <156534276745.30736.11736417077894270794.stgit@x230> User-Agent: StGit/0.19 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190809_022627_347323_E51EB8C7 X-CRM114-Status: GOOD ( 10.92 ) X-BeenThere: ath11k@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "ath11k" Errors-To: ath11k-bounces+patchwork-ath11k=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP Instead use the common style used in WMI functions in general. No functional changes, compile tested only. Signed-off-by: Kalle Valo --- drivers/net/wireless/ath/ath11k/debug.c | 7 +++---- drivers/net/wireless/ath/ath11k/wmi.c | 16 +++++++--------- drivers/net/wireless/ath/ath11k/wmi.h | 8 +------- 3 files changed, 11 insertions(+), 20 deletions(-) diff --git a/drivers/net/wireless/ath/ath11k/debug.c b/drivers/net/wireless/ath/ath11k/debug.c index e62a409185f4..2e3798cd7e99 100644 --- a/drivers/net/wireless/ath/ath11k/debug.c +++ b/drivers/net/wireless/ath/ath11k/debug.c @@ -539,7 +539,6 @@ static ssize_t ath11k_write_simulate_fw_crash(struct file *file, struct ath11k_base *ab = file->private_data; struct ath11k_pdev *pdev; struct ath11k *ar = ab->pdevs[0].ar; - struct crash_inject param; char buf[32] = {0}; ssize_t rc; int i, ret, radioup; @@ -571,9 +570,9 @@ static ssize_t ath11k_write_simulate_fw_crash(struct file *file, if (!strcmp(buf, "assert")) { ath11k_info(ab, "simulating firmware assert crash\n"); - param.type = ATH11K_WMI_FW_HANG_ASSERT_TYPE; - param.delay_time_ms = ATH11K_WMI_FW_HANG_DELAY; - ret = ath11k_send_crash_inject_cmd(&ab->wmi_sc.wmi[0], ¶m); + ret = ath11k_wmi_force_fw_hang_cmd(ar, + ATH11K_WMI_FW_HANG_ASSERT_TYPE, + ATH11K_WMI_FW_HANG_DELAY); } else { ret = -EINVAL; goto exit; diff --git a/drivers/net/wireless/ath/ath11k/wmi.c b/drivers/net/wireless/ath/ath11k/wmi.c index 464c57e59a54..24058ab1f5fd 100644 --- a/drivers/net/wireless/ath/ath11k/wmi.c +++ b/drivers/net/wireless/ath/ath11k/wmi.c @@ -1343,17 +1343,16 @@ int ath11k_wmi_set_sta_ps_param(struct ath11k *ar, u32 vdev_id, return ret; } -int ath11k_send_crash_inject_cmd(struct ath11k_pdev_wmi *wmi_handle, - struct crash_inject *param) +int ath11k_wmi_force_fw_hang_cmd(struct ath11k *ar, u32 type, u32 delay_time_ms) { - struct ath11k_base *ab = wmi_handle->wmi_sc->ab; + struct ath11k_pdev_wmi *wmi = ar->wmi; struct wmi_force_fw_hang_cmd *cmd; struct sk_buff *skb; int ret, len; len = sizeof(*cmd); - skb = ath11k_wmi_alloc_skb(wmi_handle->wmi_sc, len); + skb = ath11k_wmi_alloc_skb(wmi->wmi_sc, len); if (!skb) return -ENOMEM; @@ -1361,14 +1360,13 @@ int ath11k_send_crash_inject_cmd(struct ath11k_pdev_wmi *wmi_handle, cmd->tlv_header = FIELD_PREP(WMI_TLV_TAG, WMI_TAG_FORCE_FW_HANG_CMD) | FIELD_PREP(WMI_TLV_LEN, len - TLV_HDR_SIZE); - cmd->type = param->type; - cmd->delay_time_ms = param->delay_time_ms; + cmd->type = type; + cmd->delay_time_ms = delay_time_ms; - ret = ath11k_wmi_cmd_send(wmi_handle, skb, - WMI_FORCE_FW_HANG_CMDID); + ret = ath11k_wmi_cmd_send(wmi, skb, WMI_FORCE_FW_HANG_CMDID); if (ret) { - ath11k_warn(ab, "Failed to send WMI_FORCE_FW_HANG_CMDID"); + ath11k_warn(ar->ab, "Failed to send WMI_FORCE_FW_HANG_CMDID"); dev_kfree_skb(skb); } return ret; diff --git a/drivers/net/wireless/ath/ath11k/wmi.h b/drivers/net/wireless/ath/ath11k/wmi.h index ff31aa7d8058..96be01972aef 100644 --- a/drivers/net/wireless/ath/ath11k/wmi.h +++ b/drivers/net/wireless/ath/ath11k/wmi.h @@ -3521,11 +3521,6 @@ struct ap_ps_params { u32 value; }; -struct crash_inject { - u32 type; - u32 delay_time_ms; -}; - struct vdev_set_params { u32 if_id; u32 param_id; @@ -4612,8 +4607,7 @@ int ath11k_wmi_vdev_set_param_cmd(struct ath11k *ar, u32 vdev_id, int ath11k_wmi_set_sta_ps_param(struct ath11k *ar, u32 vdev_id, u32 param, u32 param_value); -int ath11k_send_crash_inject_cmd(struct ath11k_pdev_wmi *wmi_handle, - struct crash_inject *param); +int ath11k_wmi_force_fw_hang_cmd(struct ath11k *ar, u32 type, u32 delay_time_ms); int ath11k_wmi_send_peer_delete_cmd(struct ath11k *ar, const u8 *peer_addr, u8 vdev_id); int ath11k_wmi_vdev_delete(struct ath11k *ar, u8 vdev_id); From patchwork Fri Aug 9 09:26:32 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kalle Valo X-Patchwork-Id: 11086001 X-Patchwork-Delegate: kvalo@adurom.com Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id AB6111395 for ; Fri, 9 Aug 2019 09:26:40 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 99ABA28C2D for ; Fri, 9 Aug 2019 09:26:40 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 8C90C28C42; Fri, 9 Aug 2019 09:26:40 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 3371A28C2D for ; Fri, 9 Aug 2019 09:26:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-ID:Date:To:From:Subject:Reply-To:Cc:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=RCzH1JooepQ4yyOKFMS9VmbO6Daw9SAeCJQXam4Cw6k=; b=Kwiq1lcFkKSb/1 CJBw07Um37j8PNMFkzpGiDqOW4wYns46noG5zkrY74rsWbhK/teoYv4x/1xwL+u21aNv7j4CMduR6 gUZvxB2Tr27cOSDGmNMgF2eJuAGoX3LjedW3KuVzy+3sva2PndyrLXlyMVWgIeEtwz1PxDLE9+Iip 3xejWjvph88rEnRNM6jZezYo8U/fDN+xwydxprt831a4KTbC6FNjVp0juj4fu4/ehfp68aT/qoWNV 48pgjY3F1MRQCShG2OBBVvZow7lT2+v9oOJbUbkyZEEtDS6wmn6/fGkzmhqyL+2EUNdc7nvNyG0+s pqamP/KLYUXnxBeq1IOg==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92 #3 (Red Hat Linux)) id 1hw1AU-0000fG-B4; Fri, 09 Aug 2019 09:26:38 +0000 Received: from smtp.codeaurora.org ([198.145.29.96]) by bombadil.infradead.org with esmtps (Exim 4.92 #3 (Red Hat Linux)) id 1hw1AS-0000ez-2Q for ath11k@lists.infradead.org; Fri, 09 Aug 2019 09:26:37 +0000 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id 834E6608A5; Fri, 9 Aug 2019 09:26:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1565342795; bh=yJtmqwkazmTUmp3v/t6QSbYWvO1zYppVH/fiy06Tkz4=; h=Subject:From:To:Date:In-Reply-To:References:From; b=NpPcAyESuAZna5EX/5nNEtk4HGlosYcq9uMLBzfxeOf943dIVvB2ja6XBfucOH3Bg lH8N5CbBhjPrSqyDXqDd4M+mn9EJmuewxID8FTF0GytM9IH50NFwMMljhkNKEp5oEo gGwgzQxWfP/zBznneYYCSz42gH1ZXYq/k9kPpedI= Received: from [127.0.1.1] (88-114-240-156.elisa-laajakaista.fi [88.114.240.156]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: kvalo@smtp.codeaurora.org) by smtp.codeaurora.org (Postfix) with ESMTPSA id 307626083E for ; Fri, 9 Aug 2019 09:26:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1565342794; bh=yJtmqwkazmTUmp3v/t6QSbYWvO1zYppVH/fiy06Tkz4=; h=Subject:From:To:Date:In-Reply-To:References:From; b=S8oognZC+uzE5B+PQaxgQ/+El8k8/pmKAMezNsJH07D3AU5vMGWRpmnDLPg3x+S91 xyZZqoFx1NE31AHLrVUj/IXkozu6YEFlUhB0Ef6fttLvpH+t6KEMPSNJ4o/6s1SlG8 m04AF8kaLszFtk5MsoJClMu/d4OvVsXulo+vaVNM= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 307626083E Authentication-Results: pdx-caf-mail.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: pdx-caf-mail.web.codeaurora.org; spf=none smtp.mailfrom=kvalo@codeaurora.org Subject: [PATCH 04/15] ath11k: remove unused IEEE80211_VHTCAP defines From: Kalle Valo To: ath11k@lists.infradead.org Date: Fri, 09 Aug 2019 12:26:32 +0300 Message-ID: <156534279182.30736.14499654679081848241.stgit@x230> In-Reply-To: <156534276745.30736.11736417077894270794.stgit@x230> References: <156534276745.30736.11736417077894270794.stgit@x230> User-Agent: StGit/0.19 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190809_022636_157304_9BDEAD7A X-CRM114-Status: UNSURE ( 9.49 ) X-CRM114-Notice: Please train this message. X-BeenThere: ath11k@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "ath11k" Errors-To: ath11k-bounces+patchwork-ath11k=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP I think these should be in ieee80211.h. Also add a fixme comment for the two VHT MCS defines which are used. Signed-off-by: Kalle Valo --- drivers/net/wireless/ath/ath11k/mac.h | 50 +-------------------------------- 1 file changed, 1 insertion(+), 49 deletions(-) diff --git a/drivers/net/wireless/ath/ath11k/mac.h b/drivers/net/wireless/ath/ath11k/mac.h index 7ced4bc17c2e..29b42b145fc3 100644 --- a/drivers/net/wireless/ath/ath11k/mac.h +++ b/drivers/net/wireless/ath/ath11k/mac.h @@ -108,55 +108,7 @@ struct ath11k_generic_iter { WMI_VHT_CAP_RX_FIXED_ANT | \ WMI_VHT_CAP_TX_FIXED_ANT) -/* VHT capability flags */ -/* B0-B1 Maximum MPDU Length */ -#define IEEE80211_VHTCAP_MAX_MPDU_LEN_3839 0x00000000 -#define IEEE80211_VHTCAP_MAX_MPDU_LEN_7935 0x00000001 -#define IEEE80211_VHTCAP_MAX_MPDU_LEN_11454 0x00000002 - -/* B2-B3 Supported Channel Width */ -#define IEEE80211_VHTCAP_SUP_CHAN_WIDTH_80 0x00000000 -#define IEEE80211_VHTCAP_SUP_CHAN_WIDTH_160 0x00000004 -#define IEEE80211_VHTCAP_SUP_CHAN_WIDTH_80_160 0x00000008 -#define IEEE80211_VHTCAP_SUP_CHAN_WIDTH_S 2 - -#define IEEE80211_VHTCAP_RX_LDPC 0x00000010 -#define IEEE80211_VHTCAP_SHORTGI_80 0x00000020 -#define IEEE80211_VHTCAP_SHORTGI_160 0x00000040 -#define IEEE80211_VHTCAP_TX_STBC 0x00000080 -#define IEEE80211_VHTCAP_TX_STBC_S 7 - -#define IEEE80211_VHTCAP_RX_STBC 0x00000700 -#define IEEE80211_VHTCAP_RX_STBC_S 8 - -#define IEEE80211_VHTCAP_SU_BFORMER 0x00000800 -#define IEEE80211_VHTCAP_SU_BFORMER_S 11 -#define IEEE80211_VHTCAP_SU_BFORMEE 0x00001000 -#define IEEE80211_VHTCAP_SU_BFORMEE_S 12 - -#define IEEE80211_VHTCAP_BF_MAX_ANT 0x0000E000 -#define IEEE80211_VHTCAP_BF_MAX_ANT_S 13 - -#define IEEE80211_VHTCAP_STS_CAP_S 13 -#define IEEE80211_VHTCAP_STS_CAP_M 0x7 - -#define IEEE80211_VHTCAP_SOUND_DIM 0x00070000 -#define IEEE80211_VHTCAP_SOUND_DIM_S 16 - -#define IEEE80211_VHTCAP_MU_BFORMER 0x00080000 -#define IEEE80211_VHTCAP_MU_BFORMER_S 19 -#define IEEE80211_VHTCAP_MU_BFORMEE 0x00100000 -#define IEEE80211_VHTCAP_MU_BFORMEE_S 20 -#define IEEE80211_VHTCAP_TXOP_PS 0x00200000 -#define IEEE80211_VHTCAP_PLUS_HTC_VHT 0x00400000 - -#define IEEE80211_VHTCAP_MAX_AMPDU_LEN_FACTOR 13 -#define IEEE80211_VHTCAP_MAX_AMPDU_LEN_EXP 0x03800000 -#define IEEE80211_VHTCAP_MAX_AMPDU_LEN_EXP_S 23 - -#define IEEE80211_VHTCAP_LINK_ADAPT 0x0C000000 -#define IEEE80211_VHTCAP_RESERVED 0xF0000000 - +/* FIXME: should these be in ieee80211.h? */ #define IEEE80211_VHT_MCS_SUPPORT_0_11_MASK GENMASK(23, 16) #define IEEE80211_DISABLE_VHT_MCS_SUPPORT_0_11 BIT(24) From patchwork Fri Aug 9 09:26:40 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kalle Valo X-Patchwork-Id: 11086003 X-Patchwork-Delegate: kvalo@adurom.com Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 3F0F314D5 for ; Fri, 9 Aug 2019 09:26:50 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 2DADF28C2D for ; Fri, 9 Aug 2019 09:26:50 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 21BE228C42; Fri, 9 Aug 2019 09:26:50 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id CB06D28C2D for ; Fri, 9 Aug 2019 09:26:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-ID:Date:To:From:Subject:Reply-To:Cc:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=eD5Y96BE4AVpbMSdvIFA1EpJWoUDBNcUyoaI0uxF4Fg=; b=nBwvHSD1Byj/2W OMT88MJFKatSHAOzJ9/VAW4YYFhXzAPCpmRI+36ydyEU/LPFLqGRtbvdaQPQdSlh8c2ES5Sw3y4jr ItgsXEecSJcLkIc0rSN7sBxSzQnA69YuMKG0vyOPdJmjDKL5kvyyUPF13cQfJNjvWWpbyiEqO4vmq 9pFvRCEBsSo07qyCBlAM4TK0X5/Aq84OEFgCQ5K4IiCS9KBkuleCP1LFPJw82KORasuzB6w/8aqOI et5NufKlTqG8hATiv2dIQX8cI4U4rgAERrUh57oYY3YcPaSeFAKTKDZSPjaIsLt6QyoDBvGnOK5Ko jVHJNdNzsAvxAB3NlRvA==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92 #3 (Red Hat Linux)) id 1hw1Ad-0000go-Ng; Fri, 09 Aug 2019 09:26:47 +0000 Received: from smtp.codeaurora.org ([198.145.29.96]) by bombadil.infradead.org with esmtps (Exim 4.92 #3 (Red Hat Linux)) id 1hw1Aa-0000gT-V7 for ath11k@lists.infradead.org; Fri, 09 Aug 2019 09:26:46 +0000 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id 247E060A97; Fri, 9 Aug 2019 09:26:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1565342804; bh=9Vv/znkr/sElwUktSbZ24RCENJLrN/OrskwjH63raZQ=; h=Subject:From:To:Date:In-Reply-To:References:From; b=hELNIWrOtSXdx8QWWodImUl2Nym6f4egoKwK7oi6RzQxZKZlocdXt7SBbHJbk72BC lz3KrvHWqg08JnwUAZGNFhX/Fx2LdWiQdl5tvyUHmKSEPgpSXa5DrQj54AdHiQK+25 gIhasAcbeS1mAkLZ1V7jUGcNmd4BNqYbF3AsMroY= Received: from [127.0.1.1] (88-114-240-156.elisa-laajakaista.fi [88.114.240.156]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: kvalo@smtp.codeaurora.org) by smtp.codeaurora.org (Postfix) with ESMTPSA id ACF8B60208 for ; Fri, 9 Aug 2019 09:26:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1565342803; bh=9Vv/znkr/sElwUktSbZ24RCENJLrN/OrskwjH63raZQ=; h=Subject:From:To:Date:In-Reply-To:References:From; b=B+WJWFzOM6/sHYG48kTHn06IpwdDgs9CVUrU2FwnTsBMMQFFLB88BSl95WBujlgge tEEsHVn8ymgStmYh/OkmVtyG9CAvzyIhor7VVYG12AYORrTxW1m6PpsEl6BVw9sqZu 9Whz1kjixjUNrp2GMTct23kWQk1BdD4mey/okv3o= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org ACF8B60208 Authentication-Results: pdx-caf-mail.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: pdx-caf-mail.web.codeaurora.org; spf=none smtp.mailfrom=kvalo@codeaurora.org Subject: [PATCH 05/15] ath11k: move ath11k_mac_destroy() after _create() From: Kalle Valo To: ath11k@lists.infradead.org Date: Fri, 09 Aug 2019 12:26:40 +0300 Message-ID: <156534280030.30736.16743205044370344895.stgit@x230> In-Reply-To: <156534276745.30736.11736417077894270794.stgit@x230> References: <156534276745.30736.11736417077894270794.stgit@x230> User-Agent: StGit/0.19 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190809_022645_019413_7A69FF55 X-CRM114-Status: GOOD ( 10.21 ) X-BeenThere: ath11k@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "ath11k" Errors-To: ath11k-bounces+patchwork-ath11k=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP Just for symmetry. Signed-off-by: Kalle Valo --- drivers/net/wireless/ath/ath11k/mac.c | 34 +++++++++++++++++---------------- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/drivers/net/wireless/ath/ath11k/mac.c b/drivers/net/wireless/ath/ath11k/mac.c index c40b71e6aa92..dc9f5f98f880 100644 --- a/drivers/net/wireless/ath/ath11k/mac.c +++ b/drivers/net/wireless/ath/ath11k/mac.c @@ -5301,23 +5301,6 @@ static int ath11k_mac_register(struct ath11k *ar) return ret; } -void ath11k_mac_destroy(struct ath11k_base *ab) -{ - struct ath11k *ar; - struct ath11k_pdev *pdev; - int i; - - for (i = 0; i < ab->num_radios; i++) { - pdev = &ab->pdevs[i]; - ar = pdev->ar; - if (!ar) - continue; - - ieee80211_free_hw(ar->hw); - pdev->ar = NULL; - } -} - void ath11k_mac_unregister(struct ath11k_base *ab) { struct ath11k *ar; @@ -5429,3 +5412,20 @@ int ath11k_mac_create(struct ath11k_base *ab) return ret; } + +void ath11k_mac_destroy(struct ath11k_base *ab) +{ + struct ath11k *ar; + struct ath11k_pdev *pdev; + int i; + + for (i = 0; i < ab->num_radios; i++) { + pdev = &ab->pdevs[i]; + ar = pdev->ar; + if (!ar) + continue; + + ieee80211_free_hw(ar->hw); + pdev->ar = NULL; + } +} From patchwork Fri Aug 9 09:26:49 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kalle Valo X-Patchwork-Id: 11086005 X-Patchwork-Delegate: kvalo@adurom.com Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id E9E0014D5 for ; Fri, 9 Aug 2019 09:26:57 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D771028C40 for ; Fri, 9 Aug 2019 09:26:57 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id CA9EB28C54; Fri, 9 Aug 2019 09:26:57 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 6BCD728C40 for ; Fri, 9 Aug 2019 09:26:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-ID:Date:To:From:Subject:Reply-To:Cc:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=l8cuYj3o9JMQ6bIl8DNWmg3ketSk11fYrDTJ2J/2Avk=; b=LG5fMCr1JbI5DI yqbK+IHgwg0o6s6x44oJI+Hr6PNkN09rEcu5VFxeXLERjmpwCK8dQHSZYK1cKBihlXZatE5qmBAOU SMdiugl5JSUyGlVqYKJ+rSJjoD2ARAmY3MApj64t9y/bmd2LhEOBX8CLiEvgV/r7t4Flf6e7WwJLZ D3hmAbet0kZixvY9KQCR+lkKsUeYkH5iiQSnOG09IfInh7rliRpgn/DXWvFqv3Um5ZbTolT5GpN43 GIB09PqrelNExkzqpJjBWqaPXUggZA0MISKxeQB9AS13Xclb6nEl6EkU9TiArtlF7ovLXzeTJWqyQ fjzlSUNMHoF/3UWH0/gQ==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92 #3 (Red Hat Linux)) id 1hw1Am-0000i4-1u; Fri, 09 Aug 2019 09:26:56 +0000 Received: from smtp.codeaurora.org ([198.145.29.96]) by bombadil.infradead.org with esmtps (Exim 4.92 #3 (Red Hat Linux)) id 1hw1Aj-0000hl-J6 for ath11k@lists.infradead.org; Fri, 09 Aug 2019 09:26:54 +0000 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id 0EA6360ACE; Fri, 9 Aug 2019 09:26:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1565342813; bh=YOzdG6AgkUTJwIZETcaMTaGD8aUiZ4vTIyJZRj3WJ3c=; h=Subject:From:To:Date:In-Reply-To:References:From; b=gUxoXq3RY3ytl9uaABled+BpYBGiSO4XNGNErgFyHPj6MUyDJ2DOSxwyhhPtOSLZz j1BKjNtcLm0I6650ItKUGTMrYsiU6cH3q00au7gcElbk2rRfcGHcyQrXWjQR+mGY/R /RV6wrrL9QKf1NknmEjXGnMt9aywODnl9EIaF9XQ= Received: from [127.0.1.1] (88-114-240-156.elisa-laajakaista.fi [88.114.240.156]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: kvalo@smtp.codeaurora.org) by smtp.codeaurora.org (Postfix) with ESMTPSA id 9691C60C8B for ; Fri, 9 Aug 2019 09:26:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1565342812; bh=YOzdG6AgkUTJwIZETcaMTaGD8aUiZ4vTIyJZRj3WJ3c=; h=Subject:From:To:Date:In-Reply-To:References:From; b=e5+7XxU6HLyKOcRY2JHkiYcbrbA6Dpe4CdHMi4MYgG9NcmGQYW3ETE/+j/tLQ0mJA tixrRzp33HzpVAKGhhOyNohYIME41OHoRMQRcAA1Af0MvPt8U50uvxDDBc6DNPBh4Z 4utgNk50SAD4ohsiT5chHKFwIimyJTge1jdYYEJE= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 9691C60C8B Authentication-Results: pdx-caf-mail.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: pdx-caf-mail.web.codeaurora.org; spf=none smtp.mailfrom=kvalo@codeaurora.org Subject: [PATCH 06/15] ath11k: random whitespace fixes From: Kalle Valo To: ath11k@lists.infradead.org Date: Fri, 09 Aug 2019 12:26:49 +0300 Message-ID: <156534280882.30736.10489779348844331061.stgit@x230> In-Reply-To: <156534276745.30736.11736417077894270794.stgit@x230> References: <156534276745.30736.11736417077894270794.stgit@x230> User-Agent: StGit/0.19 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190809_022653_671678_8471DBC7 X-CRM114-Status: GOOD ( 10.14 ) X-BeenThere: ath11k@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "ath11k" Errors-To: ath11k-bounces+patchwork-ath11k=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP Found while reviewing the driver. No functional changes. Signed-off-by: Kalle Valo --- drivers/net/wireless/ath/ath11k/dp_tx.c | 4 +++- drivers/net/wireless/ath/ath11k/wmi.c | 6 +++--- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/drivers/net/wireless/ath/ath11k/dp_tx.c b/drivers/net/wireless/ath/ath11k/dp_tx.c index f7de1fb9820b..69f78d209315 100644 --- a/drivers/net/wireless/ath/ath11k/dp_tx.c +++ b/drivers/net/wireless/ath/ath11k/dp_tx.c @@ -112,7 +112,7 @@ int ath11k_dp_tx(struct ath11k *ar, struct ath11k_vif *arvif, if (info->control.hw_key) ti.encrypt_type = - ath11k_dp_tx_get_encrypt_type(info->control.hw_key->cipher); + ath11k_dp_tx_get_encrypt_type(info->control.hw_key->cipher); else ti.encrypt_type = HAL_ENCRYPT_TYPE_OPEN; @@ -123,6 +123,7 @@ int ath11k_dp_tx(struct ath11k *ar, struct ath11k_vif *arvif, ti.lmac_id = ar->lmac_id; ti.bss_ast_hash = arvif->ast_hash; ti.dscp_tid_tbl_idx = 0; + if (skb->ip_summed == CHECKSUM_PARTIAL) { ti.flags0 |= FIELD_PREP(HAL_TCL_DATA_CMD_INFO1_IP4_CKSUM_EN, 1) | FIELD_PREP(HAL_TCL_DATA_CMD_INFO1_UDP4_CKSUM_EN, 1) | @@ -133,6 +134,7 @@ int ath11k_dp_tx(struct ath11k *ar, struct ath11k_vif *arvif, if (ieee80211_vif_is_mesh(arvif->vif)) ti.flags1 |= FIELD_PREP(HAL_TCL_DATA_CMD_INFO2_MESH_ENABLE, 1); + ti.flags1 |= FIELD_PREP(HAL_TCL_DATA_CMD_INFO2_TID_OVERWRITE, 1); ti.tid = ath11k_dp_tx_get_tid(skb); diff --git a/drivers/net/wireless/ath/ath11k/wmi.c b/drivers/net/wireless/ath/ath11k/wmi.c index 24058ab1f5fd..e553adf1cf9d 100644 --- a/drivers/net/wireless/ath/ath11k/wmi.c +++ b/drivers/net/wireless/ath/ath11k/wmi.c @@ -3388,9 +3388,9 @@ static int ath11k_pull_mgmt_tx_compl_param_tlv(struct ath11k_base *ab, return -EPROTO; } - param->pdev_id = ev->pdev_id; - param->desc_id = ev->desc_id; - param->status = ev->status; + param->pdev_id = ev->pdev_id; + param->desc_id = ev->desc_id; + param->status = ev->status; kfree(tb); return 0; From patchwork Fri Aug 9 09:26:57 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kalle Valo X-Patchwork-Id: 11086007 X-Patchwork-Delegate: kvalo@adurom.com Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 48BAF1395 for ; Fri, 9 Aug 2019 09:27:06 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 348CE28C2D for ; Fri, 9 Aug 2019 09:27:06 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 28B6428C42; Fri, 9 Aug 2019 09:27:06 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id CAEDB28C2D for ; Fri, 9 Aug 2019 09:27:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-ID:Date:To:From:Subject:Reply-To:Cc:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=0ueu4Ih8gNKhtTK5HWwUFbEysBjeAF+SMGGJzgFYqwg=; b=VMgTC0gjg7q1d8 Vh++HWsjsRmxxjagH8dxZPwED2Hz4Zl2GfCk01moJ3rrK0Y6yHbBiDH6LbHgmdw9J9nUXPINdvg3e vABwfKDipOAJfaFWE3THgsu8JFkkjOrupE4P7EKCwbx7M8GaxdPUPyGC6bL0VoVEHSvfWb7M1KQmq J7mqiJzL+4dv6eVaowft0h0ALu2AhSMboHoWnqHxahyT3qhwRHnV0STby4wWon5yIHHdK8csoZ3sH OPoOwcI29STLml2lxnDkH1TSIf8J3KZ2QLHP7shO1XW83l36BsvnnbewmUXReQPYo34sCt2d336qa DatN4ea4+hpfO9ns+S9A==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92 #3 (Red Hat Linux)) id 1hw1Au-0000kX-2h; Fri, 09 Aug 2019 09:27:04 +0000 Received: from smtp.codeaurora.org ([198.145.29.96]) by bombadil.infradead.org with esmtps (Exim 4.92 #3 (Red Hat Linux)) id 1hw1Ar-0000jO-St for ath11k@lists.infradead.org; Fri, 09 Aug 2019 09:27:03 +0000 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id 53271608CC; Fri, 9 Aug 2019 09:27:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1565342821; bh=WVCys9cxLY3ei2eL+vp4eVPG6A6yHY+FC//FcxEfpzE=; h=Subject:From:To:Date:In-Reply-To:References:From; b=VIp63uR1YYbcprrt7ZPpB9/dSldCa7x3wWEjIe6z/X7SOKdjTPnJ83lZam/2+tdVd ZY90RNK5l4OWxhIP6h3lCU31OFmCuBf/GzF/w3sYiFvcdvwFuAQHH5h0kBcHvxHXGL QFxgypwzUhRDskAxhZZmx7vlpsnDfefzDkWgvfTQ= Received: from [127.0.1.1] (88-114-240-156.elisa-laajakaista.fi [88.114.240.156]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: kvalo@smtp.codeaurora.org) by smtp.codeaurora.org (Postfix) with ESMTPSA id EA7BF60CED for ; Fri, 9 Aug 2019 09:26:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1565342820; bh=WVCys9cxLY3ei2eL+vp4eVPG6A6yHY+FC//FcxEfpzE=; h=Subject:From:To:Date:In-Reply-To:References:From; b=J2riTmp8XE2IN/0oaDwpiBKpS+oVmzH9SSWBbvGF6kJHPdbbUOD4JRhGL1WCfZsnb sGKa+O6vNQ2J/h7oYwW1PqUQvleoxTS7pxvtD5nSjTWq+qlepeZPDFZGbVJRDiMOrH qds/QgvSpC2E4cgmMBkFOuvqEP9dRRM9sZDJzg38= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org EA7BF60CED Authentication-Results: pdx-caf-mail.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: pdx-caf-mail.web.codeaurora.org; spf=none smtp.mailfrom=kvalo@codeaurora.org Subject: [PATCH 07/15] ath11k: make static const in debugfs functions From: Kalle Valo To: ath11k@lists.infradead.org Date: Fri, 09 Aug 2019 12:26:57 +0300 Message-ID: <156534281751.30736.1189769148851226685.stgit@x230> In-Reply-To: <156534276745.30736.11736417077894270794.stgit@x230> References: <156534276745.30736.11736417077894270794.stgit@x230> User-Agent: StGit/0.19 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190809_022701_971979_0CF1ECE0 X-CRM114-Status: UNSURE ( 9.18 ) X-CRM114-Notice: Please train this message. X-BeenThere: ath11k@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "ath11k" Errors-To: ath11k-bounces+patchwork-ath11k=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP This should save memory. Signed-off-by: Kalle Valo --- drivers/net/wireless/ath/ath11k/debug.c | 4 ++-- drivers/net/wireless/ath/ath11k/debugfs_sta.c | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/net/wireless/ath/ath11k/debug.c b/drivers/net/wireless/ath/ath11k/debug.c index 2e3798cd7e99..2ebdd8fd9e81 100644 --- a/drivers/net/wireless/ath/ath11k/debug.c +++ b/drivers/net/wireless/ath/ath11k/debug.c @@ -745,12 +745,12 @@ static ssize_t ath11k_debug_dump_soc_rx_stats(struct file *file, struct ath11k_soc_dp_rx_stats *soc_stats = &ab->soc_stats; int len = 0, i, retval; const int size = 4096; - const char *rxdma_err[HAL_REO_ENTR_RING_RXDMA_ECODE_MAX] = { + static const char *rxdma_err[HAL_REO_ENTR_RING_RXDMA_ECODE_MAX] = { "Overflow", "MPDU len", "FCS", "Decrypt", "TKIP MIC", "Unencrypt", "MSDU len", "MSDU limit", "WiFi parse", "AMSDU parse", "SA timeout", "DA timeout", "Flow timeout", "Flush req"}; - const char *reo_err[HAL_REO_DEST_RING_ERROR_CODE_MAX] = { + static const char *reo_err[HAL_REO_DEST_RING_ERROR_CODE_MAX] = { "Desc addr zero", "Desc inval", "AMPDU in non BA", "Non BA dup", "BA dup", "Frame 2k jump", "BAR 2k jump", "Frame OOR", "BAR OOR", "No BA session", diff --git a/drivers/net/wireless/ath/ath11k/debugfs_sta.c b/drivers/net/wireless/ath/ath11k/debugfs_sta.c index 83d65ea96c67..2ca3bc47e502 100644 --- a/drivers/net/wireless/ath/ath11k/debugfs_sta.c +++ b/drivers/net/wireless/ath/ath11k/debugfs_sta.c @@ -207,9 +207,9 @@ static ssize_t ath11k_dbg_sta_dump_tx_stats(struct file *file, struct ath11k_sta *arsta = (struct ath11k_sta *)sta->drv_priv; struct ath11k *ar = arsta->arvif->ar; struct ath11k_htt_data_stats *stats; - const char *str_name[ATH11K_STATS_TYPE_MAX] = {"succ", "fail", - "retry", "ampdu"}; - const char *str[ATH11K_COUNTER_TYPE_MAX] = {"bytes", "packets"}; + static const char *str_name[ATH11K_STATS_TYPE_MAX] = {"succ", "fail", + "retry", "ampdu"}; + static const char *str[ATH11K_COUNTER_TYPE_MAX] = {"bytes", "packets"}; int len = 0, i, j, k, retval = 0; const int size = 2 * 4096; char *buf; From patchwork Fri Aug 9 09:27:06 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kalle Valo X-Patchwork-Id: 11086009 X-Patchwork-Delegate: kvalo@adurom.com Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 2A98B14D5 for ; Fri, 9 Aug 2019 09:27:15 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 18EE128C2D for ; Fri, 9 Aug 2019 09:27:15 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 0C9C028C42; Fri, 9 Aug 2019 09:27:15 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id B107228C2D for ; Fri, 9 Aug 2019 09:27:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-ID:Date:To:From:Subject:Reply-To:Cc:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=0DUR1LGsm4QHIs89R3l9A45dthsX65a2xx3Ft7lcVC8=; b=YugEiAnGw6rqE8 v4aTwuChOJ/8iLqxf18S9VPpfw5bB1kW4L7vP+IXCadiNW67WpQ7UaoL7ZDYKNOvkDalnLt2ujPqk K9Mxe/KfEApfqfM6d7KJ6ln8uYz2C7wWL/Oss73eJn7LgI7HDqx+w01vdT/GRNvPFy0POjb7ywWqO HkUcabdXvBUN8wPxIx5A1yPA5I2SzkG0zt82qpVPTEY93qbzBCeOWaoVj3Ae6iVASe3/PkschbFsT MvDCLThsMKuszxITRLnfc2WWxxP1k6PSnM22NjFGSpWBzxghjaufDOLq9xId9dr03dBB3QJWGKBuE M8WiQ35LxEKPq3uymZgg==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92 #3 (Red Hat Linux)) id 1hw1B2-0000oi-MA; Fri, 09 Aug 2019 09:27:12 +0000 Received: from smtp.codeaurora.org ([198.145.29.96]) by bombadil.infradead.org with esmtps (Exim 4.92 #3 (Red Hat Linux)) id 1hw1B0-0000oG-5U for ath11k@lists.infradead.org; Fri, 09 Aug 2019 09:27:11 +0000 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id 9199860DB6; Fri, 9 Aug 2019 09:27:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1565342829; bh=nFWtqeL2N6rGTGn8xHxuqBgEkZyk3+UKHw1s6JPVVBw=; h=Subject:From:To:Date:In-Reply-To:References:From; b=GUIsVjFXbHFZZwsamInUdfG4t2ux/IXLxCpWTCy7ia/z9aY+WVEpPsBco6ddhEYop 66Y9X1SFBKETJLL502BFNoRDFPAQecZjeEufmJLVFrwitN/hxFaOcsUzTn3EwBJRV1 H0a/hFwqWLGvB0vTuE7JbEiQ9oQ+Gbw/QuISXIpY= Received: from [127.0.1.1] (88-114-240-156.elisa-laajakaista.fi [88.114.240.156]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: kvalo@smtp.codeaurora.org) by smtp.codeaurora.org (Postfix) with ESMTPSA id 3595160E40 for ; Fri, 9 Aug 2019 09:27:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1565342828; bh=nFWtqeL2N6rGTGn8xHxuqBgEkZyk3+UKHw1s6JPVVBw=; h=Subject:From:To:Date:In-Reply-To:References:From; b=lp3eeGQFXsSdNwoui1vh1tO/+P9AmuPj7FFr6p3i/vHKH5cK+VzcObjliKj8QTlPr 7rfdXNpaEZRaJDIrDVtBLF/w77P6KVUMFcWE+BpMDOD6STCToRaiE3plJBkQAdj9vv GaOKQwaxx2UzO6E3mGr1MaOU5/Hfvc1QcKzMfPx0= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 3595160E40 Authentication-Results: pdx-caf-mail.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: pdx-caf-mail.web.codeaurora.org; spf=none smtp.mailfrom=kvalo@codeaurora.org Subject: [PATCH 08/15] ath11k: remove box comments From: Kalle Valo To: ath11k@lists.infradead.org Date: Fri, 09 Aug 2019 12:27:06 +0300 Message-ID: <156534282589.30736.16735947611604984953.stgit@x230> In-Reply-To: <156534276745.30736.11736417077894270794.stgit@x230> References: <156534276745.30736.11736417077894270794.stgit@x230> User-Agent: StGit/0.19 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190809_022710_249351_43F08935 X-CRM114-Status: UNSURE ( 8.27 ) X-CRM114-Notice: Please train this message. X-BeenThere: ath11k@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "ath11k" Errors-To: ath11k-bounces+patchwork-ath11k=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP They easily get outdated so better to remove them altogether. Signed-off-by: Kalle Valo --- drivers/net/wireless/ath/ath11k/htc.c | 12 ------------ drivers/net/wireless/ath/ath11k/mac.c | 4 ---- 2 files changed, 16 deletions(-) diff --git a/drivers/net/wireless/ath/ath11k/htc.c b/drivers/net/wireless/ath/ath11k/htc.c index 8becedd006f8..fd8444f845a5 100644 --- a/drivers/net/wireless/ath/ath11k/htc.c +++ b/drivers/net/wireless/ath/ath11k/htc.c @@ -25,10 +25,6 @@ struct sk_buff *ath11k_htc_alloc_skb(struct ath11k_base *ab, int size) return skb; } -/********/ -/* Send */ -/********/ - static void ath11k_htc_control_tx_complete(struct ath11k_base *ab, struct sk_buff *skb) { @@ -153,10 +149,6 @@ int ath11k_htc_send(struct ath11k_htc *htc, return ret; } -/***********/ -/* Receive */ -/***********/ - static void ath11k_htc_process_credit_report(struct ath11k_htc *htc, const struct ath11k_htc_credit_report *report, @@ -375,10 +367,6 @@ static void ath11k_htc_control_rx_complete(struct ath11k_base *ab, kfree_skb(skb); } -/***************/ -/* Init/Deinit */ -/***************/ - static const char *htc_service_name(enum ath11k_htc_svc_id id) { switch (id) { diff --git a/drivers/net/wireless/ath/ath11k/mac.c b/drivers/net/wireless/ath/ath11k/mac.c index dc9f5f98f880..25c9104afc96 100644 --- a/drivers/net/wireless/ath/ath11k/mac.c +++ b/drivers/net/wireless/ath/ath11k/mac.c @@ -1774,10 +1774,6 @@ static void ath11k_mac_op_bss_info_changed(struct ieee80211_hw *hw, mutex_unlock(&ar->conf_mutex); } -/************/ -/* Scanning */ -/************/ - void __ath11k_mac_scan_finish(struct ath11k *ar) { lockdep_assert_held(&ar->data_lock); From patchwork Fri Aug 9 09:27:14 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kalle Valo X-Patchwork-Id: 11086011 X-Patchwork-Delegate: kvalo@adurom.com Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id E54E81395 for ; Fri, 9 Aug 2019 09:27:21 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D2FEB28C40 for ; Fri, 9 Aug 2019 09:27:21 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id C70BA28C51; Fri, 9 Aug 2019 09:27:21 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 7038328C40 for ; Fri, 9 Aug 2019 09:27:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-ID:Date:To:From:Subject:Reply-To:Cc:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=s1DP0xyK/R2aUaIVNXMt4+Rs3g/2wnndVhdlWKy7dx8=; b=o10va45/L/pr/3 xpuBkxqmS6l/XRdit4EmIc6GH1XInqrQrce1Ls/98v9rjNRiB+IaUprvO+k7dR8i+DuBs5Yyo8/sz 6hI8ETfENv5BS1tdFq1eCYURk9Of6PGADzUJktFmH8j/YPw2XLp2TLifpUwFxZ+gRujxi8e8OtzbS 0+UFeMUkNPpjK5IZTtkNmE0rKm+FvB9/EHVAtE7iPTVGMuYWZw2YutuXS76ZjG065V9mgoxE3LURM W7WSdkGg8Bz4b++j2PdFyEb08KUO97+PDX39zC71pZIloeB8OBkoX2fm67uQk5v1uUNRca/Exkd3X zEh5XYlZDFmwJk++lC/A==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92 #3 (Red Hat Linux)) id 1hw1BA-0000qD-2j; Fri, 09 Aug 2019 09:27:20 +0000 Received: from smtp.codeaurora.org ([198.145.29.96]) by bombadil.infradead.org with esmtps (Exim 4.92 #3 (Red Hat Linux)) id 1hw1B8-0000pu-2u for ath11k@lists.infradead.org; Fri, 09 Aug 2019 09:27:19 +0000 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id C28CB60E42; Fri, 9 Aug 2019 09:27:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1565342837; bh=QtLzMrh4PUurmtIcAcf+d7P5aQcJ5wySDbxjE2DJvp8=; h=Subject:From:To:Date:In-Reply-To:References:From; b=m5ZHJyJsz6G7VlZm3zH2qkHSmwauNwcKcROo+HorR8qSFuXIo1WCuO9/lM1Dv3tx+ qYEXLmkIEBbslM6U5KnonSusz8kZoRABr8dR7H8CwnSTB7tCxxWYJ7mYSHoMtECUuC Rm3rac2QSHHlae7De3dgzurSmK7b6Czrh16FL3I0= Received: from [127.0.1.1] (88-114-240-156.elisa-laajakaista.fi [88.114.240.156]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: kvalo@smtp.codeaurora.org) by smtp.codeaurora.org (Postfix) with ESMTPSA id A70EE60AA8 for ; Fri, 9 Aug 2019 09:27:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1565342837; bh=QtLzMrh4PUurmtIcAcf+d7P5aQcJ5wySDbxjE2DJvp8=; h=Subject:From:To:Date:In-Reply-To:References:From; b=m5ZHJyJsz6G7VlZm3zH2qkHSmwauNwcKcROo+HorR8qSFuXIo1WCuO9/lM1Dv3tx+ qYEXLmkIEBbslM6U5KnonSusz8kZoRABr8dR7H8CwnSTB7tCxxWYJ7mYSHoMtECUuC Rm3rac2QSHHlae7De3dgzurSmK7b6Czrh16FL3I0= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org A70EE60AA8 Authentication-Results: pdx-caf-mail.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: pdx-caf-mail.web.codeaurora.org; spf=none smtp.mailfrom=kvalo@codeaurora.org Subject: [PATCH 09/15] ath11k: move fops_pktlog_filter to correct place From: Kalle Valo To: ath11k@lists.infradead.org Date: Fri, 09 Aug 2019 12:27:14 +0300 Message-ID: <156534283428.30736.4384925111786719487.stgit@x230> In-Reply-To: <156534276745.30736.11736417077894270794.stgit@x230> References: <156534276745.30736.11736417077894270794.stgit@x230> User-Agent: StGit/0.19 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190809_022718_145049_C566DCB0 X-CRM114-Status: UNSURE ( 8.68 ) X-CRM114-Notice: Please train this message. X-BeenThere: ath11k@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "ath11k" Errors-To: ath11k-bounces+patchwork-ath11k=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP It was placed in a confusing location, fix that. No functional changes. Signed-off-by: Kalle Valo --- drivers/net/wireless/ath/ath11k/debug.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/drivers/net/wireless/ath/ath11k/debug.c b/drivers/net/wireless/ath/ath11k/debug.c index 2ebdd8fd9e81..dc247b41390d 100644 --- a/drivers/net/wireless/ath/ath11k/debug.c +++ b/drivers/net/wireless/ath/ath11k/debug.c @@ -963,6 +963,12 @@ static ssize_t ath11k_read_pktlog_filter(struct file *file, return simple_read_from_buffer(ubuf, count, ppos, buf, len); } +static const struct file_operations fops_pktlog_filter = { + .read = ath11k_read_pktlog_filter, + .write = ath11k_write_pktlog_filter, + .open = simple_open +}; + static ssize_t ath11k_write_simulate_radar(struct file *file, const char __user *user_buf, size_t count, loff_t *ppos) @@ -977,12 +983,6 @@ static ssize_t ath11k_write_simulate_radar(struct file *file, return count; } -static const struct file_operations fops_pktlog_filter = { - .read = ath11k_read_pktlog_filter, - .write = ath11k_write_pktlog_filter, - .open = simple_open -}; - static const struct file_operations fops_simulate_radar = { .write = ath11k_write_simulate_radar, .open = simple_open From patchwork Fri Aug 9 09:27:22 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kalle Valo X-Patchwork-Id: 11086013 X-Patchwork-Delegate: kvalo@adurom.com Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 9508414D5 for ; Fri, 9 Aug 2019 09:27:44 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 7ACF228C51 for ; Fri, 9 Aug 2019 09:27:44 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 6E7FE28C55; Fri, 9 Aug 2019 09:27:44 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 4AFA928C51 for ; Fri, 9 Aug 2019 09:27:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-ID:Date:To:From:Subject:Reply-To:Cc:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=LbwgEieio3Boe39J87uxYQksPVMy0pT4pFSJfMWR758=; b=ZYsq9gPuCFstOp 31b0tuWstJAtf0m7aFU6Yn4ThVl28Olv24mdMpuguVgxGbgLlBR4Y877cTZopCC0Z593xAOjTWvhV kIBZLLrhZ3MAADeHrWG33s4MgKbJim5rJMTD9G1N5cJCaOU6qYdD3RNcfy6JKPqagG8+2fwD/Z07t KUKvGxV1W7DTg7jWJnzKo08K4o+9LvEwU9IwHUANeJ7k1bnAUj5skLV3/OfjQ8rMnJZ38ZQu8augl zdpohqada6uHC88pa9PfYxn1xxZ+Wwg68jkxfsHTIfRCBeNyghqdWlhhf4acoj6pfBuEtZQLTMvgL 0wd3nWGVXPRn52s0X1/w==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92 #3 (Red Hat Linux)) id 1hw1BT-0000sz-DT; Fri, 09 Aug 2019 09:27:39 +0000 Received: from smtp.codeaurora.org ([198.145.29.96]) by bombadil.infradead.org with esmtps (Exim 4.92 #3 (Red Hat Linux)) id 1hw1BN-0000sg-LN for ath11k@lists.infradead.org; Fri, 09 Aug 2019 09:27:38 +0000 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id 0C0C3608BA; Fri, 9 Aug 2019 09:27:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1565342853; bh=ur4QGKJJggw4snoMqSrxo+/plrofg3mAWRevoAi9uJA=; h=Subject:From:To:Date:In-Reply-To:References:From; b=gaoP94Ac/q+qHDg4fOeNm5X5Hn8SZ81fjyleHrfXGEgJiYtrDDB0VJfJYnDPOZoIM Kp75oV6rgtGcJt3vurRiWtKEe05qRqavrrUjxeMweGzylkyeVIPjjz6H8KhnxoGHwk yg/e89L/UrTECwHrTIU05LzbgLOpVladZXNmbIKw= Received: from [127.0.1.1] (88-114-240-156.elisa-laajakaista.fi [88.114.240.156]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: kvalo@smtp.codeaurora.org) by smtp.codeaurora.org (Postfix) with ESMTPSA id 0252760AA3 for ; Fri, 9 Aug 2019 09:27:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1565342847; bh=ur4QGKJJggw4snoMqSrxo+/plrofg3mAWRevoAi9uJA=; h=Subject:From:To:Date:In-Reply-To:References:From; b=FN12Xl1o86uO7chOJs5vCWoViVaqjPEHvDn/McWo2ijPXavniVnyb247LnpzthE6m k7VVPYxAzlxbBCz98U4f/NRv6eW1AvloljbQD0OJd6Y3R6tsO2v5znCbsbWU2GtTNr JvdER4diGTaAAYZgFDKQk1lgXoOBCxvkfIMGKMHI= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 0252760AA3 Authentication-Results: pdx-caf-mail.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: pdx-caf-mail.web.codeaurora.org; spf=none smtp.mailfrom=kvalo@codeaurora.org Subject: [PATCH 10/15] ath11k: avoid excessive casting in debug_htt_stats.c From: Kalle Valo To: ath11k@lists.infradead.org Date: Fri, 09 Aug 2019 12:27:22 +0300 Message-ID: <156534284256.30736.15867686415548970681.stgit@x230> In-Reply-To: <156534276745.30736.11736417077894270794.stgit@x230> References: <156534276745.30736.11736417077894270794.stgit@x230> User-Agent: StGit/0.19 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190809_022733_779399_C9D9D2CF X-CRM114-Status: UNSURE ( 8.63 ) X-CRM114-Notice: Please train this message. X-BeenThere: ath11k@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "ath11k" Errors-To: ath11k-bounces+patchwork-ath11k=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP There is a lots of casting in debug_htt_stats.c, avoid that using void pointers. Because of the excessive casting in lots of places const attribute was discarded which caused a compiler warning, fix that at the same time. No functional changes, code compiled only. Signed-off-by: Kalle Valo --- drivers/net/wireless/ath/ath11k/debug_htt_stats.c | 785 ++++++++------------- 1 file changed, 306 insertions(+), 479 deletions(-) diff --git a/drivers/net/wireless/ath/ath11k/debug_htt_stats.c b/drivers/net/wireless/ath/ath11k/debug_htt_stats.c index a9dffd168309..0ba91dbdccaf 100644 --- a/drivers/net/wireless/ath/ath11k/debug_htt_stats.c +++ b/drivers/net/wireless/ath/ath11k/debug_htt_stats.c @@ -29,14 +29,12 @@ } \ } while (0) -static inline void htt_print_stats_string_tlv(const u32 *tag_buf, +static inline void htt_print_stats_string_tlv(const void *tag_buf, u16 tag_len, - u8 *user_data) + void *user_data) { - struct htt_stats_string_tlv *htt_stats_buf = - (struct htt_stats_string_tlv *)tag_buf; - struct debug_htt_stats_req *stats_req = - (struct debug_htt_stats_req *)user_data; + const struct htt_stats_string_tlv *htt_stats_buf = tag_buf; + struct debug_htt_stats_req *stats_req = user_data; u8 *buf = stats_req->buf; u32 len = stats_req->buf_len; u32 buf_len = ATH11K_HTT_STATS_BUF_SIZE; @@ -66,12 +64,10 @@ static inline void htt_print_stats_string_tlv(const u32 *tag_buf, stats_req->buf_len = len; } -static inline void htt_print_tx_pdev_stats_cmn_tlv(const u32 *tag_buf, u8 *data) +static inline void htt_print_tx_pdev_stats_cmn_tlv(const void *tag_buf, void *data) { - struct htt_tx_pdev_stats_cmn_tlv *htt_stats_buf = - (struct htt_tx_pdev_stats_cmn_tlv *)tag_buf; - struct debug_htt_stats_req *stats_req = - (struct debug_htt_stats_req *)data; + const struct htt_tx_pdev_stats_cmn_tlv *htt_stats_buf = tag_buf; + struct debug_htt_stats_req *stats_req = data; u8 *buf = stats_req->buf; u32 len = stats_req->buf_len; u32 buf_len = ATH11K_HTT_STATS_BUF_SIZE; @@ -186,14 +182,12 @@ static inline void htt_print_tx_pdev_stats_cmn_tlv(const u32 *tag_buf, u8 *data) stats_req->buf_len = len; } -static inline void htt_print_tx_pdev_stats_urrn_tlv_v(const u32 *tag_buf, +static inline void htt_print_tx_pdev_stats_urrn_tlv_v(const void *tag_buf, u16 tag_len, - u8 *data) + void *data) { - struct htt_tx_pdev_stats_urrn_tlv_v *htt_stats_buf = - (struct htt_tx_pdev_stats_urrn_tlv_v *)tag_buf; - struct debug_htt_stats_req *stats_req = - (struct debug_htt_stats_req *)data; + const struct htt_tx_pdev_stats_urrn_tlv_v *htt_stats_buf = tag_buf; + struct debug_htt_stats_req *stats_req = data; u8 *buf = stats_req->buf; u32 len = stats_req->buf_len; u32 buf_len = ATH11K_HTT_STATS_BUF_SIZE; @@ -213,14 +207,12 @@ static inline void htt_print_tx_pdev_stats_urrn_tlv_v(const u32 *tag_buf, stats_req->buf_len = len; } -static inline void htt_print_tx_pdev_stats_flush_tlv_v(const u32 *tag_buf, +static inline void htt_print_tx_pdev_stats_flush_tlv_v(const void *tag_buf, u16 tag_len, - u8 *data) + void *data) { - struct htt_tx_pdev_stats_flush_tlv_v *htt_stats_buf = - (struct htt_tx_pdev_stats_flush_tlv_v *)tag_buf; - struct debug_htt_stats_req *stats_req = - (struct debug_htt_stats_req *)data; + const struct htt_tx_pdev_stats_flush_tlv_v *htt_stats_buf = tag_buf; + struct debug_htt_stats_req *stats_req = data; u8 *buf = stats_req->buf; u32 len = stats_req->buf_len; u32 buf_len = ATH11K_HTT_STATS_BUF_SIZE; @@ -240,14 +232,12 @@ static inline void htt_print_tx_pdev_stats_flush_tlv_v(const u32 *tag_buf, stats_req->buf_len = len; } -static inline void htt_print_tx_pdev_stats_sifs_tlv_v(const u32 *tag_buf, +static inline void htt_print_tx_pdev_stats_sifs_tlv_v(const void *tag_buf, u16 tag_len, - u8 *data) + void *data) { - struct htt_tx_pdev_stats_sifs_tlv_v *htt_stats_buf = - (struct htt_tx_pdev_stats_sifs_tlv_v *)tag_buf; - struct debug_htt_stats_req *stats_req = - (struct debug_htt_stats_req *)data; + const struct htt_tx_pdev_stats_sifs_tlv_v *htt_stats_buf = tag_buf; + struct debug_htt_stats_req *stats_req = data; u8 *buf = stats_req->buf; u32 len = stats_req->buf_len; u32 buf_len = ATH11K_HTT_STATS_BUF_SIZE; @@ -268,14 +258,12 @@ static inline void htt_print_tx_pdev_stats_sifs_tlv_v(const u32 *tag_buf, stats_req->buf_len = len; } -static inline void htt_print_tx_pdev_stats_phy_err_tlv_v(const u32 *tag_buf, +static inline void htt_print_tx_pdev_stats_phy_err_tlv_v(const void *tag_buf, u16 tag_len, - u8 *data) + void *data) { - struct htt_tx_pdev_stats_phy_err_tlv_v *htt_stats_buf = - (struct htt_tx_pdev_stats_phy_err_tlv_v *)tag_buf; - struct debug_htt_stats_req *stats_req = - (struct debug_htt_stats_req *)data; + const struct htt_tx_pdev_stats_phy_err_tlv_v *htt_stats_buf = tag_buf; + struct debug_htt_stats_req *stats_req = data; u8 *buf = stats_req->buf; u32 len = stats_req->buf_len; u32 buf_len = ATH11K_HTT_STATS_BUF_SIZE; @@ -295,14 +283,12 @@ static inline void htt_print_tx_pdev_stats_phy_err_tlv_v(const u32 *tag_buf, stats_req->buf_len = len; } -static inline void htt_print_tx_pdev_stats_sifs_hist_tlv_v(const u32 *tag_buf, +static inline void htt_print_tx_pdev_stats_sifs_hist_tlv_v(const void *tag_buf, u16 tag_len, - u8 *data) + void *data) { - struct htt_tx_pdev_stats_sifs_hist_tlv_v *htt_stats_buf = - (struct htt_tx_pdev_stats_sifs_hist_tlv_v *)tag_buf; - struct debug_htt_stats_req *stats_req = - (struct debug_htt_stats_req *)data; + const struct htt_tx_pdev_stats_sifs_hist_tlv_v *htt_stats_buf = tag_buf; + struct debug_htt_stats_req *stats_req = data; u8 *buf = stats_req->buf; u32 len = stats_req->buf_len; u32 buf_len = ATH11K_HTT_STATS_BUF_SIZE; @@ -324,13 +310,11 @@ static inline void htt_print_tx_pdev_stats_sifs_hist_tlv_v(const u32 *tag_buf, stats_req->buf_len = len; } -static inline void htt_print_tx_pdev_stats_tx_ppdu_stats_tlv_v(const u32 *tag_buf, - u8 *data) +static inline void htt_print_tx_pdev_stats_tx_ppdu_stats_tlv_v(const void *tag_buf, + void *data) { - struct htt_tx_pdev_stats_tx_ppdu_stats_tlv_v *htt_stats_buf = - (struct htt_tx_pdev_stats_tx_ppdu_stats_tlv_v *)tag_buf; - struct debug_htt_stats_req *stats_req = - (struct debug_htt_stats_req *)data; + const struct htt_tx_pdev_stats_tx_ppdu_stats_tlv_v *htt_stats_buf = tag_buf; + struct debug_htt_stats_req *stats_req = data; u8 *buf = stats_req->buf; u32 len = stats_req->buf_len; u32 buf_len = ATH11K_HTT_STATS_BUF_SIZE; @@ -362,14 +346,12 @@ static inline void htt_print_tx_pdev_stats_tx_ppdu_stats_tlv_v(const u32 *tag_bu } static inline void -htt_print_tx_pdev_stats_tried_mpdu_cnt_hist_tlv_v(const u32 *tag_buf, +htt_print_tx_pdev_stats_tried_mpdu_cnt_hist_tlv_v(const void *tag_buf, u16 tag_len, - u8 *data) + void *data) { - struct htt_tx_pdev_stats_tried_mpdu_cnt_hist_tlv_v *htt_stats_buf = - (struct htt_tx_pdev_stats_tried_mpdu_cnt_hist_tlv_v *)tag_buf; - struct debug_htt_stats_req *stats_req = - (struct debug_htt_stats_req *)data; + const struct htt_tx_pdev_stats_tried_mpdu_cnt_hist_tlv_v *htt_stats_buf = tag_buf; + struct debug_htt_stats_req *stats_req = data; u8 *buf = stats_req->buf; u32 len = stats_req->buf_len; u32 buf_len = ATH11K_HTT_STATS_BUF_SIZE; @@ -401,12 +383,10 @@ htt_print_tx_pdev_stats_tried_mpdu_cnt_hist_tlv_v(const u32 *tag_buf, stats_req->buf_len = len; } -static inline void htt_print_hw_stats_intr_misc_tlv(const u32 *tag_buf, u8 *data) +static inline void htt_print_hw_stats_intr_misc_tlv(const void *tag_buf, void *data) { - struct htt_hw_stats_intr_misc_tlv *htt_stats_buf = - (struct htt_hw_stats_intr_misc_tlv *)tag_buf; - struct debug_htt_stats_req *stats_req = - (struct debug_htt_stats_req *)data; + const struct htt_hw_stats_intr_misc_tlv *htt_stats_buf = tag_buf; + struct debug_htt_stats_req *stats_req = data; u8 *buf = stats_req->buf; u32 len = stats_req->buf_len; u32 buf_len = ATH11K_HTT_STATS_BUF_SIZE; @@ -429,12 +409,10 @@ static inline void htt_print_hw_stats_intr_misc_tlv(const u32 *tag_buf, u8 *data stats_req->buf_len = len; } -static inline void htt_print_hw_stats_wd_timeout_tlv(const u32 *tag_buf, u8 *data) +static inline void htt_print_hw_stats_wd_timeout_tlv(const void *tag_buf, void *data) { - struct htt_hw_stats_wd_timeout_tlv *htt_stats_buf = - (struct htt_hw_stats_wd_timeout_tlv *)tag_buf; - struct debug_htt_stats_req *stats_req = - (struct debug_htt_stats_req *)data; + const struct htt_hw_stats_wd_timeout_tlv *htt_stats_buf = tag_buf; + struct debug_htt_stats_req *stats_req = data; u8 *buf = stats_req->buf; u32 len = stats_req->buf_len; u32 buf_len = ATH11K_HTT_STATS_BUF_SIZE; @@ -456,12 +434,10 @@ static inline void htt_print_hw_stats_wd_timeout_tlv(const u32 *tag_buf, u8 *dat stats_req->buf_len = len; } -static inline void htt_print_hw_stats_pdev_errs_tlv(const u32 *tag_buf, u8 *data) +static inline void htt_print_hw_stats_pdev_errs_tlv(const void *tag_buf, void *data) { - struct htt_hw_stats_pdev_errs_tlv *htt_stats_buf = - (struct htt_hw_stats_pdev_errs_tlv *)tag_buf; - struct debug_htt_stats_req *stats_req = - (struct debug_htt_stats_req *)data; + const struct htt_hw_stats_pdev_errs_tlv *htt_stats_buf = tag_buf; + struct debug_htt_stats_req *stats_req = data; u8 *buf = stats_req->buf; u32 len = stats_req->buf_len; u32 buf_len = ATH11K_HTT_STATS_BUF_SIZE; @@ -498,12 +474,10 @@ static inline void htt_print_hw_stats_pdev_errs_tlv(const u32 *tag_buf, u8 *data stats_req->buf_len = len; } -static inline void htt_print_msdu_flow_stats_tlv(const u32 *tag_buf, u8 *data) +static inline void htt_print_msdu_flow_stats_tlv(const void *tag_buf, void *data) { - struct htt_msdu_flow_stats_tlv *htt_stats_buf = - (struct htt_msdu_flow_stats_tlv *)tag_buf; - struct debug_htt_stats_req *stats_req = - (struct debug_htt_stats_req *)data; + const struct htt_msdu_flow_stats_tlv *htt_stats_buf = tag_buf; + struct debug_htt_stats_req *stats_req = data; u8 *buf = stats_req->buf; u32 len = stats_req->buf_len; u32 buf_len = ATH11K_HTT_STATS_BUF_SIZE; @@ -546,12 +520,10 @@ static inline void htt_print_msdu_flow_stats_tlv(const u32 *tag_buf, u8 *data) stats_req->buf_len = len; } -static inline void htt_print_tx_tid_stats_tlv(const u32 *tag_buf, u8 *data) +static inline void htt_print_tx_tid_stats_tlv(const void *tag_buf, void *data) { - struct htt_tx_tid_stats_tlv *htt_stats_buf = - (struct htt_tx_tid_stats_tlv *)tag_buf; - struct debug_htt_stats_req *stats_req = - (struct debug_htt_stats_req *)data; + const struct htt_tx_tid_stats_tlv *htt_stats_buf = tag_buf; + struct debug_htt_stats_req *stats_req = data; u8 *buf = stats_req->buf; u32 len = stats_req->buf_len; u32 buf_len = ATH11K_HTT_STATS_BUF_SIZE; @@ -598,12 +570,10 @@ static inline void htt_print_tx_tid_stats_tlv(const u32 *tag_buf, u8 *data) stats_req->buf_len = len; } -static inline void htt_print_tx_tid_stats_v1_tlv(const u32 *tag_buf, u8 *data) +static inline void htt_print_tx_tid_stats_v1_tlv(const void *tag_buf, void *data) { - struct htt_tx_tid_stats_v1_tlv *htt_stats_buf = - (struct htt_tx_tid_stats_v1_tlv *)tag_buf; - struct debug_htt_stats_req *stats_req = - (struct debug_htt_stats_req *)data; + const struct htt_tx_tid_stats_v1_tlv *htt_stats_buf = tag_buf; + struct debug_htt_stats_req *stats_req = data; u8 *buf = stats_req->buf; u32 len = stats_req->buf_len; u32 buf_len = ATH11K_HTT_STATS_BUF_SIZE; @@ -654,12 +624,10 @@ static inline void htt_print_tx_tid_stats_v1_tlv(const u32 *tag_buf, u8 *data) stats_req->buf_len = len; } -static inline void htt_print_rx_tid_stats_tlv(const u32 *tag_buf, u8 *data) +static inline void htt_print_rx_tid_stats_tlv(const void *tag_buf, void *data) { - struct htt_rx_tid_stats_tlv *htt_stats_buf = - (struct htt_rx_tid_stats_tlv *)tag_buf; - struct debug_htt_stats_req *stats_req = - (struct debug_htt_stats_req *)data; + const struct htt_rx_tid_stats_tlv *htt_stats_buf = tag_buf; + struct debug_htt_stats_req *stats_req = data; u8 *buf = stats_req->buf; u32 len = stats_req->buf_len; u32 buf_len = ATH11K_HTT_STATS_BUF_SIZE; @@ -689,12 +657,10 @@ static inline void htt_print_rx_tid_stats_tlv(const u32 *tag_buf, u8 *data) stats_req->buf_len = len; } -static inline void htt_print_counter_tlv(const u32 *tag_buf, u8 *data) +static inline void htt_print_counter_tlv(const void *tag_buf, void *data) { - struct htt_counter_tlv *htt_stats_buf = - (struct htt_counter_tlv *)tag_buf; - struct debug_htt_stats_req *stats_req = - (struct debug_htt_stats_req *)data; + const struct htt_counter_tlv *htt_stats_buf = tag_buf; + struct debug_htt_stats_req *stats_req = data; u8 *buf = stats_req->buf; u32 len = stats_req->buf_len; u32 buf_len = ATH11K_HTT_STATS_BUF_SIZE; @@ -717,12 +683,10 @@ static inline void htt_print_counter_tlv(const u32 *tag_buf, u8 *data) stats_req->buf_len = len; } -static inline void htt_print_peer_stats_cmn_tlv(const u32 *tag_buf, u8 *data) +static inline void htt_print_peer_stats_cmn_tlv(const void *tag_buf, void *data) { - struct htt_peer_stats_cmn_tlv *htt_stats_buf = - (struct htt_peer_stats_cmn_tlv *)tag_buf; - struct debug_htt_stats_req *stats_req = - (struct debug_htt_stats_req *)data; + const struct htt_peer_stats_cmn_tlv *htt_stats_buf = tag_buf; + struct debug_htt_stats_req *stats_req = data; u8 *buf = stats_req->buf; u32 len = stats_req->buf_len; u32 buf_len = ATH11K_HTT_STATS_BUF_SIZE; @@ -765,12 +729,10 @@ static inline void htt_print_peer_stats_cmn_tlv(const u32 *tag_buf, u8 *data) stats_req->buf_len = len; } -static inline void htt_print_peer_details_tlv(const u32 *tag_buf, u8 *data) +static inline void htt_print_peer_details_tlv(const void *tag_buf, void *data) { - struct htt_peer_details_tlv *htt_stats_buf = - (struct htt_peer_details_tlv *)tag_buf; - struct debug_htt_stats_req *stats_req = - (struct debug_htt_stats_req *)data; + const struct htt_peer_details_tlv *htt_stats_buf = tag_buf; + struct debug_htt_stats_req *stats_req = data; u8 *buf = stats_req->buf; u32 len = stats_req->buf_len; u32 buf_len = ATH11K_HTT_STATS_BUF_SIZE; @@ -807,12 +769,10 @@ static inline void htt_print_peer_details_tlv(const u32 *tag_buf, u8 *data) stats_req->buf_len = len; } -static inline void htt_print_tx_peer_rate_stats_tlv(const u32 *tag_buf, u8 *data) +static inline void htt_print_tx_peer_rate_stats_tlv(const void *tag_buf, void *data) { - struct htt_tx_peer_rate_stats_tlv *htt_stats_buf = - (struct htt_tx_peer_rate_stats_tlv *)tag_buf; - struct debug_htt_stats_req *stats_req = - (struct debug_htt_stats_req *)data; + const struct htt_tx_peer_rate_stats_tlv *htt_stats_buf = tag_buf; + struct debug_htt_stats_req *stats_req = data; u8 *buf = stats_req->buf; u32 len = stats_req->buf_len; u32 buf_len = ATH11K_HTT_STATS_BUF_SIZE; @@ -893,12 +853,10 @@ static inline void htt_print_tx_peer_rate_stats_tlv(const u32 *tag_buf, u8 *data stats_req->buf_len = len; } -static inline void htt_print_rx_peer_rate_stats_tlv(const u32 *tag_buf, u8 *data) +static inline void htt_print_rx_peer_rate_stats_tlv(const void *tag_buf, void *data) { - struct htt_rx_peer_rate_stats_tlv *htt_stats_buf = - (struct htt_rx_peer_rate_stats_tlv *)tag_buf; - struct debug_htt_stats_req *stats_req = - (struct debug_htt_stats_req *)data; + const struct htt_rx_peer_rate_stats_tlv *htt_stats_buf = tag_buf; + struct debug_htt_stats_req *stats_req = data; u8 *buf = stats_req->buf; u32 len = stats_req->buf_len; u32 buf_len = ATH11K_HTT_STATS_BUF_SIZE; @@ -985,12 +943,10 @@ static inline void htt_print_rx_peer_rate_stats_tlv(const u32 *tag_buf, u8 *data stats_req->buf_len = len; } -static inline void htt_print_tx_hwq_mu_mimo_sch_stats_tlv(const u32 *tag_buf, u8 *data) +static inline void htt_print_tx_hwq_mu_mimo_sch_stats_tlv(const void *tag_buf, void *data) { - struct htt_tx_hwq_mu_mimo_sch_stats_tlv *htt_stats_buf = - (struct htt_tx_hwq_mu_mimo_sch_stats_tlv *)tag_buf; - struct debug_htt_stats_req *stats_req = - (struct debug_htt_stats_req *)data; + const struct htt_tx_hwq_mu_mimo_sch_stats_tlv *htt_stats_buf = tag_buf; + struct debug_htt_stats_req *stats_req = data; u8 *buf = stats_req->buf; u32 len = stats_req->buf_len; u32 buf_len = ATH11K_HTT_STATS_BUF_SIZE; @@ -1011,13 +967,11 @@ static inline void htt_print_tx_hwq_mu_mimo_sch_stats_tlv(const u32 *tag_buf, u8 stats_req->buf_len = len; } -static inline void htt_print_tx_hwq_mu_mimo_mpdu_stats_tlv(const u32 *tag_buf, - u8 *data) +static inline void htt_print_tx_hwq_mu_mimo_mpdu_stats_tlv(const void *tag_buf, + void *data) { - struct htt_tx_hwq_mu_mimo_mpdu_stats_tlv *htt_stats_buf = - (struct htt_tx_hwq_mu_mimo_mpdu_stats_tlv *)tag_buf; - struct debug_htt_stats_req *stats_req = - (struct debug_htt_stats_req *)data; + const struct htt_tx_hwq_mu_mimo_mpdu_stats_tlv *htt_stats_buf = tag_buf; + struct debug_htt_stats_req *stats_req = data; u8 *buf = stats_req->buf; u32 len = stats_req->buf_len; u32 buf_len = ATH11K_HTT_STATS_BUF_SIZE; @@ -1047,13 +1001,11 @@ static inline void htt_print_tx_hwq_mu_mimo_mpdu_stats_tlv(const u32 *tag_buf, stats_req->buf_len = len; } -static inline void htt_print_tx_hwq_mu_mimo_cmn_stats_tlv(const u32 *tag_buf, - u8 *data) +static inline void htt_print_tx_hwq_mu_mimo_cmn_stats_tlv(const void *tag_buf, + void *data) { - struct htt_tx_hwq_mu_mimo_cmn_stats_tlv *htt_stats_buf = - (struct htt_tx_hwq_mu_mimo_cmn_stats_tlv *)tag_buf; - struct debug_htt_stats_req *stats_req = - (struct debug_htt_stats_req *)data; + const struct htt_tx_hwq_mu_mimo_cmn_stats_tlv *htt_stats_buf = tag_buf; + struct debug_htt_stats_req *stats_req = data; u8 *buf = stats_req->buf; u32 len = stats_req->buf_len; u32 buf_len = ATH11K_HTT_STATS_BUF_SIZE; @@ -1072,12 +1024,10 @@ static inline void htt_print_tx_hwq_mu_mimo_cmn_stats_tlv(const u32 *tag_buf, stats_req->buf_len = len; } -static inline void htt_print_tx_hwq_stats_cmn_tlv(const u32 *tag_buf, u8 *data) +static inline void htt_print_tx_hwq_stats_cmn_tlv(const void *tag_buf, void *data) { - struct htt_tx_hwq_stats_cmn_tlv *htt_stats_buf = - (struct htt_tx_hwq_stats_cmn_tlv *)tag_buf; - struct debug_htt_stats_req *stats_req = - (struct debug_htt_stats_req *)data; + const struct htt_tx_hwq_stats_cmn_tlv *htt_stats_buf = tag_buf; + struct debug_htt_stats_req *stats_req = data; u8 *buf = stats_req->buf; u32 len = stats_req->buf_len; u32 buf_len = ATH11K_HTT_STATS_BUF_SIZE; @@ -1137,14 +1087,12 @@ static inline void htt_print_tx_hwq_stats_cmn_tlv(const u32 *tag_buf, u8 *data) stats_req->buf_len = len; } -static inline void htt_print_tx_hwq_difs_latency_stats_tlv_v(const u32 *tag_buf, +static inline void htt_print_tx_hwq_difs_latency_stats_tlv_v(const void *tag_buf, u16 tag_len, - u8 *data) + void *data) { - struct htt_tx_hwq_difs_latency_stats_tlv_v *htt_stats_buf = - (struct htt_tx_hwq_difs_latency_stats_tlv_v *)tag_buf; - struct debug_htt_stats_req *stats_req = - (struct debug_htt_stats_req *)data; + const struct htt_tx_hwq_difs_latency_stats_tlv_v *htt_stats_buf = tag_buf; + struct debug_htt_stats_req *stats_req = data; u8 *buf = stats_req->buf; u32 len = stats_req->buf_len; u32 buf_len = ATH11K_HTT_STATS_BUF_SIZE; @@ -1169,14 +1117,12 @@ static inline void htt_print_tx_hwq_difs_latency_stats_tlv_v(const u32 *tag_buf, stats_req->buf_len = len; } -static inline void htt_print_tx_hwq_cmd_result_stats_tlv_v(const u32 *tag_buf, +static inline void htt_print_tx_hwq_cmd_result_stats_tlv_v(const void *tag_buf, u16 tag_len, - u8 *data) + void *data) { - struct htt_tx_hwq_cmd_result_stats_tlv_v *htt_stats_buf = - (struct htt_tx_hwq_cmd_result_stats_tlv_v *)tag_buf; - struct debug_htt_stats_req *stats_req = - (struct debug_htt_stats_req *)data; + const struct htt_tx_hwq_cmd_result_stats_tlv_v *htt_stats_buf = tag_buf; + struct debug_htt_stats_req *stats_req = data; u8 *buf = stats_req->buf; u32 len = stats_req->buf_len; u32 buf_len = ATH11K_HTT_STATS_BUF_SIZE; @@ -1200,14 +1146,12 @@ static inline void htt_print_tx_hwq_cmd_result_stats_tlv_v(const u32 *tag_buf, stats_req->buf_len = len; } -static inline void htt_print_tx_hwq_cmd_stall_stats_tlv_v(const u32 *tag_buf, +static inline void htt_print_tx_hwq_cmd_stall_stats_tlv_v(const void *tag_buf, u16 tag_len, - u8 *data) + void *data) { - struct htt_tx_hwq_cmd_stall_stats_tlv_v *htt_stats_buf = - (struct htt_tx_hwq_cmd_stall_stats_tlv_v *)tag_buf; - struct debug_htt_stats_req *stats_req = - (struct debug_htt_stats_req *)data; + const struct htt_tx_hwq_cmd_stall_stats_tlv_v *htt_stats_buf = tag_buf; + struct debug_htt_stats_req *stats_req = data; u8 *buf = stats_req->buf; u32 len = stats_req->buf_len; u32 buf_len = ATH11K_HTT_STATS_BUF_SIZE; @@ -1230,14 +1174,12 @@ static inline void htt_print_tx_hwq_cmd_stall_stats_tlv_v(const u32 *tag_buf, stats_req->buf_len = len; } -static inline void htt_print_tx_hwq_fes_result_stats_tlv_v(const u32 *tag_buf, +static inline void htt_print_tx_hwq_fes_result_stats_tlv_v(const void *tag_buf, u16 tag_len, - u8 *data) + void *data) { - struct htt_tx_hwq_fes_result_stats_tlv_v *htt_stats_buf = - (struct htt_tx_hwq_fes_result_stats_tlv_v *)tag_buf; - struct debug_htt_stats_req *stats_req = - (struct debug_htt_stats_req *)data; + const struct htt_tx_hwq_fes_result_stats_tlv_v *htt_stats_buf = tag_buf; + struct debug_htt_stats_req *stats_req = data; u8 *buf = stats_req->buf; u32 len = stats_req->buf_len; u32 buf_len = ATH11K_HTT_STATS_BUF_SIZE; @@ -1260,14 +1202,12 @@ static inline void htt_print_tx_hwq_fes_result_stats_tlv_v(const u32 *tag_buf, stats_req->buf_len = len; } -static inline void htt_print_tx_hwq_tried_mpdu_cnt_hist_tlv_v(const u32 *tag_buf, +static inline void htt_print_tx_hwq_tried_mpdu_cnt_hist_tlv_v(const void *tag_buf, u16 tag_len, - u8 *data) + void *data) { - struct htt_tx_hwq_tried_mpdu_cnt_hist_tlv_v *htt_stats_buf = - (struct htt_tx_hwq_tried_mpdu_cnt_hist_tlv_v *)tag_buf; - struct debug_htt_stats_req *stats_req = - (struct debug_htt_stats_req *)data; + const struct htt_tx_hwq_tried_mpdu_cnt_hist_tlv_v *htt_stats_buf = tag_buf; + struct debug_htt_stats_req *stats_req = data; u8 *buf = stats_req->buf; u32 len = stats_req->buf_len; u32 buf_len = ATH11K_HTT_STATS_BUF_SIZE; @@ -1301,14 +1241,12 @@ static inline void htt_print_tx_hwq_tried_mpdu_cnt_hist_tlv_v(const u32 *tag_buf stats_req->buf_len = len; } -static inline void htt_print_tx_hwq_txop_used_cnt_hist_tlv_v(const u32 *tag_buf, +static inline void htt_print_tx_hwq_txop_used_cnt_hist_tlv_v(const void *tag_buf, u16 tag_len, - u8 *data) + void *data) { - struct htt_tx_hwq_txop_used_cnt_hist_tlv_v *htt_stats_buf = - (struct htt_tx_hwq_txop_used_cnt_hist_tlv_v *)tag_buf; - struct debug_htt_stats_req *stats_req = - (struct debug_htt_stats_req *)data; + const struct htt_tx_hwq_txop_used_cnt_hist_tlv_v *htt_stats_buf = tag_buf; + struct debug_htt_stats_req *stats_req = data; u8 *buf = stats_req->buf; u32 len = stats_req->buf_len; u32 buf_len = ATH11K_HTT_STATS_BUF_SIZE; @@ -1337,20 +1275,18 @@ static inline void htt_print_tx_hwq_txop_used_cnt_hist_tlv_v(const u32 *tag_buf, stats_req->buf_len = len; } -static inline void htt_print_tx_sounding_stats_tlv(const u32 *tag_buf, u8 *data) +static inline void htt_print_tx_sounding_stats_tlv(const void *tag_buf, void *data) { s32 i; - struct htt_tx_sounding_stats_tlv *htt_stats_buf = - (struct htt_tx_sounding_stats_tlv *)tag_buf; - struct debug_htt_stats_req *stats_req = - (struct debug_htt_stats_req *)data; + const struct htt_tx_sounding_stats_tlv *htt_stats_buf = tag_buf; + struct debug_htt_stats_req *stats_req = data; u8 *buf = stats_req->buf; u32 len = stats_req->buf_len; u32 buf_len = ATH11K_HTT_STATS_BUF_SIZE; - u32 *cbf_20 = htt_stats_buf->cbf_20; - u32 *cbf_40 = htt_stats_buf->cbf_40; - u32 *cbf_80 = htt_stats_buf->cbf_80; - u32 *cbf_160 = htt_stats_buf->cbf_160; + const u32 *cbf_20 = htt_stats_buf->cbf_20; + const u32 *cbf_40 = htt_stats_buf->cbf_40; + const u32 *cbf_80 = htt_stats_buf->cbf_80; + const u32 *cbf_160 = htt_stats_buf->cbf_160; if (htt_stats_buf->tx_sounding_mode == HTT_TX_AC_SOUNDING_MODE) { len += HTT_DBG_OUT(buf + len, buf_len - len, @@ -1444,12 +1380,10 @@ static inline void htt_print_tx_sounding_stats_tlv(const u32 *tag_buf, u8 *data) stats_req->buf_len = len; } -static inline void htt_print_tx_selfgen_cmn_stats_tlv(const u32 *tag_buf, u8 *data) +static inline void htt_print_tx_selfgen_cmn_stats_tlv(const void *tag_buf, void *data) { - struct htt_tx_selfgen_cmn_stats_tlv *htt_stats_buf = - (struct htt_tx_selfgen_cmn_stats_tlv *)tag_buf; - struct debug_htt_stats_req *stats_req = - (struct debug_htt_stats_req *)data; + const struct htt_tx_selfgen_cmn_stats_tlv *htt_stats_buf = tag_buf; + struct debug_htt_stats_req *stats_req = data; u8 *buf = stats_req->buf; u32 len = stats_req->buf_len; u32 buf_len = ATH11K_HTT_STATS_BUF_SIZE; @@ -1488,12 +1422,10 @@ static inline void htt_print_tx_selfgen_cmn_stats_tlv(const u32 *tag_buf, u8 *da stats_req->buf_len = len; } -static inline void htt_print_tx_selfgen_ac_stats_tlv(const u32 *tag_buf, u8 *data) +static inline void htt_print_tx_selfgen_ac_stats_tlv(const void *tag_buf, void *data) { - struct htt_tx_selfgen_ac_stats_tlv *htt_stats_buf = - (struct htt_tx_selfgen_ac_stats_tlv *)tag_buf; - struct debug_htt_stats_req *stats_req = - (struct debug_htt_stats_req *)data; + const struct htt_tx_selfgen_ac_stats_tlv *htt_stats_buf = tag_buf; + struct debug_htt_stats_req *stats_req = data; u8 *buf = stats_req->buf; u32 len = stats_req->buf_len; u32 buf_len = ATH11K_HTT_STATS_BUF_SIZE; @@ -1522,12 +1454,10 @@ static inline void htt_print_tx_selfgen_ac_stats_tlv(const u32 *tag_buf, u8 *dat stats_req->buf_len = len; } -static inline void htt_print_tx_selfgen_ax_stats_tlv(const u32 *tag_buf, u8 *data) +static inline void htt_print_tx_selfgen_ax_stats_tlv(const void *tag_buf, void *data) { - struct htt_tx_selfgen_ax_stats_tlv *htt_stats_buf = - (struct htt_tx_selfgen_ax_stats_tlv *)tag_buf; - struct debug_htt_stats_req *stats_req = - (struct debug_htt_stats_req *)data; + const struct htt_tx_selfgen_ax_stats_tlv *htt_stats_buf = tag_buf; + struct debug_htt_stats_req *stats_req = data; u8 *buf = stats_req->buf; u32 len = stats_req->buf_len; u32 buf_len = ATH11K_HTT_STATS_BUF_SIZE; @@ -1572,12 +1502,10 @@ static inline void htt_print_tx_selfgen_ax_stats_tlv(const u32 *tag_buf, u8 *dat stats_req->buf_len = len; } -static inline void htt_print_tx_selfgen_ac_err_stats_tlv(const u32 *tag_buf, u8 *data) +static inline void htt_print_tx_selfgen_ac_err_stats_tlv(const void *tag_buf, void *data) { - struct htt_tx_selfgen_ac_err_stats_tlv *htt_stats_buf = - (struct htt_tx_selfgen_ac_err_stats_tlv *)tag_buf; - struct debug_htt_stats_req *stats_req = - (struct debug_htt_stats_req *)data; + const struct htt_tx_selfgen_ac_err_stats_tlv *htt_stats_buf = tag_buf; + struct debug_htt_stats_req *stats_req = data; u8 *buf = stats_req->buf; u32 len = stats_req->buf_len; u32 buf_len = ATH11K_HTT_STATS_BUF_SIZE; @@ -1606,12 +1534,10 @@ static inline void htt_print_tx_selfgen_ac_err_stats_tlv(const u32 *tag_buf, u8 stats_req->buf_len = len; } -static inline void htt_print_tx_selfgen_ax_err_stats_tlv(const u32 *tag_buf, u8 *data) +static inline void htt_print_tx_selfgen_ax_err_stats_tlv(const void *tag_buf, void *data) { - struct htt_tx_selfgen_ax_err_stats_tlv *htt_stats_buf = - (struct htt_tx_selfgen_ax_err_stats_tlv *)tag_buf; - struct debug_htt_stats_req *stats_req = - (struct debug_htt_stats_req *)data; + const struct htt_tx_selfgen_ax_err_stats_tlv *htt_stats_buf = tag_buf; + struct debug_htt_stats_req *stats_req = data; u8 *buf = stats_req->buf; u32 len = stats_req->buf_len; u32 buf_len = ATH11K_HTT_STATS_BUF_SIZE; @@ -1656,13 +1582,11 @@ static inline void htt_print_tx_selfgen_ax_err_stats_tlv(const u32 *tag_buf, u8 stats_req->buf_len = len; } -static inline void htt_print_tx_pdev_mu_mimo_sch_stats_tlv(const u32 *tag_buf, - u8 *data) +static inline void htt_print_tx_pdev_mu_mimo_sch_stats_tlv(const void *tag_buf, + void *data) { - struct htt_tx_pdev_mu_mimo_sch_stats_tlv *htt_stats_buf = - (struct htt_tx_pdev_mu_mimo_sch_stats_tlv *)tag_buf; - struct debug_htt_stats_req *stats_req = - (struct debug_htt_stats_req *)data; + const struct htt_tx_pdev_mu_mimo_sch_stats_tlv *htt_stats_buf = tag_buf; + struct debug_htt_stats_req *stats_req = data; u8 *buf = stats_req->buf; u32 len = stats_req->buf_len; u32 buf_len = ATH11K_HTT_STATS_BUF_SIZE; @@ -1706,12 +1630,10 @@ static inline void htt_print_tx_pdev_mu_mimo_sch_stats_tlv(const u32 *tag_buf, stats_req->buf_len = len; } -static inline void htt_print_tx_pdev_mu_mimo_mpdu_stats_tlv(const u32 *tag_buf, u8 *data) +static inline void htt_print_tx_pdev_mu_mimo_mpdu_stats_tlv(const void *tag_buf, void *data) { - struct htt_tx_pdev_mpdu_stats_tlv *htt_stats_buf = - (struct htt_tx_pdev_mpdu_stats_tlv *)tag_buf; - struct debug_htt_stats_req *stats_req = - (struct debug_htt_stats_req *)data; + const struct htt_tx_pdev_mpdu_stats_tlv *htt_stats_buf = tag_buf; + struct debug_htt_stats_req *stats_req = data; u8 *buf = stats_req->buf; u32 len = stats_req->buf_len; u32 buf_len = ATH11K_HTT_STATS_BUF_SIZE; @@ -1837,14 +1759,12 @@ static inline void htt_print_tx_pdev_mu_mimo_mpdu_stats_tlv(const u32 *tag_buf, stats_req->buf_len = len; } -static inline void htt_print_sched_txq_cmd_posted_tlv_v(const u32 *tag_buf, +static inline void htt_print_sched_txq_cmd_posted_tlv_v(const void *tag_buf, u16 tag_len, - u8 *data) + void *data) { - struct htt_sched_txq_cmd_posted_tlv_v *htt_stats_buf = - (struct htt_sched_txq_cmd_posted_tlv_v *)tag_buf; - struct debug_htt_stats_req *stats_req = - (struct debug_htt_stats_req *)data; + const struct htt_sched_txq_cmd_posted_tlv_v *htt_stats_buf = tag_buf; + struct debug_htt_stats_req *stats_req = data; u8 *buf = stats_req->buf; u32 len = stats_req->buf_len; u32 buf_len = ATH11K_HTT_STATS_BUF_SIZE; @@ -1866,14 +1786,12 @@ static inline void htt_print_sched_txq_cmd_posted_tlv_v(const u32 *tag_buf, stats_req->buf_len = len; } -static inline void htt_print_sched_txq_cmd_reaped_tlv_v(const u32 *tag_buf, +static inline void htt_print_sched_txq_cmd_reaped_tlv_v(const void *tag_buf, u16 tag_len, - u8 *data) + void *data) { - struct htt_sched_txq_cmd_reaped_tlv_v *htt_stats_buf = - (struct htt_sched_txq_cmd_reaped_tlv_v *)tag_buf; - struct debug_htt_stats_req *stats_req = - (struct debug_htt_stats_req *)data; + const struct htt_sched_txq_cmd_reaped_tlv_v *htt_stats_buf = tag_buf; + struct debug_htt_stats_req *stats_req = data; u8 *buf = stats_req->buf; u32 len = stats_req->buf_len; u32 buf_len = ATH11K_HTT_STATS_BUF_SIZE; @@ -1895,14 +1813,12 @@ static inline void htt_print_sched_txq_cmd_reaped_tlv_v(const u32 *tag_buf, stats_req->buf_len = len; } -static inline void htt_print_sched_txq_sched_order_su_tlv_v(const u32 *tag_buf, +static inline void htt_print_sched_txq_sched_order_su_tlv_v(const void *tag_buf, u16 tag_len, - u8 *data) + void *data) { - struct htt_sched_txq_sched_order_su_tlv_v *htt_stats_buf = - (struct htt_sched_txq_sched_order_su_tlv_v *)tag_buf; - struct debug_htt_stats_req *stats_req = - (struct debug_htt_stats_req *)data; + const struct htt_sched_txq_sched_order_su_tlv_v *htt_stats_buf = tag_buf; + struct debug_htt_stats_req *stats_req = data; u8 *buf = stats_req->buf; u32 len = stats_req->buf_len; u32 buf_len = ATH11K_HTT_STATS_BUF_SIZE; @@ -1927,14 +1843,12 @@ static inline void htt_print_sched_txq_sched_order_su_tlv_v(const u32 *tag_buf, stats_req->buf_len = len; } -static inline void htt_print_sched_txq_sched_ineligibility_tlv_v(const u32 *tag_buf, +static inline void htt_print_sched_txq_sched_ineligibility_tlv_v(const void *tag_buf, u16 tag_len, - u8 *data) + void *data) { - struct htt_sched_txq_sched_ineligibility_tlv_v *htt_stats_buf = - (struct htt_sched_txq_sched_ineligibility_tlv_v *)tag_buf; - struct debug_htt_stats_req *stats_req = - (struct debug_htt_stats_req *)data; + const struct htt_sched_txq_sched_ineligibility_tlv_v *htt_stats_buf = tag_buf; + struct debug_htt_stats_req *stats_req = data; u8 *buf = stats_req->buf; u32 len = stats_req->buf_len; u32 buf_len = ATH11K_HTT_STATS_BUF_SIZE; @@ -1958,13 +1872,11 @@ static inline void htt_print_sched_txq_sched_ineligibility_tlv_v(const u32 *tag_ stats_req->buf_len = len; } -static inline void htt_print_tx_pdev_stats_sched_per_txq_tlv(const u32 *tag_buf, - u8 *data) +static inline void htt_print_tx_pdev_stats_sched_per_txq_tlv(const void *tag_buf, + void *data) { - struct htt_tx_pdev_stats_sched_per_txq_tlv *htt_stats_buf = - (struct htt_tx_pdev_stats_sched_per_txq_tlv *)tag_buf; - struct debug_htt_stats_req *stats_req = - (struct debug_htt_stats_req *)data; + const struct htt_tx_pdev_stats_sched_per_txq_tlv *htt_stats_buf = tag_buf; + struct debug_htt_stats_req *stats_req = data; u8 *buf = stats_req->buf; u32 len = stats_req->buf_len; u32 buf_len = ATH11K_HTT_STATS_BUF_SIZE; @@ -2026,16 +1938,14 @@ static inline void htt_print_tx_pdev_stats_sched_per_txq_tlv(const u32 *tag_buf, stats_req->buf_len = len; } -static inline void htt_print_stats_tx_sched_cmn_tlv(const u32 *tag_buf, - u8 *data) +static inline void htt_print_stats_tx_sched_cmn_tlv(const void *tag_buf, + void *data) { - struct debug_htt_stats_req *stats_req = - (struct debug_htt_stats_req *)data; + struct debug_htt_stats_req *stats_req = data; u8 *buf = stats_req->buf; u32 len = stats_req->buf_len; u32 buf_len = ATH11K_HTT_STATS_BUF_SIZE; - struct htt_stats_tx_sched_cmn_tlv *htt_stats_buf = - (struct htt_stats_tx_sched_cmn_tlv *)tag_buf; + const struct htt_stats_tx_sched_cmn_tlv *htt_stats_buf = tag_buf; len += HTT_DBG_OUT(buf + len, buf_len - len, "HTT_STATS_TX_SCHED_CMN_TLV:"); len += HTT_DBG_OUT(buf + len, buf_len - len, "mac_id = %u", @@ -2051,17 +1961,15 @@ static inline void htt_print_stats_tx_sched_cmn_tlv(const u32 *tag_buf, stats_req->buf_len = len; } -static inline void htt_print_tx_tqm_gen_mpdu_stats_tlv_v(const u32 *tag_buf, +static inline void htt_print_tx_tqm_gen_mpdu_stats_tlv_v(const void *tag_buf, u16 tag_len, - u8 *data) + void *data) { - struct debug_htt_stats_req *stats_req = - (struct debug_htt_stats_req *)data; + struct debug_htt_stats_req *stats_req = data; u8 *buf = stats_req->buf; u32 len = stats_req->buf_len; u32 buf_len = ATH11K_HTT_STATS_BUF_SIZE; - struct htt_tx_tqm_gen_mpdu_stats_tlv_v *htt_stats_buf = - (struct htt_tx_tqm_gen_mpdu_stats_tlv_v *)tag_buf; + const struct htt_tx_tqm_gen_mpdu_stats_tlv_v *htt_stats_buf = tag_buf; char gen_mpdu_end_reason[HTT_MAX_STRING_LEN] = {0}; u16 num_elements = min_t(u16, (tag_len >> 2), HTT_TX_TQM_MAX_LIST_MPDU_END_REASON); @@ -2081,17 +1989,15 @@ static inline void htt_print_tx_tqm_gen_mpdu_stats_tlv_v(const u32 *tag_buf, stats_req->buf_len = len; } -static inline void htt_print_tx_tqm_list_mpdu_stats_tlv_v(const u32 *tag_buf, +static inline void htt_print_tx_tqm_list_mpdu_stats_tlv_v(const void *tag_buf, u16 tag_len, - u8 *data) + void *data) { - struct debug_htt_stats_req *stats_req = - (struct debug_htt_stats_req *)data; + struct debug_htt_stats_req *stats_req = data; u8 *buf = stats_req->buf; u32 len = stats_req->buf_len; u32 buf_len = ATH11K_HTT_STATS_BUF_SIZE; - struct htt_tx_tqm_list_mpdu_stats_tlv_v *htt_stats_buf = - (struct htt_tx_tqm_list_mpdu_stats_tlv_v *)tag_buf; + const struct htt_tx_tqm_list_mpdu_stats_tlv_v *htt_stats_buf = tag_buf; char list_mpdu_end_reason[HTT_MAX_STRING_LEN] = {0}; u16 num_elems = min_t(u16, (tag_len >> 2), HTT_TX_TQM_MAX_LIST_MPDU_END_REASON); @@ -2110,17 +2016,15 @@ static inline void htt_print_tx_tqm_list_mpdu_stats_tlv_v(const u32 *tag_buf, stats_req->buf_len = len; } -static inline void htt_print_tx_tqm_list_mpdu_cnt_tlv_v(const u32 *tag_buf, +static inline void htt_print_tx_tqm_list_mpdu_cnt_tlv_v(const void *tag_buf, u16 tag_len, - u8 *data) + void *data) { - struct debug_htt_stats_req *stats_req = - (struct debug_htt_stats_req *)data; + struct debug_htt_stats_req *stats_req = data; u8 *buf = stats_req->buf; u32 len = stats_req->buf_len; u32 buf_len = ATH11K_HTT_STATS_BUF_SIZE; - struct htt_tx_tqm_list_mpdu_cnt_tlv_v *htt_stats_buf = - (struct htt_tx_tqm_list_mpdu_cnt_tlv_v *)tag_buf; + const struct htt_tx_tqm_list_mpdu_cnt_tlv_v *htt_stats_buf = tag_buf; char list_mpdu_cnt_hist[HTT_MAX_STRING_LEN] = {0}; u16 num_elems = min_t(u16, (tag_len >> 2), HTT_TX_TQM_MAX_LIST_MPDU_CNT_HISTOGRAM_BINS); @@ -2140,15 +2044,13 @@ static inline void htt_print_tx_tqm_list_mpdu_cnt_tlv_v(const u32 *tag_buf, stats_req->buf_len = len; } -static inline void htt_print_tx_tqm_pdev_stats_tlv_v(const u32 *tag_buf, u8 *data) +static inline void htt_print_tx_tqm_pdev_stats_tlv_v(const void *tag_buf, void *data) { - struct debug_htt_stats_req *stats_req = - (struct debug_htt_stats_req *)data; + struct debug_htt_stats_req *stats_req = data; u8 *buf = stats_req->buf; u32 len = stats_req->buf_len; u32 buf_len = ATH11K_HTT_STATS_BUF_SIZE; - struct htt_tx_tqm_pdev_stats_tlv_v *htt_stats_buf = - (struct htt_tx_tqm_pdev_stats_tlv_v *)tag_buf; + const struct htt_tx_tqm_pdev_stats_tlv_v *htt_stats_buf = tag_buf; len += HTT_DBG_OUT(buf + len, buf_len - len, "HTT_TX_TQM_PDEV_STATS_TLV_V:"); len += HTT_DBG_OUT(buf + len, buf_len - len, "msdu_count = %u", @@ -2222,15 +2124,13 @@ static inline void htt_print_tx_tqm_pdev_stats_tlv_v(const u32 *tag_buf, u8 *dat stats_req->buf_len = len; } -static inline void htt_print_tx_tqm_cmn_stats_tlv(const u32 *tag_buf, u8 *data) +static inline void htt_print_tx_tqm_cmn_stats_tlv(const void *tag_buf, void *data) { - struct debug_htt_stats_req *stats_req = - (struct debug_htt_stats_req *)data; + struct debug_htt_stats_req *stats_req = data; u8 *buf = stats_req->buf; u32 len = stats_req->buf_len; u32 buf_len = ATH11K_HTT_STATS_BUF_SIZE; - struct htt_tx_tqm_cmn_stats_tlv *htt_stats_buf = - (struct htt_tx_tqm_cmn_stats_tlv *)tag_buf; + const struct htt_tx_tqm_cmn_stats_tlv *htt_stats_buf = tag_buf; len += HTT_DBG_OUT(buf + len, buf_len - len, "HTT_TX_TQM_CMN_STATS_TLV:"); len += HTT_DBG_OUT(buf + len, buf_len - len, "mac_id = %u", @@ -2258,15 +2158,13 @@ static inline void htt_print_tx_tqm_cmn_stats_tlv(const u32 *tag_buf, u8 *data) stats_req->buf_len = len; } -static inline void htt_print_tx_tqm_error_stats_tlv(const u32 *tag_buf, u8 *data) +static inline void htt_print_tx_tqm_error_stats_tlv(const void *tag_buf, void *data) { - struct debug_htt_stats_req *stats_req = - (struct debug_htt_stats_req *)data; + struct debug_htt_stats_req *stats_req = data; u8 *buf = stats_req->buf; u32 len = stats_req->buf_len; u32 buf_len = ATH11K_HTT_STATS_BUF_SIZE; - struct htt_tx_tqm_error_stats_tlv *htt_stats_buf = - (struct htt_tx_tqm_error_stats_tlv *)tag_buf; + const struct htt_tx_tqm_error_stats_tlv *htt_stats_buf = tag_buf; len += HTT_DBG_OUT(buf + len, buf_len - len, "HTT_TX_TQM_ERROR_STATS_TLV:"); len += HTT_DBG_OUT(buf + len, buf_len - len, "q_empty_failure = %u", @@ -2284,15 +2182,13 @@ static inline void htt_print_tx_tqm_error_stats_tlv(const u32 *tag_buf, u8 *data stats_req->buf_len = len; } -static inline void htt_print_tx_tqm_cmdq_status_tlv(const u32 *tag_buf, u8 *data) +static inline void htt_print_tx_tqm_cmdq_status_tlv(const void *tag_buf, void *data) { - struct debug_htt_stats_req *stats_req = - (struct debug_htt_stats_req *)data; + struct debug_htt_stats_req *stats_req = data; u8 *buf = stats_req->buf; u32 len = stats_req->buf_len; u32 buf_len = ATH11K_HTT_STATS_BUF_SIZE; - struct htt_tx_tqm_cmdq_status_tlv *htt_stats_buf = - (struct htt_tx_tqm_cmdq_status_tlv *)tag_buf; + const struct htt_tx_tqm_cmdq_status_tlv *htt_stats_buf = tag_buf; len += HTT_DBG_OUT(buf + len, buf_len - len, "HTT_TX_TQM_CMDQ_STATUS_TLV:"); len += HTT_DBG_OUT(buf + len, buf_len - len, "mac_id = %u", @@ -2330,15 +2226,13 @@ static inline void htt_print_tx_tqm_cmdq_status_tlv(const u32 *tag_buf, u8 *data stats_req->buf_len = len; } -static inline void htt_print_tx_de_eapol_packets_stats_tlv(const u32 *tag_buf, u8 *data) +static inline void htt_print_tx_de_eapol_packets_stats_tlv(const void *tag_buf, void *data) { - struct debug_htt_stats_req *stats_req = - (struct debug_htt_stats_req *)data; + struct debug_htt_stats_req *stats_req = data; u8 *buf = stats_req->buf; u32 len = stats_req->buf_len; u32 buf_len = ATH11K_HTT_STATS_BUF_SIZE; - struct htt_tx_de_eapol_packets_stats_tlv *htt_stats_buf = - (struct htt_tx_de_eapol_packets_stats_tlv *)tag_buf; + const struct htt_tx_de_eapol_packets_stats_tlv *htt_stats_buf = tag_buf; len += HTT_DBG_OUT(buf + len, buf_len - len, "HTT_TX_DE_EAPOL_PACKETS_STATS_TLV:"); @@ -2363,15 +2257,13 @@ static inline void htt_print_tx_de_eapol_packets_stats_tlv(const u32 *tag_buf, u stats_req->buf_len = len; } -static inline void htt_print_tx_de_classify_failed_stats_tlv(const u32 *tag_buf, u8 *data) +static inline void htt_print_tx_de_classify_failed_stats_tlv(const void *tag_buf, void *data) { - struct debug_htt_stats_req *stats_req = - (struct debug_htt_stats_req *)data; + struct debug_htt_stats_req *stats_req = data; u8 *buf = stats_req->buf; u32 len = stats_req->buf_len; u32 buf_len = ATH11K_HTT_STATS_BUF_SIZE; - struct htt_tx_de_classify_failed_stats_tlv *htt_stats_buf = - (struct htt_tx_de_classify_failed_stats_tlv *)tag_buf; + const struct htt_tx_de_classify_failed_stats_tlv *htt_stats_buf = tag_buf; len += HTT_DBG_OUT(buf + len, buf_len - len, "HTT_TX_DE_CLASSIFY_FAILED_STATS_TLV:"); @@ -2410,15 +2302,13 @@ static inline void htt_print_tx_de_classify_failed_stats_tlv(const u32 *tag_buf, stats_req->buf_len = len; } -static inline void htt_print_tx_de_classify_stats_tlv(const u32 *tag_buf, u8 *data) +static inline void htt_print_tx_de_classify_stats_tlv(const void *tag_buf, void *data) { - struct debug_htt_stats_req *stats_req = - (struct debug_htt_stats_req *)data; + struct debug_htt_stats_req *stats_req = data; u8 *buf = stats_req->buf; u32 len = stats_req->buf_len; u32 buf_len = ATH11K_HTT_STATS_BUF_SIZE; - struct htt_tx_de_classify_stats_tlv *htt_stats_buf = - (struct htt_tx_de_classify_stats_tlv *)tag_buf; + const struct htt_tx_de_classify_stats_tlv *htt_stats_buf = tag_buf; len += HTT_DBG_OUT(buf + len, buf_len - len, "HTT_TX_DE_CLASSIFY_STATS_TLV:"); len += HTT_DBG_OUT(buf + len, buf_len - len, "arp_packets = %u", @@ -2496,15 +2386,13 @@ static inline void htt_print_tx_de_classify_stats_tlv(const u32 *tag_buf, u8 *da stats_req->buf_len = len; } -static inline void htt_print_tx_de_classify_status_stats_tlv(const u32 *tag_buf, u8 *data) +static inline void htt_print_tx_de_classify_status_stats_tlv(const void *tag_buf, void *data) { - struct debug_htt_stats_req *stats_req = - (struct debug_htt_stats_req *)data; + struct debug_htt_stats_req *stats_req = data; u8 *buf = stats_req->buf; u32 len = stats_req->buf_len; u32 buf_len = ATH11K_HTT_STATS_BUF_SIZE; - struct htt_tx_de_classify_status_stats_tlv *htt_stats_buf = - (struct htt_tx_de_classify_status_stats_tlv *)tag_buf; + const struct htt_tx_de_classify_status_stats_tlv *htt_stats_buf = tag_buf; len += HTT_DBG_OUT(buf + len, buf_len - len, "HTT_TX_DE_CLASSIFY_STATUS_STATS_TLV:"); @@ -2533,15 +2421,13 @@ static inline void htt_print_tx_de_classify_status_stats_tlv(const u32 *tag_buf, stats_req->buf_len = len; } -static inline void htt_print_tx_de_enqueue_packets_stats_tlv(const u32 *tag_buf, u8 *data) +static inline void htt_print_tx_de_enqueue_packets_stats_tlv(const void *tag_buf, void *data) { - struct debug_htt_stats_req *stats_req = - (struct debug_htt_stats_req *)data; + struct debug_htt_stats_req *stats_req = data; u8 *buf = stats_req->buf; u32 len = stats_req->buf_len; u32 buf_len = ATH11K_HTT_STATS_BUF_SIZE; - struct htt_tx_de_enqueue_packets_stats_tlv *htt_stats_buf = - (struct htt_tx_de_enqueue_packets_stats_tlv *)tag_buf; + const struct htt_tx_de_enqueue_packets_stats_tlv *htt_stats_buf = tag_buf; len += HTT_DBG_OUT(buf + len, buf_len - len, "HTT_TX_DE_ENQUEUE_PACKETS_STATS_TLV:"); @@ -2560,15 +2446,13 @@ static inline void htt_print_tx_de_enqueue_packets_stats_tlv(const u32 *tag_buf, stats_req->buf_len = len; } -static inline void htt_print_tx_de_enqueue_discard_stats_tlv(const u32 *tag_buf, u8 *data) +static inline void htt_print_tx_de_enqueue_discard_stats_tlv(const void *tag_buf, void *data) { - struct debug_htt_stats_req *stats_req = - (struct debug_htt_stats_req *)data; + struct debug_htt_stats_req *stats_req = data; u8 *buf = stats_req->buf; u32 len = stats_req->buf_len; u32 buf_len = ATH11K_HTT_STATS_BUF_SIZE; - struct htt_tx_de_enqueue_discard_stats_tlv *htt_stats_buf = - (struct htt_tx_de_enqueue_discard_stats_tlv *)tag_buf; + const struct htt_tx_de_enqueue_discard_stats_tlv *htt_stats_buf = tag_buf; len += HTT_DBG_OUT(buf + len, buf_len - len, "HTT_TX_DE_ENQUEUE_DISCARD_STATS_TLV:"); @@ -2587,15 +2471,13 @@ static inline void htt_print_tx_de_enqueue_discard_stats_tlv(const u32 *tag_buf, stats_req->buf_len = len; } -static inline void htt_print_tx_de_compl_stats_tlv(const u32 *tag_buf, u8 *data) +static inline void htt_print_tx_de_compl_stats_tlv(const void *tag_buf, void *data) { - struct debug_htt_stats_req *stats_req = - (struct debug_htt_stats_req *)data; + struct debug_htt_stats_req *stats_req = data; u8 *buf = stats_req->buf; u32 len = stats_req->buf_len; u32 buf_len = ATH11K_HTT_STATS_BUF_SIZE; - struct htt_tx_de_compl_stats_tlv *htt_stats_buf = - (struct htt_tx_de_compl_stats_tlv *)tag_buf; + const struct htt_tx_de_compl_stats_tlv *htt_stats_buf = tag_buf; len += HTT_DBG_OUT(buf + len, buf_len - len, "HTT_TX_DE_COMPL_STATS_TLV:"); len += HTT_DBG_OUT(buf + len, buf_len - len, "tcl_dummy_frame = %u", @@ -2617,17 +2499,15 @@ static inline void htt_print_tx_de_compl_stats_tlv(const u32 *tag_buf, u8 *data) stats_req->buf_len = len; } -static inline void htt_print_tx_de_fw2wbm_ring_full_hist_tlv(const u32 *tag_buf, +static inline void htt_print_tx_de_fw2wbm_ring_full_hist_tlv(const void *tag_buf, u16 tag_len, - u8 *data) + void *data) { - struct debug_htt_stats_req *stats_req = - (struct debug_htt_stats_req *)data; + struct debug_htt_stats_req *stats_req = data; u8 *buf = stats_req->buf; u32 len = stats_req->buf_len; u32 buf_len = ATH11K_HTT_STATS_BUF_SIZE; - struct htt_tx_de_fw2wbm_ring_full_hist_tlv *htt_stats_buf = - (struct htt_tx_de_fw2wbm_ring_full_hist_tlv *)tag_buf; + const struct htt_tx_de_fw2wbm_ring_full_hist_tlv *htt_stats_buf = tag_buf; char fw2wbm_ring_full_hist[HTT_MAX_STRING_LEN] = {0}; u16 num_elements = tag_len >> 2; u32 required_buffer_size = HTT_MAX_PRINT_CHAR_PER_ELEM * num_elements; @@ -2655,15 +2535,13 @@ static inline void htt_print_tx_de_fw2wbm_ring_full_hist_tlv(const u32 *tag_buf, stats_req->buf_len = len; } -static inline void htt_print_tx_de_cmn_stats_tlv(const u32 *tag_buf, u8 *data) +static inline void htt_print_tx_de_cmn_stats_tlv(const void *tag_buf, void *data) { - struct debug_htt_stats_req *stats_req = - (struct debug_htt_stats_req *)data; + struct debug_htt_stats_req *stats_req = data; u8 *buf = stats_req->buf; u32 len = stats_req->buf_len; u32 buf_len = ATH11K_HTT_STATS_BUF_SIZE; - struct htt_tx_de_cmn_stats_tlv *htt_stats_buf = - (struct htt_tx_de_cmn_stats_tlv *)tag_buf; + const struct htt_tx_de_cmn_stats_tlv *htt_stats_buf = tag_buf; len += HTT_DBG_OUT(buf + len, buf_len - len, "HTT_TX_DE_CMN_STATS_TLV:"); len += HTT_DBG_OUT(buf + len, buf_len - len, "mac_id = %u", @@ -2689,15 +2567,13 @@ static inline void htt_print_tx_de_cmn_stats_tlv(const u32 *tag_buf, u8 *data) stats_req->buf_len = len; } -static inline void htt_print_ring_if_stats_tlv(const u32 *tag_buf, u8 *data) +static inline void htt_print_ring_if_stats_tlv(const void *tag_buf, void *data) { - struct debug_htt_stats_req *stats_req = - (struct debug_htt_stats_req *)data; + struct debug_htt_stats_req *stats_req = data; u8 *buf = stats_req->buf; u32 len = stats_req->buf_len; u32 buf_len = ATH11K_HTT_STATS_BUF_SIZE; - struct htt_ring_if_stats_tlv *htt_stats_buf = - (struct htt_ring_if_stats_tlv *)tag_buf; + const struct htt_ring_if_stats_tlv *htt_stats_buf = tag_buf; char low_wm_hit_count[HTT_MAX_STRING_LEN] = {0}; char high_wm_hit_count[HTT_MAX_STRING_LEN] = {0}; @@ -2753,15 +2629,13 @@ static inline void htt_print_ring_if_stats_tlv(const u32 *tag_buf, u8 *data) stats_req->buf_len = len; } -static inline void htt_print_ring_if_cmn_tlv(const u32 *tag_buf, u8 *data) +static inline void htt_print_ring_if_cmn_tlv(const void *tag_buf, void *data) { - struct debug_htt_stats_req *stats_req = - (struct debug_htt_stats_req *)data; + struct debug_htt_stats_req *stats_req = data; u8 *buf = stats_req->buf; u32 len = stats_req->buf_len; u32 buf_len = ATH11K_HTT_STATS_BUF_SIZE; - struct htt_ring_if_cmn_tlv *htt_stats_buf = - (struct htt_ring_if_cmn_tlv *)tag_buf; + const struct htt_ring_if_cmn_tlv *htt_stats_buf = tag_buf; len += HTT_DBG_OUT(buf + len, buf_len - len, "HTT_RING_IF_CMN_TLV:"); len += HTT_DBG_OUT(buf + len, buf_len - len, "mac_id = %u", @@ -2777,17 +2651,15 @@ static inline void htt_print_ring_if_cmn_tlv(const u32 *tag_buf, u8 *data) stats_req->buf_len = len; } -static inline void htt_print_sfm_client_user_tlv_v(const u32 *tag_buf, +static inline void htt_print_sfm_client_user_tlv_v(const void *tag_buf, u16 tag_len, - u8 *data) + void *data) { - struct debug_htt_stats_req *stats_req = - (struct debug_htt_stats_req *)data; + struct debug_htt_stats_req *stats_req = data; u8 *buf = stats_req->buf; u32 len = stats_req->buf_len; u32 buf_len = ATH11K_HTT_STATS_BUF_SIZE; - struct htt_sfm_client_user_tlv_v *htt_stats_buf = - (struct htt_sfm_client_user_tlv_v *)tag_buf; + const struct htt_sfm_client_user_tlv_v *htt_stats_buf = tag_buf; char dwords_used_by_user_n[HTT_MAX_STRING_LEN] = {0}; u16 num_elems = tag_len >> 2; @@ -2807,15 +2679,13 @@ static inline void htt_print_sfm_client_user_tlv_v(const u32 *tag_buf, stats_req->buf_len = len; } -static inline void htt_print_sfm_client_tlv(const u32 *tag_buf, u8 *data) +static inline void htt_print_sfm_client_tlv(const void *tag_buf, void *data) { - struct debug_htt_stats_req *stats_req = - (struct debug_htt_stats_req *)data; + struct debug_htt_stats_req *stats_req = data; u8 *buf = stats_req->buf; u32 len = stats_req->buf_len; u32 buf_len = ATH11K_HTT_STATS_BUF_SIZE; - struct htt_sfm_client_tlv *htt_stats_buf = - (struct htt_sfm_client_tlv *)tag_buf; + const struct htt_sfm_client_tlv *htt_stats_buf = tag_buf; len += HTT_DBG_OUT(buf + len, buf_len - len, "HTT_SFM_CLIENT_TLV:"); len += HTT_DBG_OUT(buf + len, buf_len - len, "client_id = %u", @@ -2841,15 +2711,13 @@ static inline void htt_print_sfm_client_tlv(const u32 *tag_buf, u8 *data) stats_req->buf_len = len; } -static inline void htt_print_sfm_cmn_tlv(const u32 *tag_buf, u8 *data) +static inline void htt_print_sfm_cmn_tlv(const void *tag_buf, void *data) { - struct debug_htt_stats_req *stats_req = - (struct debug_htt_stats_req *)data; + struct debug_htt_stats_req *stats_req = data; u8 *buf = stats_req->buf; u32 len = stats_req->buf_len; u32 buf_len = ATH11K_HTT_STATS_BUF_SIZE; - struct htt_sfm_cmn_tlv *htt_stats_buf = - (struct htt_sfm_cmn_tlv *)tag_buf; + const struct htt_sfm_cmn_tlv *htt_stats_buf = tag_buf; len += HTT_DBG_OUT(buf + len, buf_len - len, "HTT_SFM_CMN_TLV:"); len += HTT_DBG_OUT(buf + len, buf_len - len, "mac_id = %u", @@ -2871,15 +2739,13 @@ static inline void htt_print_sfm_cmn_tlv(const u32 *tag_buf, u8 *data) stats_req->buf_len = len; } -static inline void htt_print_sring_stats_tlv(const u32 *tag_buf, u8 *data) +static inline void htt_print_sring_stats_tlv(const void *tag_buf, void *data) { - struct debug_htt_stats_req *stats_req = - (struct debug_htt_stats_req *)data; + struct debug_htt_stats_req *stats_req = data; u8 *buf = stats_req->buf; u32 len = stats_req->buf_len; u32 buf_len = ATH11K_HTT_STATS_BUF_SIZE; - struct htt_sring_stats_tlv *htt_stats_buf = - (struct htt_sring_stats_tlv *)tag_buf; + const struct htt_sring_stats_tlv *htt_stats_buf = tag_buf; len += HTT_DBG_OUT(buf + len, buf_len - len, "HTT_SRING_STATS_TLV:"); len += HTT_DBG_OUT(buf + len, buf_len - len, "mac_id = %u", @@ -2926,15 +2792,13 @@ static inline void htt_print_sring_stats_tlv(const u32 *tag_buf, u8 *data) stats_req->buf_len = len; } -static inline void htt_print_sring_cmn_tlv(const u32 *tag_buf, u8 *data) +static inline void htt_print_sring_cmn_tlv(const void *tag_buf, void *data) { - struct debug_htt_stats_req *stats_req = - (struct debug_htt_stats_req *)data; + struct debug_htt_stats_req *stats_req = data; u8 *buf = stats_req->buf; u32 len = stats_req->buf_len; u32 buf_len = ATH11K_HTT_STATS_BUF_SIZE; - struct htt_sring_cmn_tlv *htt_stats_buf = - (struct htt_sring_cmn_tlv *)tag_buf; + const struct htt_sring_cmn_tlv *htt_stats_buf = tag_buf; len += HTT_DBG_OUT(buf + len, buf_len - len, "HTT_SRING_CMN_TLV:"); len += HTT_DBG_OUT(buf + len, buf_len - len, "num_records = %u\n", @@ -2948,15 +2812,13 @@ static inline void htt_print_sring_cmn_tlv(const u32 *tag_buf, u8 *data) stats_req->buf_len = len; } -static inline void htt_print_tx_pdev_rate_stats_tlv(const u32 *tag_buf, u8 *data) +static inline void htt_print_tx_pdev_rate_stats_tlv(const void *tag_buf, void *data) { - struct debug_htt_stats_req *stats_req = - (struct debug_htt_stats_req *)data; + struct debug_htt_stats_req *stats_req = data; u8 *buf = stats_req->buf; u32 len = stats_req->buf_len; u32 buf_len = ATH11K_HTT_STATS_BUF_SIZE; - struct htt_tx_pdev_rate_stats_tlv *htt_stats_buf = - (struct htt_tx_pdev_rate_stats_tlv *)tag_buf; + const struct htt_tx_pdev_rate_stats_tlv *htt_stats_buf = tag_buf; u8 j; char str_buf[HTT_MAX_STRING_LEN] = {0}; char *tx_gi[HTT_TX_PEER_STATS_NUM_GI_COUNTERS]; @@ -3126,15 +2988,13 @@ static inline void htt_print_tx_pdev_rate_stats_tlv(const u32 *tag_buf, u8 *data stats_req->buf_len = len; } -static inline void htt_print_rx_pdev_rate_stats_tlv(const u32 *tag_buf, u8 *data) +static inline void htt_print_rx_pdev_rate_stats_tlv(const void *tag_buf, void *data) { - struct debug_htt_stats_req *stats_req = - (struct debug_htt_stats_req *)data; + struct debug_htt_stats_req *stats_req = data; u8 *buf = stats_req->buf; u32 len = stats_req->buf_len; u32 buf_len = ATH11K_HTT_STATS_BUF_SIZE; - struct htt_rx_pdev_rate_stats_tlv *htt_stats_buf = - (struct htt_rx_pdev_rate_stats_tlv *)tag_buf; + const struct htt_rx_pdev_rate_stats_tlv *htt_stats_buf = tag_buf; u8 j; char *rssi_chain[HTT_RX_PDEV_STATS_NUM_SPATIAL_STREAMS]; char *rx_gi[HTT_RX_PDEV_STATS_NUM_GI_COUNTERS]; @@ -3250,15 +3110,13 @@ static inline void htt_print_rx_pdev_rate_stats_tlv(const u32 *tag_buf, u8 *data stats_req->buf_len = len; } -static inline void htt_print_rx_soc_fw_stats_tlv(const u32 *tag_buf, u8 *data) +static inline void htt_print_rx_soc_fw_stats_tlv(const void *tag_buf, void *data) { - struct debug_htt_stats_req *stats_req = - (struct debug_htt_stats_req *)data; + struct debug_htt_stats_req *stats_req = data; u8 *buf = stats_req->buf; u32 len = stats_req->buf_len; u32 buf_len = ATH11K_HTT_STATS_BUF_SIZE; - struct htt_rx_soc_fw_stats_tlv *htt_stats_buf = - (struct htt_rx_soc_fw_stats_tlv *)tag_buf; + const struct htt_rx_soc_fw_stats_tlv *htt_stats_buf = tag_buf; len += HTT_DBG_OUT(buf + len, buf_len - len, "HTT_RX_SOC_FW_STATS_TLV:"); len += HTT_DBG_OUT(buf + len, buf_len - len, "fw_reo_ring_data_msdu = %u", @@ -3297,17 +3155,15 @@ static inline void htt_print_rx_soc_fw_stats_tlv(const u32 *tag_buf, u8 *data) stats_req->buf_len = len; } -static inline void htt_print_rx_soc_fw_refill_ring_empty_tlv_v(const u32 *tag_buf, +static inline void htt_print_rx_soc_fw_refill_ring_empty_tlv_v(const void *tag_buf, u16 tag_len, - u8 *data) + void *data) { - struct debug_htt_stats_req *stats_req = - (struct debug_htt_stats_req *)data; + struct debug_htt_stats_req *stats_req = data; u8 *buf = stats_req->buf; u32 len = stats_req->buf_len; u32 buf_len = ATH11K_HTT_STATS_BUF_SIZE; - struct htt_rx_soc_fw_refill_ring_empty_tlv_v *htt_stats_buf = - (struct htt_rx_soc_fw_refill_ring_empty_tlv_v *)tag_buf; + const struct htt_rx_soc_fw_refill_ring_empty_tlv_v *htt_stats_buf = tag_buf; char refill_ring_empty_cnt[HTT_MAX_STRING_LEN] = {0}; u16 num_elems = min_t(u16, (tag_len >> 2), HTT_RX_STATS_REFILL_MAX_RING); @@ -3329,17 +3185,15 @@ static inline void htt_print_rx_soc_fw_refill_ring_empty_tlv_v(const u32 *tag_bu } static inline void -htt_print_rx_soc_fw_refill_ring_num_rxdma_err_tlv_v(const u32 *tag_buf, +htt_print_rx_soc_fw_refill_ring_num_rxdma_err_tlv_v(const void *tag_buf, u16 tag_len, - u8 *data) + void *data) { - struct debug_htt_stats_req *stats_req = - (struct debug_htt_stats_req *)data; + struct debug_htt_stats_req *stats_req = data; u8 *buf = stats_req->buf; u32 len = stats_req->buf_len; u32 buf_len = ATH11K_HTT_STATS_BUF_SIZE; - struct htt_rx_soc_fw_refill_ring_num_rxdma_err_tlv_v *htt_stats_buf = - (struct htt_rx_soc_fw_refill_ring_num_rxdma_err_tlv_v *)tag_buf; + const struct htt_rx_soc_fw_refill_ring_num_rxdma_err_tlv_v *htt_stats_buf = tag_buf; char rxdma_err_cnt[HTT_MAX_STRING_LEN] = {0}; u16 num_elems = min_t(u16, (tag_len >> 2), HTT_RX_RXDMA_MAX_ERR_CODE); @@ -3360,17 +3214,15 @@ htt_print_rx_soc_fw_refill_ring_num_rxdma_err_tlv_v(const u32 *tag_buf, stats_req->buf_len = len; } -static inline void htt_print_rx_soc_fw_refill_ring_num_reo_err_tlv_v(const u32 *tag_buf, +static inline void htt_print_rx_soc_fw_refill_ring_num_reo_err_tlv_v(const void *tag_buf, u16 tag_len, - u8 *data) + void *data) { - struct debug_htt_stats_req *stats_req = - (struct debug_htt_stats_req *)data; + struct debug_htt_stats_req *stats_req = data; u8 *buf = stats_req->buf; u32 len = stats_req->buf_len; u32 buf_len = ATH11K_HTT_STATS_BUF_SIZE; - struct htt_rx_soc_fw_refill_ring_num_reo_err_tlv_v *htt_stats_buf = - (struct htt_rx_soc_fw_refill_ring_num_reo_err_tlv_v *)tag_buf; + const struct htt_rx_soc_fw_refill_ring_num_reo_err_tlv_v *htt_stats_buf = tag_buf; char reo_err_cnt[HTT_MAX_STRING_LEN] = {0}; u16 num_elems = min_t(u16, (tag_len >> 2), HTT_RX_REO_MAX_ERR_CODE); @@ -3391,16 +3243,14 @@ static inline void htt_print_rx_soc_fw_refill_ring_num_reo_err_tlv_v(const u32 * stats_req->buf_len = len; } -static inline void htt_print_rx_reo_debug_stats_tlv_v(const u32 *tag_buf, - u8 *data) +static inline void htt_print_rx_reo_debug_stats_tlv_v(const void *tag_buf, + void *data) { - struct debug_htt_stats_req *stats_req = - (struct debug_htt_stats_req *)data; + struct debug_htt_stats_req *stats_req = data; u8 *buf = stats_req->buf; u32 len = stats_req->buf_len; u32 buf_len = ATH11K_HTT_STATS_BUF_SIZE; - struct htt_rx_reo_resource_stats_tlv_v *htt_stats_buf = - (struct htt_rx_reo_resource_stats_tlv_v *)tag_buf; + const struct htt_rx_reo_resource_stats_tlv_v *htt_stats_buf = tag_buf; len += HTT_DBG_OUT(buf + len, buf_len - len, "HTT_RX_REO_RESOURCE_STATS_TLV:"); len += HTT_DBG_OUT(buf + len, buf_len - len, "sample_id = %u", @@ -3432,17 +3282,15 @@ static inline void htt_print_rx_reo_debug_stats_tlv_v(const u32 *tag_buf, stats_req->buf_len = len; } -static inline void htt_print_rx_soc_fw_refill_ring_num_refill_tlv_v(const u32 *tag_buf, +static inline void htt_print_rx_soc_fw_refill_ring_num_refill_tlv_v(const void *tag_buf, u16 tag_len, - u8 *data) + void *data) { - struct debug_htt_stats_req *stats_req = - (struct debug_htt_stats_req *)data; + struct debug_htt_stats_req *stats_req = data; u8 *buf = stats_req->buf; u32 len = stats_req->buf_len; u32 buf_len = ATH11K_HTT_STATS_BUF_SIZE; - struct htt_rx_soc_fw_refill_ring_num_refill_tlv_v *htt_stats_buf = - (struct htt_rx_soc_fw_refill_ring_num_refill_tlv_v *)tag_buf; + const struct htt_rx_soc_fw_refill_ring_num_refill_tlv_v *htt_stats_buf = tag_buf; char refill_ring_num_refill[HTT_MAX_STRING_LEN] = {0}; u16 num_elems = min_t(u16, (tag_len >> 2), HTT_RX_STATS_REFILL_MAX_RING); @@ -3463,16 +3311,14 @@ static inline void htt_print_rx_soc_fw_refill_ring_num_refill_tlv_v(const u32 *t stats_req->buf_len = len; } -static inline void htt_print_rx_pdev_fw_stats_tlv(const u32 *tag_buf, - u8 *data) +static inline void htt_print_rx_pdev_fw_stats_tlv(const void *tag_buf, + void *data) { - struct debug_htt_stats_req *stats_req = - (struct debug_htt_stats_req *)data; + struct debug_htt_stats_req *stats_req = data; u8 *buf = stats_req->buf; u32 len = stats_req->buf_len; u32 buf_len = ATH11K_HTT_STATS_BUF_SIZE; - struct htt_rx_pdev_fw_stats_tlv *htt_stats_buf = - (struct htt_rx_pdev_fw_stats_tlv *)tag_buf; + const struct htt_rx_pdev_fw_stats_tlv *htt_stats_buf = tag_buf; char fw_ring_mgmt_subtype[HTT_MAX_STRING_LEN] = {0}; char fw_ring_ctrl_subtype[HTT_MAX_STRING_LEN] = {0}; @@ -3589,16 +3435,14 @@ static inline void htt_print_rx_pdev_fw_stats_tlv(const u32 *tag_buf, stats_req->buf_len = len; } -static inline void htt_print_rx_pdev_fw_ring_mpdu_err_tlv_v(const u32 *tag_buf, - u8 *data) +static inline void htt_print_rx_pdev_fw_ring_mpdu_err_tlv_v(const void *tag_buf, + void *data) { - struct debug_htt_stats_req *stats_req = - (struct debug_htt_stats_req *)data; + struct debug_htt_stats_req *stats_req = data; u8 *buf = stats_req->buf; u32 len = stats_req->buf_len; u32 buf_len = ATH11K_HTT_STATS_BUF_SIZE; - struct htt_rx_pdev_fw_ring_mpdu_err_tlv_v *htt_stats_buf = - (struct htt_rx_pdev_fw_ring_mpdu_err_tlv_v *)tag_buf; + const struct htt_rx_pdev_fw_ring_mpdu_err_tlv_v *htt_stats_buf = tag_buf; char fw_ring_mpdu_err[HTT_MAX_STRING_LEN] = {0}; len += HTT_DBG_OUT(buf + len, buf_len - len, @@ -3618,17 +3462,15 @@ static inline void htt_print_rx_pdev_fw_ring_mpdu_err_tlv_v(const u32 *tag_buf, stats_req->buf_len = len; } -static inline void htt_print_rx_pdev_fw_mpdu_drop_tlv_v(const u32 *tag_buf, +static inline void htt_print_rx_pdev_fw_mpdu_drop_tlv_v(const void *tag_buf, u16 tag_len, - u8 *data) + void *data) { - struct debug_htt_stats_req *stats_req = - (struct debug_htt_stats_req *)data; + struct debug_htt_stats_req *stats_req = data; u8 *buf = stats_req->buf; u32 len = stats_req->buf_len; u32 buf_len = ATH11K_HTT_STATS_BUF_SIZE; - struct htt_rx_pdev_fw_mpdu_drop_tlv_v *htt_stats_buf = - (struct htt_rx_pdev_fw_mpdu_drop_tlv_v *)tag_buf; + const struct htt_rx_pdev_fw_mpdu_drop_tlv_v *htt_stats_buf = tag_buf; char fw_mpdu_drop[HTT_MAX_STRING_LEN] = {0}; u16 num_elems = min_t(u16, (tag_len >> 2), HTT_RX_STATS_FW_DROP_REASON_MAX); @@ -3647,16 +3489,14 @@ static inline void htt_print_rx_pdev_fw_mpdu_drop_tlv_v(const u32 *tag_buf, stats_req->buf_len = len; } -static inline void htt_print_rx_pdev_fw_stats_phy_err_tlv(const u32 *tag_buf, - u8 *data) +static inline void htt_print_rx_pdev_fw_stats_phy_err_tlv(const void *tag_buf, + void *data) { - struct debug_htt_stats_req *stats_req = - (struct debug_htt_stats_req *)data; + struct debug_htt_stats_req *stats_req = data; u8 *buf = stats_req->buf; u32 len = stats_req->buf_len; u32 buf_len = ATH11K_HTT_STATS_BUF_SIZE; - struct htt_rx_pdev_fw_stats_phy_err_tlv *htt_stats_buf = - (struct htt_rx_pdev_fw_stats_phy_err_tlv *)tag_buf; + const struct htt_rx_pdev_fw_stats_phy_err_tlv *htt_stats_buf = tag_buf; char phy_errs[HTT_MAX_STRING_LEN] = {0}; len += HTT_DBG_OUT(buf + len, buf_len - len, "HTT_RX_PDEV_FW_STATS_PHY_ERR_TLV:"); @@ -3678,16 +3518,14 @@ static inline void htt_print_rx_pdev_fw_stats_phy_err_tlv(const u32 *tag_buf, stats_req->buf_len = len; } -static inline void htt_print_pdev_cca_stats_hist_tlv(const u32 *tag_buf, - u8 *data) +static inline void htt_print_pdev_cca_stats_hist_tlv(const void *tag_buf, + void *data) { - struct debug_htt_stats_req *stats_req = - (struct debug_htt_stats_req *)data; + struct debug_htt_stats_req *stats_req = data; u8 *buf = stats_req->buf; u32 len = stats_req->buf_len; u32 buf_len = ATH11K_HTT_STATS_BUF_SIZE; - struct htt_pdev_cca_stats_hist_v1_tlv *htt_stats_buf = - (struct htt_pdev_cca_stats_hist_v1_tlv *)tag_buf; + const struct htt_pdev_cca_stats_hist_v1_tlv *htt_stats_buf = tag_buf; len += HTT_DBG_OUT(buf + len, buf_len - len, "\nHTT_PDEV_CCA_STATS_HIST_TLV:"); len += HTT_DBG_OUT(buf + len, buf_len - len, "chan_num = %u", @@ -3712,15 +3550,13 @@ static inline void htt_print_pdev_cca_stats_hist_tlv(const u32 *tag_buf, stats_req->buf_len = len; } -static inline void htt_print_pdev_stats_cca_counters_tlv(const u32 *tag_buf, u8 *data) +static inline void htt_print_pdev_stats_cca_counters_tlv(const void *tag_buf, void *data) { - struct debug_htt_stats_req *stats_req = - (struct debug_htt_stats_req *)data; + struct debug_htt_stats_req *stats_req = data; u8 *buf = stats_req->buf; u32 len = stats_req->buf_len; u32 buf_len = ATH11K_HTT_STATS_BUF_SIZE; - struct htt_pdev_stats_cca_counters_tlv *htt_stats_buf = - (struct htt_pdev_stats_cca_counters_tlv *)tag_buf; + const struct htt_pdev_stats_cca_counters_tlv *htt_stats_buf = tag_buf; len += HTT_DBG_OUT(buf + len, buf_len - len, "|%10u| %10u| %10u| %11u| %10u| %11u| %18u| %10u|", @@ -3741,16 +3577,14 @@ static inline void htt_print_pdev_stats_cca_counters_tlv(const u32 *tag_buf, u8 stats_req->buf_len = len; } -static inline void htt_print_hw_stats_whal_tx_tlv(const u32 *tag_buf, - u8 *data) +static inline void htt_print_hw_stats_whal_tx_tlv(const void *tag_buf, + void *data) { - struct debug_htt_stats_req *stats_req = - (struct debug_htt_stats_req *)data; + struct debug_htt_stats_req *stats_req = data; u8 *buf = stats_req->buf; u32 len = stats_req->buf_len; u32 buf_len = ATH11K_HTT_STATS_BUF_SIZE; - struct htt_hw_stats_whal_tx_tlv *htt_stats_buf = - (struct htt_hw_stats_whal_tx_tlv *)tag_buf; + const struct htt_hw_stats_whal_tx_tlv *htt_stats_buf = tag_buf; len += HTT_DBG_OUT(buf + len, buf_len - len, "HTT_HW_STATS_WHAL_TX_TLV:"); len += HTT_DBG_OUT(buf + len, buf_len - len, "mac_id = %u", @@ -3787,16 +3621,14 @@ static inline void htt_print_hw_stats_whal_tx_tlv(const u32 *tag_buf, stats_req->buf_len = len; } -static inline void htt_print_pdev_stats_twt_sessions_tlv(const u32 *tag_buf, - u8 *data) +static inline void htt_print_pdev_stats_twt_sessions_tlv(const void *tag_buf, + void *data) { - struct debug_htt_stats_req *stats_req = - (struct debug_htt_stats_req *)data; + struct debug_htt_stats_req *stats_req = data; u8 *buf = stats_req->buf; u32 len = stats_req->buf_len; u32 buf_len = ATH11K_HTT_STATS_BUF_SIZE; - struct htt_pdev_stats_twt_sessions_tlv *htt_stats_buf = - (struct htt_pdev_stats_twt_sessions_tlv *)tag_buf; + const struct htt_pdev_stats_twt_sessions_tlv *htt_stats_buf = tag_buf; len += HTT_DBG_OUT(buf + len, buf_len - len, "HTT_PDEV_STATS_TWT_SESSIONS_TLV:"); len += HTT_DBG_OUT(buf + len, buf_len - len, "pdev_id = %u", @@ -3812,16 +3644,14 @@ static inline void htt_print_pdev_stats_twt_sessions_tlv(const u32 *tag_buf, stats_req->buf_len = len; } -static inline void htt_print_pdev_stats_twt_session_tlv(const u32 *tag_buf, - u8 *data) +static inline void htt_print_pdev_stats_twt_session_tlv(const void *tag_buf, + void *data) { - struct debug_htt_stats_req *stats_req = - (struct debug_htt_stats_req *)data; + struct debug_htt_stats_req *stats_req = data; u8 *buf = stats_req->buf; u32 len = stats_req->buf_len; u32 buf_len = ATH11K_HTT_STATS_BUF_SIZE; - struct htt_pdev_stats_twt_session_tlv *htt_stats_buf = - (struct htt_pdev_stats_twt_session_tlv *)tag_buf; + const struct htt_pdev_stats_twt_session_tlv *htt_stats_buf = tag_buf; len += HTT_DBG_OUT(buf + len, buf_len - len, "HTT_PDEV_STATS_TWT_SESSION_TLV:"); len += HTT_DBG_OUT(buf + len, buf_len - len, "vdev_id = %u", @@ -3853,16 +3683,14 @@ static inline void htt_print_pdev_stats_twt_session_tlv(const u32 *tag_buf, stats_req->buf_len = len; } -static inline void htt_print_pdev_obss_pd_stats_tlv_v(const u32 *tag_buf, - u8 *data) +static inline void htt_print_pdev_obss_pd_stats_tlv_v(const void *tag_buf, + void *data) { - struct debug_htt_stats_req *stats_req = - (struct debug_htt_stats_req *)data; + struct debug_htt_stats_req *stats_req = data; u8 *buf = stats_req->buf; u32 len = stats_req->buf_len; u32 buf_len = ATH11K_HTT_STATS_BUF_SIZE; - struct htt_pdev_obss_pd_stats_tlv *htt_stats_buf = - (struct htt_pdev_obss_pd_stats_tlv *)tag_buf; + const struct htt_pdev_obss_pd_stats_tlv *htt_stats_buf = tag_buf; len += HTT_DBG_OUT(buf + len, buf_len - len, "OBSS Tx success PPDU = %u", htt_stats_buf->num_obss_tx_ppdu_success); len += HTT_DBG_OUT(buf + len, buf_len - len, "OBSS Tx failures PPDU = %u\n", @@ -3877,10 +3705,9 @@ static inline void htt_print_pdev_obss_pd_stats_tlv_v(const u32 *tag_buf, } static inline void htt_htt_stats_debug_dump(const u32 *tag_buf, - u8 *data) + void *data) { - struct debug_htt_stats_req *stats_req = - (struct debug_htt_stats_req *)data; + struct debug_htt_stats_req *stats_req = data; u8 *buf = stats_req->buf; u32 len = stats_req->buf_len; u32 buf_len = ATH11K_HTT_STATS_BUF_SIZE; From patchwork Fri Aug 9 09:27:32 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kalle Valo X-Patchwork-Id: 11086015 X-Patchwork-Delegate: kvalo@adurom.com Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id C60961395 for ; Fri, 9 Aug 2019 09:27:50 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id AC77D28C54 for ; Fri, 9 Aug 2019 09:27:50 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 9F54F28C57; Fri, 9 Aug 2019 09:27:50 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 0492A28C54 for ; Fri, 9 Aug 2019 09:27:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-ID:Date:To:From:Subject:Reply-To:Cc:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=VyVHBg9Unh03quf+/NC/atmd7mVUS89yLG4tbp/b78o=; b=AENnB7HDw3MvOL hWZ7mO2X72l5cieh+pJ6yw3c2fzwz+BEJZLY17wSWxz1Cv/CASUQ8vpAJOA74rMsUlWr27UME9L2V rfD2QGrdswmLKQfVTCuFtcEEQxYYIeKTrFVXPlCX4sAgoZl4cGdiA+/hyy+2Y8/nvv2UcHp+K/g6q MW/RWHRyfNQuTGRPCpLxFv15Q12F1Q3GVQLMO218sZ8jTIMnjOEBpHSsciCGhJjaSLwmAKE/na9zr +52FdBNPnM3OgN0MkRx6cS1dS+idznSQRwxfQd0b2EXMf3goCGMlJgYMmcYSfrSKPps63kVaNlDqG KD5pbwi93pEtxUQxHoWg==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92 #3 (Red Hat Linux)) id 1hw1BZ-0000xC-TF; Fri, 09 Aug 2019 09:27:45 +0000 Received: from smtp.codeaurora.org ([198.145.29.96]) by bombadil.infradead.org with esmtps (Exim 4.92 #3 (Red Hat Linux)) id 1hw1BU-0000tT-DD for ath11k@lists.infradead.org; Fri, 09 Aug 2019 09:27:44 +0000 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id F2DCE60A97; Fri, 9 Aug 2019 09:27:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1565342860; bh=LctROSU6thJbb5DAncQBuVxxdtc9s9Yl+B/QU+QSjMQ=; h=Subject:From:To:Date:In-Reply-To:References:From; b=aErh5/3t4PjpwC3uKMy3PIPy8QGAc6Fb83frtf/bW+ENwyuqUjzeJrn9OuRqYmhao cFK/OETggZ+uGcmF8Xzd/RUns4uUc7vlf+hTdkOikU8pDkSbY7PDpP+EhvzY1Pm5RP zryWS83gxFz+wQpA2wA0j5XyWKDJ0ngAvriiq7Rw= Received: from [127.0.1.1] (88-114-240-156.elisa-laajakaista.fi [88.114.240.156]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: kvalo@smtp.codeaurora.org) by smtp.codeaurora.org (Postfix) with ESMTPSA id 0CDF560721 for ; Fri, 9 Aug 2019 09:27:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1565342856; bh=LctROSU6thJbb5DAncQBuVxxdtc9s9Yl+B/QU+QSjMQ=; h=Subject:From:To:Date:In-Reply-To:References:From; b=CLbfQcqt3OPSTu+9mHDg/gOnDdKUNqwCe/R88dzELWial+J/oPhMXplXwX3WsxS4X jyBRdO2dUumwGf/KwOt6Ba8GrVNPx+nI/Rpu8AcnxK6EMxov+jdqzk6dvsWE1Qy8iP ANXYMqwOHwnCFT4pulGNRRnrbkuJclQW3DEMjraU= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 0CDF560721 Authentication-Results: pdx-caf-mail.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: pdx-caf-mail.web.codeaurora.org; spf=none smtp.mailfrom=kvalo@codeaurora.org Subject: [PATCH 11/15] ath11k: debug_htt_stats: pass stats_req as a properly typed pointer From: Kalle Valo To: ath11k@lists.infradead.org Date: Fri, 09 Aug 2019 12:27:32 +0300 Message-ID: <156534285262.30736.7433719659818667430.stgit@x230> In-Reply-To: <156534276745.30736.11736417077894270794.stgit@x230> References: <156534276745.30736.11736417077894270794.stgit@x230> User-Agent: StGit/0.19 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190809_022740_524118_8B99DE07 X-CRM114-Status: UNSURE ( 8.40 ) X-CRM114-Notice: Please train this message. X-BeenThere: ath11k@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "ath11k" Errors-To: ath11k-bounces+patchwork-ath11k=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP Void pointers are bad. And this reduces line count anyway. Signed-off-by: Kalle Valo --- drivers/net/wireless/ath/ath11k/debug_htt_stats.c | 435 ++++++++------------- 1 file changed, 175 insertions(+), 260 deletions(-) diff --git a/drivers/net/wireless/ath/ath11k/debug_htt_stats.c b/drivers/net/wireless/ath/ath11k/debug_htt_stats.c index 0ba91dbdccaf..a01f3d5ec54e 100644 --- a/drivers/net/wireless/ath/ath11k/debug_htt_stats.c +++ b/drivers/net/wireless/ath/ath11k/debug_htt_stats.c @@ -31,10 +31,9 @@ static inline void htt_print_stats_string_tlv(const void *tag_buf, u16 tag_len, - void *user_data) + struct debug_htt_stats_req *stats_req) { const struct htt_stats_string_tlv *htt_stats_buf = tag_buf; - struct debug_htt_stats_req *stats_req = user_data; u8 *buf = stats_req->buf; u32 len = stats_req->buf_len; u32 buf_len = ATH11K_HTT_STATS_BUF_SIZE; @@ -64,10 +63,9 @@ static inline void htt_print_stats_string_tlv(const void *tag_buf, stats_req->buf_len = len; } -static inline void htt_print_tx_pdev_stats_cmn_tlv(const void *tag_buf, void *data) +static inline void htt_print_tx_pdev_stats_cmn_tlv(const void *tag_buf, struct debug_htt_stats_req *stats_req) { const struct htt_tx_pdev_stats_cmn_tlv *htt_stats_buf = tag_buf; - struct debug_htt_stats_req *stats_req = data; u8 *buf = stats_req->buf; u32 len = stats_req->buf_len; u32 buf_len = ATH11K_HTT_STATS_BUF_SIZE; @@ -184,10 +182,9 @@ static inline void htt_print_tx_pdev_stats_cmn_tlv(const void *tag_buf, void *da static inline void htt_print_tx_pdev_stats_urrn_tlv_v(const void *tag_buf, u16 tag_len, - void *data) + struct debug_htt_stats_req *stats_req) { const struct htt_tx_pdev_stats_urrn_tlv_v *htt_stats_buf = tag_buf; - struct debug_htt_stats_req *stats_req = data; u8 *buf = stats_req->buf; u32 len = stats_req->buf_len; u32 buf_len = ATH11K_HTT_STATS_BUF_SIZE; @@ -209,10 +206,9 @@ static inline void htt_print_tx_pdev_stats_urrn_tlv_v(const void *tag_buf, static inline void htt_print_tx_pdev_stats_flush_tlv_v(const void *tag_buf, u16 tag_len, - void *data) + struct debug_htt_stats_req *stats_req) { const struct htt_tx_pdev_stats_flush_tlv_v *htt_stats_buf = tag_buf; - struct debug_htt_stats_req *stats_req = data; u8 *buf = stats_req->buf; u32 len = stats_req->buf_len; u32 buf_len = ATH11K_HTT_STATS_BUF_SIZE; @@ -234,10 +230,9 @@ static inline void htt_print_tx_pdev_stats_flush_tlv_v(const void *tag_buf, static inline void htt_print_tx_pdev_stats_sifs_tlv_v(const void *tag_buf, u16 tag_len, - void *data) + struct debug_htt_stats_req *stats_req) { const struct htt_tx_pdev_stats_sifs_tlv_v *htt_stats_buf = tag_buf; - struct debug_htt_stats_req *stats_req = data; u8 *buf = stats_req->buf; u32 len = stats_req->buf_len; u32 buf_len = ATH11K_HTT_STATS_BUF_SIZE; @@ -260,10 +255,9 @@ static inline void htt_print_tx_pdev_stats_sifs_tlv_v(const void *tag_buf, static inline void htt_print_tx_pdev_stats_phy_err_tlv_v(const void *tag_buf, u16 tag_len, - void *data) + struct debug_htt_stats_req *stats_req) { const struct htt_tx_pdev_stats_phy_err_tlv_v *htt_stats_buf = tag_buf; - struct debug_htt_stats_req *stats_req = data; u8 *buf = stats_req->buf; u32 len = stats_req->buf_len; u32 buf_len = ATH11K_HTT_STATS_BUF_SIZE; @@ -285,10 +279,9 @@ static inline void htt_print_tx_pdev_stats_phy_err_tlv_v(const void *tag_buf, static inline void htt_print_tx_pdev_stats_sifs_hist_tlv_v(const void *tag_buf, u16 tag_len, - void *data) + struct debug_htt_stats_req *stats_req) { const struct htt_tx_pdev_stats_sifs_hist_tlv_v *htt_stats_buf = tag_buf; - struct debug_htt_stats_req *stats_req = data; u8 *buf = stats_req->buf; u32 len = stats_req->buf_len; u32 buf_len = ATH11K_HTT_STATS_BUF_SIZE; @@ -311,10 +304,9 @@ static inline void htt_print_tx_pdev_stats_sifs_hist_tlv_v(const void *tag_buf, } static inline void htt_print_tx_pdev_stats_tx_ppdu_stats_tlv_v(const void *tag_buf, - void *data) + struct debug_htt_stats_req *stats_req) { const struct htt_tx_pdev_stats_tx_ppdu_stats_tlv_v *htt_stats_buf = tag_buf; - struct debug_htt_stats_req *stats_req = data; u8 *buf = stats_req->buf; u32 len = stats_req->buf_len; u32 buf_len = ATH11K_HTT_STATS_BUF_SIZE; @@ -348,10 +340,9 @@ static inline void htt_print_tx_pdev_stats_tx_ppdu_stats_tlv_v(const void *tag_b static inline void htt_print_tx_pdev_stats_tried_mpdu_cnt_hist_tlv_v(const void *tag_buf, u16 tag_len, - void *data) + struct debug_htt_stats_req *stats_req) { const struct htt_tx_pdev_stats_tried_mpdu_cnt_hist_tlv_v *htt_stats_buf = tag_buf; - struct debug_htt_stats_req *stats_req = data; u8 *buf = stats_req->buf; u32 len = stats_req->buf_len; u32 buf_len = ATH11K_HTT_STATS_BUF_SIZE; @@ -383,10 +374,9 @@ htt_print_tx_pdev_stats_tried_mpdu_cnt_hist_tlv_v(const void *tag_buf, stats_req->buf_len = len; } -static inline void htt_print_hw_stats_intr_misc_tlv(const void *tag_buf, void *data) +static inline void htt_print_hw_stats_intr_misc_tlv(const void *tag_buf, struct debug_htt_stats_req *stats_req) { const struct htt_hw_stats_intr_misc_tlv *htt_stats_buf = tag_buf; - struct debug_htt_stats_req *stats_req = data; u8 *buf = stats_req->buf; u32 len = stats_req->buf_len; u32 buf_len = ATH11K_HTT_STATS_BUF_SIZE; @@ -409,10 +399,9 @@ static inline void htt_print_hw_stats_intr_misc_tlv(const void *tag_buf, void *d stats_req->buf_len = len; } -static inline void htt_print_hw_stats_wd_timeout_tlv(const void *tag_buf, void *data) +static inline void htt_print_hw_stats_wd_timeout_tlv(const void *tag_buf, struct debug_htt_stats_req *stats_req) { const struct htt_hw_stats_wd_timeout_tlv *htt_stats_buf = tag_buf; - struct debug_htt_stats_req *stats_req = data; u8 *buf = stats_req->buf; u32 len = stats_req->buf_len; u32 buf_len = ATH11K_HTT_STATS_BUF_SIZE; @@ -434,10 +423,9 @@ static inline void htt_print_hw_stats_wd_timeout_tlv(const void *tag_buf, void * stats_req->buf_len = len; } -static inline void htt_print_hw_stats_pdev_errs_tlv(const void *tag_buf, void *data) +static inline void htt_print_hw_stats_pdev_errs_tlv(const void *tag_buf, struct debug_htt_stats_req *stats_req) { const struct htt_hw_stats_pdev_errs_tlv *htt_stats_buf = tag_buf; - struct debug_htt_stats_req *stats_req = data; u8 *buf = stats_req->buf; u32 len = stats_req->buf_len; u32 buf_len = ATH11K_HTT_STATS_BUF_SIZE; @@ -474,10 +462,9 @@ static inline void htt_print_hw_stats_pdev_errs_tlv(const void *tag_buf, void *d stats_req->buf_len = len; } -static inline void htt_print_msdu_flow_stats_tlv(const void *tag_buf, void *data) +static inline void htt_print_msdu_flow_stats_tlv(const void *tag_buf, struct debug_htt_stats_req *stats_req) { const struct htt_msdu_flow_stats_tlv *htt_stats_buf = tag_buf; - struct debug_htt_stats_req *stats_req = data; u8 *buf = stats_req->buf; u32 len = stats_req->buf_len; u32 buf_len = ATH11K_HTT_STATS_BUF_SIZE; @@ -520,10 +507,9 @@ static inline void htt_print_msdu_flow_stats_tlv(const void *tag_buf, void *data stats_req->buf_len = len; } -static inline void htt_print_tx_tid_stats_tlv(const void *tag_buf, void *data) +static inline void htt_print_tx_tid_stats_tlv(const void *tag_buf, struct debug_htt_stats_req *stats_req) { const struct htt_tx_tid_stats_tlv *htt_stats_buf = tag_buf; - struct debug_htt_stats_req *stats_req = data; u8 *buf = stats_req->buf; u32 len = stats_req->buf_len; u32 buf_len = ATH11K_HTT_STATS_BUF_SIZE; @@ -570,10 +556,9 @@ static inline void htt_print_tx_tid_stats_tlv(const void *tag_buf, void *data) stats_req->buf_len = len; } -static inline void htt_print_tx_tid_stats_v1_tlv(const void *tag_buf, void *data) +static inline void htt_print_tx_tid_stats_v1_tlv(const void *tag_buf, struct debug_htt_stats_req *stats_req) { const struct htt_tx_tid_stats_v1_tlv *htt_stats_buf = tag_buf; - struct debug_htt_stats_req *stats_req = data; u8 *buf = stats_req->buf; u32 len = stats_req->buf_len; u32 buf_len = ATH11K_HTT_STATS_BUF_SIZE; @@ -624,10 +609,9 @@ static inline void htt_print_tx_tid_stats_v1_tlv(const void *tag_buf, void *data stats_req->buf_len = len; } -static inline void htt_print_rx_tid_stats_tlv(const void *tag_buf, void *data) +static inline void htt_print_rx_tid_stats_tlv(const void *tag_buf, struct debug_htt_stats_req *stats_req) { const struct htt_rx_tid_stats_tlv *htt_stats_buf = tag_buf; - struct debug_htt_stats_req *stats_req = data; u8 *buf = stats_req->buf; u32 len = stats_req->buf_len; u32 buf_len = ATH11K_HTT_STATS_BUF_SIZE; @@ -657,10 +641,9 @@ static inline void htt_print_rx_tid_stats_tlv(const void *tag_buf, void *data) stats_req->buf_len = len; } -static inline void htt_print_counter_tlv(const void *tag_buf, void *data) +static inline void htt_print_counter_tlv(const void *tag_buf, struct debug_htt_stats_req *stats_req) { const struct htt_counter_tlv *htt_stats_buf = tag_buf; - struct debug_htt_stats_req *stats_req = data; u8 *buf = stats_req->buf; u32 len = stats_req->buf_len; u32 buf_len = ATH11K_HTT_STATS_BUF_SIZE; @@ -683,10 +666,9 @@ static inline void htt_print_counter_tlv(const void *tag_buf, void *data) stats_req->buf_len = len; } -static inline void htt_print_peer_stats_cmn_tlv(const void *tag_buf, void *data) +static inline void htt_print_peer_stats_cmn_tlv(const void *tag_buf, struct debug_htt_stats_req *stats_req) { const struct htt_peer_stats_cmn_tlv *htt_stats_buf = tag_buf; - struct debug_htt_stats_req *stats_req = data; u8 *buf = stats_req->buf; u32 len = stats_req->buf_len; u32 buf_len = ATH11K_HTT_STATS_BUF_SIZE; @@ -729,10 +711,9 @@ static inline void htt_print_peer_stats_cmn_tlv(const void *tag_buf, void *data) stats_req->buf_len = len; } -static inline void htt_print_peer_details_tlv(const void *tag_buf, void *data) +static inline void htt_print_peer_details_tlv(const void *tag_buf, struct debug_htt_stats_req *stats_req) { const struct htt_peer_details_tlv *htt_stats_buf = tag_buf; - struct debug_htt_stats_req *stats_req = data; u8 *buf = stats_req->buf; u32 len = stats_req->buf_len; u32 buf_len = ATH11K_HTT_STATS_BUF_SIZE; @@ -769,10 +750,9 @@ static inline void htt_print_peer_details_tlv(const void *tag_buf, void *data) stats_req->buf_len = len; } -static inline void htt_print_tx_peer_rate_stats_tlv(const void *tag_buf, void *data) +static inline void htt_print_tx_peer_rate_stats_tlv(const void *tag_buf, struct debug_htt_stats_req *stats_req) { const struct htt_tx_peer_rate_stats_tlv *htt_stats_buf = tag_buf; - struct debug_htt_stats_req *stats_req = data; u8 *buf = stats_req->buf; u32 len = stats_req->buf_len; u32 buf_len = ATH11K_HTT_STATS_BUF_SIZE; @@ -853,10 +833,9 @@ static inline void htt_print_tx_peer_rate_stats_tlv(const void *tag_buf, void *d stats_req->buf_len = len; } -static inline void htt_print_rx_peer_rate_stats_tlv(const void *tag_buf, void *data) +static inline void htt_print_rx_peer_rate_stats_tlv(const void *tag_buf, struct debug_htt_stats_req *stats_req) { const struct htt_rx_peer_rate_stats_tlv *htt_stats_buf = tag_buf; - struct debug_htt_stats_req *stats_req = data; u8 *buf = stats_req->buf; u32 len = stats_req->buf_len; u32 buf_len = ATH11K_HTT_STATS_BUF_SIZE; @@ -943,10 +922,9 @@ static inline void htt_print_rx_peer_rate_stats_tlv(const void *tag_buf, void *d stats_req->buf_len = len; } -static inline void htt_print_tx_hwq_mu_mimo_sch_stats_tlv(const void *tag_buf, void *data) +static inline void htt_print_tx_hwq_mu_mimo_sch_stats_tlv(const void *tag_buf, struct debug_htt_stats_req *stats_req) { const struct htt_tx_hwq_mu_mimo_sch_stats_tlv *htt_stats_buf = tag_buf; - struct debug_htt_stats_req *stats_req = data; u8 *buf = stats_req->buf; u32 len = stats_req->buf_len; u32 buf_len = ATH11K_HTT_STATS_BUF_SIZE; @@ -968,10 +946,9 @@ static inline void htt_print_tx_hwq_mu_mimo_sch_stats_tlv(const void *tag_buf, v } static inline void htt_print_tx_hwq_mu_mimo_mpdu_stats_tlv(const void *tag_buf, - void *data) + struct debug_htt_stats_req *stats_req) { const struct htt_tx_hwq_mu_mimo_mpdu_stats_tlv *htt_stats_buf = tag_buf; - struct debug_htt_stats_req *stats_req = data; u8 *buf = stats_req->buf; u32 len = stats_req->buf_len; u32 buf_len = ATH11K_HTT_STATS_BUF_SIZE; @@ -1002,10 +979,9 @@ static inline void htt_print_tx_hwq_mu_mimo_mpdu_stats_tlv(const void *tag_buf, } static inline void htt_print_tx_hwq_mu_mimo_cmn_stats_tlv(const void *tag_buf, - void *data) + struct debug_htt_stats_req *stats_req) { const struct htt_tx_hwq_mu_mimo_cmn_stats_tlv *htt_stats_buf = tag_buf; - struct debug_htt_stats_req *stats_req = data; u8 *buf = stats_req->buf; u32 len = stats_req->buf_len; u32 buf_len = ATH11K_HTT_STATS_BUF_SIZE; @@ -1024,10 +1000,9 @@ static inline void htt_print_tx_hwq_mu_mimo_cmn_stats_tlv(const void *tag_buf, stats_req->buf_len = len; } -static inline void htt_print_tx_hwq_stats_cmn_tlv(const void *tag_buf, void *data) +static inline void htt_print_tx_hwq_stats_cmn_tlv(const void *tag_buf, struct debug_htt_stats_req *stats_req) { const struct htt_tx_hwq_stats_cmn_tlv *htt_stats_buf = tag_buf; - struct debug_htt_stats_req *stats_req = data; u8 *buf = stats_req->buf; u32 len = stats_req->buf_len; u32 buf_len = ATH11K_HTT_STATS_BUF_SIZE; @@ -1089,10 +1064,9 @@ static inline void htt_print_tx_hwq_stats_cmn_tlv(const void *tag_buf, void *dat static inline void htt_print_tx_hwq_difs_latency_stats_tlv_v(const void *tag_buf, u16 tag_len, - void *data) + struct debug_htt_stats_req *stats_req) { const struct htt_tx_hwq_difs_latency_stats_tlv_v *htt_stats_buf = tag_buf; - struct debug_htt_stats_req *stats_req = data; u8 *buf = stats_req->buf; u32 len = stats_req->buf_len; u32 buf_len = ATH11K_HTT_STATS_BUF_SIZE; @@ -1119,10 +1093,9 @@ static inline void htt_print_tx_hwq_difs_latency_stats_tlv_v(const void *tag_buf static inline void htt_print_tx_hwq_cmd_result_stats_tlv_v(const void *tag_buf, u16 tag_len, - void *data) + struct debug_htt_stats_req *stats_req) { const struct htt_tx_hwq_cmd_result_stats_tlv_v *htt_stats_buf = tag_buf; - struct debug_htt_stats_req *stats_req = data; u8 *buf = stats_req->buf; u32 len = stats_req->buf_len; u32 buf_len = ATH11K_HTT_STATS_BUF_SIZE; @@ -1148,10 +1121,9 @@ static inline void htt_print_tx_hwq_cmd_result_stats_tlv_v(const void *tag_buf, static inline void htt_print_tx_hwq_cmd_stall_stats_tlv_v(const void *tag_buf, u16 tag_len, - void *data) + struct debug_htt_stats_req *stats_req) { const struct htt_tx_hwq_cmd_stall_stats_tlv_v *htt_stats_buf = tag_buf; - struct debug_htt_stats_req *stats_req = data; u8 *buf = stats_req->buf; u32 len = stats_req->buf_len; u32 buf_len = ATH11K_HTT_STATS_BUF_SIZE; @@ -1176,10 +1148,9 @@ static inline void htt_print_tx_hwq_cmd_stall_stats_tlv_v(const void *tag_buf, static inline void htt_print_tx_hwq_fes_result_stats_tlv_v(const void *tag_buf, u16 tag_len, - void *data) + struct debug_htt_stats_req *stats_req) { const struct htt_tx_hwq_fes_result_stats_tlv_v *htt_stats_buf = tag_buf; - struct debug_htt_stats_req *stats_req = data; u8 *buf = stats_req->buf; u32 len = stats_req->buf_len; u32 buf_len = ATH11K_HTT_STATS_BUF_SIZE; @@ -1204,10 +1175,9 @@ static inline void htt_print_tx_hwq_fes_result_stats_tlv_v(const void *tag_buf, static inline void htt_print_tx_hwq_tried_mpdu_cnt_hist_tlv_v(const void *tag_buf, u16 tag_len, - void *data) + struct debug_htt_stats_req *stats_req) { const struct htt_tx_hwq_tried_mpdu_cnt_hist_tlv_v *htt_stats_buf = tag_buf; - struct debug_htt_stats_req *stats_req = data; u8 *buf = stats_req->buf; u32 len = stats_req->buf_len; u32 buf_len = ATH11K_HTT_STATS_BUF_SIZE; @@ -1243,10 +1213,9 @@ static inline void htt_print_tx_hwq_tried_mpdu_cnt_hist_tlv_v(const void *tag_bu static inline void htt_print_tx_hwq_txop_used_cnt_hist_tlv_v(const void *tag_buf, u16 tag_len, - void *data) + struct debug_htt_stats_req *stats_req) { const struct htt_tx_hwq_txop_used_cnt_hist_tlv_v *htt_stats_buf = tag_buf; - struct debug_htt_stats_req *stats_req = data; u8 *buf = stats_req->buf; u32 len = stats_req->buf_len; u32 buf_len = ATH11K_HTT_STATS_BUF_SIZE; @@ -1275,11 +1244,10 @@ static inline void htt_print_tx_hwq_txop_used_cnt_hist_tlv_v(const void *tag_buf stats_req->buf_len = len; } -static inline void htt_print_tx_sounding_stats_tlv(const void *tag_buf, void *data) +static inline void htt_print_tx_sounding_stats_tlv(const void *tag_buf, struct debug_htt_stats_req *stats_req) { s32 i; const struct htt_tx_sounding_stats_tlv *htt_stats_buf = tag_buf; - struct debug_htt_stats_req *stats_req = data; u8 *buf = stats_req->buf; u32 len = stats_req->buf_len; u32 buf_len = ATH11K_HTT_STATS_BUF_SIZE; @@ -1380,10 +1348,9 @@ static inline void htt_print_tx_sounding_stats_tlv(const void *tag_buf, void *da stats_req->buf_len = len; } -static inline void htt_print_tx_selfgen_cmn_stats_tlv(const void *tag_buf, void *data) +static inline void htt_print_tx_selfgen_cmn_stats_tlv(const void *tag_buf, struct debug_htt_stats_req *stats_req) { const struct htt_tx_selfgen_cmn_stats_tlv *htt_stats_buf = tag_buf; - struct debug_htt_stats_req *stats_req = data; u8 *buf = stats_req->buf; u32 len = stats_req->buf_len; u32 buf_len = ATH11K_HTT_STATS_BUF_SIZE; @@ -1422,10 +1389,9 @@ static inline void htt_print_tx_selfgen_cmn_stats_tlv(const void *tag_buf, void stats_req->buf_len = len; } -static inline void htt_print_tx_selfgen_ac_stats_tlv(const void *tag_buf, void *data) +static inline void htt_print_tx_selfgen_ac_stats_tlv(const void *tag_buf, struct debug_htt_stats_req *stats_req) { const struct htt_tx_selfgen_ac_stats_tlv *htt_stats_buf = tag_buf; - struct debug_htt_stats_req *stats_req = data; u8 *buf = stats_req->buf; u32 len = stats_req->buf_len; u32 buf_len = ATH11K_HTT_STATS_BUF_SIZE; @@ -1454,10 +1420,9 @@ static inline void htt_print_tx_selfgen_ac_stats_tlv(const void *tag_buf, void * stats_req->buf_len = len; } -static inline void htt_print_tx_selfgen_ax_stats_tlv(const void *tag_buf, void *data) +static inline void htt_print_tx_selfgen_ax_stats_tlv(const void *tag_buf, struct debug_htt_stats_req *stats_req) { const struct htt_tx_selfgen_ax_stats_tlv *htt_stats_buf = tag_buf; - struct debug_htt_stats_req *stats_req = data; u8 *buf = stats_req->buf; u32 len = stats_req->buf_len; u32 buf_len = ATH11K_HTT_STATS_BUF_SIZE; @@ -1502,10 +1467,9 @@ static inline void htt_print_tx_selfgen_ax_stats_tlv(const void *tag_buf, void * stats_req->buf_len = len; } -static inline void htt_print_tx_selfgen_ac_err_stats_tlv(const void *tag_buf, void *data) +static inline void htt_print_tx_selfgen_ac_err_stats_tlv(const void *tag_buf, struct debug_htt_stats_req *stats_req) { const struct htt_tx_selfgen_ac_err_stats_tlv *htt_stats_buf = tag_buf; - struct debug_htt_stats_req *stats_req = data; u8 *buf = stats_req->buf; u32 len = stats_req->buf_len; u32 buf_len = ATH11K_HTT_STATS_BUF_SIZE; @@ -1534,10 +1498,9 @@ static inline void htt_print_tx_selfgen_ac_err_stats_tlv(const void *tag_buf, vo stats_req->buf_len = len; } -static inline void htt_print_tx_selfgen_ax_err_stats_tlv(const void *tag_buf, void *data) +static inline void htt_print_tx_selfgen_ax_err_stats_tlv(const void *tag_buf, struct debug_htt_stats_req *stats_req) { const struct htt_tx_selfgen_ax_err_stats_tlv *htt_stats_buf = tag_buf; - struct debug_htt_stats_req *stats_req = data; u8 *buf = stats_req->buf; u32 len = stats_req->buf_len; u32 buf_len = ATH11K_HTT_STATS_BUF_SIZE; @@ -1583,10 +1546,9 @@ static inline void htt_print_tx_selfgen_ax_err_stats_tlv(const void *tag_buf, vo } static inline void htt_print_tx_pdev_mu_mimo_sch_stats_tlv(const void *tag_buf, - void *data) + struct debug_htt_stats_req *stats_req) { const struct htt_tx_pdev_mu_mimo_sch_stats_tlv *htt_stats_buf = tag_buf; - struct debug_htt_stats_req *stats_req = data; u8 *buf = stats_req->buf; u32 len = stats_req->buf_len; u32 buf_len = ATH11K_HTT_STATS_BUF_SIZE; @@ -1630,10 +1592,9 @@ static inline void htt_print_tx_pdev_mu_mimo_sch_stats_tlv(const void *tag_buf, stats_req->buf_len = len; } -static inline void htt_print_tx_pdev_mu_mimo_mpdu_stats_tlv(const void *tag_buf, void *data) +static inline void htt_print_tx_pdev_mu_mimo_mpdu_stats_tlv(const void *tag_buf, struct debug_htt_stats_req *stats_req) { const struct htt_tx_pdev_mpdu_stats_tlv *htt_stats_buf = tag_buf; - struct debug_htt_stats_req *stats_req = data; u8 *buf = stats_req->buf; u32 len = stats_req->buf_len; u32 buf_len = ATH11K_HTT_STATS_BUF_SIZE; @@ -1761,10 +1722,9 @@ static inline void htt_print_tx_pdev_mu_mimo_mpdu_stats_tlv(const void *tag_buf, static inline void htt_print_sched_txq_cmd_posted_tlv_v(const void *tag_buf, u16 tag_len, - void *data) + struct debug_htt_stats_req *stats_req) { const struct htt_sched_txq_cmd_posted_tlv_v *htt_stats_buf = tag_buf; - struct debug_htt_stats_req *stats_req = data; u8 *buf = stats_req->buf; u32 len = stats_req->buf_len; u32 buf_len = ATH11K_HTT_STATS_BUF_SIZE; @@ -1788,10 +1748,9 @@ static inline void htt_print_sched_txq_cmd_posted_tlv_v(const void *tag_buf, static inline void htt_print_sched_txq_cmd_reaped_tlv_v(const void *tag_buf, u16 tag_len, - void *data) + struct debug_htt_stats_req *stats_req) { const struct htt_sched_txq_cmd_reaped_tlv_v *htt_stats_buf = tag_buf; - struct debug_htt_stats_req *stats_req = data; u8 *buf = stats_req->buf; u32 len = stats_req->buf_len; u32 buf_len = ATH11K_HTT_STATS_BUF_SIZE; @@ -1815,10 +1774,9 @@ static inline void htt_print_sched_txq_cmd_reaped_tlv_v(const void *tag_buf, static inline void htt_print_sched_txq_sched_order_su_tlv_v(const void *tag_buf, u16 tag_len, - void *data) + struct debug_htt_stats_req *stats_req) { const struct htt_sched_txq_sched_order_su_tlv_v *htt_stats_buf = tag_buf; - struct debug_htt_stats_req *stats_req = data; u8 *buf = stats_req->buf; u32 len = stats_req->buf_len; u32 buf_len = ATH11K_HTT_STATS_BUF_SIZE; @@ -1845,10 +1803,9 @@ static inline void htt_print_sched_txq_sched_order_su_tlv_v(const void *tag_buf, static inline void htt_print_sched_txq_sched_ineligibility_tlv_v(const void *tag_buf, u16 tag_len, - void *data) + struct debug_htt_stats_req *stats_req) { const struct htt_sched_txq_sched_ineligibility_tlv_v *htt_stats_buf = tag_buf; - struct debug_htt_stats_req *stats_req = data; u8 *buf = stats_req->buf; u32 len = stats_req->buf_len; u32 buf_len = ATH11K_HTT_STATS_BUF_SIZE; @@ -1873,10 +1830,9 @@ static inline void htt_print_sched_txq_sched_ineligibility_tlv_v(const void *tag } static inline void htt_print_tx_pdev_stats_sched_per_txq_tlv(const void *tag_buf, - void *data) + struct debug_htt_stats_req *stats_req) { const struct htt_tx_pdev_stats_sched_per_txq_tlv *htt_stats_buf = tag_buf; - struct debug_htt_stats_req *stats_req = data; u8 *buf = stats_req->buf; u32 len = stats_req->buf_len; u32 buf_len = ATH11K_HTT_STATS_BUF_SIZE; @@ -1939,9 +1895,8 @@ static inline void htt_print_tx_pdev_stats_sched_per_txq_tlv(const void *tag_buf } static inline void htt_print_stats_tx_sched_cmn_tlv(const void *tag_buf, - void *data) + struct debug_htt_stats_req *stats_req) { - struct debug_htt_stats_req *stats_req = data; u8 *buf = stats_req->buf; u32 len = stats_req->buf_len; u32 buf_len = ATH11K_HTT_STATS_BUF_SIZE; @@ -1963,9 +1918,8 @@ static inline void htt_print_stats_tx_sched_cmn_tlv(const void *tag_buf, static inline void htt_print_tx_tqm_gen_mpdu_stats_tlv_v(const void *tag_buf, u16 tag_len, - void *data) + struct debug_htt_stats_req *stats_req) { - struct debug_htt_stats_req *stats_req = data; u8 *buf = stats_req->buf; u32 len = stats_req->buf_len; u32 buf_len = ATH11K_HTT_STATS_BUF_SIZE; @@ -1991,9 +1945,8 @@ static inline void htt_print_tx_tqm_gen_mpdu_stats_tlv_v(const void *tag_buf, static inline void htt_print_tx_tqm_list_mpdu_stats_tlv_v(const void *tag_buf, u16 tag_len, - void *data) + struct debug_htt_stats_req *stats_req) { - struct debug_htt_stats_req *stats_req = data; u8 *buf = stats_req->buf; u32 len = stats_req->buf_len; u32 buf_len = ATH11K_HTT_STATS_BUF_SIZE; @@ -2018,9 +1971,8 @@ static inline void htt_print_tx_tqm_list_mpdu_stats_tlv_v(const void *tag_buf, static inline void htt_print_tx_tqm_list_mpdu_cnt_tlv_v(const void *tag_buf, u16 tag_len, - void *data) + struct debug_htt_stats_req *stats_req) { - struct debug_htt_stats_req *stats_req = data; u8 *buf = stats_req->buf; u32 len = stats_req->buf_len; u32 buf_len = ATH11K_HTT_STATS_BUF_SIZE; @@ -2044,9 +1996,8 @@ static inline void htt_print_tx_tqm_list_mpdu_cnt_tlv_v(const void *tag_buf, stats_req->buf_len = len; } -static inline void htt_print_tx_tqm_pdev_stats_tlv_v(const void *tag_buf, void *data) +static inline void htt_print_tx_tqm_pdev_stats_tlv_v(const void *tag_buf, struct debug_htt_stats_req *stats_req) { - struct debug_htt_stats_req *stats_req = data; u8 *buf = stats_req->buf; u32 len = stats_req->buf_len; u32 buf_len = ATH11K_HTT_STATS_BUF_SIZE; @@ -2124,9 +2075,8 @@ static inline void htt_print_tx_tqm_pdev_stats_tlv_v(const void *tag_buf, void * stats_req->buf_len = len; } -static inline void htt_print_tx_tqm_cmn_stats_tlv(const void *tag_buf, void *data) +static inline void htt_print_tx_tqm_cmn_stats_tlv(const void *tag_buf, struct debug_htt_stats_req *stats_req) { - struct debug_htt_stats_req *stats_req = data; u8 *buf = stats_req->buf; u32 len = stats_req->buf_len; u32 buf_len = ATH11K_HTT_STATS_BUF_SIZE; @@ -2158,9 +2108,8 @@ static inline void htt_print_tx_tqm_cmn_stats_tlv(const void *tag_buf, void *dat stats_req->buf_len = len; } -static inline void htt_print_tx_tqm_error_stats_tlv(const void *tag_buf, void *data) +static inline void htt_print_tx_tqm_error_stats_tlv(const void *tag_buf, struct debug_htt_stats_req *stats_req) { - struct debug_htt_stats_req *stats_req = data; u8 *buf = stats_req->buf; u32 len = stats_req->buf_len; u32 buf_len = ATH11K_HTT_STATS_BUF_SIZE; @@ -2182,9 +2131,8 @@ static inline void htt_print_tx_tqm_error_stats_tlv(const void *tag_buf, void *d stats_req->buf_len = len; } -static inline void htt_print_tx_tqm_cmdq_status_tlv(const void *tag_buf, void *data) +static inline void htt_print_tx_tqm_cmdq_status_tlv(const void *tag_buf, struct debug_htt_stats_req *stats_req) { - struct debug_htt_stats_req *stats_req = data; u8 *buf = stats_req->buf; u32 len = stats_req->buf_len; u32 buf_len = ATH11K_HTT_STATS_BUF_SIZE; @@ -2226,9 +2174,8 @@ static inline void htt_print_tx_tqm_cmdq_status_tlv(const void *tag_buf, void *d stats_req->buf_len = len; } -static inline void htt_print_tx_de_eapol_packets_stats_tlv(const void *tag_buf, void *data) +static inline void htt_print_tx_de_eapol_packets_stats_tlv(const void *tag_buf, struct debug_htt_stats_req *stats_req) { - struct debug_htt_stats_req *stats_req = data; u8 *buf = stats_req->buf; u32 len = stats_req->buf_len; u32 buf_len = ATH11K_HTT_STATS_BUF_SIZE; @@ -2257,9 +2204,8 @@ static inline void htt_print_tx_de_eapol_packets_stats_tlv(const void *tag_buf, stats_req->buf_len = len; } -static inline void htt_print_tx_de_classify_failed_stats_tlv(const void *tag_buf, void *data) +static inline void htt_print_tx_de_classify_failed_stats_tlv(const void *tag_buf, struct debug_htt_stats_req *stats_req) { - struct debug_htt_stats_req *stats_req = data; u8 *buf = stats_req->buf; u32 len = stats_req->buf_len; u32 buf_len = ATH11K_HTT_STATS_BUF_SIZE; @@ -2302,9 +2248,8 @@ static inline void htt_print_tx_de_classify_failed_stats_tlv(const void *tag_buf stats_req->buf_len = len; } -static inline void htt_print_tx_de_classify_stats_tlv(const void *tag_buf, void *data) +static inline void htt_print_tx_de_classify_stats_tlv(const void *tag_buf, struct debug_htt_stats_req *stats_req) { - struct debug_htt_stats_req *stats_req = data; u8 *buf = stats_req->buf; u32 len = stats_req->buf_len; u32 buf_len = ATH11K_HTT_STATS_BUF_SIZE; @@ -2386,9 +2331,8 @@ static inline void htt_print_tx_de_classify_stats_tlv(const void *tag_buf, void stats_req->buf_len = len; } -static inline void htt_print_tx_de_classify_status_stats_tlv(const void *tag_buf, void *data) +static inline void htt_print_tx_de_classify_status_stats_tlv(const void *tag_buf, struct debug_htt_stats_req *stats_req) { - struct debug_htt_stats_req *stats_req = data; u8 *buf = stats_req->buf; u32 len = stats_req->buf_len; u32 buf_len = ATH11K_HTT_STATS_BUF_SIZE; @@ -2421,9 +2365,8 @@ static inline void htt_print_tx_de_classify_status_stats_tlv(const void *tag_buf stats_req->buf_len = len; } -static inline void htt_print_tx_de_enqueue_packets_stats_tlv(const void *tag_buf, void *data) +static inline void htt_print_tx_de_enqueue_packets_stats_tlv(const void *tag_buf, struct debug_htt_stats_req *stats_req) { - struct debug_htt_stats_req *stats_req = data; u8 *buf = stats_req->buf; u32 len = stats_req->buf_len; u32 buf_len = ATH11K_HTT_STATS_BUF_SIZE; @@ -2446,9 +2389,8 @@ static inline void htt_print_tx_de_enqueue_packets_stats_tlv(const void *tag_buf stats_req->buf_len = len; } -static inline void htt_print_tx_de_enqueue_discard_stats_tlv(const void *tag_buf, void *data) +static inline void htt_print_tx_de_enqueue_discard_stats_tlv(const void *tag_buf, struct debug_htt_stats_req *stats_req) { - struct debug_htt_stats_req *stats_req = data; u8 *buf = stats_req->buf; u32 len = stats_req->buf_len; u32 buf_len = ATH11K_HTT_STATS_BUF_SIZE; @@ -2471,9 +2413,8 @@ static inline void htt_print_tx_de_enqueue_discard_stats_tlv(const void *tag_buf stats_req->buf_len = len; } -static inline void htt_print_tx_de_compl_stats_tlv(const void *tag_buf, void *data) +static inline void htt_print_tx_de_compl_stats_tlv(const void *tag_buf, struct debug_htt_stats_req *stats_req) { - struct debug_htt_stats_req *stats_req = data; u8 *buf = stats_req->buf; u32 len = stats_req->buf_len; u32 buf_len = ATH11K_HTT_STATS_BUF_SIZE; @@ -2501,9 +2442,8 @@ static inline void htt_print_tx_de_compl_stats_tlv(const void *tag_buf, void *da static inline void htt_print_tx_de_fw2wbm_ring_full_hist_tlv(const void *tag_buf, u16 tag_len, - void *data) + struct debug_htt_stats_req *stats_req) { - struct debug_htt_stats_req *stats_req = data; u8 *buf = stats_req->buf; u32 len = stats_req->buf_len; u32 buf_len = ATH11K_HTT_STATS_BUF_SIZE; @@ -2535,9 +2475,8 @@ static inline void htt_print_tx_de_fw2wbm_ring_full_hist_tlv(const void *tag_buf stats_req->buf_len = len; } -static inline void htt_print_tx_de_cmn_stats_tlv(const void *tag_buf, void *data) +static inline void htt_print_tx_de_cmn_stats_tlv(const void *tag_buf, struct debug_htt_stats_req *stats_req) { - struct debug_htt_stats_req *stats_req = data; u8 *buf = stats_req->buf; u32 len = stats_req->buf_len; u32 buf_len = ATH11K_HTT_STATS_BUF_SIZE; @@ -2567,9 +2506,8 @@ static inline void htt_print_tx_de_cmn_stats_tlv(const void *tag_buf, void *data stats_req->buf_len = len; } -static inline void htt_print_ring_if_stats_tlv(const void *tag_buf, void *data) +static inline void htt_print_ring_if_stats_tlv(const void *tag_buf, struct debug_htt_stats_req *stats_req) { - struct debug_htt_stats_req *stats_req = data; u8 *buf = stats_req->buf; u32 len = stats_req->buf_len; u32 buf_len = ATH11K_HTT_STATS_BUF_SIZE; @@ -2629,9 +2567,8 @@ static inline void htt_print_ring_if_stats_tlv(const void *tag_buf, void *data) stats_req->buf_len = len; } -static inline void htt_print_ring_if_cmn_tlv(const void *tag_buf, void *data) +static inline void htt_print_ring_if_cmn_tlv(const void *tag_buf, struct debug_htt_stats_req *stats_req) { - struct debug_htt_stats_req *stats_req = data; u8 *buf = stats_req->buf; u32 len = stats_req->buf_len; u32 buf_len = ATH11K_HTT_STATS_BUF_SIZE; @@ -2653,9 +2590,8 @@ static inline void htt_print_ring_if_cmn_tlv(const void *tag_buf, void *data) static inline void htt_print_sfm_client_user_tlv_v(const void *tag_buf, u16 tag_len, - void *data) + struct debug_htt_stats_req *stats_req) { - struct debug_htt_stats_req *stats_req = data; u8 *buf = stats_req->buf; u32 len = stats_req->buf_len; u32 buf_len = ATH11K_HTT_STATS_BUF_SIZE; @@ -2679,9 +2615,8 @@ static inline void htt_print_sfm_client_user_tlv_v(const void *tag_buf, stats_req->buf_len = len; } -static inline void htt_print_sfm_client_tlv(const void *tag_buf, void *data) +static inline void htt_print_sfm_client_tlv(const void *tag_buf, struct debug_htt_stats_req *stats_req) { - struct debug_htt_stats_req *stats_req = data; u8 *buf = stats_req->buf; u32 len = stats_req->buf_len; u32 buf_len = ATH11K_HTT_STATS_BUF_SIZE; @@ -2711,9 +2646,8 @@ static inline void htt_print_sfm_client_tlv(const void *tag_buf, void *data) stats_req->buf_len = len; } -static inline void htt_print_sfm_cmn_tlv(const void *tag_buf, void *data) +static inline void htt_print_sfm_cmn_tlv(const void *tag_buf, struct debug_htt_stats_req *stats_req) { - struct debug_htt_stats_req *stats_req = data; u8 *buf = stats_req->buf; u32 len = stats_req->buf_len; u32 buf_len = ATH11K_HTT_STATS_BUF_SIZE; @@ -2739,9 +2673,8 @@ static inline void htt_print_sfm_cmn_tlv(const void *tag_buf, void *data) stats_req->buf_len = len; } -static inline void htt_print_sring_stats_tlv(const void *tag_buf, void *data) +static inline void htt_print_sring_stats_tlv(const void *tag_buf, struct debug_htt_stats_req *stats_req) { - struct debug_htt_stats_req *stats_req = data; u8 *buf = stats_req->buf; u32 len = stats_req->buf_len; u32 buf_len = ATH11K_HTT_STATS_BUF_SIZE; @@ -2792,9 +2725,8 @@ static inline void htt_print_sring_stats_tlv(const void *tag_buf, void *data) stats_req->buf_len = len; } -static inline void htt_print_sring_cmn_tlv(const void *tag_buf, void *data) +static inline void htt_print_sring_cmn_tlv(const void *tag_buf, struct debug_htt_stats_req *stats_req) { - struct debug_htt_stats_req *stats_req = data; u8 *buf = stats_req->buf; u32 len = stats_req->buf_len; u32 buf_len = ATH11K_HTT_STATS_BUF_SIZE; @@ -2812,9 +2744,8 @@ static inline void htt_print_sring_cmn_tlv(const void *tag_buf, void *data) stats_req->buf_len = len; } -static inline void htt_print_tx_pdev_rate_stats_tlv(const void *tag_buf, void *data) +static inline void htt_print_tx_pdev_rate_stats_tlv(const void *tag_buf, struct debug_htt_stats_req *stats_req) { - struct debug_htt_stats_req *stats_req = data; u8 *buf = stats_req->buf; u32 len = stats_req->buf_len; u32 buf_len = ATH11K_HTT_STATS_BUF_SIZE; @@ -2988,9 +2919,8 @@ static inline void htt_print_tx_pdev_rate_stats_tlv(const void *tag_buf, void *d stats_req->buf_len = len; } -static inline void htt_print_rx_pdev_rate_stats_tlv(const void *tag_buf, void *data) +static inline void htt_print_rx_pdev_rate_stats_tlv(const void *tag_buf, struct debug_htt_stats_req *stats_req) { - struct debug_htt_stats_req *stats_req = data; u8 *buf = stats_req->buf; u32 len = stats_req->buf_len; u32 buf_len = ATH11K_HTT_STATS_BUF_SIZE; @@ -3110,9 +3040,8 @@ static inline void htt_print_rx_pdev_rate_stats_tlv(const void *tag_buf, void *d stats_req->buf_len = len; } -static inline void htt_print_rx_soc_fw_stats_tlv(const void *tag_buf, void *data) +static inline void htt_print_rx_soc_fw_stats_tlv(const void *tag_buf, struct debug_htt_stats_req *stats_req) { - struct debug_htt_stats_req *stats_req = data; u8 *buf = stats_req->buf; u32 len = stats_req->buf_len; u32 buf_len = ATH11K_HTT_STATS_BUF_SIZE; @@ -3157,9 +3086,8 @@ static inline void htt_print_rx_soc_fw_stats_tlv(const void *tag_buf, void *data static inline void htt_print_rx_soc_fw_refill_ring_empty_tlv_v(const void *tag_buf, u16 tag_len, - void *data) + struct debug_htt_stats_req *stats_req) { - struct debug_htt_stats_req *stats_req = data; u8 *buf = stats_req->buf; u32 len = stats_req->buf_len; u32 buf_len = ATH11K_HTT_STATS_BUF_SIZE; @@ -3187,9 +3115,8 @@ static inline void htt_print_rx_soc_fw_refill_ring_empty_tlv_v(const void *tag_b static inline void htt_print_rx_soc_fw_refill_ring_num_rxdma_err_tlv_v(const void *tag_buf, u16 tag_len, - void *data) + struct debug_htt_stats_req *stats_req) { - struct debug_htt_stats_req *stats_req = data; u8 *buf = stats_req->buf; u32 len = stats_req->buf_len; u32 buf_len = ATH11K_HTT_STATS_BUF_SIZE; @@ -3216,9 +3143,8 @@ htt_print_rx_soc_fw_refill_ring_num_rxdma_err_tlv_v(const void *tag_buf, static inline void htt_print_rx_soc_fw_refill_ring_num_reo_err_tlv_v(const void *tag_buf, u16 tag_len, - void *data) + struct debug_htt_stats_req *stats_req) { - struct debug_htt_stats_req *stats_req = data; u8 *buf = stats_req->buf; u32 len = stats_req->buf_len; u32 buf_len = ATH11K_HTT_STATS_BUF_SIZE; @@ -3244,9 +3170,8 @@ static inline void htt_print_rx_soc_fw_refill_ring_num_reo_err_tlv_v(const void } static inline void htt_print_rx_reo_debug_stats_tlv_v(const void *tag_buf, - void *data) + struct debug_htt_stats_req *stats_req) { - struct debug_htt_stats_req *stats_req = data; u8 *buf = stats_req->buf; u32 len = stats_req->buf_len; u32 buf_len = ATH11K_HTT_STATS_BUF_SIZE; @@ -3284,9 +3209,8 @@ static inline void htt_print_rx_reo_debug_stats_tlv_v(const void *tag_buf, static inline void htt_print_rx_soc_fw_refill_ring_num_refill_tlv_v(const void *tag_buf, u16 tag_len, - void *data) + struct debug_htt_stats_req *stats_req) { - struct debug_htt_stats_req *stats_req = data; u8 *buf = stats_req->buf; u32 len = stats_req->buf_len; u32 buf_len = ATH11K_HTT_STATS_BUF_SIZE; @@ -3312,9 +3236,8 @@ static inline void htt_print_rx_soc_fw_refill_ring_num_refill_tlv_v(const void * } static inline void htt_print_rx_pdev_fw_stats_tlv(const void *tag_buf, - void *data) + struct debug_htt_stats_req *stats_req) { - struct debug_htt_stats_req *stats_req = data; u8 *buf = stats_req->buf; u32 len = stats_req->buf_len; u32 buf_len = ATH11K_HTT_STATS_BUF_SIZE; @@ -3436,9 +3359,8 @@ static inline void htt_print_rx_pdev_fw_stats_tlv(const void *tag_buf, } static inline void htt_print_rx_pdev_fw_ring_mpdu_err_tlv_v(const void *tag_buf, - void *data) + struct debug_htt_stats_req *stats_req) { - struct debug_htt_stats_req *stats_req = data; u8 *buf = stats_req->buf; u32 len = stats_req->buf_len; u32 buf_len = ATH11K_HTT_STATS_BUF_SIZE; @@ -3464,9 +3386,8 @@ static inline void htt_print_rx_pdev_fw_ring_mpdu_err_tlv_v(const void *tag_buf, static inline void htt_print_rx_pdev_fw_mpdu_drop_tlv_v(const void *tag_buf, u16 tag_len, - void *data) + struct debug_htt_stats_req *stats_req) { - struct debug_htt_stats_req *stats_req = data; u8 *buf = stats_req->buf; u32 len = stats_req->buf_len; u32 buf_len = ATH11K_HTT_STATS_BUF_SIZE; @@ -3490,9 +3411,8 @@ static inline void htt_print_rx_pdev_fw_mpdu_drop_tlv_v(const void *tag_buf, } static inline void htt_print_rx_pdev_fw_stats_phy_err_tlv(const void *tag_buf, - void *data) + struct debug_htt_stats_req *stats_req) { - struct debug_htt_stats_req *stats_req = data; u8 *buf = stats_req->buf; u32 len = stats_req->buf_len; u32 buf_len = ATH11K_HTT_STATS_BUF_SIZE; @@ -3519,9 +3439,8 @@ static inline void htt_print_rx_pdev_fw_stats_phy_err_tlv(const void *tag_buf, } static inline void htt_print_pdev_cca_stats_hist_tlv(const void *tag_buf, - void *data) + struct debug_htt_stats_req *stats_req) { - struct debug_htt_stats_req *stats_req = data; u8 *buf = stats_req->buf; u32 len = stats_req->buf_len; u32 buf_len = ATH11K_HTT_STATS_BUF_SIZE; @@ -3550,9 +3469,8 @@ static inline void htt_print_pdev_cca_stats_hist_tlv(const void *tag_buf, stats_req->buf_len = len; } -static inline void htt_print_pdev_stats_cca_counters_tlv(const void *tag_buf, void *data) +static inline void htt_print_pdev_stats_cca_counters_tlv(const void *tag_buf, struct debug_htt_stats_req *stats_req) { - struct debug_htt_stats_req *stats_req = data; u8 *buf = stats_req->buf; u32 len = stats_req->buf_len; u32 buf_len = ATH11K_HTT_STATS_BUF_SIZE; @@ -3578,9 +3496,8 @@ static inline void htt_print_pdev_stats_cca_counters_tlv(const void *tag_buf, vo } static inline void htt_print_hw_stats_whal_tx_tlv(const void *tag_buf, - void *data) + struct debug_htt_stats_req *stats_req) { - struct debug_htt_stats_req *stats_req = data; u8 *buf = stats_req->buf; u32 len = stats_req->buf_len; u32 buf_len = ATH11K_HTT_STATS_BUF_SIZE; @@ -3622,9 +3539,8 @@ static inline void htt_print_hw_stats_whal_tx_tlv(const void *tag_buf, } static inline void htt_print_pdev_stats_twt_sessions_tlv(const void *tag_buf, - void *data) + struct debug_htt_stats_req *stats_req) { - struct debug_htt_stats_req *stats_req = data; u8 *buf = stats_req->buf; u32 len = stats_req->buf_len; u32 buf_len = ATH11K_HTT_STATS_BUF_SIZE; @@ -3645,9 +3561,8 @@ static inline void htt_print_pdev_stats_twt_sessions_tlv(const void *tag_buf, } static inline void htt_print_pdev_stats_twt_session_tlv(const void *tag_buf, - void *data) + struct debug_htt_stats_req *stats_req) { - struct debug_htt_stats_req *stats_req = data; u8 *buf = stats_req->buf; u32 len = stats_req->buf_len; u32 buf_len = ATH11K_HTT_STATS_BUF_SIZE; @@ -3684,9 +3599,8 @@ static inline void htt_print_pdev_stats_twt_session_tlv(const void *tag_buf, } static inline void htt_print_pdev_obss_pd_stats_tlv_v(const void *tag_buf, - void *data) + struct debug_htt_stats_req *stats_req) { - struct debug_htt_stats_req *stats_req = data; u8 *buf = stats_req->buf; u32 len = stats_req->buf_len; u32 buf_len = ATH11K_HTT_STATS_BUF_SIZE; @@ -3705,9 +3619,8 @@ static inline void htt_print_pdev_obss_pd_stats_tlv_v(const void *tag_buf, } static inline void htt_htt_stats_debug_dump(const u32 *tag_buf, - void *data) + struct debug_htt_stats_req *stats_req) { - struct debug_htt_stats_req *stats_req = data; u8 *buf = stats_req->buf; u32 len = stats_req->buf_len; u32 buf_len = ATH11K_HTT_STATS_BUF_SIZE; @@ -3753,347 +3666,349 @@ static int ath11k_dbg_htt_ext_stats_parse(struct ath11k_base *ab, u16 tag, u16 len, const void *tag_buf, void *user_data) { + struct debug_htt_stats_req *stats_req = user_data; + switch (tag) { case HTT_STATS_TX_PDEV_CMN_TAG: - htt_print_tx_pdev_stats_cmn_tlv(tag_buf, user_data); + htt_print_tx_pdev_stats_cmn_tlv(tag_buf, stats_req); break; case HTT_STATS_TX_PDEV_UNDERRUN_TAG: - htt_print_tx_pdev_stats_urrn_tlv_v(tag_buf, len, user_data); + htt_print_tx_pdev_stats_urrn_tlv_v(tag_buf, len, stats_req); break; case HTT_STATS_TX_PDEV_SIFS_TAG: - htt_print_tx_pdev_stats_sifs_tlv_v(tag_buf, len, user_data); + htt_print_tx_pdev_stats_sifs_tlv_v(tag_buf, len, stats_req); break; case HTT_STATS_TX_PDEV_FLUSH_TAG: - htt_print_tx_pdev_stats_flush_tlv_v(tag_buf, len, user_data); + htt_print_tx_pdev_stats_flush_tlv_v(tag_buf, len, stats_req); break; case HTT_STATS_TX_PDEV_PHY_ERR_TAG: - htt_print_tx_pdev_stats_phy_err_tlv_v(tag_buf, len, user_data); + htt_print_tx_pdev_stats_phy_err_tlv_v(tag_buf, len, stats_req); break; case HTT_STATS_TX_PDEV_SIFS_HIST_TAG: - htt_print_tx_pdev_stats_sifs_hist_tlv_v(tag_buf, len, user_data); + htt_print_tx_pdev_stats_sifs_hist_tlv_v(tag_buf, len, stats_req); break; case HTT_STATS_TX_PDEV_TX_PPDU_STATS_TAG: - htt_print_tx_pdev_stats_tx_ppdu_stats_tlv_v(tag_buf, user_data); + htt_print_tx_pdev_stats_tx_ppdu_stats_tlv_v(tag_buf, stats_req); break; case HTT_STATS_TX_PDEV_TRIED_MPDU_CNT_HIST_TAG: htt_print_tx_pdev_stats_tried_mpdu_cnt_hist_tlv_v(tag_buf, len, - user_data); + stats_req); break; case HTT_STATS_STRING_TAG: - htt_print_stats_string_tlv(tag_buf, len, user_data); + htt_print_stats_string_tlv(tag_buf, len, stats_req); break; case HTT_STATS_TX_HWQ_CMN_TAG: - htt_print_tx_hwq_stats_cmn_tlv(tag_buf, user_data); + htt_print_tx_hwq_stats_cmn_tlv(tag_buf, stats_req); break; case HTT_STATS_TX_HWQ_DIFS_LATENCY_TAG: - htt_print_tx_hwq_difs_latency_stats_tlv_v(tag_buf, len, user_data); + htt_print_tx_hwq_difs_latency_stats_tlv_v(tag_buf, len, stats_req); break; case HTT_STATS_TX_HWQ_CMD_RESULT_TAG: - htt_print_tx_hwq_cmd_result_stats_tlv_v(tag_buf, len, user_data); + htt_print_tx_hwq_cmd_result_stats_tlv_v(tag_buf, len, stats_req); break; case HTT_STATS_TX_HWQ_CMD_STALL_TAG: - htt_print_tx_hwq_cmd_stall_stats_tlv_v(tag_buf, len, user_data); + htt_print_tx_hwq_cmd_stall_stats_tlv_v(tag_buf, len, stats_req); break; case HTT_STATS_TX_HWQ_FES_STATUS_TAG: - htt_print_tx_hwq_fes_result_stats_tlv_v(tag_buf, len, user_data); + htt_print_tx_hwq_fes_result_stats_tlv_v(tag_buf, len, stats_req); break; case HTT_STATS_TX_HWQ_TRIED_MPDU_CNT_HIST_TAG: - htt_print_tx_hwq_tried_mpdu_cnt_hist_tlv_v(tag_buf, len, user_data); + htt_print_tx_hwq_tried_mpdu_cnt_hist_tlv_v(tag_buf, len, stats_req); break; case HTT_STATS_TX_HWQ_TXOP_USED_CNT_HIST_TAG: - htt_print_tx_hwq_txop_used_cnt_hist_tlv_v(tag_buf, len, user_data); + htt_print_tx_hwq_txop_used_cnt_hist_tlv_v(tag_buf, len, stats_req); break; case HTT_STATS_TX_TQM_GEN_MPDU_TAG: - htt_print_tx_tqm_gen_mpdu_stats_tlv_v(tag_buf, len, user_data); + htt_print_tx_tqm_gen_mpdu_stats_tlv_v(tag_buf, len, stats_req); break; case HTT_STATS_TX_TQM_LIST_MPDU_TAG: - htt_print_tx_tqm_list_mpdu_stats_tlv_v(tag_buf, len, user_data); + htt_print_tx_tqm_list_mpdu_stats_tlv_v(tag_buf, len, stats_req); break; case HTT_STATS_TX_TQM_LIST_MPDU_CNT_TAG: - htt_print_tx_tqm_list_mpdu_cnt_tlv_v(tag_buf, len, user_data); + htt_print_tx_tqm_list_mpdu_cnt_tlv_v(tag_buf, len, stats_req); break; case HTT_STATS_TX_TQM_CMN_TAG: - htt_print_tx_tqm_cmn_stats_tlv(tag_buf, user_data); + htt_print_tx_tqm_cmn_stats_tlv(tag_buf, stats_req); break; case HTT_STATS_TX_TQM_PDEV_TAG: - htt_print_tx_tqm_pdev_stats_tlv_v(tag_buf, user_data); + htt_print_tx_tqm_pdev_stats_tlv_v(tag_buf, stats_req); break; case HTT_STATS_TX_TQM_CMDQ_STATUS_TAG: - htt_print_tx_tqm_cmdq_status_tlv(tag_buf, user_data); + htt_print_tx_tqm_cmdq_status_tlv(tag_buf, stats_req); break; case HTT_STATS_TX_DE_EAPOL_PACKETS_TAG: - htt_print_tx_de_eapol_packets_stats_tlv(tag_buf, user_data); + htt_print_tx_de_eapol_packets_stats_tlv(tag_buf, stats_req); break; case HTT_STATS_TX_DE_CLASSIFY_FAILED_TAG: - htt_print_tx_de_classify_failed_stats_tlv(tag_buf, user_data); + htt_print_tx_de_classify_failed_stats_tlv(tag_buf, stats_req); break; case HTT_STATS_TX_DE_CLASSIFY_STATS_TAG: - htt_print_tx_de_classify_stats_tlv(tag_buf, user_data); + htt_print_tx_de_classify_stats_tlv(tag_buf, stats_req); break; case HTT_STATS_TX_DE_CLASSIFY_STATUS_TAG: - htt_print_tx_de_classify_status_stats_tlv(tag_buf, user_data); + htt_print_tx_de_classify_status_stats_tlv(tag_buf, stats_req); break; case HTT_STATS_TX_DE_ENQUEUE_PACKETS_TAG: - htt_print_tx_de_enqueue_packets_stats_tlv(tag_buf, user_data); + htt_print_tx_de_enqueue_packets_stats_tlv(tag_buf, stats_req); break; case HTT_STATS_TX_DE_ENQUEUE_DISCARD_TAG: - htt_print_tx_de_enqueue_discard_stats_tlv(tag_buf, user_data); + htt_print_tx_de_enqueue_discard_stats_tlv(tag_buf, stats_req); break; case HTT_STATS_TX_DE_FW2WBM_RING_FULL_HIST_TAG: - htt_print_tx_de_fw2wbm_ring_full_hist_tlv(tag_buf, len, user_data); + htt_print_tx_de_fw2wbm_ring_full_hist_tlv(tag_buf, len, stats_req); break; case HTT_STATS_TX_DE_CMN_TAG: - htt_print_tx_de_cmn_stats_tlv(tag_buf, user_data); + htt_print_tx_de_cmn_stats_tlv(tag_buf, stats_req); break; case HTT_STATS_RING_IF_TAG: - htt_print_ring_if_stats_tlv(tag_buf, user_data); + htt_print_ring_if_stats_tlv(tag_buf, stats_req); break; case HTT_STATS_TX_PDEV_MU_MIMO_STATS_TAG: - htt_print_tx_pdev_mu_mimo_sch_stats_tlv(tag_buf, user_data); + htt_print_tx_pdev_mu_mimo_sch_stats_tlv(tag_buf, stats_req); break; case HTT_STATS_SFM_CMN_TAG: - htt_print_sfm_cmn_tlv(tag_buf, user_data); + htt_print_sfm_cmn_tlv(tag_buf, stats_req); break; case HTT_STATS_SRING_STATS_TAG: - htt_print_sring_stats_tlv(tag_buf, user_data); + htt_print_sring_stats_tlv(tag_buf, stats_req); break; case HTT_STATS_RX_PDEV_FW_STATS_TAG: - htt_print_rx_pdev_fw_stats_tlv(tag_buf, user_data); + htt_print_rx_pdev_fw_stats_tlv(tag_buf, stats_req); break; case HTT_STATS_RX_PDEV_FW_RING_MPDU_ERR_TAG: - htt_print_rx_pdev_fw_ring_mpdu_err_tlv_v(tag_buf, user_data); + htt_print_rx_pdev_fw_ring_mpdu_err_tlv_v(tag_buf, stats_req); break; case HTT_STATS_RX_PDEV_FW_MPDU_DROP_TAG: - htt_print_rx_pdev_fw_mpdu_drop_tlv_v(tag_buf, len, user_data); + htt_print_rx_pdev_fw_mpdu_drop_tlv_v(tag_buf, len, stats_req); break; case HTT_STATS_RX_SOC_FW_STATS_TAG: - htt_print_rx_soc_fw_stats_tlv(tag_buf, user_data); + htt_print_rx_soc_fw_stats_tlv(tag_buf, stats_req); break; case HTT_STATS_RX_SOC_FW_REFILL_RING_EMPTY_TAG: - htt_print_rx_soc_fw_refill_ring_empty_tlv_v(tag_buf, len, user_data); + htt_print_rx_soc_fw_refill_ring_empty_tlv_v(tag_buf, len, stats_req); break; case HTT_STATS_RX_SOC_FW_REFILL_RING_NUM_REFILL_TAG: htt_print_rx_soc_fw_refill_ring_num_refill_tlv_v( - tag_buf, len, user_data); + tag_buf, len, stats_req); break; case HTT_STATS_RX_REFILL_RXDMA_ERR_TAG: htt_print_rx_soc_fw_refill_ring_num_rxdma_err_tlv_v( - tag_buf, len, user_data); + tag_buf, len, stats_req); break; case HTT_STATS_RX_REFILL_REO_ERR_TAG: htt_print_rx_soc_fw_refill_ring_num_reo_err_tlv_v( - tag_buf, len, user_data); + tag_buf, len, stats_req); break; case HTT_STATS_RX_REO_RESOURCE_STATS_TAG: htt_print_rx_reo_debug_stats_tlv_v( - tag_buf, user_data); + tag_buf, stats_req); break; case HTT_STATS_RX_PDEV_FW_STATS_PHY_ERR_TAG: - htt_print_rx_pdev_fw_stats_phy_err_tlv(tag_buf, user_data); + htt_print_rx_pdev_fw_stats_phy_err_tlv(tag_buf, stats_req); break; case HTT_STATS_TX_PDEV_RATE_STATS_TAG: - htt_print_tx_pdev_rate_stats_tlv(tag_buf, user_data); + htt_print_tx_pdev_rate_stats_tlv(tag_buf, stats_req); break; case HTT_STATS_RX_PDEV_RATE_STATS_TAG: - htt_print_rx_pdev_rate_stats_tlv(tag_buf, user_data); + htt_print_rx_pdev_rate_stats_tlv(tag_buf, stats_req); break; case HTT_STATS_TX_PDEV_SCHEDULER_TXQ_STATS_TAG: - htt_print_tx_pdev_stats_sched_per_txq_tlv(tag_buf, user_data); + htt_print_tx_pdev_stats_sched_per_txq_tlv(tag_buf, stats_req); break; case HTT_STATS_TX_SCHED_CMN_TAG: - htt_print_stats_tx_sched_cmn_tlv(tag_buf, user_data); + htt_print_stats_tx_sched_cmn_tlv(tag_buf, stats_req); break; case HTT_STATS_TX_PDEV_MPDU_STATS_TAG: - htt_print_tx_pdev_mu_mimo_mpdu_stats_tlv(tag_buf, user_data); + htt_print_tx_pdev_mu_mimo_mpdu_stats_tlv(tag_buf, stats_req); break; case HTT_STATS_SCHED_TXQ_CMD_POSTED_TAG: - htt_print_sched_txq_cmd_posted_tlv_v(tag_buf, len, user_data); + htt_print_sched_txq_cmd_posted_tlv_v(tag_buf, len, stats_req); break; case HTT_STATS_RING_IF_CMN_TAG: - htt_print_ring_if_cmn_tlv(tag_buf, user_data); + htt_print_ring_if_cmn_tlv(tag_buf, stats_req); break; case HTT_STATS_SFM_CLIENT_USER_TAG: - htt_print_sfm_client_user_tlv_v(tag_buf, len, user_data); + htt_print_sfm_client_user_tlv_v(tag_buf, len, stats_req); break; case HTT_STATS_SFM_CLIENT_TAG: - htt_print_sfm_client_tlv(tag_buf, user_data); + htt_print_sfm_client_tlv(tag_buf, stats_req); break; case HTT_STATS_TX_TQM_ERROR_STATS_TAG: - htt_print_tx_tqm_error_stats_tlv(tag_buf, user_data); + htt_print_tx_tqm_error_stats_tlv(tag_buf, stats_req); break; case HTT_STATS_SCHED_TXQ_CMD_REAPED_TAG: - htt_print_sched_txq_cmd_reaped_tlv_v(tag_buf, len, user_data); + htt_print_sched_txq_cmd_reaped_tlv_v(tag_buf, len, stats_req); break; case HTT_STATS_SRING_CMN_TAG: - htt_print_sring_cmn_tlv(tag_buf, user_data); + htt_print_sring_cmn_tlv(tag_buf, stats_req); break; case HTT_STATS_TX_SOUNDING_STATS_TAG: - htt_print_tx_sounding_stats_tlv(tag_buf, user_data); + htt_print_tx_sounding_stats_tlv(tag_buf, stats_req); break; case HTT_STATS_TX_SELFGEN_AC_ERR_STATS_TAG: - htt_print_tx_selfgen_ac_err_stats_tlv(tag_buf, user_data); + htt_print_tx_selfgen_ac_err_stats_tlv(tag_buf, stats_req); break; case HTT_STATS_TX_SELFGEN_CMN_STATS_TAG: - htt_print_tx_selfgen_cmn_stats_tlv(tag_buf, user_data); + htt_print_tx_selfgen_cmn_stats_tlv(tag_buf, stats_req); break; case HTT_STATS_TX_SELFGEN_AC_STATS_TAG: - htt_print_tx_selfgen_ac_stats_tlv(tag_buf, user_data); + htt_print_tx_selfgen_ac_stats_tlv(tag_buf, stats_req); break; case HTT_STATS_TX_SELFGEN_AX_STATS_TAG: - htt_print_tx_selfgen_ax_stats_tlv(tag_buf, user_data); + htt_print_tx_selfgen_ax_stats_tlv(tag_buf, stats_req); break; case HTT_STATS_TX_SELFGEN_AX_ERR_STATS_TAG: - htt_print_tx_selfgen_ax_err_stats_tlv(tag_buf, user_data); + htt_print_tx_selfgen_ax_err_stats_tlv(tag_buf, stats_req); break; case HTT_STATS_TX_HWQ_MUMIMO_SCH_STATS_TAG: - htt_print_tx_hwq_mu_mimo_sch_stats_tlv(tag_buf, user_data); + htt_print_tx_hwq_mu_mimo_sch_stats_tlv(tag_buf, stats_req); break; case HTT_STATS_TX_HWQ_MUMIMO_MPDU_STATS_TAG: - htt_print_tx_hwq_mu_mimo_mpdu_stats_tlv(tag_buf, user_data); + htt_print_tx_hwq_mu_mimo_mpdu_stats_tlv(tag_buf, stats_req); break; case HTT_STATS_TX_HWQ_MUMIMO_CMN_STATS_TAG: - htt_print_tx_hwq_mu_mimo_cmn_stats_tlv(tag_buf, user_data); + htt_print_tx_hwq_mu_mimo_cmn_stats_tlv(tag_buf, stats_req); break; case HTT_STATS_HW_INTR_MISC_TAG: - htt_print_hw_stats_intr_misc_tlv(tag_buf, user_data); + htt_print_hw_stats_intr_misc_tlv(tag_buf, stats_req); break; case HTT_STATS_HW_WD_TIMEOUT_TAG: - htt_print_hw_stats_wd_timeout_tlv(tag_buf, user_data); + htt_print_hw_stats_wd_timeout_tlv(tag_buf, stats_req); break; case HTT_STATS_HW_PDEV_ERRS_TAG: - htt_print_hw_stats_pdev_errs_tlv(tag_buf, user_data); + htt_print_hw_stats_pdev_errs_tlv(tag_buf, stats_req); break; case HTT_STATS_COUNTER_NAME_TAG: - htt_print_counter_tlv(tag_buf, user_data); + htt_print_counter_tlv(tag_buf, stats_req); break; case HTT_STATS_TX_TID_DETAILS_TAG: - htt_print_tx_tid_stats_tlv(tag_buf, user_data); + htt_print_tx_tid_stats_tlv(tag_buf, stats_req); break; case HTT_STATS_TX_TID_DETAILS_V1_TAG: - htt_print_tx_tid_stats_v1_tlv(tag_buf, user_data); + htt_print_tx_tid_stats_v1_tlv(tag_buf, stats_req); break; case HTT_STATS_RX_TID_DETAILS_TAG: - htt_print_rx_tid_stats_tlv(tag_buf, user_data); + htt_print_rx_tid_stats_tlv(tag_buf, stats_req); break; case HTT_STATS_PEER_STATS_CMN_TAG: - htt_print_peer_stats_cmn_tlv(tag_buf, user_data); + htt_print_peer_stats_cmn_tlv(tag_buf, stats_req); break; case HTT_STATS_PEER_DETAILS_TAG: - htt_print_peer_details_tlv(tag_buf, user_data); + htt_print_peer_details_tlv(tag_buf, stats_req); break; case HTT_STATS_PEER_MSDU_FLOWQ_TAG: - htt_print_msdu_flow_stats_tlv(tag_buf, user_data); + htt_print_msdu_flow_stats_tlv(tag_buf, stats_req); break; case HTT_STATS_PEER_TX_RATE_STATS_TAG: - htt_print_tx_peer_rate_stats_tlv(tag_buf, user_data); + htt_print_tx_peer_rate_stats_tlv(tag_buf, stats_req); break; case HTT_STATS_PEER_RX_RATE_STATS_TAG: - htt_print_rx_peer_rate_stats_tlv(tag_buf, user_data); + htt_print_rx_peer_rate_stats_tlv(tag_buf, stats_req); break; case HTT_STATS_TX_DE_COMPL_STATS_TAG: - htt_print_tx_de_compl_stats_tlv(tag_buf, user_data); + htt_print_tx_de_compl_stats_tlv(tag_buf, stats_req); break; case HTT_STATS_PDEV_CCA_1SEC_HIST_TAG: case HTT_STATS_PDEV_CCA_100MSEC_HIST_TAG: case HTT_STATS_PDEV_CCA_STAT_CUMULATIVE_TAG: - htt_print_pdev_cca_stats_hist_tlv(tag_buf, user_data); + htt_print_pdev_cca_stats_hist_tlv(tag_buf, stats_req); break; case HTT_STATS_PDEV_CCA_COUNTERS_TAG: - htt_print_pdev_stats_cca_counters_tlv(tag_buf, user_data); + htt_print_pdev_stats_cca_counters_tlv(tag_buf, stats_req); break; case HTT_STATS_WHAL_TX_TAG: - htt_print_hw_stats_whal_tx_tlv(tag_buf, user_data); + htt_print_hw_stats_whal_tx_tlv(tag_buf, stats_req); break; case HTT_STATS_PDEV_TWT_SESSIONS_TAG: - htt_print_pdev_stats_twt_sessions_tlv(tag_buf, user_data); + htt_print_pdev_stats_twt_sessions_tlv(tag_buf, stats_req); break; case HTT_STATS_PDEV_TWT_SESSION_TAG: - htt_print_pdev_stats_twt_session_tlv(tag_buf, user_data); + htt_print_pdev_stats_twt_session_tlv(tag_buf, stats_req); break; case HTT_STATS_SCHED_TXQ_SCHED_ORDER_SU_TAG: - htt_print_sched_txq_sched_order_su_tlv_v(tag_buf, len, user_data); + htt_print_sched_txq_sched_order_su_tlv_v(tag_buf, len, stats_req); break; case HTT_STATS_SCHED_TXQ_SCHED_INELIGIBILITY_TAG: - htt_print_sched_txq_sched_ineligibility_tlv_v(tag_buf, len, user_data); + htt_print_sched_txq_sched_ineligibility_tlv_v(tag_buf, len, stats_req); break; case HTT_STATS_PDEV_OBSS_PD_TAG: - htt_print_pdev_obss_pd_stats_tlv_v(tag_buf, user_data); + htt_print_pdev_obss_pd_stats_tlv_v(tag_buf, stats_req); break; default: break; From patchwork Fri Aug 9 09:27:42 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kalle Valo X-Patchwork-Id: 11086017 X-Patchwork-Delegate: kvalo@adurom.com Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 521E51395 for ; Fri, 9 Aug 2019 09:27:52 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 40FA628C54 for ; Fri, 9 Aug 2019 09:27:52 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 3574528C57; Fri, 9 Aug 2019 09:27:52 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id E347028C54 for ; Fri, 9 Aug 2019 09:27:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-ID:Date:To:From:Subject:Reply-To:Cc:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=xAYh7GWNknqAwW1jT6WGRh31ZqyPentbYpaG1ryQazA=; b=afB47O32wHGeq5 BAjM+O4ZLjPXj80F3n41Y8B7ia88cmsvgHJd7IxN9sPWmw/4yCoMz6kjC4B9rmWcMJiFSiLqsASkI GmFgO/Vb93f2kgxN/olJ9Owf1Xb9T2XeBcp2I6ALiE/LltV7hoFl2C61vtZzM537fthqqyo9OaFkj Yd3PWDU5WjocIF3d2ga3KXGjl14P3FMEkSafd7b5MCn2df/orzDOIcESeMqx1OeVWr5jg2U4eWISI EAmKUyoca6wOQQ8RRCR7dYWSiVaJAiVY30mVyt2qRSVfqe/efotx+QO30bp4d4I7zhqpT5qzwtD+T FNN7fXz9SU93/1ri12Cg==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92 #3 (Red Hat Linux)) id 1hw1Bd-0000yY-GI; Fri, 09 Aug 2019 09:27:49 +0000 Received: from smtp.codeaurora.org ([198.145.29.96]) by bombadil.infradead.org with esmtps (Exim 4.92 #3 (Red Hat Linux)) id 1hw1Ba-0000xo-UP for ath11k@lists.infradead.org; Fri, 09 Aug 2019 09:27:48 +0000 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id 33A0A60721; Fri, 9 Aug 2019 09:27:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1565342866; bh=+H27O2iz94KBFB924cND3NGlkv55B6BhA+x2oNDdz4w=; h=Subject:From:To:Date:In-Reply-To:References:From; b=Pw68dLPyT5JkbyLCUxpnYrejF8UHDlZMMmWO6BVqzKvEJCHzHIjQZFs9PthWF4jTA /lDsjmmrBnHyiUDl1454z0Hh329c88AaLYZ/vfJWKYrsMvSVS5Gfw/PHzFeg2Et/G5 iMAADfHIlxKveadAqPjUtFtyt2/k5+kGwUOqXQ7A= Received: from [127.0.1.1] (88-114-240-156.elisa-laajakaista.fi [88.114.240.156]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: kvalo@smtp.codeaurora.org) by smtp.codeaurora.org (Postfix) with ESMTPSA id 9BE0B60AD1 for ; Fri, 9 Aug 2019 09:27:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1565342865; bh=+H27O2iz94KBFB924cND3NGlkv55B6BhA+x2oNDdz4w=; h=Subject:From:To:Date:In-Reply-To:References:From; b=e/TKxZY1L1QMD2sjdDlVwj3+uBqWHG3PtfLmhX6hRDdKmaLV1Ac68OH7fDX8zG9ad rlhtKcbXx0FOTe3J4XXo8Ml+qrd0VUjzfZ1lzWarByezrDiWXw5Iw0nUUocm2+ezCe wfEbbJ+rNTZnj9O4RomH0NULb1TL/+Sj3d+rWqto= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 9BE0B60AD1 Authentication-Results: pdx-caf-mail.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: pdx-caf-mail.web.codeaurora.org; spf=none smtp.mailfrom=kvalo@codeaurora.org Subject: [PATCH 12/15] ath11k: debug_htt_stats: remove unnecessary cast From: Kalle Valo To: ath11k@lists.infradead.org Date: Fri, 09 Aug 2019 12:27:42 +0300 Message-ID: <156534286219.30736.2875472095603667558.stgit@x230> In-Reply-To: <156534276745.30736.11736417077894270794.stgit@x230> References: <156534276745.30736.11736417077894270794.stgit@x230> User-Agent: StGit/0.19 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190809_022747_004111_2E202B3F X-CRM114-Status: UNSURE ( 9.53 ) X-CRM114-Notice: Please train this message. X-BeenThere: ath11k@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "ath11k" Errors-To: ath11k-bounces+patchwork-ath11k=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP No need to do any casting for void pointers. No functional changes, compile tested only. Signed-off-by: Kalle Valo --- drivers/net/wireless/ath/ath11k/debug_htt_stats.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/wireless/ath/ath11k/debug_htt_stats.c b/drivers/net/wireless/ath/ath11k/debug_htt_stats.c index a01f3d5ec54e..8265b255b27f 100644 --- a/drivers/net/wireless/ath/ath11k/debug_htt_stats.c +++ b/drivers/net/wireless/ath/ath11k/debug_htt_stats.c @@ -4060,7 +4060,7 @@ void ath11k_dbg_htt_ext_stats_handler(struct ath11k_base *ab, len = FIELD_GET(HTT_T2H_EXT_STATS_INFO1_LENGTH, msg->info1); ret = ath11k_dp_htt_tlv_iter(ab, msg->data, len, ath11k_dbg_htt_ext_stats_parse, - (void *)stats_req); + stats_req); if (ret) ath11k_warn(ab, "Failed to parse tlv %d\n", ret); From patchwork Fri Aug 9 09:27:50 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kalle Valo X-Patchwork-Id: 11086019 X-Patchwork-Delegate: kvalo@adurom.com Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id A5AED14D5 for ; Fri, 9 Aug 2019 09:28:05 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 9108428C56 for ; Fri, 9 Aug 2019 09:28:05 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 8528128C58; Fri, 9 Aug 2019 09:28:05 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 3C24B28C56 for ; Fri, 9 Aug 2019 09:28:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-ID:Date:To:From:Subject:Reply-To:Cc:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=khJGQZIwsyeurzKkWhgHMtIxcfx7q+vcoCg7PMVmDiE=; b=tzlG6+4CMpQ/7q ITWjsUu1ErV9xXMTbBAzYcZNLYZEwTgKTP6wFzm3RVrYc515S21kdlcbT0UO9UURF5qMuMV9379Cn qg8scWY8k9GXEVyOWyIrJZcSN0S8tDi88qxDRhsXto8PZTVl4FncZlqopdSEh1CfeYDmYeQdD3U2C 4SnbocomxRcyGDQtEGnOdIx/iY3w4qkzDCnFAbb/VEMILOHE7FzmCu6V91op6vM1veMj9tEX/UuNN SqGKJXqDpu5V6qRGTTn57otDocSIPfNz2USrwHWkLEkwS/26f7BnwYoADhLqTwPJn4A9uBbh8vEK+ SqEh/RN7aEhQgf1MEgmw==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92 #3 (Red Hat Linux)) id 1hw1Bq-0000zt-UB; Fri, 09 Aug 2019 09:28:03 +0000 Received: from smtp.codeaurora.org ([198.145.29.96]) by bombadil.infradead.org with esmtps (Exim 4.92 #3 (Red Hat Linux)) id 1hw1Bn-0000zc-41 for ath11k@lists.infradead.org; Fri, 09 Aug 2019 09:28:01 +0000 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id CB601602ED; Fri, 9 Aug 2019 09:27:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1565342878; bh=oaQH4eob8XDnFfNZxoiTM1R8kTZBAEPqOu4gdpYKfwI=; h=Subject:From:To:Date:In-Reply-To:References:From; b=oBPSUq/erwrYoebM5LRdmP7oVUtioWkXp5IfQD1VHg1axwKtmBfEmTceDZmV7/Xw2 P/GvROBDrIrWD/z923kuJDpX1dFCxwnELFbD/aGbFRbqM8wnn0eY+tFvoLZhCnyGjT BYAC7LIJI30sOGZNh3gTXPmoyClidehU2+7zsv1g= Received: from [127.0.1.1] (88-114-240-156.elisa-laajakaista.fi [88.114.240.156]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: kvalo@smtp.codeaurora.org) by smtp.codeaurora.org (Postfix) with ESMTPSA id 34B056115B for ; Fri, 9 Aug 2019 09:27:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1565342874; bh=oaQH4eob8XDnFfNZxoiTM1R8kTZBAEPqOu4gdpYKfwI=; h=Subject:From:To:Date:In-Reply-To:References:From; b=aoDcodLIKJPHL2X5m3D6qE+2A5fF33RzjjqP3AX0nvyOf/0aMDH5k7YKLlIJG7ZOZ mRuWP3qhfIUPA2c/3e/9Naw7ex/3huBmjpuIG/RKvbdupoQO/AYyIu+Ok2XeUc5Zyb wZW1Vr2L3Xa7UqEUthyChBxv2HkRzpPd28NjjO7A= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 34B056115B Authentication-Results: pdx-caf-mail.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: pdx-caf-mail.web.codeaurora.org; spf=none smtp.mailfrom=kvalo@codeaurora.org Subject: [PATCH 13/15] ath11k: debug_htt_stats: move tag_buf assignment to the first From: Kalle Valo To: ath11k@lists.infradead.org Date: Fri, 09 Aug 2019 12:27:50 +0300 Message-ID: <156534287052.30736.9447900788202472849.stgit@x230> In-Reply-To: <156534276745.30736.11736417077894270794.stgit@x230> References: <156534276745.30736.11736417077894270794.stgit@x230> User-Agent: StGit/0.19 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190809_022759_202885_ADD1ECF4 X-CRM114-Status: UNSURE ( 8.62 ) X-CRM114-Notice: Please train this message. X-BeenThere: ath11k@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "ath11k" Errors-To: ath11k-bounces+patchwork-ath11k=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP This is more intuitive and makes the file consistent as half of the functions already used the same style. No functional changes, compile tested only. Signed-off-by: Kalle Valo --- drivers/net/wireless/ath/ath11k/debug_htt_stats.c | 85 +++++++++++---------- 1 file changed, 43 insertions(+), 42 deletions(-) diff --git a/drivers/net/wireless/ath/ath11k/debug_htt_stats.c b/drivers/net/wireless/ath/ath11k/debug_htt_stats.c index 8265b255b27f..ce49edf664ec 100644 --- a/drivers/net/wireless/ath/ath11k/debug_htt_stats.c +++ b/drivers/net/wireless/ath/ath11k/debug_htt_stats.c @@ -1897,10 +1897,10 @@ static inline void htt_print_tx_pdev_stats_sched_per_txq_tlv(const void *tag_buf static inline void htt_print_stats_tx_sched_cmn_tlv(const void *tag_buf, struct debug_htt_stats_req *stats_req) { + const struct htt_stats_tx_sched_cmn_tlv *htt_stats_buf = tag_buf; u8 *buf = stats_req->buf; u32 len = stats_req->buf_len; u32 buf_len = ATH11K_HTT_STATS_BUF_SIZE; - const struct htt_stats_tx_sched_cmn_tlv *htt_stats_buf = tag_buf; len += HTT_DBG_OUT(buf + len, buf_len - len, "HTT_STATS_TX_SCHED_CMN_TLV:"); len += HTT_DBG_OUT(buf + len, buf_len - len, "mac_id = %u", @@ -1920,10 +1920,10 @@ static inline void htt_print_tx_tqm_gen_mpdu_stats_tlv_v(const void *tag_buf, u16 tag_len, struct debug_htt_stats_req *stats_req) { + const struct htt_tx_tqm_gen_mpdu_stats_tlv_v *htt_stats_buf = tag_buf; u8 *buf = stats_req->buf; u32 len = stats_req->buf_len; u32 buf_len = ATH11K_HTT_STATS_BUF_SIZE; - const struct htt_tx_tqm_gen_mpdu_stats_tlv_v *htt_stats_buf = tag_buf; char gen_mpdu_end_reason[HTT_MAX_STRING_LEN] = {0}; u16 num_elements = min_t(u16, (tag_len >> 2), HTT_TX_TQM_MAX_LIST_MPDU_END_REASON); @@ -1947,10 +1947,10 @@ static inline void htt_print_tx_tqm_list_mpdu_stats_tlv_v(const void *tag_buf, u16 tag_len, struct debug_htt_stats_req *stats_req) { + const struct htt_tx_tqm_list_mpdu_stats_tlv_v *htt_stats_buf = tag_buf; u8 *buf = stats_req->buf; u32 len = stats_req->buf_len; u32 buf_len = ATH11K_HTT_STATS_BUF_SIZE; - const struct htt_tx_tqm_list_mpdu_stats_tlv_v *htt_stats_buf = tag_buf; char list_mpdu_end_reason[HTT_MAX_STRING_LEN] = {0}; u16 num_elems = min_t(u16, (tag_len >> 2), HTT_TX_TQM_MAX_LIST_MPDU_END_REASON); @@ -1973,10 +1973,10 @@ static inline void htt_print_tx_tqm_list_mpdu_cnt_tlv_v(const void *tag_buf, u16 tag_len, struct debug_htt_stats_req *stats_req) { + const struct htt_tx_tqm_list_mpdu_cnt_tlv_v *htt_stats_buf = tag_buf; u8 *buf = stats_req->buf; u32 len = stats_req->buf_len; u32 buf_len = ATH11K_HTT_STATS_BUF_SIZE; - const struct htt_tx_tqm_list_mpdu_cnt_tlv_v *htt_stats_buf = tag_buf; char list_mpdu_cnt_hist[HTT_MAX_STRING_LEN] = {0}; u16 num_elems = min_t(u16, (tag_len >> 2), HTT_TX_TQM_MAX_LIST_MPDU_CNT_HISTOGRAM_BINS); @@ -1998,10 +1998,10 @@ static inline void htt_print_tx_tqm_list_mpdu_cnt_tlv_v(const void *tag_buf, static inline void htt_print_tx_tqm_pdev_stats_tlv_v(const void *tag_buf, struct debug_htt_stats_req *stats_req) { + const struct htt_tx_tqm_pdev_stats_tlv_v *htt_stats_buf = tag_buf; u8 *buf = stats_req->buf; u32 len = stats_req->buf_len; u32 buf_len = ATH11K_HTT_STATS_BUF_SIZE; - const struct htt_tx_tqm_pdev_stats_tlv_v *htt_stats_buf = tag_buf; len += HTT_DBG_OUT(buf + len, buf_len - len, "HTT_TX_TQM_PDEV_STATS_TLV_V:"); len += HTT_DBG_OUT(buf + len, buf_len - len, "msdu_count = %u", @@ -2077,10 +2077,10 @@ static inline void htt_print_tx_tqm_pdev_stats_tlv_v(const void *tag_buf, struct static inline void htt_print_tx_tqm_cmn_stats_tlv(const void *tag_buf, struct debug_htt_stats_req *stats_req) { + const struct htt_tx_tqm_cmn_stats_tlv *htt_stats_buf = tag_buf; u8 *buf = stats_req->buf; u32 len = stats_req->buf_len; u32 buf_len = ATH11K_HTT_STATS_BUF_SIZE; - const struct htt_tx_tqm_cmn_stats_tlv *htt_stats_buf = tag_buf; len += HTT_DBG_OUT(buf + len, buf_len - len, "HTT_TX_TQM_CMN_STATS_TLV:"); len += HTT_DBG_OUT(buf + len, buf_len - len, "mac_id = %u", @@ -2110,10 +2110,10 @@ static inline void htt_print_tx_tqm_cmn_stats_tlv(const void *tag_buf, struct de static inline void htt_print_tx_tqm_error_stats_tlv(const void *tag_buf, struct debug_htt_stats_req *stats_req) { + const struct htt_tx_tqm_error_stats_tlv *htt_stats_buf = tag_buf; u8 *buf = stats_req->buf; u32 len = stats_req->buf_len; u32 buf_len = ATH11K_HTT_STATS_BUF_SIZE; - const struct htt_tx_tqm_error_stats_tlv *htt_stats_buf = tag_buf; len += HTT_DBG_OUT(buf + len, buf_len - len, "HTT_TX_TQM_ERROR_STATS_TLV:"); len += HTT_DBG_OUT(buf + len, buf_len - len, "q_empty_failure = %u", @@ -2133,10 +2133,10 @@ static inline void htt_print_tx_tqm_error_stats_tlv(const void *tag_buf, struct static inline void htt_print_tx_tqm_cmdq_status_tlv(const void *tag_buf, struct debug_htt_stats_req *stats_req) { + const struct htt_tx_tqm_cmdq_status_tlv *htt_stats_buf = tag_buf; u8 *buf = stats_req->buf; u32 len = stats_req->buf_len; u32 buf_len = ATH11K_HTT_STATS_BUF_SIZE; - const struct htt_tx_tqm_cmdq_status_tlv *htt_stats_buf = tag_buf; len += HTT_DBG_OUT(buf + len, buf_len - len, "HTT_TX_TQM_CMDQ_STATUS_TLV:"); len += HTT_DBG_OUT(buf + len, buf_len - len, "mac_id = %u", @@ -2176,10 +2176,10 @@ static inline void htt_print_tx_tqm_cmdq_status_tlv(const void *tag_buf, struct static inline void htt_print_tx_de_eapol_packets_stats_tlv(const void *tag_buf, struct debug_htt_stats_req *stats_req) { + const struct htt_tx_de_eapol_packets_stats_tlv *htt_stats_buf = tag_buf; u8 *buf = stats_req->buf; u32 len = stats_req->buf_len; u32 buf_len = ATH11K_HTT_STATS_BUF_SIZE; - const struct htt_tx_de_eapol_packets_stats_tlv *htt_stats_buf = tag_buf; len += HTT_DBG_OUT(buf + len, buf_len - len, "HTT_TX_DE_EAPOL_PACKETS_STATS_TLV:"); @@ -2206,10 +2206,10 @@ static inline void htt_print_tx_de_eapol_packets_stats_tlv(const void *tag_buf, static inline void htt_print_tx_de_classify_failed_stats_tlv(const void *tag_buf, struct debug_htt_stats_req *stats_req) { + const struct htt_tx_de_classify_failed_stats_tlv *htt_stats_buf = tag_buf; u8 *buf = stats_req->buf; u32 len = stats_req->buf_len; u32 buf_len = ATH11K_HTT_STATS_BUF_SIZE; - const struct htt_tx_de_classify_failed_stats_tlv *htt_stats_buf = tag_buf; len += HTT_DBG_OUT(buf + len, buf_len - len, "HTT_TX_DE_CLASSIFY_FAILED_STATS_TLV:"); @@ -2250,10 +2250,10 @@ static inline void htt_print_tx_de_classify_failed_stats_tlv(const void *tag_buf static inline void htt_print_tx_de_classify_stats_tlv(const void *tag_buf, struct debug_htt_stats_req *stats_req) { + const struct htt_tx_de_classify_stats_tlv *htt_stats_buf = tag_buf; u8 *buf = stats_req->buf; u32 len = stats_req->buf_len; u32 buf_len = ATH11K_HTT_STATS_BUF_SIZE; - const struct htt_tx_de_classify_stats_tlv *htt_stats_buf = tag_buf; len += HTT_DBG_OUT(buf + len, buf_len - len, "HTT_TX_DE_CLASSIFY_STATS_TLV:"); len += HTT_DBG_OUT(buf + len, buf_len - len, "arp_packets = %u", @@ -2333,10 +2333,10 @@ static inline void htt_print_tx_de_classify_stats_tlv(const void *tag_buf, struc static inline void htt_print_tx_de_classify_status_stats_tlv(const void *tag_buf, struct debug_htt_stats_req *stats_req) { + const struct htt_tx_de_classify_status_stats_tlv *htt_stats_buf = tag_buf; u8 *buf = stats_req->buf; u32 len = stats_req->buf_len; u32 buf_len = ATH11K_HTT_STATS_BUF_SIZE; - const struct htt_tx_de_classify_status_stats_tlv *htt_stats_buf = tag_buf; len += HTT_DBG_OUT(buf + len, buf_len - len, "HTT_TX_DE_CLASSIFY_STATUS_STATS_TLV:"); @@ -2367,10 +2367,10 @@ static inline void htt_print_tx_de_classify_status_stats_tlv(const void *tag_buf static inline void htt_print_tx_de_enqueue_packets_stats_tlv(const void *tag_buf, struct debug_htt_stats_req *stats_req) { + const struct htt_tx_de_enqueue_packets_stats_tlv *htt_stats_buf = tag_buf; u8 *buf = stats_req->buf; u32 len = stats_req->buf_len; u32 buf_len = ATH11K_HTT_STATS_BUF_SIZE; - const struct htt_tx_de_enqueue_packets_stats_tlv *htt_stats_buf = tag_buf; len += HTT_DBG_OUT(buf + len, buf_len - len, "HTT_TX_DE_ENQUEUE_PACKETS_STATS_TLV:"); @@ -2391,10 +2391,10 @@ static inline void htt_print_tx_de_enqueue_packets_stats_tlv(const void *tag_buf static inline void htt_print_tx_de_enqueue_discard_stats_tlv(const void *tag_buf, struct debug_htt_stats_req *stats_req) { + const struct htt_tx_de_enqueue_discard_stats_tlv *htt_stats_buf = tag_buf; u8 *buf = stats_req->buf; u32 len = stats_req->buf_len; u32 buf_len = ATH11K_HTT_STATS_BUF_SIZE; - const struct htt_tx_de_enqueue_discard_stats_tlv *htt_stats_buf = tag_buf; len += HTT_DBG_OUT(buf + len, buf_len - len, "HTT_TX_DE_ENQUEUE_DISCARD_STATS_TLV:"); @@ -2415,10 +2415,10 @@ static inline void htt_print_tx_de_enqueue_discard_stats_tlv(const void *tag_buf static inline void htt_print_tx_de_compl_stats_tlv(const void *tag_buf, struct debug_htt_stats_req *stats_req) { + const struct htt_tx_de_compl_stats_tlv *htt_stats_buf = tag_buf; u8 *buf = stats_req->buf; u32 len = stats_req->buf_len; u32 buf_len = ATH11K_HTT_STATS_BUF_SIZE; - const struct htt_tx_de_compl_stats_tlv *htt_stats_buf = tag_buf; len += HTT_DBG_OUT(buf + len, buf_len - len, "HTT_TX_DE_COMPL_STATS_TLV:"); len += HTT_DBG_OUT(buf + len, buf_len - len, "tcl_dummy_frame = %u", @@ -2444,10 +2444,10 @@ static inline void htt_print_tx_de_fw2wbm_ring_full_hist_tlv(const void *tag_buf u16 tag_len, struct debug_htt_stats_req *stats_req) { + const struct htt_tx_de_fw2wbm_ring_full_hist_tlv *htt_stats_buf = tag_buf; u8 *buf = stats_req->buf; u32 len = stats_req->buf_len; u32 buf_len = ATH11K_HTT_STATS_BUF_SIZE; - const struct htt_tx_de_fw2wbm_ring_full_hist_tlv *htt_stats_buf = tag_buf; char fw2wbm_ring_full_hist[HTT_MAX_STRING_LEN] = {0}; u16 num_elements = tag_len >> 2; u32 required_buffer_size = HTT_MAX_PRINT_CHAR_PER_ELEM * num_elements; @@ -2477,10 +2477,10 @@ static inline void htt_print_tx_de_fw2wbm_ring_full_hist_tlv(const void *tag_buf static inline void htt_print_tx_de_cmn_stats_tlv(const void *tag_buf, struct debug_htt_stats_req *stats_req) { + const struct htt_tx_de_cmn_stats_tlv *htt_stats_buf = tag_buf; u8 *buf = stats_req->buf; u32 len = stats_req->buf_len; u32 buf_len = ATH11K_HTT_STATS_BUF_SIZE; - const struct htt_tx_de_cmn_stats_tlv *htt_stats_buf = tag_buf; len += HTT_DBG_OUT(buf + len, buf_len - len, "HTT_TX_DE_CMN_STATS_TLV:"); len += HTT_DBG_OUT(buf + len, buf_len - len, "mac_id = %u", @@ -2508,10 +2508,10 @@ static inline void htt_print_tx_de_cmn_stats_tlv(const void *tag_buf, struct deb static inline void htt_print_ring_if_stats_tlv(const void *tag_buf, struct debug_htt_stats_req *stats_req) { + const struct htt_ring_if_stats_tlv *htt_stats_buf = tag_buf; u8 *buf = stats_req->buf; u32 len = stats_req->buf_len; u32 buf_len = ATH11K_HTT_STATS_BUF_SIZE; - const struct htt_ring_if_stats_tlv *htt_stats_buf = tag_buf; char low_wm_hit_count[HTT_MAX_STRING_LEN] = {0}; char high_wm_hit_count[HTT_MAX_STRING_LEN] = {0}; @@ -2569,10 +2569,10 @@ static inline void htt_print_ring_if_stats_tlv(const void *tag_buf, struct debug static inline void htt_print_ring_if_cmn_tlv(const void *tag_buf, struct debug_htt_stats_req *stats_req) { + const struct htt_ring_if_cmn_tlv *htt_stats_buf = tag_buf; u8 *buf = stats_req->buf; u32 len = stats_req->buf_len; u32 buf_len = ATH11K_HTT_STATS_BUF_SIZE; - const struct htt_ring_if_cmn_tlv *htt_stats_buf = tag_buf; len += HTT_DBG_OUT(buf + len, buf_len - len, "HTT_RING_IF_CMN_TLV:"); len += HTT_DBG_OUT(buf + len, buf_len - len, "mac_id = %u", @@ -2592,10 +2592,10 @@ static inline void htt_print_sfm_client_user_tlv_v(const void *tag_buf, u16 tag_len, struct debug_htt_stats_req *stats_req) { + const struct htt_sfm_client_user_tlv_v *htt_stats_buf = tag_buf; u8 *buf = stats_req->buf; u32 len = stats_req->buf_len; u32 buf_len = ATH11K_HTT_STATS_BUF_SIZE; - const struct htt_sfm_client_user_tlv_v *htt_stats_buf = tag_buf; char dwords_used_by_user_n[HTT_MAX_STRING_LEN] = {0}; u16 num_elems = tag_len >> 2; @@ -2617,10 +2617,10 @@ static inline void htt_print_sfm_client_user_tlv_v(const void *tag_buf, static inline void htt_print_sfm_client_tlv(const void *tag_buf, struct debug_htt_stats_req *stats_req) { + const struct htt_sfm_client_tlv *htt_stats_buf = tag_buf; u8 *buf = stats_req->buf; u32 len = stats_req->buf_len; u32 buf_len = ATH11K_HTT_STATS_BUF_SIZE; - const struct htt_sfm_client_tlv *htt_stats_buf = tag_buf; len += HTT_DBG_OUT(buf + len, buf_len - len, "HTT_SFM_CLIENT_TLV:"); len += HTT_DBG_OUT(buf + len, buf_len - len, "client_id = %u", @@ -2648,10 +2648,10 @@ static inline void htt_print_sfm_client_tlv(const void *tag_buf, struct debug_ht static inline void htt_print_sfm_cmn_tlv(const void *tag_buf, struct debug_htt_stats_req *stats_req) { + const struct htt_sfm_cmn_tlv *htt_stats_buf = tag_buf; u8 *buf = stats_req->buf; u32 len = stats_req->buf_len; u32 buf_len = ATH11K_HTT_STATS_BUF_SIZE; - const struct htt_sfm_cmn_tlv *htt_stats_buf = tag_buf; len += HTT_DBG_OUT(buf + len, buf_len - len, "HTT_SFM_CMN_TLV:"); len += HTT_DBG_OUT(buf + len, buf_len - len, "mac_id = %u", @@ -2675,10 +2675,10 @@ static inline void htt_print_sfm_cmn_tlv(const void *tag_buf, struct debug_htt_s static inline void htt_print_sring_stats_tlv(const void *tag_buf, struct debug_htt_stats_req *stats_req) { + const struct htt_sring_stats_tlv *htt_stats_buf = tag_buf; u8 *buf = stats_req->buf; u32 len = stats_req->buf_len; u32 buf_len = ATH11K_HTT_STATS_BUF_SIZE; - const struct htt_sring_stats_tlv *htt_stats_buf = tag_buf; len += HTT_DBG_OUT(buf + len, buf_len - len, "HTT_SRING_STATS_TLV:"); len += HTT_DBG_OUT(buf + len, buf_len - len, "mac_id = %u", @@ -2727,10 +2727,10 @@ static inline void htt_print_sring_stats_tlv(const void *tag_buf, struct debug_h static inline void htt_print_sring_cmn_tlv(const void *tag_buf, struct debug_htt_stats_req *stats_req) { + const struct htt_sring_cmn_tlv *htt_stats_buf = tag_buf; u8 *buf = stats_req->buf; u32 len = stats_req->buf_len; u32 buf_len = ATH11K_HTT_STATS_BUF_SIZE; - const struct htt_sring_cmn_tlv *htt_stats_buf = tag_buf; len += HTT_DBG_OUT(buf + len, buf_len - len, "HTT_SRING_CMN_TLV:"); len += HTT_DBG_OUT(buf + len, buf_len - len, "num_records = %u\n", @@ -2746,10 +2746,10 @@ static inline void htt_print_sring_cmn_tlv(const void *tag_buf, struct debug_htt static inline void htt_print_tx_pdev_rate_stats_tlv(const void *tag_buf, struct debug_htt_stats_req *stats_req) { + const struct htt_tx_pdev_rate_stats_tlv *htt_stats_buf = tag_buf; u8 *buf = stats_req->buf; u32 len = stats_req->buf_len; u32 buf_len = ATH11K_HTT_STATS_BUF_SIZE; - const struct htt_tx_pdev_rate_stats_tlv *htt_stats_buf = tag_buf; u8 j; char str_buf[HTT_MAX_STRING_LEN] = {0}; char *tx_gi[HTT_TX_PEER_STATS_NUM_GI_COUNTERS]; @@ -2921,10 +2921,10 @@ static inline void htt_print_tx_pdev_rate_stats_tlv(const void *tag_buf, struct static inline void htt_print_rx_pdev_rate_stats_tlv(const void *tag_buf, struct debug_htt_stats_req *stats_req) { + const struct htt_rx_pdev_rate_stats_tlv *htt_stats_buf = tag_buf; u8 *buf = stats_req->buf; u32 len = stats_req->buf_len; u32 buf_len = ATH11K_HTT_STATS_BUF_SIZE; - const struct htt_rx_pdev_rate_stats_tlv *htt_stats_buf = tag_buf; u8 j; char *rssi_chain[HTT_RX_PDEV_STATS_NUM_SPATIAL_STREAMS]; char *rx_gi[HTT_RX_PDEV_STATS_NUM_GI_COUNTERS]; @@ -3042,10 +3042,10 @@ static inline void htt_print_rx_pdev_rate_stats_tlv(const void *tag_buf, struct static inline void htt_print_rx_soc_fw_stats_tlv(const void *tag_buf, struct debug_htt_stats_req *stats_req) { + const struct htt_rx_soc_fw_stats_tlv *htt_stats_buf = tag_buf; u8 *buf = stats_req->buf; u32 len = stats_req->buf_len; u32 buf_len = ATH11K_HTT_STATS_BUF_SIZE; - const struct htt_rx_soc_fw_stats_tlv *htt_stats_buf = tag_buf; len += HTT_DBG_OUT(buf + len, buf_len - len, "HTT_RX_SOC_FW_STATS_TLV:"); len += HTT_DBG_OUT(buf + len, buf_len - len, "fw_reo_ring_data_msdu = %u", @@ -3088,10 +3088,10 @@ static inline void htt_print_rx_soc_fw_refill_ring_empty_tlv_v(const void *tag_b u16 tag_len, struct debug_htt_stats_req *stats_req) { + const struct htt_rx_soc_fw_refill_ring_empty_tlv_v *htt_stats_buf = tag_buf; u8 *buf = stats_req->buf; u32 len = stats_req->buf_len; u32 buf_len = ATH11K_HTT_STATS_BUF_SIZE; - const struct htt_rx_soc_fw_refill_ring_empty_tlv_v *htt_stats_buf = tag_buf; char refill_ring_empty_cnt[HTT_MAX_STRING_LEN] = {0}; u16 num_elems = min_t(u16, (tag_len >> 2), HTT_RX_STATS_REFILL_MAX_RING); @@ -3117,10 +3117,10 @@ htt_print_rx_soc_fw_refill_ring_num_rxdma_err_tlv_v(const void *tag_buf, u16 tag_len, struct debug_htt_stats_req *stats_req) { + const struct htt_rx_soc_fw_refill_ring_num_rxdma_err_tlv_v *htt_stats_buf = tag_buf; u8 *buf = stats_req->buf; u32 len = stats_req->buf_len; u32 buf_len = ATH11K_HTT_STATS_BUF_SIZE; - const struct htt_rx_soc_fw_refill_ring_num_rxdma_err_tlv_v *htt_stats_buf = tag_buf; char rxdma_err_cnt[HTT_MAX_STRING_LEN] = {0}; u16 num_elems = min_t(u16, (tag_len >> 2), HTT_RX_RXDMA_MAX_ERR_CODE); @@ -3145,10 +3145,10 @@ static inline void htt_print_rx_soc_fw_refill_ring_num_reo_err_tlv_v(const void u16 tag_len, struct debug_htt_stats_req *stats_req) { + const struct htt_rx_soc_fw_refill_ring_num_reo_err_tlv_v *htt_stats_buf = tag_buf; u8 *buf = stats_req->buf; u32 len = stats_req->buf_len; u32 buf_len = ATH11K_HTT_STATS_BUF_SIZE; - const struct htt_rx_soc_fw_refill_ring_num_reo_err_tlv_v *htt_stats_buf = tag_buf; char reo_err_cnt[HTT_MAX_STRING_LEN] = {0}; u16 num_elems = min_t(u16, (tag_len >> 2), HTT_RX_REO_MAX_ERR_CODE); @@ -3172,10 +3172,10 @@ static inline void htt_print_rx_soc_fw_refill_ring_num_reo_err_tlv_v(const void static inline void htt_print_rx_reo_debug_stats_tlv_v(const void *tag_buf, struct debug_htt_stats_req *stats_req) { + const struct htt_rx_reo_resource_stats_tlv_v *htt_stats_buf = tag_buf; u8 *buf = stats_req->buf; u32 len = stats_req->buf_len; u32 buf_len = ATH11K_HTT_STATS_BUF_SIZE; - const struct htt_rx_reo_resource_stats_tlv_v *htt_stats_buf = tag_buf; len += HTT_DBG_OUT(buf + len, buf_len - len, "HTT_RX_REO_RESOURCE_STATS_TLV:"); len += HTT_DBG_OUT(buf + len, buf_len - len, "sample_id = %u", @@ -3211,10 +3211,10 @@ static inline void htt_print_rx_soc_fw_refill_ring_num_refill_tlv_v(const void * u16 tag_len, struct debug_htt_stats_req *stats_req) { + const struct htt_rx_soc_fw_refill_ring_num_refill_tlv_v *htt_stats_buf = tag_buf; u8 *buf = stats_req->buf; u32 len = stats_req->buf_len; u32 buf_len = ATH11K_HTT_STATS_BUF_SIZE; - const struct htt_rx_soc_fw_refill_ring_num_refill_tlv_v *htt_stats_buf = tag_buf; char refill_ring_num_refill[HTT_MAX_STRING_LEN] = {0}; u16 num_elems = min_t(u16, (tag_len >> 2), HTT_RX_STATS_REFILL_MAX_RING); @@ -3238,10 +3238,10 @@ static inline void htt_print_rx_soc_fw_refill_ring_num_refill_tlv_v(const void * static inline void htt_print_rx_pdev_fw_stats_tlv(const void *tag_buf, struct debug_htt_stats_req *stats_req) { + const struct htt_rx_pdev_fw_stats_tlv *htt_stats_buf = tag_buf; u8 *buf = stats_req->buf; u32 len = stats_req->buf_len; u32 buf_len = ATH11K_HTT_STATS_BUF_SIZE; - const struct htt_rx_pdev_fw_stats_tlv *htt_stats_buf = tag_buf; char fw_ring_mgmt_subtype[HTT_MAX_STRING_LEN] = {0}; char fw_ring_ctrl_subtype[HTT_MAX_STRING_LEN] = {0}; @@ -3361,10 +3361,10 @@ static inline void htt_print_rx_pdev_fw_stats_tlv(const void *tag_buf, static inline void htt_print_rx_pdev_fw_ring_mpdu_err_tlv_v(const void *tag_buf, struct debug_htt_stats_req *stats_req) { + const struct htt_rx_pdev_fw_ring_mpdu_err_tlv_v *htt_stats_buf = tag_buf; u8 *buf = stats_req->buf; u32 len = stats_req->buf_len; u32 buf_len = ATH11K_HTT_STATS_BUF_SIZE; - const struct htt_rx_pdev_fw_ring_mpdu_err_tlv_v *htt_stats_buf = tag_buf; char fw_ring_mpdu_err[HTT_MAX_STRING_LEN] = {0}; len += HTT_DBG_OUT(buf + len, buf_len - len, @@ -3388,10 +3388,10 @@ static inline void htt_print_rx_pdev_fw_mpdu_drop_tlv_v(const void *tag_buf, u16 tag_len, struct debug_htt_stats_req *stats_req) { + const struct htt_rx_pdev_fw_mpdu_drop_tlv_v *htt_stats_buf = tag_buf; u8 *buf = stats_req->buf; u32 len = stats_req->buf_len; u32 buf_len = ATH11K_HTT_STATS_BUF_SIZE; - const struct htt_rx_pdev_fw_mpdu_drop_tlv_v *htt_stats_buf = tag_buf; char fw_mpdu_drop[HTT_MAX_STRING_LEN] = {0}; u16 num_elems = min_t(u16, (tag_len >> 2), HTT_RX_STATS_FW_DROP_REASON_MAX); @@ -3413,10 +3413,10 @@ static inline void htt_print_rx_pdev_fw_mpdu_drop_tlv_v(const void *tag_buf, static inline void htt_print_rx_pdev_fw_stats_phy_err_tlv(const void *tag_buf, struct debug_htt_stats_req *stats_req) { + const struct htt_rx_pdev_fw_stats_phy_err_tlv *htt_stats_buf = tag_buf; u8 *buf = stats_req->buf; u32 len = stats_req->buf_len; u32 buf_len = ATH11K_HTT_STATS_BUF_SIZE; - const struct htt_rx_pdev_fw_stats_phy_err_tlv *htt_stats_buf = tag_buf; char phy_errs[HTT_MAX_STRING_LEN] = {0}; len += HTT_DBG_OUT(buf + len, buf_len - len, "HTT_RX_PDEV_FW_STATS_PHY_ERR_TLV:"); @@ -3441,10 +3441,10 @@ static inline void htt_print_rx_pdev_fw_stats_phy_err_tlv(const void *tag_buf, static inline void htt_print_pdev_cca_stats_hist_tlv(const void *tag_buf, struct debug_htt_stats_req *stats_req) { + const struct htt_pdev_cca_stats_hist_v1_tlv *htt_stats_buf = tag_buf; u8 *buf = stats_req->buf; u32 len = stats_req->buf_len; u32 buf_len = ATH11K_HTT_STATS_BUF_SIZE; - const struct htt_pdev_cca_stats_hist_v1_tlv *htt_stats_buf = tag_buf; len += HTT_DBG_OUT(buf + len, buf_len - len, "\nHTT_PDEV_CCA_STATS_HIST_TLV:"); len += HTT_DBG_OUT(buf + len, buf_len - len, "chan_num = %u", @@ -3471,10 +3471,10 @@ static inline void htt_print_pdev_cca_stats_hist_tlv(const void *tag_buf, static inline void htt_print_pdev_stats_cca_counters_tlv(const void *tag_buf, struct debug_htt_stats_req *stats_req) { + const struct htt_pdev_stats_cca_counters_tlv *htt_stats_buf = tag_buf; u8 *buf = stats_req->buf; u32 len = stats_req->buf_len; u32 buf_len = ATH11K_HTT_STATS_BUF_SIZE; - const struct htt_pdev_stats_cca_counters_tlv *htt_stats_buf = tag_buf; len += HTT_DBG_OUT(buf + len, buf_len - len, "|%10u| %10u| %10u| %11u| %10u| %11u| %18u| %10u|", @@ -3498,10 +3498,10 @@ static inline void htt_print_pdev_stats_cca_counters_tlv(const void *tag_buf, st static inline void htt_print_hw_stats_whal_tx_tlv(const void *tag_buf, struct debug_htt_stats_req *stats_req) { + const struct htt_hw_stats_whal_tx_tlv *htt_stats_buf = tag_buf; u8 *buf = stats_req->buf; u32 len = stats_req->buf_len; u32 buf_len = ATH11K_HTT_STATS_BUF_SIZE; - const struct htt_hw_stats_whal_tx_tlv *htt_stats_buf = tag_buf; len += HTT_DBG_OUT(buf + len, buf_len - len, "HTT_HW_STATS_WHAL_TX_TLV:"); len += HTT_DBG_OUT(buf + len, buf_len - len, "mac_id = %u", @@ -3541,10 +3541,10 @@ static inline void htt_print_hw_stats_whal_tx_tlv(const void *tag_buf, static inline void htt_print_pdev_stats_twt_sessions_tlv(const void *tag_buf, struct debug_htt_stats_req *stats_req) { + const struct htt_pdev_stats_twt_sessions_tlv *htt_stats_buf = tag_buf; u8 *buf = stats_req->buf; u32 len = stats_req->buf_len; u32 buf_len = ATH11K_HTT_STATS_BUF_SIZE; - const struct htt_pdev_stats_twt_sessions_tlv *htt_stats_buf = tag_buf; len += HTT_DBG_OUT(buf + len, buf_len - len, "HTT_PDEV_STATS_TWT_SESSIONS_TLV:"); len += HTT_DBG_OUT(buf + len, buf_len - len, "pdev_id = %u", @@ -3563,10 +3563,10 @@ static inline void htt_print_pdev_stats_twt_sessions_tlv(const void *tag_buf, static inline void htt_print_pdev_stats_twt_session_tlv(const void *tag_buf, struct debug_htt_stats_req *stats_req) { + const struct htt_pdev_stats_twt_session_tlv *htt_stats_buf = tag_buf; u8 *buf = stats_req->buf; u32 len = stats_req->buf_len; u32 buf_len = ATH11K_HTT_STATS_BUF_SIZE; - const struct htt_pdev_stats_twt_session_tlv *htt_stats_buf = tag_buf; len += HTT_DBG_OUT(buf + len, buf_len - len, "HTT_PDEV_STATS_TWT_SESSION_TLV:"); len += HTT_DBG_OUT(buf + len, buf_len - len, "vdev_id = %u", @@ -3601,10 +3601,11 @@ static inline void htt_print_pdev_stats_twt_session_tlv(const void *tag_buf, static inline void htt_print_pdev_obss_pd_stats_tlv_v(const void *tag_buf, struct debug_htt_stats_req *stats_req) { + const struct htt_pdev_obss_pd_stats_tlv *htt_stats_buf = tag_buf; u8 *buf = stats_req->buf; u32 len = stats_req->buf_len; u32 buf_len = ATH11K_HTT_STATS_BUF_SIZE; - const struct htt_pdev_obss_pd_stats_tlv *htt_stats_buf = tag_buf; + len += HTT_DBG_OUT(buf + len, buf_len - len, "OBSS Tx success PPDU = %u", htt_stats_buf->num_obss_tx_ppdu_success); len += HTT_DBG_OUT(buf + len, buf_len - len, "OBSS Tx failures PPDU = %u\n", From patchwork Fri Aug 9 09:27:59 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kalle Valo X-Patchwork-Id: 11086021 X-Patchwork-Delegate: kvalo@adurom.com Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id E314714D5 for ; Fri, 9 Aug 2019 09:28:13 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id CE81C28C57 for ; Fri, 9 Aug 2019 09:28:13 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id C241628C5B; Fri, 9 Aug 2019 09:28:13 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id D70E628C57 for ; Fri, 9 Aug 2019 09:28:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-ID:Date:To:From:Subject:Reply-To:Cc:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=i5Op1F9XKHh0TksPh24gDAlHQQ6AjcC8C7nI88t7O50=; b=QGjbCUP8xA0F6d cDX0MhEVrDol8tKNoueIDV9+WTlleLqCJKQaetIPBnDU5LKgMlSrVphrBX5/gv+Urq7m53Rtr3xMK opVfPtP8C5V1ZIwSazib2Bt2kvv7uVnZaTwGzA6kScJWLY61SdupfCAQsJAigOYhHl9wOtuQIA4Fn Zyi6hNnb2SRdfG81kiKaS0s0QXxKITRqY8CFsy4P71gWAQHa/dpEgXCxdxQQZWa4kfOnx9BoxhwDS VDsZ7WvcmGY83PyuUE6Eyaj08xCsGrghVF4poYbxvt0prHx2zKG9o2VhQxzmffAfoCTVzcK3OAgCx O0HZ9zBcJ97353B3AciQ==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92 #3 (Red Hat Linux)) id 1hw1By-00011k-H4; Fri, 09 Aug 2019 09:28:10 +0000 Received: from smtp.codeaurora.org ([198.145.29.96]) by bombadil.infradead.org with esmtps (Exim 4.92 #3 (Red Hat Linux)) id 1hw1Bu-000113-B5 for ath11k@lists.infradead.org; Fri, 09 Aug 2019 09:28:09 +0000 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id DE3F261195; Fri, 9 Aug 2019 09:28:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1565342885; bh=y0UwuhVz4OIWttMh9LDWIhn6MGQuD0qqI47WRYKv2jU=; h=Subject:From:To:Date:In-Reply-To:References:From; b=dHhT8DG2r5bKATXzPn82EreoEX8U9aNbRrJ62VwdA8Df8SI8xPKiguLnyu4jhjBAS DVR48maWcnNpcwpgnB+u4DrprbUVrL/k4saI06Zk29V7xDWh21usax71CqxRB3cKME cdY5ZEFb6spw42i0jp//8walwJVoIrwYgP9mJQxU= Received: from [127.0.1.1] (88-114-240-156.elisa-laajakaista.fi [88.114.240.156]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: kvalo@smtp.codeaurora.org) by smtp.codeaurora.org (Postfix) with ESMTPSA id B32E460C72 for ; Fri, 9 Aug 2019 09:28:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1565342883; bh=y0UwuhVz4OIWttMh9LDWIhn6MGQuD0qqI47WRYKv2jU=; h=Subject:From:To:Date:In-Reply-To:References:From; b=VwEjcO4tpXDqJO6Ffij2bxgk+7EpEpC8fV7jEDmAQe73b/Nti7QWToSI6qxTIkkoI NDBPpOZJE31Lc0EzumGFDxcvlM7UgKlLwWahpUqOtyYGmxvw0ogpz4sHtxgWKVEMH+ XPwq53A9pGUeSaK+7VveXSse2WNMR08r5Q22ZqJU= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org B32E460C72 Authentication-Results: pdx-caf-mail.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: pdx-caf-mail.web.codeaurora.org; spf=none smtp.mailfrom=kvalo@codeaurora.org Subject: [PATCH 14/15] ath11k: debug_htt_stats: fix line over 90 char warnings From: Kalle Valo To: ath11k@lists.infradead.org Date: Fri, 09 Aug 2019 12:27:59 +0300 Message-ID: <156534287946.30736.14445804936898575779.stgit@x230> In-Reply-To: <156534276745.30736.11736417077894270794.stgit@x230> References: <156534276745.30736.11736417077894270794.stgit@x230> User-Agent: StGit/0.19 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190809_022806_607916_4787FF45 X-CRM114-Status: UNSURE ( 8.73 ) X-CRM114-Notice: Please train this message. X-BeenThere: ath11k@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "ath11k" Errors-To: ath11k-bounces+patchwork-ath11k=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP Fix checkpatch warnings about too long lines. I fix these separate as I didn't the cleanup in systematic way. Signed-off-by: Kalle Valo --- drivers/net/wireless/ath/ath11k/debug_htt_stats.c | 372 +++++++++++++-------- 1 file changed, 234 insertions(+), 138 deletions(-) diff --git a/drivers/net/wireless/ath/ath11k/debug_htt_stats.c b/drivers/net/wireless/ath/ath11k/debug_htt_stats.c index ce49edf664ec..4e2894ee3cc6 100644 --- a/drivers/net/wireless/ath/ath11k/debug_htt_stats.c +++ b/drivers/net/wireless/ath/ath11k/debug_htt_stats.c @@ -63,7 +63,8 @@ static inline void htt_print_stats_string_tlv(const void *tag_buf, stats_req->buf_len = len; } -static inline void htt_print_tx_pdev_stats_cmn_tlv(const void *tag_buf, struct debug_htt_stats_req *stats_req) +static inline void htt_print_tx_pdev_stats_cmn_tlv(const void *tag_buf, + struct debug_htt_stats_req *stats_req) { const struct htt_tx_pdev_stats_cmn_tlv *htt_stats_buf = tag_buf; u8 *buf = stats_req->buf; @@ -180,9 +181,10 @@ static inline void htt_print_tx_pdev_stats_cmn_tlv(const void *tag_buf, struct d stats_req->buf_len = len; } -static inline void htt_print_tx_pdev_stats_urrn_tlv_v(const void *tag_buf, - u16 tag_len, - struct debug_htt_stats_req *stats_req) +static inline void +htt_print_tx_pdev_stats_urrn_tlv_v(const void *tag_buf, + u16 tag_len, + struct debug_htt_stats_req *stats_req) { const struct htt_tx_pdev_stats_urrn_tlv_v *htt_stats_buf = tag_buf; u8 *buf = stats_req->buf; @@ -204,9 +206,10 @@ static inline void htt_print_tx_pdev_stats_urrn_tlv_v(const void *tag_buf, stats_req->buf_len = len; } -static inline void htt_print_tx_pdev_stats_flush_tlv_v(const void *tag_buf, - u16 tag_len, - struct debug_htt_stats_req *stats_req) +static inline void +htt_print_tx_pdev_stats_flush_tlv_v(const void *tag_buf, + u16 tag_len, + struct debug_htt_stats_req *stats_req) { const struct htt_tx_pdev_stats_flush_tlv_v *htt_stats_buf = tag_buf; u8 *buf = stats_req->buf; @@ -228,9 +231,10 @@ static inline void htt_print_tx_pdev_stats_flush_tlv_v(const void *tag_buf, stats_req->buf_len = len; } -static inline void htt_print_tx_pdev_stats_sifs_tlv_v(const void *tag_buf, - u16 tag_len, - struct debug_htt_stats_req *stats_req) +static inline void +htt_print_tx_pdev_stats_sifs_tlv_v(const void *tag_buf, + u16 tag_len, + struct debug_htt_stats_req *stats_req) { const struct htt_tx_pdev_stats_sifs_tlv_v *htt_stats_buf = tag_buf; u8 *buf = stats_req->buf; @@ -253,9 +257,10 @@ static inline void htt_print_tx_pdev_stats_sifs_tlv_v(const void *tag_buf, stats_req->buf_len = len; } -static inline void htt_print_tx_pdev_stats_phy_err_tlv_v(const void *tag_buf, - u16 tag_len, - struct debug_htt_stats_req *stats_req) +static inline void +htt_print_tx_pdev_stats_phy_err_tlv_v(const void *tag_buf, + u16 tag_len, + struct debug_htt_stats_req *stats_req) { const struct htt_tx_pdev_stats_phy_err_tlv_v *htt_stats_buf = tag_buf; u8 *buf = stats_req->buf; @@ -277,9 +282,10 @@ static inline void htt_print_tx_pdev_stats_phy_err_tlv_v(const void *tag_buf, stats_req->buf_len = len; } -static inline void htt_print_tx_pdev_stats_sifs_hist_tlv_v(const void *tag_buf, - u16 tag_len, - struct debug_htt_stats_req *stats_req) +static inline void +htt_print_tx_pdev_stats_sifs_hist_tlv_v(const void *tag_buf, + u16 tag_len, + struct debug_htt_stats_req *stats_req) { const struct htt_tx_pdev_stats_sifs_hist_tlv_v *htt_stats_buf = tag_buf; u8 *buf = stats_req->buf; @@ -303,8 +309,9 @@ static inline void htt_print_tx_pdev_stats_sifs_hist_tlv_v(const void *tag_buf, stats_req->buf_len = len; } -static inline void htt_print_tx_pdev_stats_tx_ppdu_stats_tlv_v(const void *tag_buf, - struct debug_htt_stats_req *stats_req) +static inline void +htt_print_tx_pdev_stats_tx_ppdu_stats_tlv_v(const void *tag_buf, + struct debug_htt_stats_req *stats_req) { const struct htt_tx_pdev_stats_tx_ppdu_stats_tlv_v *htt_stats_buf = tag_buf; u8 *buf = stats_req->buf; @@ -374,7 +381,8 @@ htt_print_tx_pdev_stats_tried_mpdu_cnt_hist_tlv_v(const void *tag_buf, stats_req->buf_len = len; } -static inline void htt_print_hw_stats_intr_misc_tlv(const void *tag_buf, struct debug_htt_stats_req *stats_req) +static inline void htt_print_hw_stats_intr_misc_tlv(const void *tag_buf, + struct debug_htt_stats_req *stats_req) { const struct htt_hw_stats_intr_misc_tlv *htt_stats_buf = tag_buf; u8 *buf = stats_req->buf; @@ -399,7 +407,9 @@ static inline void htt_print_hw_stats_intr_misc_tlv(const void *tag_buf, struct stats_req->buf_len = len; } -static inline void htt_print_hw_stats_wd_timeout_tlv(const void *tag_buf, struct debug_htt_stats_req *stats_req) +static inline void +htt_print_hw_stats_wd_timeout_tlv(const void *tag_buf, + struct debug_htt_stats_req *stats_req) { const struct htt_hw_stats_wd_timeout_tlv *htt_stats_buf = tag_buf; u8 *buf = stats_req->buf; @@ -423,7 +433,8 @@ static inline void htt_print_hw_stats_wd_timeout_tlv(const void *tag_buf, struct stats_req->buf_len = len; } -static inline void htt_print_hw_stats_pdev_errs_tlv(const void *tag_buf, struct debug_htt_stats_req *stats_req) +static inline void htt_print_hw_stats_pdev_errs_tlv(const void *tag_buf, + struct debug_htt_stats_req *stats_req) { const struct htt_hw_stats_pdev_errs_tlv *htt_stats_buf = tag_buf; u8 *buf = stats_req->buf; @@ -462,7 +473,8 @@ static inline void htt_print_hw_stats_pdev_errs_tlv(const void *tag_buf, struct stats_req->buf_len = len; } -static inline void htt_print_msdu_flow_stats_tlv(const void *tag_buf, struct debug_htt_stats_req *stats_req) +static inline void htt_print_msdu_flow_stats_tlv(const void *tag_buf, + struct debug_htt_stats_req *stats_req) { const struct htt_msdu_flow_stats_tlv *htt_stats_buf = tag_buf; u8 *buf = stats_req->buf; @@ -507,7 +519,8 @@ static inline void htt_print_msdu_flow_stats_tlv(const void *tag_buf, struct deb stats_req->buf_len = len; } -static inline void htt_print_tx_tid_stats_tlv(const void *tag_buf, struct debug_htt_stats_req *stats_req) +static inline void htt_print_tx_tid_stats_tlv(const void *tag_buf, + struct debug_htt_stats_req *stats_req) { const struct htt_tx_tid_stats_tlv *htt_stats_buf = tag_buf; u8 *buf = stats_req->buf; @@ -556,7 +569,8 @@ static inline void htt_print_tx_tid_stats_tlv(const void *tag_buf, struct debug_ stats_req->buf_len = len; } -static inline void htt_print_tx_tid_stats_v1_tlv(const void *tag_buf, struct debug_htt_stats_req *stats_req) +static inline void htt_print_tx_tid_stats_v1_tlv(const void *tag_buf, + struct debug_htt_stats_req *stats_req) { const struct htt_tx_tid_stats_v1_tlv *htt_stats_buf = tag_buf; u8 *buf = stats_req->buf; @@ -609,7 +623,8 @@ static inline void htt_print_tx_tid_stats_v1_tlv(const void *tag_buf, struct deb stats_req->buf_len = len; } -static inline void htt_print_rx_tid_stats_tlv(const void *tag_buf, struct debug_htt_stats_req *stats_req) +static inline void htt_print_rx_tid_stats_tlv(const void *tag_buf, + struct debug_htt_stats_req *stats_req) { const struct htt_rx_tid_stats_tlv *htt_stats_buf = tag_buf; u8 *buf = stats_req->buf; @@ -641,7 +656,8 @@ static inline void htt_print_rx_tid_stats_tlv(const void *tag_buf, struct debug_ stats_req->buf_len = len; } -static inline void htt_print_counter_tlv(const void *tag_buf, struct debug_htt_stats_req *stats_req) +static inline void htt_print_counter_tlv(const void *tag_buf, + struct debug_htt_stats_req *stats_req) { const struct htt_counter_tlv *htt_stats_buf = tag_buf; u8 *buf = stats_req->buf; @@ -666,7 +682,8 @@ static inline void htt_print_counter_tlv(const void *tag_buf, struct debug_htt_s stats_req->buf_len = len; } -static inline void htt_print_peer_stats_cmn_tlv(const void *tag_buf, struct debug_htt_stats_req *stats_req) +static inline void htt_print_peer_stats_cmn_tlv(const void *tag_buf, + struct debug_htt_stats_req *stats_req) { const struct htt_peer_stats_cmn_tlv *htt_stats_buf = tag_buf; u8 *buf = stats_req->buf; @@ -711,7 +728,8 @@ static inline void htt_print_peer_stats_cmn_tlv(const void *tag_buf, struct debu stats_req->buf_len = len; } -static inline void htt_print_peer_details_tlv(const void *tag_buf, struct debug_htt_stats_req *stats_req) +static inline void htt_print_peer_details_tlv(const void *tag_buf, + struct debug_htt_stats_req *stats_req) { const struct htt_peer_details_tlv *htt_stats_buf = tag_buf; u8 *buf = stats_req->buf; @@ -750,7 +768,8 @@ static inline void htt_print_peer_details_tlv(const void *tag_buf, struct debug_ stats_req->buf_len = len; } -static inline void htt_print_tx_peer_rate_stats_tlv(const void *tag_buf, struct debug_htt_stats_req *stats_req) +static inline void htt_print_tx_peer_rate_stats_tlv(const void *tag_buf, + struct debug_htt_stats_req *stats_req) { const struct htt_tx_peer_rate_stats_tlv *htt_stats_buf = tag_buf; u8 *buf = stats_req->buf; @@ -833,7 +852,8 @@ static inline void htt_print_tx_peer_rate_stats_tlv(const void *tag_buf, struct stats_req->buf_len = len; } -static inline void htt_print_rx_peer_rate_stats_tlv(const void *tag_buf, struct debug_htt_stats_req *stats_req) +static inline void htt_print_rx_peer_rate_stats_tlv(const void *tag_buf, + struct debug_htt_stats_req *stats_req) { const struct htt_rx_peer_rate_stats_tlv *htt_stats_buf = tag_buf; u8 *buf = stats_req->buf; @@ -922,7 +942,9 @@ static inline void htt_print_rx_peer_rate_stats_tlv(const void *tag_buf, struct stats_req->buf_len = len; } -static inline void htt_print_tx_hwq_mu_mimo_sch_stats_tlv(const void *tag_buf, struct debug_htt_stats_req *stats_req) +static inline void +htt_print_tx_hwq_mu_mimo_sch_stats_tlv(const void *tag_buf, + struct debug_htt_stats_req *stats_req) { const struct htt_tx_hwq_mu_mimo_sch_stats_tlv *htt_stats_buf = tag_buf; u8 *buf = stats_req->buf; @@ -945,8 +967,9 @@ static inline void htt_print_tx_hwq_mu_mimo_sch_stats_tlv(const void *tag_buf, s stats_req->buf_len = len; } -static inline void htt_print_tx_hwq_mu_mimo_mpdu_stats_tlv(const void *tag_buf, - struct debug_htt_stats_req *stats_req) +static inline void +htt_print_tx_hwq_mu_mimo_mpdu_stats_tlv(const void *tag_buf, + struct debug_htt_stats_req *stats_req) { const struct htt_tx_hwq_mu_mimo_mpdu_stats_tlv *htt_stats_buf = tag_buf; u8 *buf = stats_req->buf; @@ -978,8 +1001,9 @@ static inline void htt_print_tx_hwq_mu_mimo_mpdu_stats_tlv(const void *tag_buf, stats_req->buf_len = len; } -static inline void htt_print_tx_hwq_mu_mimo_cmn_stats_tlv(const void *tag_buf, - struct debug_htt_stats_req *stats_req) +static inline void +htt_print_tx_hwq_mu_mimo_cmn_stats_tlv(const void *tag_buf, + struct debug_htt_stats_req *stats_req) { const struct htt_tx_hwq_mu_mimo_cmn_stats_tlv *htt_stats_buf = tag_buf; u8 *buf = stats_req->buf; @@ -1000,7 +1024,8 @@ static inline void htt_print_tx_hwq_mu_mimo_cmn_stats_tlv(const void *tag_buf, stats_req->buf_len = len; } -static inline void htt_print_tx_hwq_stats_cmn_tlv(const void *tag_buf, struct debug_htt_stats_req *stats_req) +static inline void +htt_print_tx_hwq_stats_cmn_tlv(const void *tag_buf, struct debug_htt_stats_req *stats_req) { const struct htt_tx_hwq_stats_cmn_tlv *htt_stats_buf = tag_buf; u8 *buf = stats_req->buf; @@ -1062,9 +1087,10 @@ static inline void htt_print_tx_hwq_stats_cmn_tlv(const void *tag_buf, struct de stats_req->buf_len = len; } -static inline void htt_print_tx_hwq_difs_latency_stats_tlv_v(const void *tag_buf, - u16 tag_len, - struct debug_htt_stats_req *stats_req) +static inline void +htt_print_tx_hwq_difs_latency_stats_tlv_v(const void *tag_buf, + u16 tag_len, + struct debug_htt_stats_req *stats_req) { const struct htt_tx_hwq_difs_latency_stats_tlv_v *htt_stats_buf = tag_buf; u8 *buf = stats_req->buf; @@ -1091,9 +1117,10 @@ static inline void htt_print_tx_hwq_difs_latency_stats_tlv_v(const void *tag_buf stats_req->buf_len = len; } -static inline void htt_print_tx_hwq_cmd_result_stats_tlv_v(const void *tag_buf, - u16 tag_len, - struct debug_htt_stats_req *stats_req) +static inline void +htt_print_tx_hwq_cmd_result_stats_tlv_v(const void *tag_buf, + u16 tag_len, + struct debug_htt_stats_req *stats_req) { const struct htt_tx_hwq_cmd_result_stats_tlv_v *htt_stats_buf = tag_buf; u8 *buf = stats_req->buf; @@ -1119,9 +1146,10 @@ static inline void htt_print_tx_hwq_cmd_result_stats_tlv_v(const void *tag_buf, stats_req->buf_len = len; } -static inline void htt_print_tx_hwq_cmd_stall_stats_tlv_v(const void *tag_buf, - u16 tag_len, - struct debug_htt_stats_req *stats_req) +static inline void +htt_print_tx_hwq_cmd_stall_stats_tlv_v(const void *tag_buf, + u16 tag_len, + struct debug_htt_stats_req *stats_req) { const struct htt_tx_hwq_cmd_stall_stats_tlv_v *htt_stats_buf = tag_buf; u8 *buf = stats_req->buf; @@ -1146,9 +1174,10 @@ static inline void htt_print_tx_hwq_cmd_stall_stats_tlv_v(const void *tag_buf, stats_req->buf_len = len; } -static inline void htt_print_tx_hwq_fes_result_stats_tlv_v(const void *tag_buf, - u16 tag_len, - struct debug_htt_stats_req *stats_req) +static inline void +htt_print_tx_hwq_fes_result_stats_tlv_v(const void *tag_buf, + u16 tag_len, + struct debug_htt_stats_req *stats_req) { const struct htt_tx_hwq_fes_result_stats_tlv_v *htt_stats_buf = tag_buf; u8 *buf = stats_req->buf; @@ -1173,9 +1202,10 @@ static inline void htt_print_tx_hwq_fes_result_stats_tlv_v(const void *tag_buf, stats_req->buf_len = len; } -static inline void htt_print_tx_hwq_tried_mpdu_cnt_hist_tlv_v(const void *tag_buf, - u16 tag_len, - struct debug_htt_stats_req *stats_req) +static inline void +htt_print_tx_hwq_tried_mpdu_cnt_hist_tlv_v(const void *tag_buf, + u16 tag_len, + struct debug_htt_stats_req *stats_req) { const struct htt_tx_hwq_tried_mpdu_cnt_hist_tlv_v *htt_stats_buf = tag_buf; u8 *buf = stats_req->buf; @@ -1211,9 +1241,10 @@ static inline void htt_print_tx_hwq_tried_mpdu_cnt_hist_tlv_v(const void *tag_bu stats_req->buf_len = len; } -static inline void htt_print_tx_hwq_txop_used_cnt_hist_tlv_v(const void *tag_buf, - u16 tag_len, - struct debug_htt_stats_req *stats_req) +static inline void +htt_print_tx_hwq_txop_used_cnt_hist_tlv_v(const void *tag_buf, + u16 tag_len, + struct debug_htt_stats_req *stats_req) { const struct htt_tx_hwq_txop_used_cnt_hist_tlv_v *htt_stats_buf = tag_buf; u8 *buf = stats_req->buf; @@ -1244,7 +1275,8 @@ static inline void htt_print_tx_hwq_txop_used_cnt_hist_tlv_v(const void *tag_buf stats_req->buf_len = len; } -static inline void htt_print_tx_sounding_stats_tlv(const void *tag_buf, struct debug_htt_stats_req *stats_req) +static inline void htt_print_tx_sounding_stats_tlv(const void *tag_buf, + struct debug_htt_stats_req *stats_req) { s32 i; const struct htt_tx_sounding_stats_tlv *htt_stats_buf = tag_buf; @@ -1348,7 +1380,9 @@ static inline void htt_print_tx_sounding_stats_tlv(const void *tag_buf, struct d stats_req->buf_len = len; } -static inline void htt_print_tx_selfgen_cmn_stats_tlv(const void *tag_buf, struct debug_htt_stats_req *stats_req) +static inline void +htt_print_tx_selfgen_cmn_stats_tlv(const void *tag_buf, + struct debug_htt_stats_req *stats_req) { const struct htt_tx_selfgen_cmn_stats_tlv *htt_stats_buf = tag_buf; u8 *buf = stats_req->buf; @@ -1389,7 +1423,9 @@ static inline void htt_print_tx_selfgen_cmn_stats_tlv(const void *tag_buf, struc stats_req->buf_len = len; } -static inline void htt_print_tx_selfgen_ac_stats_tlv(const void *tag_buf, struct debug_htt_stats_req *stats_req) +static inline void +htt_print_tx_selfgen_ac_stats_tlv(const void *tag_buf, + struct debug_htt_stats_req *stats_req) { const struct htt_tx_selfgen_ac_stats_tlv *htt_stats_buf = tag_buf; u8 *buf = stats_req->buf; @@ -1420,7 +1456,9 @@ static inline void htt_print_tx_selfgen_ac_stats_tlv(const void *tag_buf, struct stats_req->buf_len = len; } -static inline void htt_print_tx_selfgen_ax_stats_tlv(const void *tag_buf, struct debug_htt_stats_req *stats_req) +static inline void +htt_print_tx_selfgen_ax_stats_tlv(const void *tag_buf, + struct debug_htt_stats_req *stats_req) { const struct htt_tx_selfgen_ax_stats_tlv *htt_stats_buf = tag_buf; u8 *buf = stats_req->buf; @@ -1467,7 +1505,9 @@ static inline void htt_print_tx_selfgen_ax_stats_tlv(const void *tag_buf, struct stats_req->buf_len = len; } -static inline void htt_print_tx_selfgen_ac_err_stats_tlv(const void *tag_buf, struct debug_htt_stats_req *stats_req) +static inline void +htt_print_tx_selfgen_ac_err_stats_tlv(const void *tag_buf, + struct debug_htt_stats_req *stats_req) { const struct htt_tx_selfgen_ac_err_stats_tlv *htt_stats_buf = tag_buf; u8 *buf = stats_req->buf; @@ -1498,7 +1538,9 @@ static inline void htt_print_tx_selfgen_ac_err_stats_tlv(const void *tag_buf, st stats_req->buf_len = len; } -static inline void htt_print_tx_selfgen_ax_err_stats_tlv(const void *tag_buf, struct debug_htt_stats_req *stats_req) +static inline void +htt_print_tx_selfgen_ax_err_stats_tlv(const void *tag_buf, + struct debug_htt_stats_req *stats_req) { const struct htt_tx_selfgen_ax_err_stats_tlv *htt_stats_buf = tag_buf; u8 *buf = stats_req->buf; @@ -1545,8 +1587,9 @@ static inline void htt_print_tx_selfgen_ax_err_stats_tlv(const void *tag_buf, st stats_req->buf_len = len; } -static inline void htt_print_tx_pdev_mu_mimo_sch_stats_tlv(const void *tag_buf, - struct debug_htt_stats_req *stats_req) +static inline void +htt_print_tx_pdev_mu_mimo_sch_stats_tlv(const void *tag_buf, + struct debug_htt_stats_req *stats_req) { const struct htt_tx_pdev_mu_mimo_sch_stats_tlv *htt_stats_buf = tag_buf; u8 *buf = stats_req->buf; @@ -1592,7 +1635,9 @@ static inline void htt_print_tx_pdev_mu_mimo_sch_stats_tlv(const void *tag_buf, stats_req->buf_len = len; } -static inline void htt_print_tx_pdev_mu_mimo_mpdu_stats_tlv(const void *tag_buf, struct debug_htt_stats_req *stats_req) +static inline void +htt_print_tx_pdev_mu_mimo_mpdu_stats_tlv(const void *tag_buf, + struct debug_htt_stats_req *stats_req) { const struct htt_tx_pdev_mpdu_stats_tlv *htt_stats_buf = tag_buf; u8 *buf = stats_req->buf; @@ -1720,9 +1765,10 @@ static inline void htt_print_tx_pdev_mu_mimo_mpdu_stats_tlv(const void *tag_buf, stats_req->buf_len = len; } -static inline void htt_print_sched_txq_cmd_posted_tlv_v(const void *tag_buf, - u16 tag_len, - struct debug_htt_stats_req *stats_req) +static inline void +htt_print_sched_txq_cmd_posted_tlv_v(const void *tag_buf, + u16 tag_len, + struct debug_htt_stats_req *stats_req) { const struct htt_sched_txq_cmd_posted_tlv_v *htt_stats_buf = tag_buf; u8 *buf = stats_req->buf; @@ -1746,9 +1792,10 @@ static inline void htt_print_sched_txq_cmd_posted_tlv_v(const void *tag_buf, stats_req->buf_len = len; } -static inline void htt_print_sched_txq_cmd_reaped_tlv_v(const void *tag_buf, - u16 tag_len, - struct debug_htt_stats_req *stats_req) +static inline void +htt_print_sched_txq_cmd_reaped_tlv_v(const void *tag_buf, + u16 tag_len, + struct debug_htt_stats_req *stats_req) { const struct htt_sched_txq_cmd_reaped_tlv_v *htt_stats_buf = tag_buf; u8 *buf = stats_req->buf; @@ -1772,9 +1819,10 @@ static inline void htt_print_sched_txq_cmd_reaped_tlv_v(const void *tag_buf, stats_req->buf_len = len; } -static inline void htt_print_sched_txq_sched_order_su_tlv_v(const void *tag_buf, - u16 tag_len, - struct debug_htt_stats_req *stats_req) +static inline void +htt_print_sched_txq_sched_order_su_tlv_v(const void *tag_buf, + u16 tag_len, + struct debug_htt_stats_req *stats_req) { const struct htt_sched_txq_sched_order_su_tlv_v *htt_stats_buf = tag_buf; u8 *buf = stats_req->buf; @@ -1801,9 +1849,10 @@ static inline void htt_print_sched_txq_sched_order_su_tlv_v(const void *tag_buf, stats_req->buf_len = len; } -static inline void htt_print_sched_txq_sched_ineligibility_tlv_v(const void *tag_buf, - u16 tag_len, - struct debug_htt_stats_req *stats_req) +static inline void +htt_print_sched_txq_sched_ineligibility_tlv_v(const void *tag_buf, + u16 tag_len, + struct debug_htt_stats_req *stats_req) { const struct htt_sched_txq_sched_ineligibility_tlv_v *htt_stats_buf = tag_buf; u8 *buf = stats_req->buf; @@ -1829,8 +1878,9 @@ static inline void htt_print_sched_txq_sched_ineligibility_tlv_v(const void *tag stats_req->buf_len = len; } -static inline void htt_print_tx_pdev_stats_sched_per_txq_tlv(const void *tag_buf, - struct debug_htt_stats_req *stats_req) +static inline void +htt_print_tx_pdev_stats_sched_per_txq_tlv(const void *tag_buf, + struct debug_htt_stats_req *stats_req) { const struct htt_tx_pdev_stats_sched_per_txq_tlv *htt_stats_buf = tag_buf; u8 *buf = stats_req->buf; @@ -1916,9 +1966,10 @@ static inline void htt_print_stats_tx_sched_cmn_tlv(const void *tag_buf, stats_req->buf_len = len; } -static inline void htt_print_tx_tqm_gen_mpdu_stats_tlv_v(const void *tag_buf, - u16 tag_len, - struct debug_htt_stats_req *stats_req) +static inline void +htt_print_tx_tqm_gen_mpdu_stats_tlv_v(const void *tag_buf, + u16 tag_len, + struct debug_htt_stats_req *stats_req) { const struct htt_tx_tqm_gen_mpdu_stats_tlv_v *htt_stats_buf = tag_buf; u8 *buf = stats_req->buf; @@ -1943,9 +1994,10 @@ static inline void htt_print_tx_tqm_gen_mpdu_stats_tlv_v(const void *tag_buf, stats_req->buf_len = len; } -static inline void htt_print_tx_tqm_list_mpdu_stats_tlv_v(const void *tag_buf, - u16 tag_len, - struct debug_htt_stats_req *stats_req) +static inline void +htt_print_tx_tqm_list_mpdu_stats_tlv_v(const void *tag_buf, + u16 tag_len, + struct debug_htt_stats_req *stats_req) { const struct htt_tx_tqm_list_mpdu_stats_tlv_v *htt_stats_buf = tag_buf; u8 *buf = stats_req->buf; @@ -1969,9 +2021,10 @@ static inline void htt_print_tx_tqm_list_mpdu_stats_tlv_v(const void *tag_buf, stats_req->buf_len = len; } -static inline void htt_print_tx_tqm_list_mpdu_cnt_tlv_v(const void *tag_buf, - u16 tag_len, - struct debug_htt_stats_req *stats_req) +static inline void +htt_print_tx_tqm_list_mpdu_cnt_tlv_v(const void *tag_buf, + u16 tag_len, + struct debug_htt_stats_req *stats_req) { const struct htt_tx_tqm_list_mpdu_cnt_tlv_v *htt_stats_buf = tag_buf; u8 *buf = stats_req->buf; @@ -1996,7 +2049,9 @@ static inline void htt_print_tx_tqm_list_mpdu_cnt_tlv_v(const void *tag_buf, stats_req->buf_len = len; } -static inline void htt_print_tx_tqm_pdev_stats_tlv_v(const void *tag_buf, struct debug_htt_stats_req *stats_req) +static inline void +htt_print_tx_tqm_pdev_stats_tlv_v(const void *tag_buf, + struct debug_htt_stats_req *stats_req) { const struct htt_tx_tqm_pdev_stats_tlv_v *htt_stats_buf = tag_buf; u8 *buf = stats_req->buf; @@ -2075,7 +2130,8 @@ static inline void htt_print_tx_tqm_pdev_stats_tlv_v(const void *tag_buf, struct stats_req->buf_len = len; } -static inline void htt_print_tx_tqm_cmn_stats_tlv(const void *tag_buf, struct debug_htt_stats_req *stats_req) +static inline void htt_print_tx_tqm_cmn_stats_tlv(const void *tag_buf, + struct debug_htt_stats_req *stats_req) { const struct htt_tx_tqm_cmn_stats_tlv *htt_stats_buf = tag_buf; u8 *buf = stats_req->buf; @@ -2108,7 +2164,8 @@ static inline void htt_print_tx_tqm_cmn_stats_tlv(const void *tag_buf, struct de stats_req->buf_len = len; } -static inline void htt_print_tx_tqm_error_stats_tlv(const void *tag_buf, struct debug_htt_stats_req *stats_req) +static inline void htt_print_tx_tqm_error_stats_tlv(const void *tag_buf, + struct debug_htt_stats_req *stats_req) { const struct htt_tx_tqm_error_stats_tlv *htt_stats_buf = tag_buf; u8 *buf = stats_req->buf; @@ -2131,7 +2188,8 @@ static inline void htt_print_tx_tqm_error_stats_tlv(const void *tag_buf, struct stats_req->buf_len = len; } -static inline void htt_print_tx_tqm_cmdq_status_tlv(const void *tag_buf, struct debug_htt_stats_req *stats_req) +static inline void htt_print_tx_tqm_cmdq_status_tlv(const void *tag_buf, + struct debug_htt_stats_req *stats_req) { const struct htt_tx_tqm_cmdq_status_tlv *htt_stats_buf = tag_buf; u8 *buf = stats_req->buf; @@ -2174,7 +2232,9 @@ static inline void htt_print_tx_tqm_cmdq_status_tlv(const void *tag_buf, struct stats_req->buf_len = len; } -static inline void htt_print_tx_de_eapol_packets_stats_tlv(const void *tag_buf, struct debug_htt_stats_req *stats_req) +static inline void +htt_print_tx_de_eapol_packets_stats_tlv(const void *tag_buf, + struct debug_htt_stats_req *stats_req) { const struct htt_tx_de_eapol_packets_stats_tlv *htt_stats_buf = tag_buf; u8 *buf = stats_req->buf; @@ -2204,7 +2264,9 @@ static inline void htt_print_tx_de_eapol_packets_stats_tlv(const void *tag_buf, stats_req->buf_len = len; } -static inline void htt_print_tx_de_classify_failed_stats_tlv(const void *tag_buf, struct debug_htt_stats_req *stats_req) +static inline void +htt_print_tx_de_classify_failed_stats_tlv(const void *tag_buf, + struct debug_htt_stats_req *stats_req) { const struct htt_tx_de_classify_failed_stats_tlv *htt_stats_buf = tag_buf; u8 *buf = stats_req->buf; @@ -2248,7 +2310,9 @@ static inline void htt_print_tx_de_classify_failed_stats_tlv(const void *tag_buf stats_req->buf_len = len; } -static inline void htt_print_tx_de_classify_stats_tlv(const void *tag_buf, struct debug_htt_stats_req *stats_req) +static inline void +htt_print_tx_de_classify_stats_tlv(const void *tag_buf, + struct debug_htt_stats_req *stats_req) { const struct htt_tx_de_classify_stats_tlv *htt_stats_buf = tag_buf; u8 *buf = stats_req->buf; @@ -2331,7 +2395,9 @@ static inline void htt_print_tx_de_classify_stats_tlv(const void *tag_buf, struc stats_req->buf_len = len; } -static inline void htt_print_tx_de_classify_status_stats_tlv(const void *tag_buf, struct debug_htt_stats_req *stats_req) +static inline void +htt_print_tx_de_classify_status_stats_tlv(const void *tag_buf, + struct debug_htt_stats_req *stats_req) { const struct htt_tx_de_classify_status_stats_tlv *htt_stats_buf = tag_buf; u8 *buf = stats_req->buf; @@ -2365,7 +2431,9 @@ static inline void htt_print_tx_de_classify_status_stats_tlv(const void *tag_buf stats_req->buf_len = len; } -static inline void htt_print_tx_de_enqueue_packets_stats_tlv(const void *tag_buf, struct debug_htt_stats_req *stats_req) +static inline void +htt_print_tx_de_enqueue_packets_stats_tlv(const void *tag_buf, + struct debug_htt_stats_req *stats_req) { const struct htt_tx_de_enqueue_packets_stats_tlv *htt_stats_buf = tag_buf; u8 *buf = stats_req->buf; @@ -2389,7 +2457,9 @@ static inline void htt_print_tx_de_enqueue_packets_stats_tlv(const void *tag_buf stats_req->buf_len = len; } -static inline void htt_print_tx_de_enqueue_discard_stats_tlv(const void *tag_buf, struct debug_htt_stats_req *stats_req) +static inline void +htt_print_tx_de_enqueue_discard_stats_tlv(const void *tag_buf, + struct debug_htt_stats_req *stats_req) { const struct htt_tx_de_enqueue_discard_stats_tlv *htt_stats_buf = tag_buf; u8 *buf = stats_req->buf; @@ -2413,7 +2483,8 @@ static inline void htt_print_tx_de_enqueue_discard_stats_tlv(const void *tag_buf stats_req->buf_len = len; } -static inline void htt_print_tx_de_compl_stats_tlv(const void *tag_buf, struct debug_htt_stats_req *stats_req) +static inline void htt_print_tx_de_compl_stats_tlv(const void *tag_buf, + struct debug_htt_stats_req *stats_req) { const struct htt_tx_de_compl_stats_tlv *htt_stats_buf = tag_buf; u8 *buf = stats_req->buf; @@ -2440,9 +2511,10 @@ static inline void htt_print_tx_de_compl_stats_tlv(const void *tag_buf, struct d stats_req->buf_len = len; } -static inline void htt_print_tx_de_fw2wbm_ring_full_hist_tlv(const void *tag_buf, - u16 tag_len, - struct debug_htt_stats_req *stats_req) +static inline void +htt_print_tx_de_fw2wbm_ring_full_hist_tlv(const void *tag_buf, + u16 tag_len, + struct debug_htt_stats_req *stats_req) { const struct htt_tx_de_fw2wbm_ring_full_hist_tlv *htt_stats_buf = tag_buf; u8 *buf = stats_req->buf; @@ -2475,7 +2547,8 @@ static inline void htt_print_tx_de_fw2wbm_ring_full_hist_tlv(const void *tag_buf stats_req->buf_len = len; } -static inline void htt_print_tx_de_cmn_stats_tlv(const void *tag_buf, struct debug_htt_stats_req *stats_req) +static inline void +htt_print_tx_de_cmn_stats_tlv(const void *tag_buf, struct debug_htt_stats_req *stats_req) { const struct htt_tx_de_cmn_stats_tlv *htt_stats_buf = tag_buf; u8 *buf = stats_req->buf; @@ -2506,7 +2579,8 @@ static inline void htt_print_tx_de_cmn_stats_tlv(const void *tag_buf, struct deb stats_req->buf_len = len; } -static inline void htt_print_ring_if_stats_tlv(const void *tag_buf, struct debug_htt_stats_req *stats_req) +static inline void htt_print_ring_if_stats_tlv(const void *tag_buf, + struct debug_htt_stats_req *stats_req) { const struct htt_ring_if_stats_tlv *htt_stats_buf = tag_buf; u8 *buf = stats_req->buf; @@ -2567,7 +2641,8 @@ static inline void htt_print_ring_if_stats_tlv(const void *tag_buf, struct debug stats_req->buf_len = len; } -static inline void htt_print_ring_if_cmn_tlv(const void *tag_buf, struct debug_htt_stats_req *stats_req) +static inline void htt_print_ring_if_cmn_tlv(const void *tag_buf, + struct debug_htt_stats_req *stats_req) { const struct htt_ring_if_cmn_tlv *htt_stats_buf = tag_buf; u8 *buf = stats_req->buf; @@ -2615,7 +2690,8 @@ static inline void htt_print_sfm_client_user_tlv_v(const void *tag_buf, stats_req->buf_len = len; } -static inline void htt_print_sfm_client_tlv(const void *tag_buf, struct debug_htt_stats_req *stats_req) +static inline void htt_print_sfm_client_tlv(const void *tag_buf, + struct debug_htt_stats_req *stats_req) { const struct htt_sfm_client_tlv *htt_stats_buf = tag_buf; u8 *buf = stats_req->buf; @@ -2646,7 +2722,8 @@ static inline void htt_print_sfm_client_tlv(const void *tag_buf, struct debug_ht stats_req->buf_len = len; } -static inline void htt_print_sfm_cmn_tlv(const void *tag_buf, struct debug_htt_stats_req *stats_req) +static inline void htt_print_sfm_cmn_tlv(const void *tag_buf, + struct debug_htt_stats_req *stats_req) { const struct htt_sfm_cmn_tlv *htt_stats_buf = tag_buf; u8 *buf = stats_req->buf; @@ -2673,7 +2750,8 @@ static inline void htt_print_sfm_cmn_tlv(const void *tag_buf, struct debug_htt_s stats_req->buf_len = len; } -static inline void htt_print_sring_stats_tlv(const void *tag_buf, struct debug_htt_stats_req *stats_req) +static inline void htt_print_sring_stats_tlv(const void *tag_buf, + struct debug_htt_stats_req *stats_req) { const struct htt_sring_stats_tlv *htt_stats_buf = tag_buf; u8 *buf = stats_req->buf; @@ -2725,7 +2803,8 @@ static inline void htt_print_sring_stats_tlv(const void *tag_buf, struct debug_h stats_req->buf_len = len; } -static inline void htt_print_sring_cmn_tlv(const void *tag_buf, struct debug_htt_stats_req *stats_req) +static inline void htt_print_sring_cmn_tlv(const void *tag_buf, + struct debug_htt_stats_req *stats_req) { const struct htt_sring_cmn_tlv *htt_stats_buf = tag_buf; u8 *buf = stats_req->buf; @@ -2744,7 +2823,8 @@ static inline void htt_print_sring_cmn_tlv(const void *tag_buf, struct debug_htt stats_req->buf_len = len; } -static inline void htt_print_tx_pdev_rate_stats_tlv(const void *tag_buf, struct debug_htt_stats_req *stats_req) +static inline void htt_print_tx_pdev_rate_stats_tlv(const void *tag_buf, + struct debug_htt_stats_req *stats_req) { const struct htt_tx_pdev_rate_stats_tlv *htt_stats_buf = tag_buf; u8 *buf = stats_req->buf; @@ -2919,7 +2999,8 @@ static inline void htt_print_tx_pdev_rate_stats_tlv(const void *tag_buf, struct stats_req->buf_len = len; } -static inline void htt_print_rx_pdev_rate_stats_tlv(const void *tag_buf, struct debug_htt_stats_req *stats_req) +static inline void htt_print_rx_pdev_rate_stats_tlv(const void *tag_buf, + struct debug_htt_stats_req *stats_req) { const struct htt_rx_pdev_rate_stats_tlv *htt_stats_buf = tag_buf; u8 *buf = stats_req->buf; @@ -3040,7 +3121,8 @@ static inline void htt_print_rx_pdev_rate_stats_tlv(const void *tag_buf, struct stats_req->buf_len = len; } -static inline void htt_print_rx_soc_fw_stats_tlv(const void *tag_buf, struct debug_htt_stats_req *stats_req) +static inline void htt_print_rx_soc_fw_stats_tlv(const void *tag_buf, + struct debug_htt_stats_req *stats_req) { const struct htt_rx_soc_fw_stats_tlv *htt_stats_buf = tag_buf; u8 *buf = stats_req->buf; @@ -3084,9 +3166,10 @@ static inline void htt_print_rx_soc_fw_stats_tlv(const void *tag_buf, struct deb stats_req->buf_len = len; } -static inline void htt_print_rx_soc_fw_refill_ring_empty_tlv_v(const void *tag_buf, - u16 tag_len, - struct debug_htt_stats_req *stats_req) +static inline void +htt_print_rx_soc_fw_refill_ring_empty_tlv_v(const void *tag_buf, + u16 tag_len, + struct debug_htt_stats_req *stats_req) { const struct htt_rx_soc_fw_refill_ring_empty_tlv_v *htt_stats_buf = tag_buf; u8 *buf = stats_req->buf; @@ -3117,7 +3200,8 @@ htt_print_rx_soc_fw_refill_ring_num_rxdma_err_tlv_v(const void *tag_buf, u16 tag_len, struct debug_htt_stats_req *stats_req) { - const struct htt_rx_soc_fw_refill_ring_num_rxdma_err_tlv_v *htt_stats_buf = tag_buf; + const struct htt_rx_soc_fw_refill_ring_num_rxdma_err_tlv_v *htt_stats_buf = + tag_buf; u8 *buf = stats_req->buf; u32 len = stats_req->buf_len; u32 buf_len = ATH11K_HTT_STATS_BUF_SIZE; @@ -3141,9 +3225,10 @@ htt_print_rx_soc_fw_refill_ring_num_rxdma_err_tlv_v(const void *tag_buf, stats_req->buf_len = len; } -static inline void htt_print_rx_soc_fw_refill_ring_num_reo_err_tlv_v(const void *tag_buf, - u16 tag_len, - struct debug_htt_stats_req *stats_req) +static inline void +htt_print_rx_soc_fw_refill_ring_num_reo_err_tlv_v(const void *tag_buf, + u16 tag_len, + struct debug_htt_stats_req *stats_req) { const struct htt_rx_soc_fw_refill_ring_num_reo_err_tlv_v *htt_stats_buf = tag_buf; u8 *buf = stats_req->buf; @@ -3169,8 +3254,9 @@ static inline void htt_print_rx_soc_fw_refill_ring_num_reo_err_tlv_v(const void stats_req->buf_len = len; } -static inline void htt_print_rx_reo_debug_stats_tlv_v(const void *tag_buf, - struct debug_htt_stats_req *stats_req) +static inline void +htt_print_rx_reo_debug_stats_tlv_v(const void *tag_buf, + struct debug_htt_stats_req *stats_req) { const struct htt_rx_reo_resource_stats_tlv_v *htt_stats_buf = tag_buf; u8 *buf = stats_req->buf; @@ -3207,9 +3293,10 @@ static inline void htt_print_rx_reo_debug_stats_tlv_v(const void *tag_buf, stats_req->buf_len = len; } -static inline void htt_print_rx_soc_fw_refill_ring_num_refill_tlv_v(const void *tag_buf, - u16 tag_len, - struct debug_htt_stats_req *stats_req) +static inline void +htt_print_rx_soc_fw_refill_ring_num_refill_tlv_v(const void *tag_buf, + u16 tag_len, + struct debug_htt_stats_req *stats_req) { const struct htt_rx_soc_fw_refill_ring_num_refill_tlv_v *htt_stats_buf = tag_buf; u8 *buf = stats_req->buf; @@ -3358,8 +3445,9 @@ static inline void htt_print_rx_pdev_fw_stats_tlv(const void *tag_buf, stats_req->buf_len = len; } -static inline void htt_print_rx_pdev_fw_ring_mpdu_err_tlv_v(const void *tag_buf, - struct debug_htt_stats_req *stats_req) +static inline void +htt_print_rx_pdev_fw_ring_mpdu_err_tlv_v(const void *tag_buf, + struct debug_htt_stats_req *stats_req) { const struct htt_rx_pdev_fw_ring_mpdu_err_tlv_v *htt_stats_buf = tag_buf; u8 *buf = stats_req->buf; @@ -3384,9 +3472,10 @@ static inline void htt_print_rx_pdev_fw_ring_mpdu_err_tlv_v(const void *tag_buf, stats_req->buf_len = len; } -static inline void htt_print_rx_pdev_fw_mpdu_drop_tlv_v(const void *tag_buf, - u16 tag_len, - struct debug_htt_stats_req *stats_req) +static inline void +htt_print_rx_pdev_fw_mpdu_drop_tlv_v(const void *tag_buf, + u16 tag_len, + struct debug_htt_stats_req *stats_req) { const struct htt_rx_pdev_fw_mpdu_drop_tlv_v *htt_stats_buf = tag_buf; u8 *buf = stats_req->buf; @@ -3410,8 +3499,9 @@ static inline void htt_print_rx_pdev_fw_mpdu_drop_tlv_v(const void *tag_buf, stats_req->buf_len = len; } -static inline void htt_print_rx_pdev_fw_stats_phy_err_tlv(const void *tag_buf, - struct debug_htt_stats_req *stats_req) +static inline void +htt_print_rx_pdev_fw_stats_phy_err_tlv(const void *tag_buf, + struct debug_htt_stats_req *stats_req) { const struct htt_rx_pdev_fw_stats_phy_err_tlv *htt_stats_buf = tag_buf; u8 *buf = stats_req->buf; @@ -3438,8 +3528,9 @@ static inline void htt_print_rx_pdev_fw_stats_phy_err_tlv(const void *tag_buf, stats_req->buf_len = len; } -static inline void htt_print_pdev_cca_stats_hist_tlv(const void *tag_buf, - struct debug_htt_stats_req *stats_req) +static inline void +htt_print_pdev_cca_stats_hist_tlv(const void *tag_buf, + struct debug_htt_stats_req *stats_req) { const struct htt_pdev_cca_stats_hist_v1_tlv *htt_stats_buf = tag_buf; u8 *buf = stats_req->buf; @@ -3469,7 +3560,9 @@ static inline void htt_print_pdev_cca_stats_hist_tlv(const void *tag_buf, stats_req->buf_len = len; } -static inline void htt_print_pdev_stats_cca_counters_tlv(const void *tag_buf, struct debug_htt_stats_req *stats_req) +static inline void +htt_print_pdev_stats_cca_counters_tlv(const void *tag_buf, + struct debug_htt_stats_req *stats_req) { const struct htt_pdev_stats_cca_counters_tlv *htt_stats_buf = tag_buf; u8 *buf = stats_req->buf; @@ -3538,8 +3631,9 @@ static inline void htt_print_hw_stats_whal_tx_tlv(const void *tag_buf, stats_req->buf_len = len; } -static inline void htt_print_pdev_stats_twt_sessions_tlv(const void *tag_buf, - struct debug_htt_stats_req *stats_req) +static inline void +htt_print_pdev_stats_twt_sessions_tlv(const void *tag_buf, + struct debug_htt_stats_req *stats_req) { const struct htt_pdev_stats_twt_sessions_tlv *htt_stats_buf = tag_buf; u8 *buf = stats_req->buf; @@ -3560,8 +3654,9 @@ static inline void htt_print_pdev_stats_twt_sessions_tlv(const void *tag_buf, stats_req->buf_len = len; } -static inline void htt_print_pdev_stats_twt_session_tlv(const void *tag_buf, - struct debug_htt_stats_req *stats_req) +static inline void +htt_print_pdev_stats_twt_session_tlv(const void *tag_buf, + struct debug_htt_stats_req *stats_req) { const struct htt_pdev_stats_twt_session_tlv *htt_stats_buf = tag_buf; u8 *buf = stats_req->buf; @@ -3598,8 +3693,9 @@ static inline void htt_print_pdev_stats_twt_session_tlv(const void *tag_buf, stats_req->buf_len = len; } -static inline void htt_print_pdev_obss_pd_stats_tlv_v(const void *tag_buf, - struct debug_htt_stats_req *stats_req) +static inline void +htt_print_pdev_obss_pd_stats_tlv_v(const void *tag_buf, + struct debug_htt_stats_req *stats_req) { const struct htt_pdev_obss_pd_stats_tlv *htt_stats_buf = tag_buf; u8 *buf = stats_req->buf; From patchwork Fri Aug 9 09:28:08 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kalle Valo X-Patchwork-Id: 11086025 X-Patchwork-Delegate: kvalo@adurom.com Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id AC2BA1395 for ; Fri, 9 Aug 2019 09:28:32 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 9955C28C57 for ; Fri, 9 Aug 2019 09:28:32 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 8DD1528C59; Fri, 9 Aug 2019 09:28:32 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 3B1B928C57 for ; Fri, 9 Aug 2019 09:28:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-ID:Date:To:From:Subject:Reply-To:Cc:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=8P1vNlSiWsHnZR9wgRJUj5HKnT0Ux8PRpzIz5e9rmlQ=; b=QZkcJuBE9z+ylI v88kZBRRQa7BuW1COfee7y4h+d0D8Tk6oa7iQ5Ut+eMmbHq2VXJjkAvu854SDJ43aA8j77gx+JIEd WmdRz0KwIfA+OYbkF4NZwEiL42DCXvsQYskTBU+bmjKl4asitjKeZEA7vRK/4AyjRRIWPdXXycHwA qKDiW4iDBa5IoU5IUOZn3xZp4Y+wEht7CSf0UEuen/gGY7XAKRDDid09UXPjFxPAX0tpwVAkI1E/G Rlswzm5FflK6CUUPEpJHxb+lKyp0OgqMjC6Orwdzfy/cHSl2/NEmVUbNUF8DH1f6F9K52SCi+0lSO WoFTbn0xFdj4Xz+6znOw==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92 #3 (Red Hat Linux)) id 1hw1CI-0001F1-35; Fri, 09 Aug 2019 09:28:30 +0000 Received: from smtp.codeaurora.org ([198.145.29.96]) by bombadil.infradead.org with esmtps (Exim 4.92 #3 (Red Hat Linux)) id 1hw1C0-00012q-AW for ath11k@lists.infradead.org; Fri, 09 Aug 2019 09:28:13 +0000 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id D217A6118C; Fri, 9 Aug 2019 09:28:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1565342891; bh=50uqMN37wFKpFtgCeU4FtdRU5i+aACNDBqM2Am/US4E=; h=Subject:From:To:Date:In-Reply-To:References:From; b=VZS/uQvhoeILo9WUU98KgjVLJPXB+O2eTSpXpaWLrEBIsOinGajGPYradOrO/C0BY N43e+SQLiIFRFYYU8vUgJ61MiSfrg9QoSjF4+t1jpXoJENvpz28n9+1RcRJikZ3s3F rAHtZwyl7fcdGm+QquSAfCKh8Co34hqc1O+IqwUc= Received: from [127.0.1.1] (88-114-240-156.elisa-laajakaista.fi [88.114.240.156]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: kvalo@smtp.codeaurora.org) by smtp.codeaurora.org (Postfix) with ESMTPSA id D76F26118C for ; Fri, 9 Aug 2019 09:28:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1565342891; bh=50uqMN37wFKpFtgCeU4FtdRU5i+aACNDBqM2Am/US4E=; h=Subject:From:To:Date:In-Reply-To:References:From; b=VZS/uQvhoeILo9WUU98KgjVLJPXB+O2eTSpXpaWLrEBIsOinGajGPYradOrO/C0BY N43e+SQLiIFRFYYU8vUgJ61MiSfrg9QoSjF4+t1jpXoJENvpz28n9+1RcRJikZ3s3F rAHtZwyl7fcdGm+QquSAfCKh8Co34hqc1O+IqwUc= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org D76F26118C Authentication-Results: pdx-caf-mail.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: pdx-caf-mail.web.codeaurora.org; spf=none smtp.mailfrom=kvalo@codeaurora.org Subject: [PATCH 15/15] ath11k: debug_htt_stats: move fops structs close to the functions From: Kalle Valo To: ath11k@lists.infradead.org Date: Fri, 09 Aug 2019 12:28:08 +0300 Message-ID: <156534288863.30736.6802391040553041619.stgit@x230> In-Reply-To: <156534276745.30736.11736417077894270794.stgit@x230> References: <156534276745.30736.11736417077894270794.stgit@x230> User-Agent: StGit/0.19 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190809_022812_407980_BEA9A2C6 X-CRM114-Status: UNSURE ( 9.12 ) X-CRM114-Notice: Please train this message. X-BeenThere: ath11k@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "ath11k" Errors-To: ath11k-bounces+patchwork-ath11k=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP For readibility fops structures should be right after the actual functions, move them in correct place. No functional changes, compile tested only. Signed-off-by: Kalle Valo --- drivers/net/wireless/ath/ath11k/debug_htt_stats.c | 32 +++++++++++---------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/drivers/net/wireless/ath/ath11k/debug_htt_stats.c b/drivers/net/wireless/ath/ath11k/debug_htt_stats.c index 4e2894ee3cc6..838c17f3dad2 100644 --- a/drivers/net/wireless/ath/ath11k/debug_htt_stats.c +++ b/drivers/net/wireless/ath/ath11k/debug_htt_stats.c @@ -4203,6 +4203,14 @@ static ssize_t ath11k_write_htt_stats_type(struct file *file, return ret; } +static const struct file_operations fops_htt_stats_type = { + .read = ath11k_read_htt_stats_type, + .write = ath11k_write_htt_stats_type, + .open = simple_open, + .owner = THIS_MODULE, + .llseek = default_llseek, +}; + static int ath11k_prep_htt_stats_cfg_params(struct ath11k *ar, u8 type, const u8 *mac_addr, struct htt_ext_stats_cfg_params *cfg_params) @@ -4345,6 +4353,14 @@ static ssize_t ath11k_read_htt_stats(struct file *file, return simple_read_from_buffer(user_buf, count, ppos, buf, length); } +static const struct file_operations fops_dump_htt_stats = { + .open = ath11k_open_htt_stats, + .release = ath11k_release_htt_stats, + .read = ath11k_read_htt_stats, + .owner = THIS_MODULE, + .llseek = default_llseek, +}; + static ssize_t ath11k_read_htt_stats_reset(struct file *file, char __user *user_buf, size_t count, loff_t *ppos) @@ -4396,22 +4412,6 @@ static ssize_t ath11k_write_htt_stats_reset(struct file *file, return ret; } -static const struct file_operations fops_htt_stats_type = { - .read = ath11k_read_htt_stats_type, - .write = ath11k_write_htt_stats_type, - .open = simple_open, - .owner = THIS_MODULE, - .llseek = default_llseek, -}; - -static const struct file_operations fops_dump_htt_stats = { - .open = ath11k_open_htt_stats, - .release = ath11k_release_htt_stats, - .read = ath11k_read_htt_stats, - .owner = THIS_MODULE, - .llseek = default_llseek, -}; - static const struct file_operations fops_htt_stats_reset = { .read = ath11k_read_htt_stats_reset, .write = ath11k_write_htt_stats_reset,