Lines Matching refs:rep
418 int rep; in crush_choose_firstn() local
435 for (rep = outpos; rep < numrep && count > 0 ; rep++) { in crush_choose_firstn()
448 r = rep + parent_r; in crush_choose_firstn()
594 int rep; in crush_choose_indep() local
606 for (rep = outpos; rep < endpos; rep++) { in crush_choose_indep()
607 out[rep] = CRUSH_ITEM_UNDEF; in crush_choose_indep()
609 out2[rep] = CRUSH_ITEM_UNDEF; in crush_choose_indep()
613 for (rep = outpos; rep < endpos; rep++) { in crush_choose_indep()
614 if (out[rep] != CRUSH_ITEM_UNDEF) in crush_choose_indep()
629 r = rep + parent_r; in crush_choose_indep()
649 out[rep] = CRUSH_ITEM_NONE; in crush_choose_indep()
651 out2[rep] = CRUSH_ITEM_NONE; in crush_choose_indep()
668 out[rep] = CRUSH_ITEM_NONE; in crush_choose_indep()
670 out2[rep] = in crush_choose_indep()
696 out2, rep, in crush_choose_indep()
699 if (out2[rep] == CRUSH_ITEM_NONE) { in crush_choose_indep()
705 out2[rep] = item; in crush_choose_indep()
715 out[rep] = item; in crush_choose_indep()
721 for (rep = outpos; rep < endpos; rep++) { in crush_choose_indep()
722 if (out[rep] == CRUSH_ITEM_UNDEF) { in crush_choose_indep()
723 out[rep] = CRUSH_ITEM_NONE; in crush_choose_indep()
725 if (out2 && out2[rep] == CRUSH_ITEM_UNDEF) { in crush_choose_indep()
726 out2[rep] = CRUSH_ITEM_NONE; in crush_choose_indep()