Lines Matching refs:off
88 unsigned off = shift/BITS_PER_LONG, rem = shift % BITS_PER_LONG; in __bitmap_shift_right() local
90 for (k = 0; off + k < lim; ++k) { in __bitmap_shift_right()
97 if (!rem || off + k + 1 >= lim) in __bitmap_shift_right()
100 upper = src[off + k + 1]; in __bitmap_shift_right()
101 if (off + k + 1 == lim - 1) in __bitmap_shift_right()
105 lower = src[off + k]; in __bitmap_shift_right()
106 if (off + k == lim - 1) in __bitmap_shift_right()
111 if (off) in __bitmap_shift_right()
112 memset(&dst[lim - off], 0, off*sizeof(unsigned long)); in __bitmap_shift_right()
134 unsigned int off = shift/BITS_PER_LONG, rem = shift % BITS_PER_LONG; in __bitmap_shift_left() local
135 for (k = lim - off - 1; k >= 0; --k) { in __bitmap_shift_left()
147 dst[k + off] = lower | upper; in __bitmap_shift_left()
149 if (off) in __bitmap_shift_left()
150 memset(dst, 0, off*sizeof(unsigned long)); in __bitmap_shift_left()