Home
last modified time | relevance | path

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

/system/extras/ext4_utils/
Dallocate.h20 #define EXT4_ALLOCATE_FAILED (u32)(~0)
30 u32 allocate_block();
31 struct block_allocation *allocate_blocks(u32 len);
34 struct ext4_inode *get_inode(u32 inode);
36 void reduce_allocation(struct block_allocation *alloc, u32 len);
37 u32 get_block(struct block_allocation *alloc, u32 block);
38 u32 get_oob_block(struct block_allocation *alloc, u32 block);
40 void get_region(struct block_allocation *alloc, u32 *block, u32 *len);
41 u32 get_free_blocks(u32 bg);
42 u32 get_free_inodes(u32 bg);
[all …]
Dcontents.h30 u32 *inode;
31 u32 mtime;
36 u32 make_directory(u32 dir_inode_num, u32 entries, struct dentry *dentries,
37 u32 dirs);
38 u32 make_file(const char *filename, u64 len);
39 u32 make_link(const char *link);
40 int inode_set_permissions(u32 inode_num, u16 mode, u16 uid, u16 gid, u32 mtime);
41 int inode_set_selinux(u32 inode_num, const char *secon);
42 int inode_set_capabilities(u32 inode_num, uint64_t capabilities);
Dext4_utils.h76 #define __le32 u32
80 #define __be32 u32
84 #define __u32 u32
96 typedef unsigned int u32; typedef
120 u32 block_size;
121 u32 blocks_per_group;
122 u32 inodes_per_group;
123 u32 inode_size;
124 u32 inodes;
125 u32 journal_blocks;
[all …]
Dindirect.c42 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()
[all …]
Dallocate.c30 u32 partial_iter;
39 u32 block;
40 u32 len;
47 u32 first_block;
55 u32 free_blocks;
56 u32 first_free_block;
57 u32 free_inodes;
58 u32 first_free_inode;
158 u32 block, u32 len, int bg_num) in append_region()
175 u32 block = bg->first_block + 2; in allocate_bg_inode_table()
[all …]
Dcontents.c43 static u32 dentry_size(u32 entries, struct dentry *dentries) in dentry_size()
45 u32 len = 24; in dentry_size()
59 static struct ext4_dir_entry_2 *add_dentry(u8 *data, u32 *offset, in add_dentry()
60 struct ext4_dir_entry_2 *prev, u32 inode, const char *name, in add_dentry()
67 u32 start_block = *offset / info.block_size; in add_dentry()
68 u32 end_block = (*offset + rec_len - 1) / info.block_size; in add_dentry()
95 u32 make_directory(u32 dir_inode_num, u32 entries, struct dentry *dentries, in make_directory()
96 u32 dirs) in make_directory()
99 u32 blocks; in make_directory()
100 u32 len; in make_directory()
[all …]
Dextent.c39 u32 region_block; in extent_create_backing()
40 u32 region_len; in extent_create_backing()
41 u32 len; in extent_create_backing()
61 u32 region_block; in extent_create_backing_file()
62 u32 region_len; in extent_create_backing_file()
63 u32 len; in extent_create_backing_file()
78 u32 block_len = DIV_ROUND_UP(len, info.block_size); in do_inode_allocate_extents()
80 u32 extent_block = 0; in do_inode_allocate_extents()
81 u32 file_block = 0; in do_inode_allocate_extents()
151 u32 region_block; in do_inode_allocate_extents()
[all …]
Dmake_ext4fs.c81 static u32 build_default_directory_structure() in build_default_directory_structure()
83 u32 inode; in build_default_directory_structure()
84 u32 root_inode; in build_default_directory_structure()
110 static u32 build_directory_structure(const char *full_path, const char *dir_path, in build_directory_structure()
111 u32 dir_inode, fs_config_func_t fs_config_func, in build_directory_structure()
120 u32 inode; in build_directory_structure()
121 u32 entry_inode; in build_directory_structure()
122 u32 dirs = 0; in build_directory_structure()
302 static u32 compute_block_size() in compute_block_size()
307 static u32 compute_journal_blocks() in compute_journal_blocks()
[all …]
Dext2simg.c108 static int bitmap_get_bit(u8 *bitmap, u32 bit) in bitmap_get_bit()
133 u32 first_block = aux_info.first_data_block + i * info.blocks_per_group; in build_sparse_ext()
134 u32 last_block = min(info.blocks_per_group, aux_info.len_blocks - first_block); in build_sparse_ext()
151 u32 start_block = first_block + start_contiguous_block; in build_sparse_ext()
152 u32 len_blocks = block - start_contiguous_block; in build_sparse_ext()
166 u32 start_block = first_block + start_contiguous_block; in build_sparse_ext()
167 u32 len_blocks = last_block - start_contiguous_block; in build_sparse_ext()
Dext4_utils.c99 aux_info.blocks_per_ind = info.block_size / sizeof(u32); in ext4_create_fs_aux_info()
109 u32 last_group_size = aux_info.len_blocks % info.blocks_per_group; in ext4_create_fs_aux_info()
110 u32 last_header_size = 2 + aux_info.inode_table_blocks; in ext4_create_fs_aux_info()
224 u32 header_size = 0; in ext4_fill_in_sb()
300 u32 reserve_inode_len = 0; in ext4_create_resize_inode()
313 u32 reserved_block_start = group_start_block + 1 + in ext4_create_resize_inode()
315 u32 reserved_block_len = info.bg_desc_reserve_blocks; in ext4_create_resize_inode()
367 u32 i; in ext4_update_free()
370 u32 bg_free_blocks = get_free_blocks(i); in ext4_update_free()
371 u32 bg_free_inodes = get_free_inodes(i); in ext4_update_free()
Duuid.c31 u32 time_low;
37 u32 node2_5;
Djbd2.h49 #define JBD2_CHECKSUM_BYTES (32 / sizeof(u32))
Dext4fixup.c323 static int bitmap_get_bit(u8 *bitmap, u32 bit) in bitmap_get_bit()
331 static void bitmap_clear_bit(u8 *bitmap, u32 bit) in bitmap_clear_bit()
/system/core/libsparse/
Dsparse_defs.h24 #define __le32 u32
28 #define __be32 u32
32 #define __u32 u32
38 typedef unsigned int u32; typedef
/system/core/gpttool/
Dgpttool.c32 typedef unsigned int u32; typedef
49 u32 version;
50 u32 header_sz;
52 u32 crc32;
53 u32 reserved;
64 u32 entries_count;
65 u32 entries_size;
66 u32 entries_crc32;
95 void init_mbr(u8 *mbr, u32 blocks) in init_mbr()
112 memcpy(mbr + 0x1ca, &blocks, sizeof(u32)); in init_mbr()
[all …]