Lines Matching refs:dst_idx
2602 static void bitcpy(unsigned long *dst, int dst_idx, const unsigned long *src, in bitcpy() argument
2606 int shift = dst_idx - src_idx, left, right; in bitcpy()
2613 shift = dst_idx - src_idx; in bitcpy()
2614 first = ~0UL >> dst_idx; in bitcpy()
2615 last = ~(~0UL >> ((dst_idx + n) % BITS_PER_LONG)); in bitcpy()
2620 if (dst_idx + n <= BITS_PER_LONG) { in bitcpy()
2632 n -= BITS_PER_LONG - dst_idx; in bitcpy()
2661 if (dst_idx + n <= BITS_PER_LONG) { in bitcpy()
2686 n -= BITS_PER_LONG - dst_idx; in bitcpy()
2694 n -= BITS_PER_LONG - dst_idx; in bitcpy()
2742 static void bitcpy_rev(unsigned long *dst, int dst_idx, in bitcpy_rev() argument
2746 int shift = dst_idx - src_idx, left, right; in bitcpy_rev()
2756 dst_idx += (n - 1) % BITS_PER_LONG; in bitcpy_rev()
2757 dst += dst_idx >> SHIFT_PER_LONG; in bitcpy_rev()
2758 dst_idx &= BITS_PER_LONG - 1; in bitcpy_rev()
2764 shift = dst_idx - src_idx; in bitcpy_rev()
2765 first = ~0UL << (BITS_PER_LONG - 1 - dst_idx); in bitcpy_rev()
2766 last = ~(~0UL << (BITS_PER_LONG - 1 - ((dst_idx - n) % BITS_PER_LONG))); in bitcpy_rev()
2771 if ((unsigned long)dst_idx + 1 >= n) { in bitcpy_rev()
2783 n -= dst_idx + 1; in bitcpy_rev()
2812 if ((unsigned long)dst_idx + 1 >= n) { in bitcpy_rev()
2837 n -= dst_idx + 1; in bitcpy_rev()
2845 n -= dst_idx + 1; in bitcpy_rev()
2894 static void bitcpy_not(unsigned long *dst, int dst_idx, in bitcpy_not() argument
2898 int shift = dst_idx - src_idx, left, right; in bitcpy_not()
2905 shift = dst_idx - src_idx; in bitcpy_not()
2906 first = ~0UL >> dst_idx; in bitcpy_not()
2907 last = ~(~0UL >> ((dst_idx + n) % BITS_PER_LONG)); in bitcpy_not()
2912 if (dst_idx + n <= BITS_PER_LONG) { in bitcpy_not()
2924 n -= BITS_PER_LONG - dst_idx; in bitcpy_not()
2953 if (dst_idx + n <= BITS_PER_LONG) { in bitcpy_not()
2978 n -= BITS_PER_LONG - dst_idx; in bitcpy_not()
2986 n -= BITS_PER_LONG - dst_idx; in bitcpy_not()
3034 static void bitfill32(unsigned long *dst, int dst_idx, u32 pat, u32 n) in bitfill32() argument
3046 first = ~0UL >> dst_idx; in bitfill32()
3047 last = ~(~0UL >> ((dst_idx + n) % BITS_PER_LONG)); in bitfill32()
3049 if (dst_idx + n <= BITS_PER_LONG) { in bitfill32()
3060 n -= BITS_PER_LONG - dst_idx; in bitfill32()
3090 static void bitxor32(unsigned long *dst, int dst_idx, u32 pat, u32 n) in bitxor32() argument
3102 first = ~0UL >> dst_idx; in bitxor32()
3103 last = ~(~0UL >> ((dst_idx + n) % BITS_PER_LONG)); in bitxor32()
3105 if (dst_idx + n <= BITS_PER_LONG) { in bitxor32()
3116 n -= BITS_PER_LONG - dst_idx; in bitxor32()
3138 unsigned long *dst, int dst_idx, u32 n, in fill_one_line() argument
3142 dst += dst_idx >> SHIFT_PER_LONG; in fill_one_line()
3143 dst_idx &= (BITS_PER_LONG - 1); in fill_one_line()
3144 bitfill32(dst, dst_idx, color & 1 ? ~0 : 0, n); in fill_one_line()
3148 dst_idx += next_plane * 8; in fill_one_line()
3153 unsigned long *dst, int dst_idx, u32 n, in xor_one_line() argument
3157 dst += dst_idx >> SHIFT_PER_LONG; in xor_one_line()
3158 dst_idx &= (BITS_PER_LONG - 1); in xor_one_line()
3159 bitxor32(dst, dst_idx, color & 1 ? ~0 : 0, n); in xor_one_line()
3163 dst_idx += next_plane * 8; in xor_one_line()
3172 int dst_idx, x2, y2; in amifb_fillrect() local
3192 dst_idx = ((unsigned long)info->screen_base & (BYTES_PER_LONG - 1)) * 8; in amifb_fillrect()
3193 dst_idx += rect->dy * par->next_line * 8 + rect->dx; in amifb_fillrect()
3198 par->next_plane, dst, dst_idx, width, in amifb_fillrect()
3204 dst, dst_idx, width, rect->color); in amifb_fillrect()
3207 dst_idx += par->next_line * 8; in amifb_fillrect()
3212 unsigned long *dst, int dst_idx, in copy_one_line() argument
3216 dst += dst_idx >> SHIFT_PER_LONG; in copy_one_line()
3217 dst_idx &= (BITS_PER_LONG - 1); in copy_one_line()
3220 bitcpy(dst, dst_idx, src, src_idx, n); in copy_one_line()
3223 dst_idx += next_plane * 8; in copy_one_line()
3229 unsigned long *dst, int dst_idx, in copy_one_line_rev() argument
3233 dst += dst_idx >> SHIFT_PER_LONG; in copy_one_line_rev()
3234 dst_idx &= (BITS_PER_LONG - 1); in copy_one_line_rev()
3237 bitcpy_rev(dst, dst_idx, src, src_idx, n); in copy_one_line_rev()
3240 dst_idx += next_plane * 8; in copy_one_line_rev()
3253 int dst_idx, src_idx; in amifb_copyarea() local
3286 dst_idx = ((unsigned long)info->screen_base & (BYTES_PER_LONG - 1)) * 8; in amifb_copyarea()
3287 src_idx = dst_idx; in amifb_copyarea()
3288 dst_idx += dy * par->next_line * 8 + dx; in amifb_copyarea()
3292 dst_idx -= par->next_line * 8; in amifb_copyarea()
3295 par->next_plane, dst, dst_idx, src, in amifb_copyarea()
3301 par->next_plane, dst, dst_idx, src, in amifb_copyarea()
3303 dst_idx += par->next_line * 8; in amifb_copyarea()
3311 unsigned long *dst, int dst_idx, u32 n, in expand_one_line() argument
3318 dst += dst_idx >> SHIFT_PER_LONG; in expand_one_line()
3319 dst_idx &= (BITS_PER_LONG - 1); in expand_one_line()
3325 bitcpy(dst, dst_idx, src, src_idx, n); in expand_one_line()
3327 bitcpy_not(dst, dst_idx, src, src_idx, n); in expand_one_line()
3330 bitfill32(dst, dst_idx, fgcolor & 1 ? ~0 : 0, n); in expand_one_line()
3335 dst_idx += next_plane * 8; in expand_one_line()
3345 int dst_idx; in amifb_imageblit() local
3366 dst_idx = ((unsigned long)info->screen_base & (BYTES_PER_LONG - 1)) * 8; in amifb_imageblit()
3367 dst_idx += dy * par->next_line * 8 + dx; in amifb_imageblit()
3372 par->next_plane, dst, dst_idx, width, in amifb_imageblit()
3375 dst_idx += par->next_line * 8; in amifb_imageblit()