Lines Matching refs:mask
715 * Calculate a mask to mimic what would be ffs_from()
733 pktsched_bitmap_t mask = mask_from(qif->qif_bitmaps[ER],
737 if (mask) {
738 next = qfq_ffs(qif, mask);
748 * qif->qif_bitmaps[dst] |= qif->qif_bitmaps[src] & mask;
749 * qif->qif_bitmaps[src] &= ~mask;
753 qfq_move_groups(struct qfq_if *qif, pktsched_bitmap_t mask, int src, int dst)
755 qif->qif_bitmaps[dst] |= qif->qif_bitmaps[src] & mask;
756 qif->qif_bitmaps[src] &= ~mask;
762 pktsched_bitmap_t mask = mask_from(qif->qif_bitmaps[ER], index + 1);
765 if (mask) {
766 next = qfq_ffs(qif, mask);
771 mask = (1UL << index) - 1;
772 qfq_move_groups(qif, mask, EB, ER);
773 qfq_move_groups(qif, mask, IB, IR);
788 pktsched_bitmap_t mask, vslot, old_vslot;
794 mask = (2UL << (__fls(vslot ^ old_vslot))) - 1;
795 qfq_move_groups(qif, mask, IR, ER);
796 qfq_move_groups(qif, mask, IB, EB);
861 * move the objects. The mask of occupied slots must be shifted
1042 pktsched_bitmap_t mask;
1051 mask = mask_from(qif->qif_bitmaps[ER], cl->cl_grp->qfg_index);
1052 if (mask) {
1053 struct qfq_group *next = qfq_ffs(qif, mask);
1210 pktsched_bitmap_t mask;
1243 mask = qif->qif_bitmaps[ER] &
1245 if (mask)
1246 mask = ~((1UL << __fls(mask)) - 1);
1248 mask = (pktsched_bitmap_t)~0UL;
1249 qfq_move_groups(qif, mask, EB, ER);
1250 qfq_move_groups(qif, mask, IB, IR);
1636 qfq_dump_groups(struct qfq_if *qif, u_int32_t mask)
1643 if (0 == (mask & (1 << i)))
1653 g->qfg_S, g->qfg_F, mask & (1 << i) ? '1' : '0');