/system/core/libmemtrack/ |
D | memtrack_test.c | 26 #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/ |
D | bitops.h | 28 #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/ |
D | bitops.h | 14 #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/ |
D | sparse_defs.h | 42 #define DIV_ROUND_UP(x, y) (((x) + (y) - 1)/(y)) macro 43 #define ALIGN(x, y) ((y) * DIV_ROUND_UP((x), (y)))
|
D | sparse.c | 95 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/ |
D | indirect.c | 33 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()
|
D | make_ext4fs.c | 364 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()
|
D | ext4_utils.c | 206 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()
|
D | extent.c | 78 u32 block_len = DIV_ROUND_UP(len, info.block_size), prealloc_block_len; in do_inode_allocate_extents()
|
D | contents.c | 112 blocks = DIV_ROUND_UP(dentry_size(entries, dentries), info.block_size); in make_directory()
|
D | ext4fixup.c | 280 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/ |
D | ext4_utils.h | 66 #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/ |
D | kernel.h | 22 #define DIV_ROUND_UP(n,d) (((n) + (d) - 1) / (d)) macro
|
/system/extras/perfprofd/quipper/original-kernel-headers/tools/perf/util/include/linux/kernel/ |
D | kernel.h | 9 #define DIV_ROUND_UP(n,d) (((n) + (d) - 1) / (d)) macro
|
/system/extras/tests/fstest/ |
D | recovery_test.cpp | 140 int num_bgs = DIV_ROUND_UP(sb.s_blocks_count_lo, sb.s_blocks_per_group); in corruptGdtFreeBlock()
|