Home
last modified time | relevance | path

Searched refs:eng_grps (Results 1 – 11 of 11) sorted by relevance

/linux-6.12.1/drivers/crypto/marvell/octeontx2/
Dotx2_cptpf_ucode.c819 struct otx2_cpt_eng_grps *eng_grps = grp->g; in find_mirrored_eng_grp() local
823 if (!eng_grps->grp[i].is_enabled) in find_mirrored_eng_grp()
825 if (eng_grps->grp[i].ucode[0].type && in find_mirrored_eng_grp()
826 eng_grps->grp[i].ucode[1].type) in find_mirrored_eng_grp()
830 if (!strncasecmp(eng_grps->grp[i].ucode[0].ver_str, in find_mirrored_eng_grp()
833 return &eng_grps->grp[i]; in find_mirrored_eng_grp()
840 struct otx2_cpt_eng_grps *eng_grps) in find_unused_eng_grp() argument
845 if (!eng_grps->grp[i].is_enabled) in find_unused_eng_grp()
846 return &eng_grps->grp[i]; in find_unused_eng_grp()
979 struct otx2_cpt_eng_grps *eng_grps, in create_engine_group() argument
[all …]
Dotx2_cptpf_ucode.h157 struct otx2_cpt_eng_grps *eng_grps);
159 struct otx2_cpt_eng_grps *eng_grps);
161 struct otx2_cpt_eng_grps *eng_grps);
163 int otx2_cpt_get_eng_grp(struct otx2_cpt_eng_grps *eng_grps, int eng_type);
Dotx2_cpt_devlink.c58 if (cptpf->enabled_vfs != 0 || cptpf->eng_grps.is_grps_created) in otx2_cpt_dl_t106_mode_set()
123 err = otx2_cpt_dl_info_firmware_version_put(req, cptpf->eng_grps.grp, in otx2_cpt_devlink_info_get()
128 err = otx2_cpt_dl_info_firmware_version_put(req, cptpf->eng_grps.grp, in otx2_cpt_devlink_info_get()
133 return otx2_cpt_dl_info_firmware_version_put(req, cptpf->eng_grps.grp, in otx2_cpt_devlink_info_get()
Dotx2_cptpf_main.c594 struct otx2_cpt_eng_grps *eng_grps = &cptpf->eng_grps; in cptpf_get_rid() local
598 eng_grps->rid = pdev->revision; in cptpf_get_rid()
605 eng_grps->rid = CPT_UC_RID_CN10K_A; in cptpf_get_rid()
607 eng_grps->rid = CPT_UC_RID_CN10K_B; in cptpf_get_rid()
635 cptpf->eng_grps.avail.max_se_cnt = af_cnsts1.s.se; in cptpf_device_init()
636 cptpf->eng_grps.avail.max_ie_cnt = af_cnsts1.s.ie; in cptpf_device_init()
637 cptpf->eng_grps.avail.max_ae_cnt = af_cnsts1.s.ae; in cptpf_device_init()
687 ret = otx2_cpt_create_eng_grps(cptpf, &cptpf->eng_grps); in cptpf_sriov_enable()
795 err = otx2_cpt_init_eng_grps(pdev, &cptpf->eng_grps); in otx2_cptpf_probe()
812 otx2_cpt_cleanup_eng_grps(pdev, &cptpf->eng_grps); in otx2_cptpf_probe()
[all …]
Dotx2_cptpf.h32 struct otx2_cpt_eng_grps eng_grps;/* Engine groups information */ member
Dotx2_cptpf_mbox.c81 rsp->cpt_revision = cptpf->eng_grps.rid; in handle_msg_get_caps()
104 rsp->eng_grp_num = otx2_cpt_get_eng_grp(&cptpf->eng_grps, in handle_msg_get_eng_grp_num()
260 egrp = otx2_cpt_get_eng_grp(&cptpf->eng_grps, OTX2_CPT_IE_TYPES); in handle_msg_rx_inline_ipsec_lf_cfg()
/linux-6.12.1/drivers/crypto/marvell/octeontx/
Dotx_cptpf_ucode.c91 static int dev_supports_eng_type(struct otx_cpt_eng_grps *eng_grps, in dev_supports_eng_type() argument
94 return is_eng_type(eng_grps->eng_types_supported, eng_type); in dev_supports_eng_type()
599 struct otx_cpt_eng_grps *eng_grps) in print_dbg_info() argument
611 eng_grps->avail.max_se_cnt, eng_grps->avail.max_ae_cnt); in print_dbg_info()
612 pr_debug("free SE %d\n", eng_grps->avail.se_cnt); in print_dbg_info()
613 pr_debug("free AE %d\n", eng_grps->avail.ae_cnt); in print_dbg_info()
616 grp = &eng_grps->grp[i]; in print_dbg_info()
620 mirrored_grp = &eng_grps->grp[grp->mirror.idx]; in print_dbg_info()
637 eng_grps->engs_num); in print_dbg_info()
1037 struct otx_cpt_eng_grps *eng_grps = grp->g; in find_mirrored_eng_grp() local
[all …]
Dotx_cptpf_main.c47 cpt->eng_grps.avail.max_se_cnt = pf_cnsts.s.se; in otx_cpt_find_max_enabled_cores()
48 cpt->eng_grps.avail.max_ae_cnt = pf_cnsts.s.ae; in otx_cpt_find_max_enabled_cores()
96 (cpt->eng_grps.avail.max_se_cnt == 0)) { in otx_cpt_device_init()
99 (cpt->eng_grps.avail.max_ae_cnt == 0)) { in otx_cpt_device_init()
164 &cpt->eng_grps, in otx_cpt_sriov_configure()
175 otx_cpt_set_eng_grps_is_rdonly(&cpt->eng_grps, true); in otx_cpt_sriov_configure()
180 otx_cpt_set_eng_grps_is_rdonly(&cpt->eng_grps, false); in otx_cpt_sriov_configure()
240 err = otx_cpt_init_eng_grps(pdev, &cpt->eng_grps, cpt->pf_type); in otx_cpt_probe()
270 otx_cpt_cleanup_eng_grps(pdev, &cpt->eng_grps); in otx_cpt_remove()
Dotx_cptpf_ucode.h168 struct otx_cpt_eng_grps *eng_grps, int pf_type);
170 struct otx_cpt_eng_grps *eng_grps);
172 struct otx_cpt_eng_grps *eng_grps,
174 void otx_cpt_set_eng_grps_is_rdonly(struct otx_cpt_eng_grps *eng_grps,
Dotx_cptpf.h24 struct otx_cpt_eng_grps eng_grps;/* Engine groups information */ member
Dotx_cptpf_mbox.c154 eng_grp = &cpt->eng_grps.grp[grp]; in otx_cpt_bind_vq_to_grp()