drivers/net/wireless/ath/ath12k/wmi.c
Source file repositories/reference/linux-study-clean/drivers/net/wireless/ath/ath12k/wmi.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/net/wireless/ath/ath12k/wmi.c- Extension
.c- Size
- 346739 bytes
- Lines
- 11816
- 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.
- Uses kernel synchronization; read lock ordering, sleepability, and interrupt context assumptions before translating.
- Allocates kernel memory; connect allocation flags and lifetime to context constraints.
- Defines or uses C structs; map object ownership, embedded links, reference counts, and lock ownership.
Dependency Surface
linux/skbuff.hlinux/ctype.hnet/mac80211.hnet/cfg80211.hlinux/completion.hlinux/if_ether.hlinux/types.hlinux/pci.hlinux/uuid.hlinux/time.hlinux/of.hlinux/cleanup.hlinux/percpu.hlinux/refcount.hcore.hdebugfs.hdebug.hmac.hhw.hpeer.hp2p.htestmode.h
Detected Declarations
struct ath12k_wmi_svc_ready_parsestruct wmi_tlv_fw_stats_parsestruct ath12k_wmi_dma_ring_caps_parsestruct ath12k_wmi_service_ext_argstruct ath12k_wmi_svc_rdy_ext_parsestruct ath12k_wmi_svc_rdy_ext2_argstruct ath12k_wmi_svc_rdy_ext2_parsestruct ath12k_wmi_rdy_parsestruct ath12k_wmi_dma_buf_release_argstruct ath12k_wmi_tlv_policystruct wmi_tlv_mgmt_rx_parsestruct wmi_pdev_set_obss_bitmap_argfunction ath12k_wmi_tlv_hdrfunction ath12k_wmi_tlv_cmd_hdrfunction ath12k_wmi_tlv_iterfunction ath12k_wmi_tlv_iter_parsefunction ath12k_wmi_tlv_parsefunction ath12k_wmi_cmd_send_nowaitfunction ath12k_wmi_cmd_sendfunction ath12k_pull_svc_ready_extfunction ath12k_pull_mac_phy_cap_svc_ready_extfunction ath12k_pull_reg_cap_svc_rdy_extfunction ath12k_pull_service_ready_tlvfunction ath12k_wmi_service_bitmap_copyfunction ath12k_wmi_svc_rdy_parsefunction ath12k_service_ready_eventfunction ath12k_wmi_mgmt_get_freqfunction ath12k_wmi_mgmt_sendfunction ath12k_wmi_send_stats_request_cmdfunction ath12k_wmi_vdev_createfunction ath12k_wmi_vdev_deletefunction ath12k_wmi_vdev_stopfunction ath12k_wmi_vdev_downfunction ath12k_wmi_put_wmi_channelfunction ath12k_wmi_vdev_startfunction ath12k_wmi_vdev_upfunction ath12k_wmi_send_peer_create_cmdfunction ath12k_wmi_send_peer_delete_cmdfunction ath12k_wmi_send_pdev_set_regdomainfunction ath12k_wmi_set_peer_paramfunction ath12k_wmi_send_peer_flush_tids_cmdfunction ath12k_wmi_peer_rx_reorder_queue_setupfunction ath12k_wmi_rx_reord_queue_removefunction ath12k_wmi_pdev_set_paramfunction ath12k_wmi_pdev_set_ps_modefunction ath12k_wmi_pdev_suspendfunction ath12k_wmi_pdev_resumefunction ath12k_wmi_pdev_bss_chan_info_request
Annotated Snippet
struct ath12k_wmi_svc_ready_parse {
bool wmi_svc_bitmap_done;
};
struct wmi_tlv_fw_stats_parse {
const struct wmi_stats_event *ev;
struct ath12k_fw_stats *stats;
const struct wmi_per_chain_rssi_stat_params *rssi;
int rssi_num;
bool chain_rssi_done;
};
struct ath12k_wmi_dma_ring_caps_parse {
struct ath12k_wmi_dma_ring_caps_params *dma_ring_caps;
u32 n_dma_ring_caps;
};
struct ath12k_wmi_service_ext_arg {
u32 default_conc_scan_config_bits;
u32 default_fw_config_bits;
struct ath12k_wmi_ppe_threshold_arg ppet;
u32 he_cap_info;
u32 mpdu_density;
u32 max_bssid_rx_filters;
u32 num_hw_modes;
u32 num_phy;
};
struct ath12k_wmi_svc_rdy_ext_parse {
struct ath12k_wmi_service_ext_arg arg;
const struct ath12k_wmi_soc_mac_phy_hw_mode_caps_params *hw_caps;
const struct ath12k_wmi_hw_mode_cap_params *hw_mode_caps;
u32 n_hw_mode_caps;
u32 tot_phy_id;
struct ath12k_wmi_hw_mode_cap_params pref_hw_mode_caps;
struct ath12k_wmi_mac_phy_caps_params *mac_phy_caps;
u32 n_mac_phy_caps;
const struct ath12k_wmi_soc_hal_reg_caps_params *soc_hal_reg_caps;
const struct ath12k_wmi_hal_reg_caps_ext_params *ext_hal_reg_caps;
u32 n_ext_hal_reg_caps;
struct ath12k_wmi_dma_ring_caps_parse dma_caps_parse;
bool hw_mode_done;
bool mac_phy_done;
bool ext_hal_reg_done;
bool mac_phy_chainmask_combo_done;
bool mac_phy_chainmask_cap_done;
bool oem_dma_ring_cap_done;
bool dma_ring_cap_done;
};
struct ath12k_wmi_svc_rdy_ext2_arg {
u32 reg_db_version;
u32 hw_min_max_tx_power_2ghz;
u32 hw_min_max_tx_power_5ghz;
u32 chwidth_num_peer_caps;
u32 preamble_puncture_bw;
u32 max_user_per_ppdu_ofdma;
u32 max_user_per_ppdu_mumimo;
u32 target_cap_flags;
u32 eht_cap_mac_info[WMI_MAX_EHTCAP_MAC_SIZE];
u32 max_num_linkview_peers;
u32 max_num_msduq_supported_per_tid;
u32 default_num_msduq_supported_per_tid;
};
struct ath12k_wmi_svc_rdy_ext2_parse {
struct ath12k_wmi_svc_rdy_ext2_arg arg;
struct ath12k_wmi_dma_ring_caps_parse dma_caps_parse;
bool dma_ring_cap_done;
bool spectral_bin_scaling_done;
bool mac_phy_caps_ext_done;
bool hal_reg_caps_ext2_done;
bool scan_radio_caps_ext2_done;
bool twt_caps_done;
bool htt_msdu_idx_to_qtype_map_done;
bool dbs_or_sbs_cap_ext_done;
};
struct ath12k_wmi_rdy_parse {
u32 num_extra_mac_addr;
};
struct ath12k_wmi_dma_buf_release_arg {
struct ath12k_wmi_dma_buf_release_fixed_params fixed;
const struct ath12k_wmi_dma_buf_release_entry_params *buf_entry;
const struct ath12k_wmi_dma_buf_release_meta_data_params *meta_data;
u32 num_buf_entry;
u32 num_meta;
bool buf_entry_done;
bool meta_data_done;
Annotation
- Immediate include surface: `linux/skbuff.h`, `linux/ctype.h`, `net/mac80211.h`, `net/cfg80211.h`, `linux/completion.h`, `linux/if_ether.h`, `linux/types.h`, `linux/pci.h`.
- Detected declarations: `struct ath12k_wmi_svc_ready_parse`, `struct wmi_tlv_fw_stats_parse`, `struct ath12k_wmi_dma_ring_caps_parse`, `struct ath12k_wmi_service_ext_arg`, `struct ath12k_wmi_svc_rdy_ext_parse`, `struct ath12k_wmi_svc_rdy_ext2_arg`, `struct ath12k_wmi_svc_rdy_ext2_parse`, `struct ath12k_wmi_rdy_parse`, `struct ath12k_wmi_dma_buf_release_arg`, `struct ath12k_wmi_tlv_policy`.
- Atlas domain: Driver Families / drivers/net.
- Implementation status: source implementation candidate.
- Synchronization appears in or near this file; preserve lock ordering, sleepability, and interrupt-context constraints.
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.