Lines Matching full:bits
47 const unsigned long __iomem *src, unsigned src_idx, int bits, in bitcpy() argument
58 memmove((char *)dst + ((dst_idx & (bits - 1))) / 8, in bitcpy()
59 (char *)src + ((src_idx & (bits - 1))) / 8, n / 8); in bitcpy()
64 last = ~fb_shifted_pixels_mask_long(p, (dst_idx+n) % bits, bswapmask); in bitcpy()
69 if (dst_idx+n <= bits) { in bitcpy()
77 // Leading bits in bitcpy()
82 n -= bits - dst_idx; in bitcpy()
86 n /= bits; in bitcpy()
101 // Trailing bits in bitcpy()
110 int const left = shift & (bits - 1); in bitcpy()
111 int const right = -shift & (bits - 1); in bitcpy()
113 if (dst_idx+n <= bits) { in bitcpy()
122 } else if (src_idx+n <= bits) { in bitcpy()
142 // Leading bits in bitcpy()
147 n -= bits - dst_idx; in bitcpy()
154 n -= bits - dst_idx; in bitcpy()
162 m = n % bits; in bitcpy()
163 n /= bits; in bitcpy()
188 // Trailing bits in bitcpy()
190 if (m <= bits - right) { in bitcpy()
213 const unsigned long __iomem *src, unsigned src_idx, int bits, in bitcpy_rev() argument
224 memmove((char *)dst + ((dst_idx & (bits - 1))) / 8, in bitcpy_rev()
225 (char *)src + ((src_idx & (bits - 1))) / 8, n / 8); in bitcpy_rev()
229 dst += (dst_idx + n - 1) / bits; in bitcpy_rev()
230 src += (src_idx + n - 1) / bits; in bitcpy_rev()
231 dst_idx = (dst_idx + n - 1) % bits; in bitcpy_rev()
232 src_idx = (src_idx + n - 1) % bits; in bitcpy_rev()
236 first = ~fb_shifted_pixels_mask_long(p, (dst_idx + 1) % bits, bswapmask); in bitcpy_rev()
237 last = fb_shifted_pixels_mask_long(p, (bits + dst_idx + 1 - n) % bits, bswapmask); in bitcpy_rev()
250 // Leading bits in bitcpy_rev()
259 n /= bits; in bitcpy_rev()
274 // Trailing bits in bitcpy_rev()
283 int const left = shift & (bits-1); in bitcpy_rev()
284 int const right = -shift & (bits-1); in bitcpy_rev()
315 // Leading bits in bitcpy_rev()
336 m = n % bits; in bitcpy_rev()
337 n /= bits; in bitcpy_rev()
362 // Trailing bits in bitcpy_rev()
364 if (m <= bits - left) { in bitcpy_rev()
387 int bits = BITS_PER_LONG, bytes = bits >> 3; in cfb_copyarea() local
417 bitcpy_rev(p, base + (dst_idx / bits), dst_idx % bits, in cfb_copyarea()
418 base + (src_idx / bits), src_idx % bits, bits, in cfb_copyarea()
423 bitcpy(p, base + (dst_idx / bits), dst_idx % bits, in cfb_copyarea()
424 base + (src_idx / bits), src_idx % bits, bits, in cfb_copyarea()