Home
last modified time | relevance | path

Searched refs:blk2 (Results 1 – 9 of 9) sorted by relevance

/openbmc/qemu/tests/unit/
H A Dtest-image-locking.c78 BlockBackend *blk1, *blk2, *blk3; in test_image_locking_basic() local
93 blk2 = open_image(img_path, perm | BLK_PERM_RESIZE, shared_perm, NULL); in test_image_locking_basic()
94 g_assert(blk2); in test_image_locking_basic()
101 blk_unref(blk2); in test_image_locking_basic()
119 BlockBackend *blk1, *blk2; in test_set_perm_abort() local
131 blk2 = open_image(img_path, perm, shared_perm, &error_abort); in test_set_perm_abort()
132 g_assert(blk2); in test_set_perm_abort()
137 r = blk_set_perm(blk2, perm | BLK_PERM_RESIZE, BLK_PERM_WRITE_UNCHANGED, in test_set_perm_abort()
142 blk_unref(blk2); in test_set_perm_abort()
H A Dtest-throttle.c740 BlockBackend *blk1, *blk2, *blk3; in test_groups() local
746 blk2 = blk_new(qemu_get_aio_context(), 0, BLK_PERM_ALL); in test_groups()
750 blkp2 = blk_get_public(blk2); in test_groups()
762 throttle_group_register_tgm(tgm2, "foo", blk_get_aio_context(blk2)); in test_groups()
/openbmc/linux/arch/powerpc/lib/
H A Drheap.c614 rh_block_t *blk, *blk2; in rh_free() local
621 blk2 = list_entry(l, rh_block_t, list); in rh_free()
622 if (start < blk2->start) in rh_free()
624 blk = blk2; in rh_free()
681 rh_block_t *blk, *blk2; in rh_set_owner() local
688 blk2 = list_entry(l, rh_block_t, list); in rh_set_owner()
689 if (start < blk2->start) in rh_set_owner()
691 blk = blk2; in rh_set_owner()
/openbmc/linux/fs/xfs/libxfs/
H A Dxfs_attr_leaf.c57 xfs_da_state_blk_t *blk2);
1719 struct xfs_da_state_blk *blk2) in xfs_attr3_leaf_rebalance() argument
1738 ASSERT(blk2->magic == XFS_ATTR_LEAF_MAGIC); in xfs_attr3_leaf_rebalance()
1740 leaf2 = blk2->bp->b_addr; in xfs_attr3_leaf_rebalance()
1755 if (xfs_attr3_leaf_order(blk1->bp, &ichdr1, blk2->bp, &ichdr2)) { in xfs_attr3_leaf_rebalance()
1756 swap(blk1, blk2); in xfs_attr3_leaf_rebalance()
1762 leaf2 = blk2->bp->b_addr; in xfs_attr3_leaf_rebalance()
1775 blk2, &ichdr2, in xfs_attr3_leaf_rebalance()
1798 xfs_attr3_leaf_compact(args, &ichdr2, blk2->bp); in xfs_attr3_leaf_rebalance()
1839 xfs_trans_log_buf(args->trans, blk2->bp, 0, args->geo->blksize - 1); in xfs_attr3_leaf_rebalance()
[all …]
H A Dxfs_dir2_node.c31 xfs_da_state_blk_t *blk2);
1064 xfs_da_state_blk_t *blk2) /* second btree block */ in xfs_dir2_leafn_rebalance() argument
1087 swap_blocks = xfs_dir2_leafn_order(dp, blk1->bp, blk2->bp); in xfs_dir2_leafn_rebalance()
1089 swap(blk1, blk2); in xfs_dir2_leafn_rebalance()
1092 leaf2 = blk2->bp->b_addr; in xfs_dir2_leafn_rebalance()
1131 hdr1.count - count, blk2->bp, in xfs_dir2_leafn_rebalance()
1134 xfs_dir3_leafn_moveents(args, blk2->bp, &hdr2, ents2, 0, in xfs_dir2_leafn_rebalance()
1145 xfs_dir3_leaf_log_header(args, blk2->bp); in xfs_dir2_leafn_rebalance()
1148 xfs_dir3_leaf_check(dp, blk2->bp); in xfs_dir2_leafn_rebalance()
1163 blk2->index = blk1->index - hdr1.count; in xfs_dir2_leafn_rebalance()
[all …]
H A Dxfs_da_btree.c651 struct xfs_da_state_blk *blk2) in xfs_da3_root_split() argument
752 btree[1].hashval = cpu_to_be32(blk2->hashval); in xfs_da3_root_split()
753 btree[1].before = cpu_to_be32(blk2->blkno); in xfs_da3_root_split()
762 ASSERT(blk2->blkno >= args->geo->leafblk && in xfs_da3_root_split()
763 blk2->blkno < args->geo->freeblk); in xfs_da3_root_split()
878 struct xfs_da_state_blk *blk2) in xfs_da3_node_rebalance() argument
897 node2 = blk2->bp->b_addr; in xfs_da3_node_rebalance()
983 xfs_trans_log_buf(tp, blk2->bp, in xfs_da3_node_rebalance()
994 node2 = blk2->bp->b_addr; in xfs_da3_node_rebalance()
1001 blk2->hashval = be32_to_cpu(btree2[nodehdr2.count - 1].hashval); in xfs_da3_node_rebalance()
[all …]
/openbmc/qemu/
H A Dqemu-img.c1361 BlockBackend *blk1, *blk2; in img_compare() local
1475 blk2 = img_open(image_opts, filename2, fmt2, flags, writethrough, quiet, in img_compare()
1477 if (!blk2) { in img_compare()
1482 bs2 = blk_bs(blk2); in img_compare()
1485 buf2 = blk_blockalign(blk2, IO_BUF_SIZE); in img_compare()
1493 total_size2 = blk_getlength(blk2); in img_compare()
1560 ret = blk_pread(blk2, offset, chunk, buf2, 0); in img_compare()
1582 ret = check_empty_sectors(blk2, offset, chunk, in img_compare()
1602 blk_over = blk2; in img_compare()
1636 blk_unref(blk2); in img_compare()
[all …]
/openbmc/qemu/tests/qemu-iotests/
H A D0411125 blk2 = { 'node-name': 'dest-ro',
1132 self.vm.add_blockdev(self.vm.qmp_to_opts(blk2))
/openbmc/linux/fs/xfs/
H A Dxfs_log_recover.c32 #define BLK_AVG(blk1, blk2) ((blk1+blk2) >> 1) argument