Lines Matching refs:dst_idx
2598 static void bitcpy(unsigned long *dst, int dst_idx, const unsigned long *src, in bitcpy() argument
2602 int shift = dst_idx - src_idx, left, right; in bitcpy()
2609 shift = dst_idx - src_idx; in bitcpy()
2610 first = ~0UL >> dst_idx; in bitcpy()
2611 last = ~(~0UL >> ((dst_idx + n) % BITS_PER_LONG)); in bitcpy()
2616 if (dst_idx + n <= BITS_PER_LONG) { in bitcpy()
2628 n -= BITS_PER_LONG - dst_idx; in bitcpy()
2657 if (dst_idx + n <= BITS_PER_LONG) { in bitcpy()
2682 n -= BITS_PER_LONG - dst_idx; in bitcpy()
2690 n -= BITS_PER_LONG - dst_idx; in bitcpy()
2738 static void bitcpy_rev(unsigned long *dst, int dst_idx, in bitcpy_rev() argument
2742 int shift = dst_idx - src_idx, left, right; in bitcpy_rev()
2752 dst_idx += (n - 1) % BITS_PER_LONG; in bitcpy_rev()
2753 dst += dst_idx >> SHIFT_PER_LONG; in bitcpy_rev()
2754 dst_idx &= BITS_PER_LONG - 1; in bitcpy_rev()
2760 shift = dst_idx - src_idx; in bitcpy_rev()
2761 first = ~0UL << (BITS_PER_LONG - 1 - dst_idx); in bitcpy_rev()
2762 last = ~(~0UL << (BITS_PER_LONG - 1 - ((dst_idx - n) % BITS_PER_LONG))); in bitcpy_rev()
2767 if ((unsigned long)dst_idx + 1 >= n) { in bitcpy_rev()
2779 n -= dst_idx + 1; in bitcpy_rev()
2808 if ((unsigned long)dst_idx + 1 >= n) { in bitcpy_rev()
2833 n -= dst_idx + 1; in bitcpy_rev()
2841 n -= dst_idx + 1; in bitcpy_rev()
2890 static void bitcpy_not(unsigned long *dst, int dst_idx, in bitcpy_not() argument
2894 int shift = dst_idx - src_idx, left, right; in bitcpy_not()
2901 shift = dst_idx - src_idx; in bitcpy_not()
2902 first = ~0UL >> dst_idx; in bitcpy_not()
2903 last = ~(~0UL >> ((dst_idx + n) % BITS_PER_LONG)); in bitcpy_not()
2908 if (dst_idx + n <= BITS_PER_LONG) { in bitcpy_not()
2920 n -= BITS_PER_LONG - dst_idx; in bitcpy_not()
2949 if (dst_idx + n <= BITS_PER_LONG) { in bitcpy_not()
2974 n -= BITS_PER_LONG - dst_idx; in bitcpy_not()
2982 n -= BITS_PER_LONG - dst_idx; in bitcpy_not()
3030 static void bitfill32(unsigned long *dst, int dst_idx, u32 pat, u32 n) in bitfill32() argument
3042 first = ~0UL >> dst_idx; in bitfill32()
3043 last = ~(~0UL >> ((dst_idx + n) % BITS_PER_LONG)); in bitfill32()
3045 if (dst_idx + n <= BITS_PER_LONG) { in bitfill32()
3056 n -= BITS_PER_LONG - dst_idx; in bitfill32()
3086 static void bitxor32(unsigned long *dst, int dst_idx, u32 pat, u32 n) in bitxor32() argument
3098 first = ~0UL >> dst_idx; in bitxor32()
3099 last = ~(~0UL >> ((dst_idx + n) % BITS_PER_LONG)); in bitxor32()
3101 if (dst_idx + n <= BITS_PER_LONG) { in bitxor32()
3112 n -= BITS_PER_LONG - dst_idx; in bitxor32()
3134 unsigned long *dst, int dst_idx, u32 n, in fill_one_line() argument
3138 dst += dst_idx >> SHIFT_PER_LONG; in fill_one_line()
3139 dst_idx &= (BITS_PER_LONG - 1); in fill_one_line()
3140 bitfill32(dst, dst_idx, color & 1 ? ~0 : 0, n); in fill_one_line()
3144 dst_idx += next_plane * 8; in fill_one_line()
3149 unsigned long *dst, int dst_idx, u32 n, in xor_one_line() argument
3153 dst += dst_idx >> SHIFT_PER_LONG; in xor_one_line()
3154 dst_idx &= (BITS_PER_LONG - 1); in xor_one_line()
3155 bitxor32(dst, dst_idx, color & 1 ? ~0 : 0, n); in xor_one_line()
3159 dst_idx += next_plane * 8; in xor_one_line()
3168 int dst_idx, x2, y2; in amifb_fillrect() local
3188 dst_idx = ((unsigned long)info->screen_base & (BYTES_PER_LONG - 1)) * 8; in amifb_fillrect()
3189 dst_idx += rect->dy * par->next_line * 8 + rect->dx; in amifb_fillrect()
3194 par->next_plane, dst, dst_idx, width, in amifb_fillrect()
3200 dst, dst_idx, width, rect->color); in amifb_fillrect()
3203 dst_idx += par->next_line * 8; in amifb_fillrect()
3208 unsigned long *dst, int dst_idx, in copy_one_line() argument
3212 dst += dst_idx >> SHIFT_PER_LONG; in copy_one_line()
3213 dst_idx &= (BITS_PER_LONG - 1); in copy_one_line()
3216 bitcpy(dst, dst_idx, src, src_idx, n); in copy_one_line()
3219 dst_idx += next_plane * 8; in copy_one_line()
3225 unsigned long *dst, int dst_idx, in copy_one_line_rev() argument
3229 dst += dst_idx >> SHIFT_PER_LONG; in copy_one_line_rev()
3230 dst_idx &= (BITS_PER_LONG - 1); in copy_one_line_rev()
3233 bitcpy_rev(dst, dst_idx, src, src_idx, n); in copy_one_line_rev()
3236 dst_idx += next_plane * 8; in copy_one_line_rev()
3249 int dst_idx, src_idx; in amifb_copyarea() local
3282 dst_idx = ((unsigned long)info->screen_base & (BYTES_PER_LONG - 1)) * 8; in amifb_copyarea()
3283 src_idx = dst_idx; in amifb_copyarea()
3284 dst_idx += dy * par->next_line * 8 + dx; in amifb_copyarea()
3288 dst_idx -= par->next_line * 8; in amifb_copyarea()
3291 par->next_plane, dst, dst_idx, src, in amifb_copyarea()
3297 par->next_plane, dst, dst_idx, src, in amifb_copyarea()
3299 dst_idx += par->next_line * 8; in amifb_copyarea()
3307 unsigned long *dst, int dst_idx, u32 n, in expand_one_line() argument
3314 dst += dst_idx >> SHIFT_PER_LONG; in expand_one_line()
3315 dst_idx &= (BITS_PER_LONG - 1); in expand_one_line()
3321 bitcpy(dst, dst_idx, src, src_idx, n); in expand_one_line()
3323 bitcpy_not(dst, dst_idx, src, src_idx, n); in expand_one_line()
3326 bitfill32(dst, dst_idx, fgcolor & 1 ? ~0 : 0, n); in expand_one_line()
3331 dst_idx += next_plane * 8; in expand_one_line()
3341 int dst_idx; in amifb_imageblit() local
3362 dst_idx = ((unsigned long)info->screen_base & (BYTES_PER_LONG - 1)) * 8; in amifb_imageblit()
3363 dst_idx += dy * par->next_line * 8 + dx; in amifb_imageblit()
3368 par->next_plane, dst, dst_idx, width, in amifb_imageblit()
3371 dst_idx += par->next_line * 8; in amifb_imageblit()