drivers/gpu/drm/xe/xe_lmtt_types.h
Source file repositories/reference/linux-study-clean/drivers/gpu/drm/xe/xe_lmtt_types.h
File Facts
- System
- Linux kernel
- Corpus path
drivers/gpu/drm/xe/xe_lmtt_types.h- Extension
.h- Size
- 1439 bytes
- Lines
- 64
- Domain
- Driver Families
- Bucket
- drivers/gpu
- 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
linux/types.h
Detected Declarations
struct xe_bostruct xe_lmttstruct xe_lmtt_ptstruct xe_lmtt_opsstruct xe_lmttstruct xe_lmtt_ptstruct xe_lmtt_ops
Annotated Snippet
struct xe_lmtt {
/** @pd: root LMTT Directory */
struct xe_lmtt_pt *pd;
/** @ops: LMTT functions */
const struct xe_lmtt_ops *ops;
};
/**
* struct xe_lmtt_pt - Local Memory Translation Table Page Table
*
* Represents single level of the LMTT.
*/
struct xe_lmtt_pt {
/** @level: page table level, 0 is leaf */
unsigned int level;
/** @bo: buffer object with actual LMTT PTE values */
struct xe_bo *bo;
/** @entries: leaf page tables, exist only for root/non-leaf */
struct xe_lmtt_pt *entries[];
};
/**
* struct xe_lmtt_ops - Local Memory Translation Table Operations
*
* Provides abstraction of the LMTT variants.
*/
struct xe_lmtt_ops {
/* private: */
unsigned int (*lmtt_root_pd_level)(void);
unsigned int (*lmtt_pte_num)(unsigned int level);
unsigned int (*lmtt_pte_size)(unsigned int level);
unsigned int (*lmtt_pte_shift)(unsigned int level);
unsigned int (*lmtt_pte_index)(u64 addr, unsigned int level);
u64 (*lmtt_pte_encode)(unsigned long offset, unsigned int level);
};
extern const struct xe_lmtt_ops lmtt_2l_ops;
extern const struct xe_lmtt_ops lmtt_ml_ops;
#endif
Annotation
- Immediate include surface: `linux/types.h`.
- Detected declarations: `struct xe_bo`, `struct xe_lmtt`, `struct xe_lmtt_pt`, `struct xe_lmtt_ops`, `struct xe_lmtt`, `struct xe_lmtt_pt`, `struct xe_lmtt_ops`.
- Atlas domain: Driver Families / drivers/gpu.
- 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.