struct otx_cpt_ucode {
u8 ver_str[OTX_CPT_UCODE_VER_STR_SZ];/* *ucodeversioninreadableformat
*/ struct otx_cpt_ucode_ver_num ver_num;/* ucode version number */ char filename[OTX_CPT_UCODE_NAME_LENGTH]; /* ucode filename */
dma_addr_t dma; /* phys address of ucode image */
dma_addr_t align_dma; /* aligned phys address of ucode image */ void *va; /* virt address of ucode image */ void *align_va; /* aligned virt address of ucode image */
u32 size; /* ucode image size */ int type; /* ucode image type SE or AE */
};
struct tar_ucode_info_t { struct list_head list; struct otx_cpt_ucode ucode;/* microcode information */ const u8 *ucode_ptr; /* pointer to microcode in tar archive */
};
/* Maximum and current number of engines available for all engine groups */ struct otx_cpt_engs_available { int max_se_cnt; int max_ae_cnt; int se_cnt; int ae_cnt;
};
/* Engines reserved to an engine group */ struct otx_cpt_engs_rsvd { int type; /* engine type */ int count; /* number of engines attached */ int offset; /* constant offset of engine type in the bitmap */ unsignedlong *bmap; /* attached engines bitmap */ struct otx_cpt_ucode *ucode; /* ucode used by these engines */
};
struct otx_cpt_mirror_info { int is_ena; /* *ismirroringenabled,itissetonlyforengine *groupwhichmirrorsanotherenginegroup
*/ int idx; /* *indexofenginegroupwhichismirroredbythis *group,setonlyforenginegroupwhichmirrors *anothergroup
*/ int ref_count; /* *numberoftimesthisenginegroupismirroredby *othergroups,thisissetonlyforenginegroup *whichismirroredbyothergroup(s)
*/
};
struct otx_cpt_eng_grp_info { struct otx_cpt_eng_grps *g; /* pointer to engine_groups structure */ struct device_attribute info_attr; /* group info entry attr */ /* engines attached */ struct otx_cpt_engs_rsvd engs[OTX_CPT_MAX_ETYPES_PER_GRP]; /* Microcode information */ struct otx_cpt_ucode ucode[OTX_CPT_MAX_ETYPES_PER_GRP]; /* sysfs info entry name */ char sysfs_info_name[OTX_CPT_UCODE_NAME_LENGTH]; /* engine group mirroring information */ struct otx_cpt_mirror_info mirror; int idx; /* engine group index */ bool is_enabled; /* *isenginegroupenabled,enginegroupisenabled *whenithasenginesattachedanducodeloaded
*/
};
struct otx_cpt_eng_grps { struct otx_cpt_eng_grp_info grp[OTX_CPT_MAX_ENGINE_GROUPS]; struct device_attribute ucode_load_attr;/* ucode load attr */ struct otx_cpt_engs_available avail; struct mutex lock; void *obj; int engs_num; /* total number of engines supported */ int eng_types_supported; /* engine types supported SE, AE */
u8 eng_ref_cnt[OTX_CPT_MAX_ENGINES];/* engines reference count */ bool is_ucode_load_created; /* is ucode_load sysfs entry created */ bool is_first_try; /* is this first try to create kcrypto engine grp */ bool is_rdonly; /* do engine groups configuration can be modified */
};
int otx_cpt_init_eng_grps(struct pci_dev *pdev, struct otx_cpt_eng_grps *eng_grps, int pf_type); void otx_cpt_cleanup_eng_grps(struct pci_dev *pdev, struct otx_cpt_eng_grps *eng_grps); int otx_cpt_try_create_default_eng_grps(struct pci_dev *pdev, struct otx_cpt_eng_grps *eng_grps, int pf_type); void otx_cpt_set_eng_grps_is_rdonly(struct otx_cpt_eng_grps *eng_grps, bool is_rdonly); int otx_cpt_uc_supports_eng_type(struct otx_cpt_ucode *ucode, int eng_type);
#endif/* __OTX_CPTPF_UCODE_H */
Messung V0.5 in Prozent
¤ Dauer der Verarbeitung: 0.12 Sekunden
(vorverarbeitet am 2026-09-28)
¤
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.