drivers/net/wireless/ath/ath11k/debugfs.h
Source file repositories/reference/linux-study-clean/drivers/net/wireless/ath/ath11k/debugfs.h
File Facts
- System
- Linux kernel
- Corpus path
drivers/net/wireless/ath/ath11k/debugfs.h- Extension
.h- Size
- 9967 bytes
- Lines
- 392
- Domain
- Driver Families
- Bucket
- drivers/net
- Inferred role
- Driver Families: implementation source
- Status
- source implementation candidate
Why This File Exists
Repeatable hardware-adapter layer. Deep compatibility for every driver is out of scope; this atlas records patterns, probe lifecycles, bus glue, IRQ/DMA usage, and links back to core abstractions.
- Repeatable hardware-adapter layer. Deep compatibility for every driver is out of scope; this atlas records patterns, probe lifecycles, bus glue, IRQ/DMA usage, and links back to core abstractions.
- Defines or uses C structs; map object ownership, embedded links, reference counts, and lock ownership.
Dependency Surface
hal_tx.h
Detected Declarations
struct ath11k_dbg_dbr_entrystruct ath11k_dbg_dbr_datastruct ath11k_debug_dbrstruct debug_htt_stats_reqstruct ath_pktlog_hdrstruct ath11k_fw_dbglogenum ath11k_dbg_htt_ext_stats_typeenum ath11k_dbg_dbr_eventenum ath11k_pktlog_filterenum ath11k_pktlog_modeenum ath11k_pktlog_enumenum ath11k_dbg_aggr_modeenum fw_dbglog_wlan_module_idenum fw_dbglog_log_levelfunction ath11k_debugfs_is_pktlog_lite_mode_enabledfunction ath11k_debugfs_is_pktlog_rx_stats_enabledfunction ath11k_debugfs_is_pktlog_peer_validfunction ath11k_debugfs_is_extd_tx_stats_enabledfunction ath11k_debugfs_is_extd_rx_stats_enabledfunction ath11k_debugfs_rx_filterfunction ath11k_debugfs_soc_createfunction ath11k_debugfs_soc_destroyfunction ath11k_debugfs_pdev_destroyfunction ath11k_debugfs_unregisterfunction ath11k_debugfs_is_extd_rx_stats_enabledfunction ath11k_debugfs_is_pktlog_lite_mode_enabledfunction ath11k_debugfs_is_pktlog_rx_stats_enabledfunction ath11k_debugfs_is_pktlog_peer_validfunction ath11k_debugfs_rx_filterfunction ath11k_debugfs_add_dbring_entry
Annotated Snippet
struct ath11k_dbg_dbr_entry {
u32 hp;
u32 tp;
u64 timestamp;
enum ath11k_dbg_dbr_event event;
};
struct ath11k_dbg_dbr_data {
/* protects ath11k_db_ring_debug data */
spinlock_t lock;
struct ath11k_dbg_dbr_entry *entries;
u32 dbr_debug_idx;
u32 num_ring_debug_entries;
};
struct ath11k_debug_dbr {
struct ath11k_dbg_dbr_data dbr_dbg_data;
struct dentry *dbr_debugfs;
bool dbr_debug_enabled;
};
struct debug_htt_stats_req {
bool done;
u8 pdev_id;
u8 type;
u8 peer_addr[ETH_ALEN];
struct completion cmpln;
u32 buf_len;
u8 buf[];
};
struct ath_pktlog_hdr {
u16 flags;
u16 missed_cnt;
u16 log_type;
u16 size;
u32 timestamp;
u32 type_specific_data;
u8 payload[];
};
#define ATH11K_HTT_PEER_STATS_RESET BIT(16)
#define ATH11K_HTT_STATS_BUF_SIZE (1024 * 512)
#define ATH11K_FW_STATS_BUF_SIZE (1024 * 1024)
enum ath11k_pktlog_filter {
ATH11K_PKTLOG_RX = 0x000000001,
ATH11K_PKTLOG_TX = 0x000000002,
ATH11K_PKTLOG_RCFIND = 0x000000004,
ATH11K_PKTLOG_RCUPDATE = 0x000000008,
ATH11K_PKTLOG_EVENT_SMART_ANT = 0x000000020,
ATH11K_PKTLOG_EVENT_SW = 0x000000040,
ATH11K_PKTLOG_ANY = 0x00000006f,
};
enum ath11k_pktlog_mode {
ATH11K_PKTLOG_MODE_LITE = 1,
ATH11K_PKTLOG_MODE_FULL = 2,
};
enum ath11k_pktlog_enum {
ATH11K_PKTLOG_TYPE_INVALID = 0,
ATH11K_PKTLOG_TYPE_TX_CTRL = 1,
ATH11K_PKTLOG_TYPE_TX_STAT = 2,
ATH11K_PKTLOG_TYPE_TX_MSDU_ID = 3,
ATH11K_PKTLOG_TYPE_RX_STAT = 5,
ATH11K_PKTLOG_TYPE_RC_FIND = 6,
ATH11K_PKTLOG_TYPE_RC_UPDATE = 7,
ATH11K_PKTLOG_TYPE_TX_VIRT_ADDR = 8,
ATH11K_PKTLOG_TYPE_RX_CBF = 10,
ATH11K_PKTLOG_TYPE_RX_STATBUF = 22,
ATH11K_PKTLOG_TYPE_PPDU_STATS = 23,
ATH11K_PKTLOG_TYPE_LITE_RX = 24,
};
enum ath11k_dbg_aggr_mode {
ATH11K_DBG_AGGR_MODE_AUTO,
ATH11K_DBG_AGGR_MODE_MANUAL,
ATH11K_DBG_AGGR_MODE_MAX,
};
enum fw_dbglog_wlan_module_id {
WLAN_MODULE_ID_MIN = 0,
WLAN_MODULE_INF = WLAN_MODULE_ID_MIN,
WLAN_MODULE_WMI,
WLAN_MODULE_STA_PWRSAVE,
WLAN_MODULE_WHAL,
WLAN_MODULE_COEX,
WLAN_MODULE_ROAM,
Annotation
- Immediate include surface: `hal_tx.h`.
- Detected declarations: `struct ath11k_dbg_dbr_entry`, `struct ath11k_dbg_dbr_data`, `struct ath11k_debug_dbr`, `struct debug_htt_stats_req`, `struct ath_pktlog_hdr`, `struct ath11k_fw_dbglog`, `enum ath11k_dbg_htt_ext_stats_type`, `enum ath11k_dbg_dbr_event`, `enum ath11k_pktlog_filter`, `enum ath11k_pktlog_mode`.
- Atlas domain: Driver Families / drivers/net.
- Implementation status: source implementation candidate.
Implementation Notes
- This generated page is the file-by-file coverage layer; curated subsystem chapters should link here when they synthesize a multi-file control flow.
- Core OS pages should be promoted from atlas-only to deep-reviewed when they explain data structures, invariants, locking, lifecycle, and C implementation snippets.
- Driver-family pages are intentionally pattern-oriented unless they are part of the selected PCIe/NVMe representative device path.