Lines Matching defs:dst_idx
46 bitcpy(struct fb_info *p, unsigned long __iomem *dst, unsigned dst_idx,
51 int const shift = dst_idx-src_idx;
58 memmove((char *)dst + ((dst_idx & (bits - 1))) / 8,
63 first = fb_shifted_pixels_mask_long(p, dst_idx, bswapmask);
64 last = ~fb_shifted_pixels_mask_long(p, (dst_idx+n) % bits, bswapmask);
69 if (dst_idx+n <= bits) {
82 n -= bits - dst_idx;
113 if (dst_idx+n <= bits) {
147 n -= bits - dst_idx;
154 n -= bits - dst_idx;
212 bitcpy_rev(struct fb_info *p, unsigned long __iomem *dst, unsigned dst_idx,
224 memmove((char *)dst + ((dst_idx & (bits - 1))) / 8,
229 dst += (dst_idx + n - 1) / bits;
231 dst_idx = (dst_idx + n - 1) % bits;
234 shift = dst_idx-src_idx;
236 first = ~fb_shifted_pixels_mask_long(p, (dst_idx + 1) % bits, bswapmask);
237 last = fb_shifted_pixels_mask_long(p, (bits + dst_idx + 1 - n) % bits, bswapmask);
242 if ((unsigned long)dst_idx+1 >= n) {
255 n -= dst_idx+1;
286 if ((unsigned long)dst_idx+1 >= n) {
333 n -= dst_idx+1;
388 unsigned dst_idx = 0, src_idx = 0, rev_copy = 0;
408 dst_idx = src_idx = 8*((unsigned long)p->screen_base & (bytes-1));
410 dst_idx += dy*bits_per_line + dx*p->var.bits_per_pixel;
418 dst_idx -= bits_per_line;
420 bitcpy_rev(p, base + (dst_idx / bits), dst_idx % bits,
426 bitcpy(p, base + (dst_idx / bits), dst_idx % bits,
429 dst_idx += bits_per_line;