drivers/crypto/intel/qat/qat_common/adf_mstate_mgr.h
Source file repositories/reference/linux-study-clean/drivers/crypto/intel/qat/qat_common/adf_mstate_mgr.h
File Facts
- System
- Linux kernel
- Corpus path
drivers/crypto/intel/qat/qat_common/adf_mstate_mgr.h- Extension
.h- Size
- 2957 bytes
- Lines
- 90
- Domain
- Driver Families
- Bucket
- drivers/crypto
- 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
- No C-style include directives detected by the generator.
Detected Declarations
struct adf_mstate_mgrstruct adf_mstate_prehstruct adf_mstate_vreginfostruct adf_mstate_sect_h
Annotated Snippet
struct adf_mstate_mgr {
u8 *buf;
u8 *state;
u32 size;
u32 n_sects;
};
struct adf_mstate_preh {
u32 magic;
u32 version;
u16 preh_len;
u16 n_sects;
u32 size;
};
struct adf_mstate_vreginfo {
void *addr;
u32 size;
};
struct adf_mstate_sect_h;
typedef int (*adf_mstate_preamble_checker)(struct adf_mstate_preh *preamble, void *opa);
typedef int (*adf_mstate_populate)(struct adf_mstate_mgr *sub_mgr, u8 *buf,
u32 size, void *opa);
typedef int (*adf_mstate_action)(struct adf_mstate_mgr *sub_mgr, u8 *buf, u32 size,
void *opa);
struct adf_mstate_mgr *adf_mstate_mgr_new(u8 *buf, u32 size);
void adf_mstate_mgr_destroy(struct adf_mstate_mgr *mgr);
void adf_mstate_mgr_init(struct adf_mstate_mgr *mgr, u8 *buf, u32 size);
void adf_mstate_mgr_init_from_parent(struct adf_mstate_mgr *mgr,
struct adf_mstate_mgr *p_mgr);
void adf_mstate_mgr_init_from_psect(struct adf_mstate_mgr *mgr,
struct adf_mstate_sect_h *p_sect);
int adf_mstate_mgr_init_from_remote(struct adf_mstate_mgr *mgr,
u8 *buf, u32 size,
adf_mstate_preamble_checker checker,
void *opaque);
struct adf_mstate_preh *adf_mstate_preamble_add(struct adf_mstate_mgr *mgr);
int adf_mstate_preamble_update(struct adf_mstate_mgr *mgr);
u32 adf_mstate_state_size(struct adf_mstate_mgr *mgr);
u32 adf_mstate_state_size_from_remote(struct adf_mstate_mgr *mgr);
void adf_mstate_sect_update(struct adf_mstate_mgr *p_mgr,
struct adf_mstate_mgr *curr_mgr,
struct adf_mstate_sect_h *sect);
struct adf_mstate_sect_h *adf_mstate_sect_add_vreg(struct adf_mstate_mgr *mgr,
const char *id,
struct adf_mstate_vreginfo *info);
struct adf_mstate_sect_h *adf_mstate_sect_add(struct adf_mstate_mgr *mgr,
const char *id,
adf_mstate_populate populate,
void *opaque);
struct adf_mstate_sect_h *adf_mstate_sect_lookup(struct adf_mstate_mgr *mgr,
const char *id,
adf_mstate_action action,
void *opaque);
#endif
Annotation
- Detected declarations: `struct adf_mstate_mgr`, `struct adf_mstate_preh`, `struct adf_mstate_vreginfo`, `struct adf_mstate_sect_h`.
- Atlas domain: Driver Families / drivers/crypto.
- 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.