Lines Matching refs:u32
42 u32 region_block; in create_backing()
43 u32 region_len; in create_backing()
44 u32 len; in create_backing()
103 static void fill_indirect_block(u32 *ind_block, int len, struct block_allocation *alloc) in fill_indirect_block()
111 static void fill_dindirect_block(u32 *dind_block, int len, struct block_allocation *alloc) in fill_dindirect_block()
114 u32 ind_block; in fill_dindirect_block()
125 u32 *ind_block_data = calloc(info.block_size, 1); in fill_dindirect_block()
141 static void fill_tindirect_block(u32 *tind_block, int len, struct block_allocation *alloc) in fill_tindirect_block()
144 u32 dind_block; in fill_tindirect_block()
155 u32 *dind_block_data = calloc(info.block_size, 1); in fill_tindirect_block()
169 struct block_allocation *alloc, u32 *block_len) in inode_attach_direct_blocks()
192 struct block_allocation *alloc, u32 *block_len) in inode_attach_indirect_blocks()
204 u32 *ind_block_data = calloc(info.block_size, 1); in inode_attach_indirect_blocks()
224 struct block_allocation *alloc, u32 *block_len) in inode_attach_dindirect_blocks()
236 u32 *dind_block_data = calloc(info.block_size, 1); in inode_attach_dindirect_blocks()
256 struct block_allocation *alloc, u32 *block_len) in inode_attach_tindirect_blocks()
268 u32 *tind_block_data = calloc(info.block_size, 1); in inode_attach_tindirect_blocks()
283 static void reserve_all_indirect_blocks(struct block_allocation *alloc, u32 len) in reserve_all_indirect_blocks()
291 u32 ind_block_len = min(aux_info.blocks_per_ind, len); in reserve_all_indirect_blocks()
298 u32 dind_block_len = min(aux_info.blocks_per_dind, len); in reserve_all_indirect_blocks()
305 u32 tind_block_len = min(aux_info.blocks_per_tind, len); in reserve_all_indirect_blocks()
315 static u32 indirect_blocks_needed(u32 len) in indirect_blocks_needed()
317 u32 ind = 0; in indirect_blocks_needed()
349 struct block_allocation *alloc, u32 block_len) in do_inode_attach_indirect()
351 u32 count = block_len; in do_inode_attach_indirect()
390 u32 block_len) in do_inode_allocate_indirect()
392 u32 indirect_len = indirect_blocks_needed(block_len); in do_inode_allocate_indirect()
408 u32 block_len = DIV_ROUND_UP(len, info.block_size); in inode_allocate_indirect()
409 u32 indirect_len = indirect_blocks_needed(block_len); in inode_allocate_indirect()
433 u32 block_len = block_allocation_len(alloc); in inode_attach_resize()
434 u32 superblocks = block_len / info.bg_desc_reserve_blocks; in inode_attach_resize()
435 u32 i, j; in inode_attach_resize()
444 u32 dind_block = get_oob_block(alloc, 0); in inode_attach_resize()
446 u32 *dind_block_data = calloc(info.block_size, 1); in inode_attach_resize()
452 u32 *ind_block_data = calloc(info.block_size, info.bg_desc_reserve_blocks); in inode_attach_resize()
467 u32 b = j * info.bg_desc_reserve_blocks + r; in inode_attach_resize()
472 u32 last_block = EXT4_NDIR_BLOCKS + aux_info.blocks_per_ind + in inode_attach_resize()
494 u32 block_len = DIV_ROUND_UP(len, info.block_size); in inode_allocate_data_indirect()