Lines Matching refs:bits
29 const unsigned long *src, unsigned src_idx, int bits, unsigned n) in bitcpy() argument
36 last = ~(FB_SHIFT_HIGH(p, ~0UL, (dst_idx+n) % bits)); in bitcpy()
40 if (dst_idx+n <= bits) { in bitcpy()
52 n -= bits - dst_idx; in bitcpy()
56 n /= bits; in bitcpy()
80 right = shift & (bits - 1); in bitcpy()
81 left = -shift & (bits - 1); in bitcpy()
83 if (dst_idx+n <= bits) { in bitcpy()
90 } else if (src_idx+n <= bits) { in bitcpy()
114 n -= bits - dst_idx; in bitcpy()
122 n -= bits - dst_idx; in bitcpy()
126 m = n % bits; in bitcpy()
127 n /= bits; in bitcpy()
151 if (m <= bits - right) { in bitcpy()
171 const unsigned long *src, unsigned src_idx, unsigned bits, in bitcpy_rev() argument
177 dst += (dst_idx + n - 1) / bits; in bitcpy_rev()
178 src += (src_idx + n - 1) / bits; in bitcpy_rev()
179 dst_idx = (dst_idx + n - 1) % bits; in bitcpy_rev()
180 src_idx = (src_idx + n - 1) % bits; in bitcpy_rev()
184 first = ~FB_SHIFT_HIGH(p, ~0UL, (dst_idx + 1) % bits); in bitcpy_rev()
185 last = FB_SHIFT_HIGH(p, ~0UL, (bits + dst_idx + 1 - n) % bits); in bitcpy_rev()
206 n /= bits; in bitcpy_rev()
227 int const left = shift & (bits-1); in bitcpy_rev()
228 int const right = -shift & (bits-1); in bitcpy_rev()
276 m = n % bits; in bitcpy_rev()
277 n /= bits; in bitcpy_rev()
301 if (m <= bits - left) { in bitcpy_rev()
321 int bits = BITS_PER_LONG, bytes = bits >> 3; in sys_copyarea() local
350 bitcpy_rev(p, base + (dst_idx / bits), dst_idx % bits, in sys_copyarea()
351 base + (src_idx / bits), src_idx % bits, bits, in sys_copyarea()
356 bitcpy(p, base + (dst_idx / bits), dst_idx % bits, in sys_copyarea()
357 base + (src_idx / bits), src_idx % bits, bits, in sys_copyarea()