Home
last modified time | relevance | path

Searched refs:bmap1 (Results 1 – 4 of 4) sorted by relevance

/openbmc/qemu/tests/unit/
H A Dtest-bitmap.c18 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()
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()
45 bitmap_copy_with_src_offset(bmap2, bmap1, 40, 250); in check_bitmap_copy_with_offset()
[all …]
/openbmc/linux/lib/
H A Dtest_bitmap.c296 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()
673 DECLARE_BITMAP(bmap1, 1024); in test_mem_optimisations()
679 memset(bmap1, 0x5a, sizeof(bmap1)); in test_mem_optimisations()
[all …]
/openbmc/linux/fs/reiserfs/
H A Dbitmap.c82 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 Dnfs4proc.c2846 u32 bmap0 = bmap[0], bmap1 = bmap[1], bmap2 = bmap[2]; in nfsd4_getattr_rsize() local
2854 if (bmap1 & FATTR4_WORD1_OWNER) { in nfsd4_getattr_rsize()
2856 bmap1 &= ~FATTR4_WORD1_OWNER; in nfsd4_getattr_rsize()
2858 if (bmap1 & FATTR4_WORD1_OWNER_GROUP) { in nfsd4_getattr_rsize()
2860 bmap1 &= ~FATTR4_WORD1_OWNER_GROUP; in nfsd4_getattr_rsize()
2874 ret += 16 * (hweight32(bmap0) + hweight32(bmap1) + hweight32(bmap2)); in nfsd4_getattr_rsize()