Lines Matching full:grp
558 struct otx2_cpt_eng_grp_info *grp) in release_engines() argument
563 if (!grp->engs[i].type) in release_engines()
566 if (grp->engs[i].count > 0) { in release_engines()
567 ret = update_engines_avail_count(dev, &grp->g->avail, in release_engines()
568 &grp->engs[i], in release_engines()
569 grp->engs[i].count); in release_engines()
574 grp->engs[i].type = 0; in release_engines()
575 grp->engs[i].count = 0; in release_engines()
576 grp->engs[i].offset = 0; in release_engines()
577 grp->engs[i].ucode = NULL; in release_engines()
578 bitmap_zero(grp->engs[i].bmap, grp->g->engs_num); in release_engines()
584 struct otx2_cpt_eng_grp_info *grp, in do_reserve_engines() argument
591 if (!grp->engs[i].type) { in do_reserve_engines()
592 engs = &grp->engs[i]; in do_reserve_engines()
603 ret = update_engines_offset(dev, &grp->g->avail, engs); in do_reserve_engines()
608 ret = update_engines_avail_count(dev, &grp->g->avail, engs, in do_reserve_engines()
618 struct otx2_cpt_eng_grp_info *grp, in check_engines_availability() argument
625 avail_cnt = grp->g->avail.se_cnt; in check_engines_availability()
629 avail_cnt = grp->g->avail.ie_cnt; in check_engines_availability()
633 avail_cnt = grp->g->avail.ae_cnt; in check_engines_availability()
652 struct otx2_cpt_eng_grp_info *grp, in reserve_engines() argument
659 ret = check_engines_availability(dev, grp, &req_engs[i]); in reserve_engines()
666 ret = do_reserve_engines(dev, grp, &req_engs[i]); in reserve_engines()
778 src_grp = &dst_grp->g->grp[dst_grp->mirror.idx]; in remove_eng_grp_mirroring()
817 struct otx2_cpt_eng_grp_info *grp) in find_mirrored_eng_grp() argument
819 struct otx2_cpt_eng_grps *eng_grps = grp->g; in find_mirrored_eng_grp()
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()
828 if (grp->idx == i) in find_mirrored_eng_grp()
830 if (!strncasecmp(eng_grps->grp[i].ucode[0].ver_str, in find_mirrored_eng_grp()
831 grp->ucode[0].ver_str, in find_mirrored_eng_grp()
833 return &eng_grps->grp[i]; in find_mirrored_eng_grp()
845 if (!eng_grps->grp[i].is_enabled) in find_unused_eng_grp()
846 return &eng_grps->grp[i]; in find_unused_eng_grp()
911 &eng_grp->g->grp[eng_grp->mirror.idx], in eng_grp_update_masks()
964 ucode = &eng_grp->g->grp[eng_grp->mirror.idx].ucode[0]; in update_ucode_ptrs()
1075 if (eng_grps->grp[i].mirror.is_ena) in delete_engine_grps()
1076 delete_engine_group(&pdev->dev, &eng_grps->grp[i]); in delete_engine_grps()
1080 delete_engine_group(&pdev->dev, &eng_grps->grp[i]); in delete_engine_grps()
1120 struct otx2_cpt_eng_grp_info *grp; in otx2_cpt_get_eng_grp() local
1124 grp = &eng_grps->grp[i]; in otx2_cpt_get_eng_grp()
1125 if (!grp->is_enabled) in otx2_cpt_get_eng_grp()
1129 if (eng_grp_has_eng_type(grp, eng_type) && in otx2_cpt_get_eng_grp()
1130 !eng_grp_has_eng_type(grp, OTX2_CPT_IE_TYPES)) { in otx2_cpt_get_eng_grp()
1135 if (eng_grp_has_eng_type(grp, eng_type)) { in otx2_cpt_get_eng_grp()
1353 struct otx2_cpt_eng_grp_info *grp; in otx2_cpt_cleanup_eng_grps() local
1360 grp = &eng_grps->grp[i]; in otx2_cpt_cleanup_eng_grps()
1362 kfree(grp->engs[j].bmap); in otx2_cpt_cleanup_eng_grps()
1363 grp->engs[j].bmap = NULL; in otx2_cpt_cleanup_eng_grps()
1372 struct otx2_cpt_eng_grp_info *grp; in otx2_cpt_init_eng_grps() local
1393 grp = &eng_grps->grp[i]; in otx2_cpt_init_eng_grps()
1394 grp->g = eng_grps; in otx2_cpt_init_eng_grps()
1395 grp->idx = i; in otx2_cpt_init_eng_grps()
1398 grp->engs[j].bmap = in otx2_cpt_init_eng_grps()
1401 if (!grp->engs[j].bmap) { in otx2_cpt_init_eng_grps()
1554 iq_cmd.cptr.s.grp = otx2_cpt_get_eng_grp(&cptpf->eng_grps, in otx2_cpt_discover_eng_capabilities()
1763 if (!eng_grps->grp[egrp].is_enabled) { in otx2_cpt_dl_custom_egrp_delete()
1768 ret = delete_engine_group(dev, &eng_grps->grp[egrp]); in otx2_cpt_dl_custom_egrp_delete()
1795 &eng_grp->g->grp[eng_grp->mirror.idx], in get_engs_info()
1824 struct otx2_cpt_eng_grp_info *grp; in otx2_cpt_print_uc_dbg_info() local
1836 grp = &eng_grps->grp[i]; in otx2_cpt_print_uc_dbg_info()
1838 grp->is_enabled ? "enabled" : "disabled"); in otx2_cpt_print_uc_dbg_info()
1839 if (grp->is_enabled) { in otx2_cpt_print_uc_dbg_info()
1840 mirrored_grp = &eng_grps->grp[grp->mirror.idx]; in otx2_cpt_print_uc_dbg_info()
1842 grp->mirror.is_ena ? in otx2_cpt_print_uc_dbg_info()
1844 grp->ucode[0].filename, in otx2_cpt_print_uc_dbg_info()
1845 grp->mirror.is_ena ? in otx2_cpt_print_uc_dbg_info()
1847 grp->ucode[0].ver_str); in otx2_cpt_print_uc_dbg_info()
1848 if (is_2nd_ucode_used(grp)) in otx2_cpt_print_uc_dbg_info()
1850 grp->ucode[1].filename, in otx2_cpt_print_uc_dbg_info()
1851 grp->ucode[1].ver_str); in otx2_cpt_print_uc_dbg_info()
1855 engs = &grp->engs[j]; in otx2_cpt_print_uc_dbg_info()
1859 get_engs_info(grp, engs_info, in otx2_cpt_print_uc_dbg_info()