Lines Matching refs:dst_idx
2591 static void bitcpy(unsigned long *dst, int dst_idx, const unsigned long *src, in bitcpy() argument
2595 int shift = dst_idx - src_idx, left, right; in bitcpy()
2602 shift = dst_idx - src_idx; in bitcpy()
2603 first = ~0UL >> dst_idx; in bitcpy()
2604 last = ~(~0UL >> ((dst_idx + n) % BITS_PER_LONG)); in bitcpy()
2609 if (dst_idx + n <= BITS_PER_LONG) { in bitcpy()
2621 n -= BITS_PER_LONG - dst_idx; in bitcpy()
2650 if (dst_idx + n <= BITS_PER_LONG) { in bitcpy()
2675 n -= BITS_PER_LONG - dst_idx; in bitcpy()
2683 n -= BITS_PER_LONG - dst_idx; in bitcpy()
2731 static void bitcpy_rev(unsigned long *dst, int dst_idx, in bitcpy_rev() argument
2735 int shift = dst_idx - src_idx, left, right; in bitcpy_rev()
2745 dst_idx += (n - 1) % BITS_PER_LONG; in bitcpy_rev()
2746 dst += dst_idx >> SHIFT_PER_LONG; in bitcpy_rev()
2747 dst_idx &= BITS_PER_LONG - 1; in bitcpy_rev()
2753 shift = dst_idx - src_idx; in bitcpy_rev()
2754 first = ~0UL << (BITS_PER_LONG - 1 - dst_idx); in bitcpy_rev()
2755 last = ~(~0UL << (BITS_PER_LONG - 1 - ((dst_idx - n) % BITS_PER_LONG))); in bitcpy_rev()
2760 if ((unsigned long)dst_idx + 1 >= n) { in bitcpy_rev()
2772 n -= dst_idx + 1; in bitcpy_rev()
2801 if ((unsigned long)dst_idx + 1 >= n) { in bitcpy_rev()
2826 n -= dst_idx + 1; in bitcpy_rev()
2834 n -= dst_idx + 1; in bitcpy_rev()
2883 static void bitcpy_not(unsigned long *dst, int dst_idx, in bitcpy_not() argument
2887 int shift = dst_idx - src_idx, left, right; in bitcpy_not()
2894 shift = dst_idx - src_idx; in bitcpy_not()
2895 first = ~0UL >> dst_idx; in bitcpy_not()
2896 last = ~(~0UL >> ((dst_idx + n) % BITS_PER_LONG)); in bitcpy_not()
2901 if (dst_idx + n <= BITS_PER_LONG) { in bitcpy_not()
2913 n -= BITS_PER_LONG - dst_idx; in bitcpy_not()
2942 if (dst_idx + n <= BITS_PER_LONG) { in bitcpy_not()
2967 n -= BITS_PER_LONG - dst_idx; in bitcpy_not()
2975 n -= BITS_PER_LONG - dst_idx; in bitcpy_not()
3023 static void bitfill32(unsigned long *dst, int dst_idx, u32 pat, u32 n) in bitfill32() argument
3035 first = ~0UL >> dst_idx; in bitfill32()
3036 last = ~(~0UL >> ((dst_idx + n) % BITS_PER_LONG)); in bitfill32()
3038 if (dst_idx + n <= BITS_PER_LONG) { in bitfill32()
3049 n -= BITS_PER_LONG - dst_idx; in bitfill32()
3079 static void bitxor32(unsigned long *dst, int dst_idx, u32 pat, u32 n) in bitxor32() argument
3091 first = ~0UL >> dst_idx; in bitxor32()
3092 last = ~(~0UL >> ((dst_idx + n) % BITS_PER_LONG)); in bitxor32()
3094 if (dst_idx + n <= BITS_PER_LONG) { in bitxor32()
3105 n -= BITS_PER_LONG - dst_idx; in bitxor32()
3127 unsigned long *dst, int dst_idx, u32 n, in fill_one_line() argument
3131 dst += dst_idx >> SHIFT_PER_LONG; in fill_one_line()
3132 dst_idx &= (BITS_PER_LONG - 1); in fill_one_line()
3133 bitfill32(dst, dst_idx, color & 1 ? ~0 : 0, n); in fill_one_line()
3137 dst_idx += next_plane * 8; in fill_one_line()
3142 unsigned long *dst, int dst_idx, u32 n, in xor_one_line() argument
3146 dst += dst_idx >> SHIFT_PER_LONG; in xor_one_line()
3147 dst_idx &= (BITS_PER_LONG - 1); in xor_one_line()
3148 bitxor32(dst, dst_idx, color & 1 ? ~0 : 0, n); in xor_one_line()
3152 dst_idx += next_plane * 8; in xor_one_line()
3161 int dst_idx, x2, y2; in amifb_fillrect() local
3181 dst_idx = ((unsigned long)info->screen_base & (BYTES_PER_LONG - 1)) * 8; in amifb_fillrect()
3182 dst_idx += rect->dy * par->next_line * 8 + rect->dx; in amifb_fillrect()
3187 par->next_plane, dst, dst_idx, width, in amifb_fillrect()
3193 dst, dst_idx, width, rect->color); in amifb_fillrect()
3196 dst_idx += par->next_line * 8; in amifb_fillrect()
3201 unsigned long *dst, int dst_idx, in copy_one_line() argument
3205 dst += dst_idx >> SHIFT_PER_LONG; in copy_one_line()
3206 dst_idx &= (BITS_PER_LONG - 1); in copy_one_line()
3209 bitcpy(dst, dst_idx, src, src_idx, n); in copy_one_line()
3212 dst_idx += next_plane * 8; in copy_one_line()
3218 unsigned long *dst, int dst_idx, in copy_one_line_rev() argument
3222 dst += dst_idx >> SHIFT_PER_LONG; in copy_one_line_rev()
3223 dst_idx &= (BITS_PER_LONG - 1); in copy_one_line_rev()
3226 bitcpy_rev(dst, dst_idx, src, src_idx, n); in copy_one_line_rev()
3229 dst_idx += next_plane * 8; in copy_one_line_rev()
3242 int dst_idx, src_idx; in amifb_copyarea() local
3275 dst_idx = ((unsigned long)info->screen_base & (BYTES_PER_LONG - 1)) * 8; in amifb_copyarea()
3276 src_idx = dst_idx; in amifb_copyarea()
3277 dst_idx += dy * par->next_line * 8 + dx; in amifb_copyarea()
3281 dst_idx -= par->next_line * 8; in amifb_copyarea()
3284 par->next_plane, dst, dst_idx, src, in amifb_copyarea()
3290 par->next_plane, dst, dst_idx, src, in amifb_copyarea()
3292 dst_idx += par->next_line * 8; in amifb_copyarea()
3300 unsigned long *dst, int dst_idx, u32 n, in expand_one_line() argument
3307 dst += dst_idx >> SHIFT_PER_LONG; in expand_one_line()
3308 dst_idx &= (BITS_PER_LONG - 1); in expand_one_line()
3314 bitcpy(dst, dst_idx, src, src_idx, n); in expand_one_line()
3316 bitcpy_not(dst, dst_idx, src, src_idx, n); in expand_one_line()
3319 bitfill32(dst, dst_idx, fgcolor & 1 ? ~0 : 0, n); in expand_one_line()
3324 dst_idx += next_plane * 8; in expand_one_line()
3334 int dst_idx; in amifb_imageblit() local
3355 dst_idx = ((unsigned long)info->screen_base & (BYTES_PER_LONG - 1)) * 8; in amifb_imageblit()
3356 dst_idx += dy * par->next_line * 8 + dx; in amifb_imageblit()
3361 par->next_plane, dst, dst_idx, width, in amifb_imageblit()
3364 dst_idx += par->next_line * 8; in amifb_imageblit()