* [PATCH 02/15] ath11k: remove unused struct ath11k_ce_sg_item
2019-08-09 9:26 [PATCH 01/15] ath11k: rename per_transfer_context to skb Kalle Valo
@ 2019-08-09 9:26 ` Kalle Valo
2019-08-09 9:26 ` [PATCH 03/15] ath11k: cleanup and rename ath11k_send_crash_inject_cmd() Kalle Valo
` (13 subsequent siblings)
14 siblings, 0 replies; 16+ messages in thread
From: Kalle Valo @ 2019-08-09 9:26 UTC (permalink / raw)
To: ath11k
No need to have unused structures laying around.
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
---
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);
_______________________________________________
ath11k mailing list
ath11k@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/ath11k
^ permalink raw reply related [flat|nested] 16+ messages in thread* [PATCH 03/15] ath11k: cleanup and rename ath11k_send_crash_inject_cmd()
2019-08-09 9:26 [PATCH 01/15] ath11k: rename per_transfer_context to skb Kalle Valo
2019-08-09 9:26 ` [PATCH 02/15] ath11k: remove unused struct ath11k_ce_sg_item Kalle Valo
@ 2019-08-09 9:26 ` Kalle Valo
2019-08-09 9:26 ` [PATCH 04/15] ath11k: remove unused IEEE80211_VHTCAP defines Kalle Valo
` (12 subsequent siblings)
14 siblings, 0 replies; 16+ messages in thread
From: Kalle Valo @ 2019-08-09 9:26 UTC (permalink / raw)
To: ath11k
Instead use the common style used in WMI functions in general.
No functional changes, compile tested only.
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
---
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);
_______________________________________________
ath11k mailing list
ath11k@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/ath11k
^ permalink raw reply related [flat|nested] 16+ messages in thread* [PATCH 04/15] ath11k: remove unused IEEE80211_VHTCAP defines
2019-08-09 9:26 [PATCH 01/15] ath11k: rename per_transfer_context to skb Kalle Valo
2019-08-09 9:26 ` [PATCH 02/15] ath11k: remove unused struct ath11k_ce_sg_item Kalle Valo
2019-08-09 9:26 ` [PATCH 03/15] ath11k: cleanup and rename ath11k_send_crash_inject_cmd() Kalle Valo
@ 2019-08-09 9:26 ` Kalle Valo
2019-08-09 9:26 ` [PATCH 05/15] ath11k: move ath11k_mac_destroy() after _create() Kalle Valo
` (11 subsequent siblings)
14 siblings, 0 replies; 16+ messages in thread
From: Kalle Valo @ 2019-08-09 9:26 UTC (permalink / raw)
To: ath11k
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 <kvalo@codeaurora.org>
---
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)
_______________________________________________
ath11k mailing list
ath11k@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/ath11k
^ permalink raw reply related [flat|nested] 16+ messages in thread* [PATCH 05/15] ath11k: move ath11k_mac_destroy() after _create()
2019-08-09 9:26 [PATCH 01/15] ath11k: rename per_transfer_context to skb Kalle Valo
` (2 preceding siblings ...)
2019-08-09 9:26 ` [PATCH 04/15] ath11k: remove unused IEEE80211_VHTCAP defines Kalle Valo
@ 2019-08-09 9:26 ` Kalle Valo
2019-08-09 9:26 ` [PATCH 06/15] ath11k: random whitespace fixes Kalle Valo
` (10 subsequent siblings)
14 siblings, 0 replies; 16+ messages in thread
From: Kalle Valo @ 2019-08-09 9:26 UTC (permalink / raw)
To: ath11k
Just for symmetry.
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
---
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;
+ }
+}
_______________________________________________
ath11k mailing list
ath11k@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/ath11k
^ permalink raw reply related [flat|nested] 16+ messages in thread* [PATCH 06/15] ath11k: random whitespace fixes
2019-08-09 9:26 [PATCH 01/15] ath11k: rename per_transfer_context to skb Kalle Valo
` (3 preceding siblings ...)
2019-08-09 9:26 ` [PATCH 05/15] ath11k: move ath11k_mac_destroy() after _create() Kalle Valo
@ 2019-08-09 9:26 ` Kalle Valo
2019-08-09 9:26 ` [PATCH 07/15] ath11k: make static const in debugfs functions Kalle Valo
` (9 subsequent siblings)
14 siblings, 0 replies; 16+ messages in thread
From: Kalle Valo @ 2019-08-09 9:26 UTC (permalink / raw)
To: ath11k
Found while reviewing the driver. No functional changes.
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
---
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;
_______________________________________________
ath11k mailing list
ath11k@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/ath11k
^ permalink raw reply related [flat|nested] 16+ messages in thread* [PATCH 07/15] ath11k: make static const in debugfs functions
2019-08-09 9:26 [PATCH 01/15] ath11k: rename per_transfer_context to skb Kalle Valo
` (4 preceding siblings ...)
2019-08-09 9:26 ` [PATCH 06/15] ath11k: random whitespace fixes Kalle Valo
@ 2019-08-09 9:26 ` Kalle Valo
2019-08-09 9:27 ` [PATCH 08/15] ath11k: remove box comments Kalle Valo
` (8 subsequent siblings)
14 siblings, 0 replies; 16+ messages in thread
From: Kalle Valo @ 2019-08-09 9:26 UTC (permalink / raw)
To: ath11k
This should save memory.
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
---
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;
_______________________________________________
ath11k mailing list
ath11k@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/ath11k
^ permalink raw reply related [flat|nested] 16+ messages in thread* [PATCH 08/15] ath11k: remove box comments
2019-08-09 9:26 [PATCH 01/15] ath11k: rename per_transfer_context to skb Kalle Valo
` (5 preceding siblings ...)
2019-08-09 9:26 ` [PATCH 07/15] ath11k: make static const in debugfs functions Kalle Valo
@ 2019-08-09 9:27 ` Kalle Valo
2019-08-09 9:27 ` [PATCH 09/15] ath11k: move fops_pktlog_filter to correct place Kalle Valo
` (7 subsequent siblings)
14 siblings, 0 replies; 16+ messages in thread
From: Kalle Valo @ 2019-08-09 9:27 UTC (permalink / raw)
To: ath11k
They easily get outdated so better to remove them altogether.
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
---
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);
_______________________________________________
ath11k mailing list
ath11k@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/ath11k
^ permalink raw reply related [flat|nested] 16+ messages in thread* [PATCH 09/15] ath11k: move fops_pktlog_filter to correct place
2019-08-09 9:26 [PATCH 01/15] ath11k: rename per_transfer_context to skb Kalle Valo
` (6 preceding siblings ...)
2019-08-09 9:27 ` [PATCH 08/15] ath11k: remove box comments Kalle Valo
@ 2019-08-09 9:27 ` Kalle Valo
2019-08-09 9:27 ` [PATCH 10/15] ath11k: avoid excessive casting in debug_htt_stats.c Kalle Valo
` (6 subsequent siblings)
14 siblings, 0 replies; 16+ messages in thread
From: Kalle Valo @ 2019-08-09 9:27 UTC (permalink / raw)
To: ath11k
It was placed in a confusing location, fix that. No functional changes.
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
---
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
_______________________________________________
ath11k mailing list
ath11k@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/ath11k
^ permalink raw reply related [flat|nested] 16+ messages in thread* [PATCH 10/15] ath11k: avoid excessive casting in debug_htt_stats.c
2019-08-09 9:26 [PATCH 01/15] ath11k: rename per_transfer_context to skb Kalle Valo
` (7 preceding siblings ...)
2019-08-09 9:27 ` [PATCH 09/15] ath11k: move fops_pktlog_filter to correct place Kalle Valo
@ 2019-08-09 9:27 ` Kalle Valo
2019-08-09 9:27 ` [PATCH 11/15] ath11k: debug_htt_stats: pass stats_req as a properly typed pointer Kalle Valo
` (5 subsequent siblings)
14 siblings, 0 replies; 16+ messages in thread
From: Kalle Valo @ 2019-08-09 9:27 UTC (permalink / raw)
To: ath11k
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 <kvalo@codeaurora.org>
---
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;
_______________________________________________
ath11k mailing list
ath11k@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/ath11k
^ permalink raw reply related [flat|nested] 16+ messages in thread* [PATCH 11/15] ath11k: debug_htt_stats: pass stats_req as a properly typed pointer
2019-08-09 9:26 [PATCH 01/15] ath11k: rename per_transfer_context to skb Kalle Valo
` (8 preceding siblings ...)
2019-08-09 9:27 ` [PATCH 10/15] ath11k: avoid excessive casting in debug_htt_stats.c Kalle Valo
@ 2019-08-09 9:27 ` Kalle Valo
2019-08-09 9:27 ` [PATCH 12/15] ath11k: debug_htt_stats: remove unnecessary cast Kalle Valo
` (4 subsequent siblings)
14 siblings, 0 replies; 16+ messages in thread
From: Kalle Valo @ 2019-08-09 9:27 UTC (permalink / raw)
To: ath11k
Void pointers are bad. And this reduces line count anyway.
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
---
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;
_______________________________________________
ath11k mailing list
ath11k@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/ath11k
^ permalink raw reply related [flat|nested] 16+ messages in thread* [PATCH 12/15] ath11k: debug_htt_stats: remove unnecessary cast
2019-08-09 9:26 [PATCH 01/15] ath11k: rename per_transfer_context to skb Kalle Valo
` (9 preceding siblings ...)
2019-08-09 9:27 ` [PATCH 11/15] ath11k: debug_htt_stats: pass stats_req as a properly typed pointer Kalle Valo
@ 2019-08-09 9:27 ` Kalle Valo
2019-08-09 9:27 ` [PATCH 13/15] ath11k: debug_htt_stats: move tag_buf assignment to the first Kalle Valo
` (3 subsequent siblings)
14 siblings, 0 replies; 16+ messages in thread
From: Kalle Valo @ 2019-08-09 9:27 UTC (permalink / raw)
To: ath11k
No need to do any casting for void pointers.
No functional changes, compile tested only.
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
---
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);
_______________________________________________
ath11k mailing list
ath11k@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/ath11k
^ permalink raw reply related [flat|nested] 16+ messages in thread* [PATCH 13/15] ath11k: debug_htt_stats: move tag_buf assignment to the first
2019-08-09 9:26 [PATCH 01/15] ath11k: rename per_transfer_context to skb Kalle Valo
` (10 preceding siblings ...)
2019-08-09 9:27 ` [PATCH 12/15] ath11k: debug_htt_stats: remove unnecessary cast Kalle Valo
@ 2019-08-09 9:27 ` Kalle Valo
2019-08-09 9:27 ` [PATCH 14/15] ath11k: debug_htt_stats: fix line over 90 char warnings Kalle Valo
` (2 subsequent siblings)
14 siblings, 0 replies; 16+ messages in thread
From: Kalle Valo @ 2019-08-09 9:27 UTC (permalink / raw)
To: ath11k
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 <kvalo@codeaurora.org>
---
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",
_______________________________________________
ath11k mailing list
ath11k@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/ath11k
^ permalink raw reply related [flat|nested] 16+ messages in thread* [PATCH 14/15] ath11k: debug_htt_stats: fix line over 90 char warnings
2019-08-09 9:26 [PATCH 01/15] ath11k: rename per_transfer_context to skb Kalle Valo
` (11 preceding siblings ...)
2019-08-09 9:27 ` [PATCH 13/15] ath11k: debug_htt_stats: move tag_buf assignment to the first Kalle Valo
@ 2019-08-09 9:27 ` Kalle Valo
2019-08-09 9:28 ` [PATCH 15/15] ath11k: debug_htt_stats: move fops structs close to the functions Kalle Valo
2019-08-12 15:02 ` [PATCH 01/15] ath11k: rename per_transfer_context to skb Kalle Valo
14 siblings, 0 replies; 16+ messages in thread
From: Kalle Valo @ 2019-08-09 9:27 UTC (permalink / raw)
To: ath11k
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 <kvalo@codeaurora.org>
---
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;
_______________________________________________
ath11k mailing list
ath11k@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/ath11k
^ permalink raw reply related [flat|nested] 16+ messages in thread* [PATCH 15/15] ath11k: debug_htt_stats: move fops structs close to the functions
2019-08-09 9:26 [PATCH 01/15] ath11k: rename per_transfer_context to skb Kalle Valo
` (12 preceding siblings ...)
2019-08-09 9:27 ` [PATCH 14/15] ath11k: debug_htt_stats: fix line over 90 char warnings Kalle Valo
@ 2019-08-09 9:28 ` Kalle Valo
2019-08-12 15:02 ` [PATCH 01/15] ath11k: rename per_transfer_context to skb Kalle Valo
14 siblings, 0 replies; 16+ messages in thread
From: Kalle Valo @ 2019-08-09 9:28 UTC (permalink / raw)
To: ath11k
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 <kvalo@codeaurora.org>
---
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,
_______________________________________________
ath11k mailing list
ath11k@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/ath11k
^ permalink raw reply related [flat|nested] 16+ messages in thread* Re: [PATCH 01/15] ath11k: rename per_transfer_context to skb
2019-08-09 9:26 [PATCH 01/15] ath11k: rename per_transfer_context to skb Kalle Valo
` (13 preceding siblings ...)
2019-08-09 9:28 ` [PATCH 15/15] ath11k: debug_htt_stats: move fops structs close to the functions Kalle Valo
@ 2019-08-12 15:02 ` Kalle Valo
14 siblings, 0 replies; 16+ messages in thread
From: Kalle Valo @ 2019-08-12 15:02 UTC (permalink / raw)
To: Kalle Valo; +Cc: ath11k
Kalle Valo <kvalo@codeaurora.org> wrote:
> 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 <kvalo@codeaurora.org>
15 patches applied to ath11k-bringup branch of ath.git, thanks.
3e4f065bbf2b ath11k: rename per_transfer_context to skb
78eb3c7fce34 ath11k: remove unused struct ath11k_ce_sg_item
75a016fcc8f7 ath11k: cleanup and rename ath11k_send_crash_inject_cmd()
c3df984c6cc3 ath11k: remove unused IEEE80211_VHTCAP defines
9abae4e48e1e ath11k: move ath11k_mac_destroy() after _create()
44781976e2e6 ath11k: random whitespace fixes
bf1a82d6d7aa ath11k: make static const in debugfs functions
dbb836bbbf6f ath11k: remove box comments
6b5972013e22 ath11k: move fops_pktlog_filter to correct place
2a5adaf9109a ath11k: avoid excessive casting in debug_htt_stats.c
ae021cdb8522 ath11k: debug_htt_stats: pass stats_req as a properly typed pointer
9566b90559c6 ath11k: debug_htt_stats: remove unnecessary cast
8cfd6f1e670b ath11k: debug_htt_stats: move tag_buf assignment to the first
31689a989dc5 ath11k: debug_htt_stats: fix line over 90 char warnings
2e1a3ed0437e ath11k: debug_htt_stats: move fops structs close to the functions
--
https://patchwork.kernel.org/patch/11085995/
https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches
_______________________________________________
ath11k mailing list
ath11k@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/ath11k
^ permalink raw reply [flat|nested] 16+ messages in thread