Lines Matching defs:dst_idx
28 bitcpy(struct fb_info *p, unsigned long *dst, int 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;
121 n -= bits - dst_idx;
169 bitcpy_rev(struct fb_info *p, unsigned long *dst, int dst_idx,
178 dst_idx += (n-1) % bits;
179 dst += dst_idx >> (ffs(bits) - 1);
180 dst_idx &= bits - 1;
186 shift = dst_idx-src_idx;
188 first = FB_SHIFT_LOW(p, ~0UL, bits - 1 - dst_idx);
189 last = ~(FB_SHIFT_LOW(p, ~0UL, bits - 1 - ((dst_idx-n) % bits)));
193 if ((unsigned long)dst_idx+1 >= n) {
206 n -= dst_idx+1;
234 if ((unsigned long)dst_idx+1 >= n) {
273 n -= dst_idx+1;
322 int dst_idx = 0, src_idx = 0, rev_copy = 0;
339 dst_idx = src_idx = 8*((unsigned long)p->screen_base & (bytes-1));
341 dst_idx += dy*bits_per_line + dx*p->var.bits_per_pixel;
349 dst_idx -= bits_per_line;
351 dst += dst_idx >> (ffs(bits) - 1);
352 dst_idx &= (bytes - 1);
355 bitcpy_rev(p, dst, dst_idx, src, src_idx, bits,
360 dst += dst_idx >> (ffs(bits) - 1);
361 dst_idx &= (bytes - 1);
364 bitcpy(p, dst, dst_idx, src, src_idx, bits,
366 dst_idx += bits_per_line;