Lines Matching refs:bmap
60 struct otx_cpt_bitmap bmap = { {0} }; in get_cores_bmap() local
67 return bmap; in get_cores_bmap()
72 bitmap_or(bmap.bits, bmap.bits, in get_cores_bmap()
73 eng_grp->engs[i].bmap, in get_cores_bmap()
75 bmap.size = eng_grp->g->engs_num; in get_cores_bmap()
83 return bmap; in get_cores_bmap()
179 struct otx_cpt_bitmap bmap; in cpt_set_ucode_base() local
182 bmap = get_cores_bmap(&cpt->pdev->dev, eng_grp); in cpt_set_ucode_base()
183 if (!bmap.size) in cpt_set_ucode_base()
196 for_each_set_bit(i, bmap.bits, bmap.size) in cpt_set_ucode_base()
207 struct otx_cpt_bitmap bmap = { {0} }; in cpt_detach_and_disable_cores() local
212 bmap = get_cores_bmap(&cpt->pdev->dev, eng_grp); in cpt_detach_and_disable_cores()
213 if (!bmap.size) in cpt_detach_and_disable_cores()
218 for_each_set_bit(i, bmap.bits, bmap.size) { in cpt_detach_and_disable_cores()
234 for_each_set_bit(i, bmap.bits, bmap.size) in cpt_detach_and_disable_cores()
243 for_each_set_bit(i, bmap.bits, bmap.size) in cpt_detach_and_disable_cores()
255 struct otx_cpt_bitmap bmap; in cpt_attach_and_enable_cores() local
259 bmap = get_cores_bmap(&cpt->pdev->dev, eng_grp); in cpt_attach_and_enable_cores()
260 if (!bmap.size) in cpt_attach_and_enable_cores()
265 for_each_set_bit(i, bmap.bits, bmap.size) { in cpt_attach_and_enable_cores()
275 for_each_set_bit(i, bmap.bits, bmap.size) in cpt_attach_and_enable_cores()
585 struct otx_cpt_bitmap bmap; in cpt_print_engines_mask() local
588 bmap = get_cores_bmap(dev, eng_grp); in cpt_print_engines_mask()
589 if (!bmap.size) { in cpt_print_engines_mask()
593 bitmap_to_arr32(mask, bmap.bits, bmap.size); in cpt_print_engines_mask()
636 bitmap_to_arr32(mask, engs->bmap, in print_dbg_info()
713 bitmap_zero(grp->engs[i].bmap, grp->g->engs_num); in release_engines()
1112 bitmap_copy(engs->bmap, tmp_bmap.bits, eng_grp->g->engs_num); in eng_grp_update_masks()
1130 bitmap_copy(tmp_bmap.bits, mirrored_engs->bmap, in eng_grp_update_masks()
1133 bit = find_first_bit(mirrored_engs->bmap, in eng_grp_update_masks()
1137 bitmap_or(engs->bmap, engs->bmap, tmp_bmap.bits, in eng_grp_update_masks()
1614 kfree(grp->engs[j].bmap); in otx_cpt_cleanup_eng_grps()
1615 grp->engs[j].bmap = NULL; in otx_cpt_cleanup_eng_grps()
1651 grp->engs[j].bmap = in otx_cpt_init_eng_grps()
1654 if (!grp->engs[j].bmap) { in otx_cpt_init_eng_grps()