Lines Matching defs:relmap
930 * @relmap: bitmap relative to which translated
934 * n-th bit of @relmap is set, the m-th bit of @orig is set, and
935 * the n-th bit of @relmap is also the m-th _set_ bit of @relmap.
940 * using the map { <n, m> | the n-th bit of @relmap is the
941 * m-th set bit of @relmap }.
944 * weight of (number of set bits in) @relmap are mapped nowhere.
954 * Let's say @relmap has bits 30-39 set, and @orig has bits
960 * that is turned on in @relmap. Since bit 0 was off in the
965 * is the second bit that is turned on in @relmap. The second
966 * bit in @relmap that was turned on in the above example was
971 * set in @relmap, and the 4th, 6th, 8th and 10th bits of
976 * turned on in @relmap. In the above example, there were
977 * only ten bits turned on in @relmap (30..39), so that bit
981 * Let's say @relmap has these ten bits set::
994 * bitmap_fold(tmp, orig, bitmap_weight(relmap, bits), bits);
995 * bitmap_onto(dst, tmp, relmap, bits);
1001 * (the weight of @relmap):
1023 * If either of @orig or @relmap is empty (no set bits), then @dst
1027 * m where m >= W, (where W is the weight of @relmap) then @dst will
1033 const unsigned long *relmap, unsigned int bits)
1044 * for (m = 0; m < bitmap_weight(relmap, bits); m++) {
1052 for_each_set_bit(n, relmap, bits) {
1053 /* m == bitmap_pos_to_ord(relmap, n, bits) */