drivers/net/wireless/silabs/wfx/wfx.h
Source file repositories/reference/linux-study-clean/drivers/net/wireless/silabs/wfx/wfx.h
File Facts
- System
- Linux kernel
- Corpus path
drivers/net/wireless/silabs/wfx/wfx.h- Extension
.h- Size
- 4130 bytes
- Lines
- 170
- 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.
- Defines or uses C structs; map object ownership, embedded links, reference counts, and lock ownership.
Dependency Surface
linux/completion.hlinux/workqueue.hlinux/mutex.hlinux/nospec.hnet/mac80211.hbh.hdata_tx.hmain.hqueue.hhif_tx.h
Detected Declarations
struct wfx_hwbus_opsstruct wfx_devstruct wfx_viffunction wvif_countfunction memreversefunction memzcmp
Annotated Snippet
struct wfx_dev {
struct wfx_platform_data pdata;
struct device *dev;
struct ieee80211_hw *hw;
struct ieee80211_vif *vif[2];
struct mac_address addresses[2];
const struct wfx_hwbus_ops *hwbus_ops;
void *hwbus_priv;
u8 keyset;
struct completion firmware_ready;
struct wfx_hif_ind_startup hw_caps;
struct wfx_hif hif;
struct delayed_work cooling_timeout_work;
bool poll_irq;
bool chip_frozen;
struct mutex scan_lock;
struct mutex conf_mutex;
struct wfx_hif_cmd hif_cmd;
struct sk_buff_head tx_pending;
wait_queue_head_t tx_dequeue;
atomic_t tx_lock;
atomic_t packet_id;
u32 key_map;
struct wfx_hif_rx_stats rx_stats;
struct mutex rx_stats_lock;
struct wfx_hif_tx_power_loop_info tx_power_loop_info;
struct mutex tx_power_loop_info_lock;
struct workqueue_struct *bh_wq;
};
struct wfx_vif {
struct wfx_dev *wdev;
struct ieee80211_channel *channel;
int id;
u32 link_id_map;
bool after_dtim_tx_allowed;
bool join_in_progress;
struct completion set_pm_mode_complete;
struct delayed_work beacon_loss_work;
struct wfx_queue tx_queue[4];
struct wfx_tx_policy_cache tx_policy_cache;
struct work_struct tx_policy_upload_work;
struct work_struct update_tim_work;
unsigned long uapsd_mask;
struct work_struct scan_work;
struct completion scan_complete;
int scan_nb_chan_done;
bool scan_abort;
struct ieee80211_scan_request *scan_req;
struct ieee80211_channel *remain_on_channel_chan;
int remain_on_channel_duration;
struct work_struct remain_on_channel_work;
};
static inline struct ieee80211_vif *wvif_to_vif(struct wfx_vif *wvif)
{
return container_of((void *)wvif, struct ieee80211_vif, drv_priv);
}
static inline struct wfx_vif *wdev_to_wvif(struct wfx_dev *wdev, int vif_id)
{
if (vif_id >= ARRAY_SIZE(wdev->vif)) {
dev_dbg(wdev->dev, "requesting non-existent vif: %d\n", vif_id);
return NULL;
}
vif_id = array_index_nospec(vif_id, ARRAY_SIZE(wdev->vif));
if (!wdev->vif[vif_id])
return NULL;
return (struct wfx_vif *)wdev->vif[vif_id]->drv_priv;
}
static inline struct wfx_vif *wvif_iterate(struct wfx_dev *wdev, struct wfx_vif *cur)
{
int i;
int mark = 0;
struct wfx_vif *tmp;
if (!cur)
Annotation
- Immediate include surface: `linux/completion.h`, `linux/workqueue.h`, `linux/mutex.h`, `linux/nospec.h`, `net/mac80211.h`, `bh.h`, `data_tx.h`, `main.h`.
- Detected declarations: `struct wfx_hwbus_ops`, `struct wfx_dev`, `struct wfx_vif`, `function wvif_count`, `function memreverse`, `function memzcmp`.
- 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.