Home
last modified time | relevance | path

Searched refs:new_block (Results 1 – 18 of 18) sorted by relevance

/openbmc/qemu/system/
H A Dphysmem.c1624 void qemu_ram_set_idstr(RAMBlock *new_block, const char *name, DeviceState *dev) in qemu_ram_set_idstr() argument
1628 assert(new_block); in qemu_ram_set_idstr()
1629 assert(!new_block->idstr[0]); in qemu_ram_set_idstr()
1634 snprintf(new_block->idstr, sizeof(new_block->idstr), "%s/", id); in qemu_ram_set_idstr()
1638 pstrcat(new_block->idstr, sizeof(new_block->idstr), name); in qemu_ram_set_idstr()
1642 if (block != new_block && in qemu_ram_set_idstr()
1643 !strcmp(block->idstr, new_block->idstr)) { in qemu_ram_set_idstr()
1645 new_block->idstr); in qemu_ram_set_idstr()
1830 static void ram_block_add(RAMBlock *new_block, Error **errp) in ram_block_add() argument
1832 const bool noreserve = qemu_ram_is_noreserve(new_block); in ram_block_add()
[all …]
/openbmc/linux/fs/omfs/
H A Dfile.c123 u64 new_block = 0; in omfs_grow_extent() local
145 new_block = be64_to_cpu(entry->e_cluster) + in omfs_grow_extent()
148 if (omfs_allocate_block(inode->i_sb, new_block)) { in omfs_grow_extent()
163 &new_block, &new_count); in omfs_grow_extent()
172 entry->e_cluster = cpu_to_be64(new_block); in omfs_grow_extent()
182 *ret_block = new_block; in omfs_grow_extent()
223 u64 new_block; in omfs_get_block() local
273 ret = omfs_grow_extent(inode, oe, &new_block); in omfs_get_block()
278 clus_to_blk(sbi, new_block)); in omfs_get_block()
H A Dinode.c36 u64 new_block; in omfs_new_inode() local
46 &new_block, &len); in omfs_new_inode()
50 inode->i_ino = new_block; in omfs_new_inode()
/openbmc/linux/drivers/md/persistent-data/
H A Ddm-transaction-manager.c244 dm_block_t new_block; in dm_tm_new_block() local
249 r = dm_sm_new_block(tm->sm, &new_block); in dm_tm_new_block()
253 r = dm_bm_write_lock_zero(tm->bm, new_block, v, result); in dm_tm_new_block()
255 dm_sm_dec_block(tm->sm, new_block); in dm_tm_new_block()
263 insert_shadow(tm, new_block); in dm_tm_new_block()
H A Ddm-space-map.h56 int (*new_block)(struct dm_space_map *sm, dm_block_t *b); member
144 return sm->new_block(sm, b); in dm_sm_new_block()
H A Ddm-btree-internal.h55 int new_block(struct dm_btree_info *info, struct dm_block **result);
H A Ddm-btree.c137 r = new_block(info, &b); in dm_btree_empty()
664 r = new_block(s->info, &right); in split_one_into_two()
763 r = new_block(s->info, &middle); in split_two_into_three()
854 r = new_block(s->info, &left); in btree_split_beneath()
869 r = new_block(s->info, &right); in btree_split_beneath()
H A Ddm-btree-spine.c112 int new_block(struct dm_btree_info *info, struct dm_block **result) in new_block() function
H A Ddm-space-map-disk.c210 .new_block = sm_disk_new_block,
H A Ddm-space-map-metadata.c573 .new_block = sm_metadata_new_block,
710 .new_block = sm_bootstrap_new_block,
/openbmc/linux/fs/udf/
H A Dpartition.c147 int udf_relocate_blocks(struct super_block *sb, long old_block, long *new_block) in udf_relocate_blocks() argument
204 *new_block = le32_to_cpu( in udf_relocate_blocks()
212 *new_block = le32_to_cpu( in udf_relocate_blocks()
250 *new_block = in udf_relocate_blocks()
H A Dfile.c131 long old_block, new_block; in udf_ioctl() local
157 old_block, &new_block); in udf_ioctl()
159 result = put_user(new_block, (long __user *)arg); in udf_ioctl()
H A Dinode.c2124 udf_pblk_t new_block; in udf_add_aext() local
2126 new_block = udf_new_block(sb, NULL, in udf_add_aext()
2129 if (!new_block) in udf_add_aext()
2132 err = udf_setup_indirect_aext(inode, new_block, epos); in udf_add_aext()
/openbmc/linux/fs/xfs/libxfs/
H A Dxfs_btree_staging.c374 struct xfs_btree_block *new_block; in xfs_btree_bload_prep_block() local
409 ret = xfs_btree_get_buf_block(cur, &new_ptr, &new_block, &new_bp); in xfs_btree_bload_prep_block()
423 xfs_btree_set_sibling(cur, new_block, ptrp, XFS_BB_LEFTSIB); in xfs_btree_bload_prep_block()
427 *blockp = new_block; in xfs_btree_bload_prep_block()
/openbmc/qemu/block/
H A Dqcow2-refcount.c370 int64_t new_block = alloc_clusters_noref(bs, s->cluster_size, INT64_MAX); in alloc_refcount_block() local
371 if (new_block < 0) { in alloc_refcount_block()
372 return new_block; in alloc_refcount_block()
376 assert((new_block & REFT_OFFSET_MASK) == new_block); in alloc_refcount_block()
379 if (new_block == 0) { in alloc_refcount_block()
388 refcount_table_index, cluster_index << s->cluster_bits, new_block); in alloc_refcount_block()
391 if (in_same_refcount_block(s, new_block, cluster_index << s->cluster_bits)) { in alloc_refcount_block()
393 ret = qcow2_cache_get_empty(bs, s->refcount_block_cache, new_block, in alloc_refcount_block()
402 int block_index = (new_block >> s->cluster_bits) & in alloc_refcount_block()
408 ret = update_refcount(bs, new_block, s->cluster_size, 1, false, in alloc_refcount_block()
[all …]
/openbmc/linux/drivers/net/ethernet/freescale/dpaa2/
H A Ddpaa2-switch.c1279 struct dpaa2_switch_filter_block *new_block; in dpaa2_switch_port_block_unbind() local
1302 new_block = dpaa2_switch_filter_block_get_unused(ethsw); in dpaa2_switch_port_block_unbind()
1303 new_block->in_use = true; in dpaa2_switch_port_block_unbind()
1304 return dpaa2_switch_port_acl_tbl_bind(port_priv, new_block); in dpaa2_switch_port_block_unbind()
/openbmc/linux/fs/ocfs2/
H A Drefcounttree.c2911 u64 new_block = ocfs2_clusters_to_blocks(sb, new_cluster); in ocfs2_duplicate_clusters_by_page() local
2988 page, 0, &new_block); in ocfs2_duplicate_clusters_by_page()
3012 u64 new_block = ocfs2_clusters_to_blocks(sb, new_cluster); in ocfs2_duplicate_clusters_by_jbd() local
3020 for (i = 0; i < blocks; i++, old_block++, new_block++) { in ocfs2_duplicate_clusters_by_jbd()
3021 new_bh = sb_getblk(osb->sb, new_block); in ocfs2_duplicate_clusters_by_jbd()
/openbmc/linux/drivers/staging/rts5208/
H A Dsd.c1618 bool new_block; local
1632 new_block = true;
1636 if (new_block) {
1637 new_block = false;
1645 new_block = true;