Lines Matching refs:off
87 unsigned off = shift/BITS_PER_LONG, rem = shift % BITS_PER_LONG; in __bitmap_shift_right() local
89 for (k = 0; off + k < lim; ++k) { in __bitmap_shift_right()
96 if (!rem || off + k + 1 >= lim) in __bitmap_shift_right()
99 upper = src[off + k + 1]; in __bitmap_shift_right()
100 if (off + k + 1 == lim - 1) in __bitmap_shift_right()
104 lower = src[off + k]; in __bitmap_shift_right()
105 if (off + k == lim - 1) in __bitmap_shift_right()
110 if (off) in __bitmap_shift_right()
111 memset(&dst[lim - off], 0, off*sizeof(unsigned long)); in __bitmap_shift_right()
133 unsigned int off = shift/BITS_PER_LONG, rem = shift % BITS_PER_LONG; in __bitmap_shift_left() local
134 for (k = lim - off - 1; k >= 0; --k) { in __bitmap_shift_left()
146 dst[k + off] = lower | upper; in __bitmap_shift_left()
148 if (off) in __bitmap_shift_left()
149 memset(dst, 0, off*sizeof(unsigned long)); in __bitmap_shift_left()