Lines Matching refs:dst_idx

2600 static void bitcpy(unsigned long *dst, int dst_idx, const unsigned long *src,  in bitcpy()  argument
2604 int shift = dst_idx - src_idx, left, right; in bitcpy()
2611 shift = dst_idx - src_idx; in bitcpy()
2612 first = ~0UL >> dst_idx; in bitcpy()
2613 last = ~(~0UL >> ((dst_idx + n) % BITS_PER_LONG)); in bitcpy()
2618 if (dst_idx + n <= BITS_PER_LONG) { in bitcpy()
2630 n -= BITS_PER_LONG - dst_idx; in bitcpy()
2659 if (dst_idx + n <= BITS_PER_LONG) { in bitcpy()
2684 n -= BITS_PER_LONG - dst_idx; in bitcpy()
2692 n -= BITS_PER_LONG - dst_idx; in bitcpy()
2740 static void bitcpy_rev(unsigned long *dst, int dst_idx, in bitcpy_rev() argument
2744 int shift = dst_idx - src_idx, left, right; in bitcpy_rev()
2754 dst_idx += (n - 1) % BITS_PER_LONG; in bitcpy_rev()
2755 dst += dst_idx >> SHIFT_PER_LONG; in bitcpy_rev()
2756 dst_idx &= BITS_PER_LONG - 1; in bitcpy_rev()
2762 shift = dst_idx - src_idx; in bitcpy_rev()
2763 first = ~0UL << (BITS_PER_LONG - 1 - dst_idx); in bitcpy_rev()
2764 last = ~(~0UL << (BITS_PER_LONG - 1 - ((dst_idx - n) % BITS_PER_LONG))); in bitcpy_rev()
2769 if ((unsigned long)dst_idx + 1 >= n) { in bitcpy_rev()
2781 n -= dst_idx + 1; in bitcpy_rev()
2810 if ((unsigned long)dst_idx + 1 >= n) { in bitcpy_rev()
2835 n -= dst_idx + 1; in bitcpy_rev()
2843 n -= dst_idx + 1; in bitcpy_rev()
2892 static void bitcpy_not(unsigned long *dst, int dst_idx, in bitcpy_not() argument
2896 int shift = dst_idx - src_idx, left, right; in bitcpy_not()
2903 shift = dst_idx - src_idx; in bitcpy_not()
2904 first = ~0UL >> dst_idx; in bitcpy_not()
2905 last = ~(~0UL >> ((dst_idx + n) % BITS_PER_LONG)); in bitcpy_not()
2910 if (dst_idx + n <= BITS_PER_LONG) { in bitcpy_not()
2922 n -= BITS_PER_LONG - dst_idx; in bitcpy_not()
2951 if (dst_idx + n <= BITS_PER_LONG) { in bitcpy_not()
2976 n -= BITS_PER_LONG - dst_idx; in bitcpy_not()
2984 n -= BITS_PER_LONG - dst_idx; in bitcpy_not()
3032 static void bitfill32(unsigned long *dst, int dst_idx, u32 pat, u32 n) in bitfill32() argument
3044 first = ~0UL >> dst_idx; in bitfill32()
3045 last = ~(~0UL >> ((dst_idx + n) % BITS_PER_LONG)); in bitfill32()
3047 if (dst_idx + n <= BITS_PER_LONG) { in bitfill32()
3058 n -= BITS_PER_LONG - dst_idx; in bitfill32()
3088 static void bitxor32(unsigned long *dst, int dst_idx, u32 pat, u32 n) in bitxor32() argument
3100 first = ~0UL >> dst_idx; in bitxor32()
3101 last = ~(~0UL >> ((dst_idx + n) % BITS_PER_LONG)); in bitxor32()
3103 if (dst_idx + n <= BITS_PER_LONG) { in bitxor32()
3114 n -= BITS_PER_LONG - dst_idx; in bitxor32()
3136 unsigned long *dst, int dst_idx, u32 n, in fill_one_line() argument
3140 dst += dst_idx >> SHIFT_PER_LONG; in fill_one_line()
3141 dst_idx &= (BITS_PER_LONG - 1); in fill_one_line()
3142 bitfill32(dst, dst_idx, color & 1 ? ~0 : 0, n); in fill_one_line()
3146 dst_idx += next_plane * 8; in fill_one_line()
3151 unsigned long *dst, int dst_idx, u32 n, in xor_one_line() argument
3155 dst += dst_idx >> SHIFT_PER_LONG; in xor_one_line()
3156 dst_idx &= (BITS_PER_LONG - 1); in xor_one_line()
3157 bitxor32(dst, dst_idx, color & 1 ? ~0 : 0, n); in xor_one_line()
3161 dst_idx += next_plane * 8; in xor_one_line()
3170 int dst_idx, x2, y2; in amifb_fillrect() local
3190 dst_idx = ((unsigned long)info->screen_base & (BYTES_PER_LONG - 1)) * 8; in amifb_fillrect()
3191 dst_idx += rect->dy * par->next_line * 8 + rect->dx; in amifb_fillrect()
3196 par->next_plane, dst, dst_idx, width, in amifb_fillrect()
3202 dst, dst_idx, width, rect->color); in amifb_fillrect()
3205 dst_idx += par->next_line * 8; in amifb_fillrect()
3210 unsigned long *dst, int dst_idx, in copy_one_line() argument
3214 dst += dst_idx >> SHIFT_PER_LONG; in copy_one_line()
3215 dst_idx &= (BITS_PER_LONG - 1); in copy_one_line()
3218 bitcpy(dst, dst_idx, src, src_idx, n); in copy_one_line()
3221 dst_idx += next_plane * 8; in copy_one_line()
3227 unsigned long *dst, int dst_idx, in copy_one_line_rev() argument
3231 dst += dst_idx >> SHIFT_PER_LONG; in copy_one_line_rev()
3232 dst_idx &= (BITS_PER_LONG - 1); in copy_one_line_rev()
3235 bitcpy_rev(dst, dst_idx, src, src_idx, n); in copy_one_line_rev()
3238 dst_idx += next_plane * 8; in copy_one_line_rev()
3251 int dst_idx, src_idx; in amifb_copyarea() local
3284 dst_idx = ((unsigned long)info->screen_base & (BYTES_PER_LONG - 1)) * 8; in amifb_copyarea()
3285 src_idx = dst_idx; in amifb_copyarea()
3286 dst_idx += dy * par->next_line * 8 + dx; in amifb_copyarea()
3290 dst_idx -= par->next_line * 8; in amifb_copyarea()
3293 par->next_plane, dst, dst_idx, src, in amifb_copyarea()
3299 par->next_plane, dst, dst_idx, src, in amifb_copyarea()
3301 dst_idx += par->next_line * 8; in amifb_copyarea()
3309 unsigned long *dst, int dst_idx, u32 n, in expand_one_line() argument
3316 dst += dst_idx >> SHIFT_PER_LONG; in expand_one_line()
3317 dst_idx &= (BITS_PER_LONG - 1); in expand_one_line()
3323 bitcpy(dst, dst_idx, src, src_idx, n); in expand_one_line()
3325 bitcpy_not(dst, dst_idx, src, src_idx, n); in expand_one_line()
3328 bitfill32(dst, dst_idx, fgcolor & 1 ? ~0 : 0, n); in expand_one_line()
3333 dst_idx += next_plane * 8; in expand_one_line()
3343 int dst_idx; in amifb_imageblit() local
3364 dst_idx = ((unsigned long)info->screen_base & (BYTES_PER_LONG - 1)) * 8; in amifb_imageblit()
3365 dst_idx += dy * par->next_line * 8 + dx; in amifb_imageblit()
3370 par->next_plane, dst, dst_idx, width, in amifb_imageblit()
3373 dst_idx += par->next_line * 8; in amifb_imageblit()