From: Ping-Ke Shih <pkshih@realtek.com>
To: <kvalo@kernel.org>
Cc: <linux-wireless@vger.kernel.org>
Subject: [PATCH 0/5] wifi: rtw89: use struct to access register-based H2C/C2H and RX related info
Date: Mon, 22 May 2023 20:25:08 +0800 [thread overview]
Message-ID: <20230522122513.13559-1-pkshih@realtek.com> (raw)
Originally, access these fields by macros that needs casting and add
an offset, so it could hide some mistakes. Refine these macros by
accessing fields via struct.
Ping-Ke Shih (5):
wifi: rtw89: add chip_ops::query_rxdesc() and rxd_len as helpers to
support newer chips
wifi: rtw89: use struct and le32_get_bits to access RX info
wifi: rtw89: use struct and le32_get_bits() to access received PHY
status IEs
wifi: rtw89: use struct and le32_get_bits() to access RX descriptor
wifi: rtw89: use struct to access register-based H2C/C2H
drivers/net/wireless/realtek/rtw89/core.c | 114 +++++++------
drivers/net/wireless/realtek/rtw89/core.h | 16 +-
drivers/net/wireless/realtek/rtw89/fw.c | 18 +-
drivers/net/wireless/realtek/rtw89/fw.h | 102 ++++++------
drivers/net/wireless/realtek/rtw89/mac.c | 23 +--
drivers/net/wireless/realtek/rtw89/pci.c | 12 +-
drivers/net/wireless/realtek/rtw89/rtw8851b.c | 1 +
drivers/net/wireless/realtek/rtw89/rtw8852a.c | 1 +
drivers/net/wireless/realtek/rtw89/rtw8852b.c | 1 +
drivers/net/wireless/realtek/rtw89/rtw8852c.c | 1 +
drivers/net/wireless/realtek/rtw89/txrx.h | 157 +++++-------------
11 files changed, 210 insertions(+), 236 deletions(-)
--
2.25.1
next reply other threads:[~2023-05-22 12:29 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-05-22 12:25 Ping-Ke Shih [this message]
2023-05-22 12:25 ` [PATCH 1/5] wifi: rtw89: add chip_ops::query_rxdesc() and rxd_len as helpers to support newer chips Ping-Ke Shih
2023-05-25 16:13 ` Kalle Valo
2023-05-22 12:25 ` [PATCH 2/5] wifi: rtw89: use struct and le32_get_bits to access RX info Ping-Ke Shih
2023-05-22 12:25 ` [PATCH 3/5] wifi: rtw89: use struct and le32_get_bits() to access received PHY status IEs Ping-Ke Shih
2023-05-22 12:25 ` [PATCH 4/5] wifi: rtw89: use struct and le32_get_bits() to access RX descriptor Ping-Ke Shih
2023-05-22 12:25 ` [PATCH 5/5] wifi: rtw89: use struct to access register-based H2C/C2H Ping-Ke Shih
2023-05-25 16:07 ` Kalle Valo
2023-05-26 11:46 ` Ping-Ke Shih
2023-05-26 11:49 ` Kalle Valo
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20230522122513.13559-1-pkshih@realtek.com \
--to=pkshih@realtek.com \
--cc=kvalo@kernel.org \
--cc=linux-wireless@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).