Searched refs:bmap1 (Results 1 – 4 of 4) 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 20 bmap1 = bitmap_new(BMAP_SIZE); in check_bitmap_copy_with_offset() 24 bmap1[0] = g_test_rand_int(); in check_bitmap_copy_with_offset() 25 bmap1[1] = g_test_rand_int(); in check_bitmap_copy_with_offset() 26 bmap1[2] = g_test_rand_int(); in check_bitmap_copy_with_offset() 27 bmap1[3] = g_test_rand_int(); in check_bitmap_copy_with_offset() 31 bitmap_copy_with_dst_offset(bmap2, bmap1, 115, total); in check_bitmap_copy_with_offset() 37 g_assert_cmpmem(bmap1, total / BITS_PER_LONG, in check_bitmap_copy_with_offset() 40 bitmap_clear(bmap1, 0, BMAP_SIZE); in check_bitmap_copy_with_offset() 42 bitmap_set(bmap1, 100, 145); in check_bitmap_copy_with_offset() [all …]
|
/openbmc/linux/lib/ |
H A D | test_bitmap.c | 296 DECLARE_BITMAP(bmap1, 1024); in test_copy() 299 bitmap_zero(bmap1, 1024); in test_copy() 303 bitmap_set(bmap1, 0, 19); in test_copy() 304 bitmap_copy(bmap2, bmap1, 23); in test_copy() 308 bitmap_copy(bmap2, bmap1, 23); in test_copy() 312 bitmap_set(bmap1, 0, 109); in test_copy() 313 bitmap_copy(bmap2, bmap1, 1024); in test_copy() 317 bitmap_copy(bmap2, bmap1, 1024); in test_copy() 325 bitmap_copy(bmap2, bmap1, 109); /* ... but 0-padded til word length */ in test_copy() 329 bitmap_copy(bmap2, bmap1, 97); /* ... but aligned on word length */ in test_copy() [all …]
|
/openbmc/linux/fs/reiserfs/ |
H A D | bitmap.c | 82 b_blocknr_t bmap1 = REISERFS_SB(s)->s_sbh->b_blocknr + 1; in is_reusable() local 83 if (block >= bmap1 && in is_reusable() 84 block <= bmap1 + bmap_count) { in is_reusable()
|
/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 2856 if (bmap1 & FATTR4_WORD1_OWNER) { in nfsd4_getattr_rsize() 2858 bmap1 &= ~FATTR4_WORD1_OWNER; in nfsd4_getattr_rsize() 2860 if (bmap1 & FATTR4_WORD1_OWNER_GROUP) { in nfsd4_getattr_rsize() 2862 bmap1 &= ~FATTR4_WORD1_OWNER_GROUP; in nfsd4_getattr_rsize() 2876 ret += 16 * (hweight32(bmap0) + hweight32(bmap1) + hweight32(bmap2)); in nfsd4_getattr_rsize()
|