Lines Matching refs:off
96 unsigned off = shift/BITS_PER_LONG, rem = shift % BITS_PER_LONG; in __bitmap_shift_right() local
98 for (k = 0; off + k < lim; ++k) { in __bitmap_shift_right()
105 if (!rem || off + k + 1 >= lim) in __bitmap_shift_right()
108 upper = src[off + k + 1]; in __bitmap_shift_right()
109 if (off + k + 1 == lim - 1) in __bitmap_shift_right()
113 lower = src[off + k]; in __bitmap_shift_right()
114 if (off + k == lim - 1) in __bitmap_shift_right()
119 if (off) in __bitmap_shift_right()
120 memset(&dst[lim - off], 0, off*sizeof(unsigned long)); in __bitmap_shift_right()
142 unsigned int off = shift/BITS_PER_LONG, rem = shift % BITS_PER_LONG; in __bitmap_shift_left() local
143 for (k = lim - off - 1; k >= 0; --k) { in __bitmap_shift_left()
155 dst[k + off] = lower | upper; in __bitmap_shift_left()
157 if (off) in __bitmap_shift_left()
158 memset(dst, 0, off*sizeof(unsigned long)); in __bitmap_shift_left()