drivers/crypto/nx/nx-common-powernv.c
Source file repositories/reference/linux-study-clean/drivers/crypto/nx/nx-common-powernv.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/crypto/nx/nx-common-powernv.c- Extension
.c- Size
- 29205 bytes
- Lines
- 1134
- Domain
- Driver Families
- Bucket
- drivers/crypto
- Inferred role
- Driver Families: exported/initcall integration point
- Status
- integration 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.
- Exports symbols or registers init work; inspect boot/module ordering and who consumes the exported contract.
- 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
nx-842.hcrypto/internal/scompress.hlinux/timer.hasm/prom.hasm/icswx.hasm/vas.hasm/reg.hasm/opal-api.hasm/opal.h
Detected Declarations
struct nx842_workmemstruct nx_coprocfunction setup_indirect_ddefunction setup_direct_ddefunction setup_ddlfunction be32_to_cpufunction nx842_config_crbfunction nx842_exec_icswxfunction nx842_exec_vasfunction nx842_powernv_compressfunction nx842_powernv_decompressfunction nx_add_coprocs_listfunction nx_open_percpu_txwinsfunction for_each_possible_cpufunction list_for_each_entry_safefunction nx_set_ctfunction vas_cfg_coproc_infofunction nx_coproc_initfunction find_nx_device_treefunction nx_powernv_probe_vasfunction for_each_child_of_node_scopedfunction nx842_powernv_probefunction nx_delete_coprocsfunction list_for_each_entry_safefunction nx_compress_powernv_initfunction for_each_compatible_nodefunction nx_compress_powernv_exitmodule init nx_compress_powernv_init
Annotated Snippet
module_init(nx_compress_powernv_init);
static void __exit nx_compress_powernv_exit(void)
{
/*
* GZIP engine is supported only in power9 or later and nx842_ct
* is used on power8 (icswx).
* VAS API for NX GZIP is registered during init for user space
* use. So delete this API use for GZIP engine.
*/
if (!nx842_ct)
vas_unregister_api_powernv();
crypto_unregister_scomp(&nx842_powernv_alg);
nx_delete_coprocs();
}
module_exit(nx_compress_powernv_exit);
Annotation
- Immediate include surface: `nx-842.h`, `crypto/internal/scompress.h`, `linux/timer.h`, `asm/prom.h`, `asm/icswx.h`, `asm/vas.h`, `asm/reg.h`, `asm/opal-api.h`.
- Detected declarations: `struct nx842_workmem`, `struct nx_coproc`, `function setup_indirect_dde`, `function setup_direct_dde`, `function setup_ddl`, `function be32_to_cpu`, `function nx842_config_crb`, `function nx842_exec_icswx`, `function nx842_exec_vas`, `function nx842_powernv_compress`.
- Atlas domain: Driver Families / drivers/crypto.
- Implementation status: integration 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.