Lines Matching refs:bmap

28 	struct otx2_cpt_bitmap bmap = { {0} };  in get_cores_bmap()  local
35 return bmap; in get_cores_bmap()
40 bitmap_or(bmap.bits, bmap.bits, in get_cores_bmap()
41 eng_grp->engs[i].bmap, in get_cores_bmap()
43 bmap.size = eng_grp->g->engs_num; in get_cores_bmap()
51 return bmap; in get_cores_bmap()
190 for_each_set_bit(bit, engs->bmap, eng_grp->g->engs_num) in cptx_set_ucode_base()
216 struct otx2_cpt_bitmap bmap, in cptx_detach_and_disable_cores() argument
224 for_each_set_bit(i, bmap.bits, bmap.size) { in cptx_detach_and_disable_cores()
250 for_each_set_bit(i, bmap.bits, bmap.size) { in cptx_detach_and_disable_cores()
266 for_each_set_bit(i, bmap.bits, bmap.size) { in cptx_detach_and_disable_cores()
284 struct otx2_cpt_bitmap bmap; in cpt_detach_and_disable_cores() local
287 bmap = get_cores_bmap(&cptpf->pdev->dev, eng_grp); in cpt_detach_and_disable_cores()
288 if (!bmap.size) in cpt_detach_and_disable_cores()
292 ret = cptx_detach_and_disable_cores(eng_grp, cptpf, bmap, in cpt_detach_and_disable_cores()
297 return cptx_detach_and_disable_cores(eng_grp, cptpf, bmap, in cpt_detach_and_disable_cores()
303 struct otx2_cpt_bitmap bmap, in cptx_attach_and_enable_cores() argument
310 for_each_set_bit(i, bmap.bits, bmap.size) { in cptx_attach_and_enable_cores()
330 for_each_set_bit(i, bmap.bits, bmap.size) { in cptx_attach_and_enable_cores()
344 struct otx2_cpt_bitmap bmap; in cpt_attach_and_enable_cores() local
347 bmap = get_cores_bmap(&cptpf->pdev->dev, eng_grp); in cpt_attach_and_enable_cores()
348 if (!bmap.size) in cpt_attach_and_enable_cores()
352 ret = cptx_attach_and_enable_cores(eng_grp, cptpf, bmap, in cpt_attach_and_enable_cores()
357 return cptx_attach_and_enable_cores(eng_grp, cptpf, bmap, BLKADDR_CPT0); in cpt_attach_and_enable_cores()
573 bitmap_zero(grp->engs[i].bmap, grp->g->engs_num); in release_engines()
894 bitmap_copy(engs->bmap, tmp_bmap.bits, eng_grp->g->engs_num); in eng_grp_update_masks()
912 bitmap_copy(tmp_bmap.bits, mirrored_engs->bmap, in eng_grp_update_masks()
915 bit = find_first_bit(mirrored_engs->bmap, in eng_grp_update_masks()
919 bitmap_or(engs->bmap, engs->bmap, tmp_bmap.bits, in eng_grp_update_masks()
1294 kfree(grp->engs[j].bmap); in otx2_cpt_cleanup_eng_grps()
1295 grp->engs[j].bmap = NULL; in otx2_cpt_cleanup_eng_grps()
1328 grp->engs[j].bmap = in otx2_cpt_init_eng_grps()
1331 if (!grp->engs[j].bmap) { in otx2_cpt_init_eng_grps()