Lines Matching defs:dst_idx
28 bitcpy(struct fb_info *p, unsigned long *dst, unsigned dst_idx,
32 int const shift = dst_idx-src_idx;
35 first = FB_SHIFT_HIGH(p, ~0UL, dst_idx);
36 last = ~(FB_SHIFT_HIGH(p, ~0UL, (dst_idx+n) % bits));
40 if (dst_idx+n <= bits) {
52 n -= bits - dst_idx;
83 if (dst_idx+n <= bits) {
114 n -= bits - dst_idx;
122 n -= bits - dst_idx;
170 bitcpy_rev(struct fb_info *p, unsigned long *dst, unsigned dst_idx,
177 dst += (dst_idx + n - 1) / bits;
179 dst_idx = (dst_idx + n - 1) % bits;
182 shift = dst_idx-src_idx;
184 first = ~FB_SHIFT_HIGH(p, ~0UL, (dst_idx + 1) % bits);
185 last = FB_SHIFT_HIGH(p, ~0UL, (bits + dst_idx + 1 - n) % bits);
189 if ((unsigned long)dst_idx+1 >= n) {
202 n -= dst_idx+1;
230 if ((unsigned long)dst_idx+1 >= n) {
273 n -= dst_idx+1;
322 unsigned dst_idx = 0, src_idx = 0, rev_copy = 0;
341 dst_idx = src_idx = 8*((unsigned long)p->screen_base & (bytes-1));
343 dst_idx += dy*bits_per_line + dx*p->var.bits_per_pixel;
351 dst_idx -= bits_per_line;
353 bitcpy_rev(p, base + (dst_idx / bits), dst_idx % bits,
359 bitcpy(p, base + (dst_idx / bits), dst_idx % bits,
362 dst_idx += bits_per_line;