drivers/net/wireless/ath/ath12k/dp_rx.h
Source file repositories/reference/linux-study-clean/drivers/net/wireless/ath/ath12k/dp_rx.h
File Facts
- System
- Linux kernel
- Corpus path
drivers/net/wireless/ath/ath12k/dp_rx.h- Extension
.h- Size
- 8045 bytes
- Lines
- 264
- 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
core.hdebug.h
Detected Declarations
struct ath12k_reoq_bufstruct ath12k_dp_rx_tidstruct ath12k_dp_rx_tid_rxqstruct ath12k_dp_rx_reo_cache_flush_elemstruct dp_reo_update_rx_queue_elemstruct ath12k_dp_rx_reo_cmdstruct ath12k_dp_rx_rfc1042_hdrenum ath12k_dp_rx_decap_typefunction ath12k_he_gi_to_nl80211_he_gifunction ath12k_dp_rx_h_more_fragsfunction ath12k_dp_rx_h_frag_nofunction ath12k_dp_rx_h_l3padfunction ath12k_dp_rx_desc_end_tlv_copyfunction ath12k_dp_rxdesc_set_msdu_lenfunction ath12k_dp_rxdesc_get_ppduidfunction ath12k_dp_rx_desc_get_dot11_hdrfunction ath12k_dp_rx_desc_get_crypto_headerfunction ath12k_dp_rx_get_msdu_src_linkfunction ath12k_dp_clean_up_skb_listfunction ath12k_dp_extract_rx_desc_data
Annotated Snippet
struct ath12k_reoq_buf {
void *vaddr;
dma_addr_t paddr_aligned;
u32 size;
};
struct ath12k_dp_rx_tid {
u8 tid;
u32 ba_win_sz;
struct ath12k_reoq_buf qbuf;
/* Info related to rx fragments */
u32 cur_sn;
u16 last_frag_no;
u16 rx_frag_bitmap;
struct sk_buff_head rx_frags;
struct hal_reo_dest_ring *dst_ring_desc;
/* Timer info related to fragments */
struct timer_list frag_timer;
struct ath12k_dp *dp;
};
struct ath12k_dp_rx_tid_rxq {
u8 tid;
bool active;
struct ath12k_reoq_buf qbuf;
};
struct ath12k_dp_rx_reo_cache_flush_elem {
struct list_head list;
struct ath12k_dp_rx_tid_rxq data;
unsigned long ts;
};
struct dp_reo_update_rx_queue_elem {
struct list_head list;
struct ath12k_dp_rx_tid_rxq rx_tid;
int peer_id;
bool is_ml_peer;
u16 ml_peer_id;
};
struct ath12k_dp_rx_reo_cmd {
struct list_head list;
struct ath12k_dp_rx_tid_rxq data;
int cmd_num;
void (*handler)(struct ath12k_dp *dp, void *ctx,
enum hal_reo_cmd_status status);
};
#define ATH12K_DP_RX_FRAGMENT_TIMEOUT_MS (2 * HZ)
#define ATH12K_DP_RX_REO_DESC_FREE_THRES 64
#define ATH12K_DP_RX_REO_DESC_FREE_TIMEOUT_MS 1000
enum ath12k_dp_rx_decap_type {
DP_RX_DECAP_TYPE_RAW,
DP_RX_DECAP_TYPE_NATIVE_WIFI,
DP_RX_DECAP_TYPE_ETHERNET2_DIX,
DP_RX_DECAP_TYPE_8023,
};
struct ath12k_dp_rx_rfc1042_hdr {
u8 llc_dsap;
u8 llc_ssap;
u8 llc_ctrl;
u8 snap_oui[3];
__be16 snap_type;
} __packed;
static inline u32 ath12k_he_gi_to_nl80211_he_gi(u8 sgi)
{
u32 ret = 0;
switch (sgi) {
case RX_MSDU_START_SGI_0_8_US:
ret = NL80211_RATE_INFO_HE_GI_0_8;
break;
case RX_MSDU_START_SGI_1_6_US:
ret = NL80211_RATE_INFO_HE_GI_1_6;
break;
case RX_MSDU_START_SGI_3_2_US:
ret = NL80211_RATE_INFO_HE_GI_3_2;
break;
default:
ret = NL80211_RATE_INFO_HE_GI_0_8;
break;
}
Annotation
- Immediate include surface: `core.h`, `debug.h`.
- Detected declarations: `struct ath12k_reoq_buf`, `struct ath12k_dp_rx_tid`, `struct ath12k_dp_rx_tid_rxq`, `struct ath12k_dp_rx_reo_cache_flush_elem`, `struct dp_reo_update_rx_queue_elem`, `struct ath12k_dp_rx_reo_cmd`, `struct ath12k_dp_rx_rfc1042_hdr`, `enum ath12k_dp_rx_decap_type`, `function ath12k_he_gi_to_nl80211_he_gi`, `function ath12k_dp_rx_h_more_frags`.
- 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.