Lines Matching refs:dst_idx

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