Home
last modified time | relevance | path

Searched refs:DIV_ROUND_UP (Results 1 – 15 of 15) sorted by relevance

/system/core/libmemtrack/
Dmemtrack_test.c26 #define DIV_ROUND_UP(x,y) (((x) + (y) - 1) / (y)) macro
123 v1 = DIV_ROUND_UP(memtrack_proc_graphics_total(p), 1024); in main()
124 v2 = DIV_ROUND_UP(memtrack_proc_graphics_pss(p), 1024); in main()
125 v3 = DIV_ROUND_UP(memtrack_proc_gl_total(p), 1024); in main()
126 v4 = DIV_ROUND_UP(memtrack_proc_gl_pss(p), 1024); in main()
127 v5 = DIV_ROUND_UP(memtrack_proc_other_total(p), 1024); in main()
128 v6 = DIV_ROUND_UP(memtrack_proc_other_pss(p), 1024); in main()
/system/extras/perfprofd/quipper/kernel-headers/tools/perf/util/include/linux/
Dbitops.h28 #define BITS_TO_LONGS(nr) DIV_ROUND_UP(nr, BITS_PER_BYTE * sizeof(long))
29 #define BITS_TO_U64(nr) DIV_ROUND_UP(nr, BITS_PER_BYTE * sizeof(u64))
31 #define BITS_TO_U32(nr) DIV_ROUND_UP(nr, BITS_PER_BYTE * sizeof(u32))
32 #define BITS_TO_BYTES(nr) DIV_ROUND_UP(nr, BITS_PER_BYTE)
/system/extras/perfprofd/quipper/original-kernel-headers/tools/perf/util/include/linux/
Dbitops.h14 #define BITS_TO_LONGS(nr) DIV_ROUND_UP(nr, BITS_PER_BYTE * sizeof(long))
15 #define BITS_TO_U64(nr) DIV_ROUND_UP(nr, BITS_PER_BYTE * sizeof(u64))
16 #define BITS_TO_U32(nr) DIV_ROUND_UP(nr, BITS_PER_BYTE * sizeof(u32))
17 #define BITS_TO_BYTES(nr) DIV_ROUND_UP(nr, BITS_PER_BYTE)
/system/core/libsparse/
Dsparse_defs.h42 #define DIV_ROUND_UP(x, y) (((x) + (y) - 1)/(y)) macro
43 #define ALIGN(x, y) ((y) * DIV_ROUND_UP((x), (y)))
Dsparse.c95 DIV_ROUND_UP(backed_block_len(bb), s->block_size); in sparse_count_chunks()
97 if (last_block < DIV_ROUND_UP(s->len, s->block_size)) { in sparse_count_chunks()
149 DIV_ROUND_UP(backed_block_len(bb), s->block_size); in write_all_blocks()
321 DIV_ROUND_UP(backed_block_len(bb), to->block_size); in move_chunks_up_to_len()
/system/extras/ext4_utils/
Dindirect.c33 if (DIV_ROUND_UP(backing_len, info.block_size) > EXT4_NDIR_BLOCKS) in create_backing()
325 ind += DIV_ROUND_UP(len, aux_info.blocks_per_ind); in indirect_blocks_needed()
332 ind += DIV_ROUND_UP(len, aux_info.blocks_per_dind); in indirect_blocks_needed()
339 ind += DIV_ROUND_UP(len, aux_info.blocks_per_tind); in indirect_blocks_needed()
408 u32 block_len = DIV_ROUND_UP(len, info.block_size); in inode_allocate_indirect()
494 u32 block_len = DIV_ROUND_UP(len, info.block_size); in inode_allocate_data_indirect()
Dmake_ext4fs.c364 u32 journal_blocks = DIV_ROUND_UP(info.len, info.block_size) / 64; in compute_journal_blocks()
379 return DIV_ROUND_UP(info.len, info.block_size) / 4; in compute_inodes()
384 u32 blocks = DIV_ROUND_UP(info.len, info.block_size); in compute_inodes_per_group()
385 u32 block_groups = DIV_ROUND_UP(blocks, info.blocks_per_group); in compute_inodes_per_group()
386 u32 inodes = DIV_ROUND_UP(info.inodes, block_groups); in compute_inodes_per_group()
399 u32 blocks = DIV_ROUND_UP(info.len, info.block_size); in compute_bg_desc_reserve_blocks()
400 u32 block_groups = DIV_ROUND_UP(blocks, info.blocks_per_group); in compute_bg_desc_reserve_blocks()
401 u32 bg_desc_blocks = DIV_ROUND_UP(block_groups * sizeof(struct ext2_group_desc), in compute_bg_desc_reserve_blocks()
405 DIV_ROUND_UP(block_groups * 1024 * sizeof(struct ext2_group_desc), in compute_bg_desc_reserve_blocks()
638 real_file_block_size = DIV_ROUND_UP(real_file_block_size, info.block_size); in extract_base_fs_allocations()
Dext4_utils.c206 aux_info.inode_table_blocks = DIV_ROUND_UP(info.inodes_per_group * info.inode_size, in ext4_create_fs_aux_info()
208 aux_info.groups = DIV_ROUND_UP(aux_info.len_blocks - aux_info.first_data_block, in ext4_create_fs_aux_info()
215 DIV_ROUND_UP(aux_info.groups * sizeof(struct ext2_group_desc), in ext4_create_fs_aux_info()
Dextent.c78 u32 block_len = DIV_ROUND_UP(len, info.block_size), prealloc_block_len; in do_inode_allocate_extents()
Dcontents.c112 blocks = DIV_ROUND_UP(dentry_size(entries, dentries), info.block_size); in make_directory()
Dext4fixup.c280 num_block_groups = DIV_ROUND_UP(aux_info.len_blocks, info.blocks_per_group); in update_superblocks_and_bg_desc()
/system/extras/ext4_utils/include/ext4_utils/
Dext4_utils.h66 #define DIV_ROUND_UP(x, y) (((x) + (y) - 1)/(y)) macro
67 #define EXT4_ALIGN(x, y) ((y) * DIV_ROUND_UP((x), (y)))
/system/extras/perfprofd/quipper/kernel-headers/tools/perf/util/include/linux/kernel/
Dkernel.h22 #define DIV_ROUND_UP(n,d) (((n) + (d) - 1) / (d)) macro
/system/extras/perfprofd/quipper/original-kernel-headers/tools/perf/util/include/linux/kernel/
Dkernel.h9 #define DIV_ROUND_UP(n,d) (((n) + (d) - 1) / (d)) macro
/system/extras/tests/fstest/
Drecovery_test.cpp140 int num_bgs = DIV_ROUND_UP(sb.s_blocks_count_lo, sb.s_blocks_per_group); in corruptGdtFreeBlock()