Searched refs:bmap2 (Results 1 – 3 of 3) sorted by relevance
/openbmc/qemu/tests/unit/ |
H A D | test-bitmap.c | 18 unsigned long *bmap1, *bmap2, *bmap3, total; in check_bitmap_copy_with_offset() local 21 bmap2 = bitmap_new(BMAP_SIZE); in check_bitmap_copy_with_offset() 31 bitmap_copy_with_dst_offset(bmap2, bmap1, 115, total); in check_bitmap_copy_with_offset() 33 bitmap_copy_with_dst_offset(bmap3, bmap2, 85, total + 115); in check_bitmap_copy_with_offset() 35 bitmap_copy_with_src_offset(bmap2, bmap3, 200, total); in check_bitmap_copy_with_offset() 38 bmap2, total / BITS_PER_LONG); in check_bitmap_copy_with_offset() 45 bitmap_copy_with_src_offset(bmap2, bmap1, 40, 250); in check_bitmap_copy_with_offset() 46 g_assert_cmpint(find_first_bit(bmap2, 60), ==, 60); in check_bitmap_copy_with_offset() 47 g_assert_cmpint(find_next_zero_bit(bmap2, 205, 60), ==, 205); in check_bitmap_copy_with_offset() 48 g_assert(test_bit(205, bmap2) == 0); in check_bitmap_copy_with_offset() [all …]
|
/openbmc/linux/lib/ |
H A D | test_bitmap.c | 297 DECLARE_BITMAP(bmap2, 1024); in test_copy() 300 bitmap_zero(bmap2, 1024); in test_copy() 304 bitmap_copy(bmap2, bmap1, 23); in test_copy() 305 expect_eq_pbl("0-18", bmap2, 1024); in test_copy() 307 bitmap_set(bmap2, 0, 23); in test_copy() 308 bitmap_copy(bmap2, bmap1, 23); in test_copy() 309 expect_eq_pbl("0-18", bmap2, 1024); in test_copy() 313 bitmap_copy(bmap2, bmap1, 1024); in test_copy() 314 expect_eq_pbl("0-108", bmap2, 1024); in test_copy() 316 bitmap_fill(bmap2, 1024); in test_copy() [all …]
|
/openbmc/linux/fs/nfsd/ |
H A D | nfs4proc.c | 2848 u32 bmap0 = bmap[0], bmap1 = bmap[1], bmap2 = bmap[2]; in nfsd4_getattr_rsize() local 2868 if (bmap2 & FATTR4_WORD2_SECURITY_LABEL) { in nfsd4_getattr_rsize() 2870 bmap2 &= ~FATTR4_WORD2_SECURITY_LABEL; in nfsd4_getattr_rsize() 2876 ret += 16 * (hweight32(bmap0) + hweight32(bmap1) + hweight32(bmap2)); in nfsd4_getattr_rsize()
|