drivers/net/wireless/intel/iwlwifi/pcie/utils.h
Source file repositories/reference/linux-study-clean/drivers/net/wireless/intel/iwlwifi/pcie/utils.h
File Facts
- System
- Linux kernel
- Corpus path
drivers/net/wireless/intel/iwlwifi/pcie/utils.h- Extension
.h- Size
- 858 bytes
- Lines
- 41
- 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
iwl-io.h
Detected Declarations
function _iwl_trans_set_bits_maskfunction iwl_trans_clear_bitfunction iwl_trans_set_bit
Annotated Snippet
// SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause
/*
* Copyright (C) 2025 Intel Corporation
*/
#ifndef __iwl_pcie_utils_h__
#define __iwl_pcie_utils_h__
#include "iwl-io.h"
void iwl_trans_pcie_dump_regs(struct iwl_trans *trans, struct pci_dev *pdev);
static inline void _iwl_trans_set_bits_mask(struct iwl_trans *trans,
u32 reg, u32 mask, u32 value)
{
u32 v;
#ifdef CONFIG_IWLWIFI_DEBUG
WARN_ON_ONCE(value & ~mask);
#endif
v = iwl_read32(trans, reg);
v &= ~mask;
v |= value;
iwl_write32(trans, reg, v);
}
static inline void iwl_trans_clear_bit(struct iwl_trans *trans,
u32 reg, u32 mask)
{
_iwl_trans_set_bits_mask(trans, reg, mask, 0);
}
static inline void iwl_trans_set_bit(struct iwl_trans *trans,
u32 reg, u32 mask)
{
_iwl_trans_set_bits_mask(trans, reg, mask, mask);
}
#endif /* __iwl_pcie_utils_h__ */
Annotation
- Immediate include surface: `iwl-io.h`.
- Detected declarations: `function _iwl_trans_set_bits_mask`, `function iwl_trans_clear_bit`, `function iwl_trans_set_bit`.
- 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.