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