Lines Matching refs:src

98 void slow_bitmap_complement(unsigned long *dst, const unsigned long *src,  in slow_bitmap_complement()  argument
104 dst[k] = ~src[k]; in slow_bitmap_complement()
108 dst[k] = ~src[k] & BITMAP_LAST_WORD_MASK(bits); in slow_bitmap_complement()
335 void bitmap_copy_and_clear_atomic(unsigned long *dst, unsigned long *src, in bitmap_copy_and_clear_atomic() argument
339 *dst = qatomic_xchg(src, 0); in bitmap_copy_and_clear_atomic()
341 src++; in bitmap_copy_and_clear_atomic()
420 const unsigned long *src, long nbits) in bitmap_to_from_le() argument
429 dst[index] = bswap64(src[index]); in bitmap_to_from_le()
431 dst[index] = bswap32(src[index]); in bitmap_to_from_le()
435 memcpy(dst, src, len * sizeof(unsigned long)); in bitmap_to_from_le()
439 void bitmap_from_le(unsigned long *dst, const unsigned long *src, in bitmap_from_le() argument
442 bitmap_to_from_le(dst, src, nbits); in bitmap_from_le()
445 void bitmap_to_le(unsigned long *dst, const unsigned long *src, in bitmap_to_le() argument
448 bitmap_to_from_le(dst, src, nbits); in bitmap_to_le()
456 void bitmap_copy_with_src_offset(unsigned long *dst, const unsigned long *src, in bitmap_copy_with_src_offset() argument
462 src += BIT_WORD(shift); in bitmap_copy_with_src_offset()
467 bitmap_copy(dst, src, nbits); in bitmap_copy_with_src_offset()
475 *dst = (*src & left_mask) >> shift; in bitmap_copy_with_src_offset()
476 *dst |= (src[1] & right_mask) << (BITS_PER_LONG - shift); in bitmap_copy_with_src_offset()
478 src++; in bitmap_copy_with_src_offset()
483 *dst = (*src & left_mask) >> shift; in bitmap_copy_with_src_offset()
486 *dst |= (src[1] & last_mask) << (BITS_PER_LONG - shift); in bitmap_copy_with_src_offset()
489 *dst = (*src >> shift) & last_mask; in bitmap_copy_with_src_offset()
498 void bitmap_copy_with_dst_offset(unsigned long *dst, const unsigned long *src, in bitmap_copy_with_dst_offset() argument
509 bitmap_copy(dst, src, nbits); in bitmap_copy_with_dst_offset()
518 *dst |= (*src & right_mask) << shift; in bitmap_copy_with_dst_offset()
519 dst[1] = (*src & left_mask) >> (BITS_PER_LONG - shift); in bitmap_copy_with_dst_offset()
521 src++; in bitmap_copy_with_dst_offset()
526 *dst |= (*src & right_mask) << shift; in bitmap_copy_with_dst_offset()
529 dst[1] = (*src & last_mask) >> (BITS_PER_LONG - shift); in bitmap_copy_with_dst_offset()
532 *dst |= (*src & last_mask) << shift; in bitmap_copy_with_dst_offset()