Home
last modified time | relevance | path

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

/system/extras/ext4_utils/
Dallocate.h20 #define EXT4_ALLOCATE_FAILED (u32)(~0)
30 u32 partial_iter;
43 u32 allocate_block();
44 struct block_allocation *allocate_blocks(u32 len);
47 struct ext4_inode *get_inode(u32 inode);
49 void reduce_allocation(struct block_allocation *alloc, u32 len);
50 u32 get_block(struct block_allocation *alloc, u32 block);
51 u32 get_oob_block(struct block_allocation *alloc, u32 block);
53 void get_region(struct block_allocation *alloc, u32 *block, u32 *len);
54 u32 get_free_blocks(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);
Dindirect.c40 u32 region_block; in create_backing()
41 u32 region_len; in create_backing()
42 u32 len; in create_backing()
101 static void fill_indirect_block(u32 *ind_block, int len, struct block_allocation *alloc) in fill_indirect_block()
109 static void fill_dindirect_block(u32 *dind_block, int len, struct block_allocation *alloc) in fill_dindirect_block()
112 u32 ind_block; in fill_dindirect_block()
123 u32 *ind_block_data = calloc(info.block_size, 1); in fill_dindirect_block()
139 static void fill_tindirect_block(u32 *tind_block, int len, struct block_allocation *alloc) in fill_tindirect_block()
142 u32 dind_block; in fill_tindirect_block()
153 u32 *dind_block_data = calloc(info.block_size, 1); in fill_tindirect_block()
[all …]
Dext4_utils.h80 typedef unsigned int u32; typedef
88 u32 bg_block_bitmap;
89 u32 bg_inode_bitmap;
90 u32 bg_inode_table;
95 u32 bg_reserved[2];
106 u32 first_data_block;
108 u32 inode_table_blocks;
109 u32 groups;
110 u32 bg_desc_blocks;
111 u32 default_i_flags;
[all …]
Dallocate.c26 u32 block;
27 u32 len;
34 u32 first_block;
42 u32 free_blocks;
43 u32 first_free_block;
44 u32 free_inodes;
45 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()
190 static int bitmap_set_bit(u8 *bitmap, u32 bit) in bitmap_set_bit()
[all …]
Dcontents.c47 static u32 dentry_size(u32 entries, struct dentry *dentries) in dentry_size()
49 u32 len = 24; in dentry_size()
63 static struct ext4_dir_entry_2 *add_dentry(u8 *data, u32 *offset, in add_dentry()
64 struct ext4_dir_entry_2 *prev, u32 inode, const char *name, in add_dentry()
71 u32 start_block = *offset / info.block_size; in add_dentry()
72 u32 end_block = (*offset + rec_len - 1) / info.block_size; in add_dentry()
99 u32 make_directory(u32 dir_inode_num, u32 entries, struct dentry *dentries, in make_directory()
100 u32 dirs) in make_directory()
103 u32 blocks; in make_directory()
104 u32 len; in make_directory()
[all …]
Dextent.c38 u32 region_block; in extent_create_backing()
39 u32 region_len; in extent_create_backing()
40 u32 len; in extent_create_backing()
60 u32 region_block; in extent_create_backing_file()
61 u32 region_len; in extent_create_backing_file()
62 u32 len; in extent_create_backing_file()
77 u32 block_len = DIV_ROUND_UP(len, info.block_size); in do_inode_allocate_extents()
79 u32 extent_block = 0; in do_inode_allocate_extents()
80 u32 file_block = 0; in do_inode_allocate_extents()
150 u32 region_block; in do_inode_allocate_extents()
[all …]
Dmake_ext4fs.c82 static u32 build_default_directory_structure(const char *dir_path, in build_default_directory_structure()
85 u32 inode; in build_default_directory_structure()
86 u32 root_inode; in build_default_directory_structure()
128 static u32 build_directory_structure(const char *full_path, const char *dir_path, in build_directory_structure()
129 u32 dir_inode, fs_config_func_t fs_config_func, in build_directory_structure()
138 u32 inode; in build_directory_structure()
139 u32 entry_inode; in build_directory_structure()
140 u32 dirs = 0; in build_directory_structure()
324 static u32 compute_block_size() in compute_block_size()
329 static u32 compute_journal_blocks() in compute_journal_blocks()
[all …]
Dext2simg.c73 u32 first_block = aux_info.first_data_block + i * info.blocks_per_group; in build_sparse_ext()
74 u32 last_block = min(info.blocks_per_group, aux_info.len_blocks - first_block); in build_sparse_ext()
91 u32 start_block = first_block + start_contiguous_block; in build_sparse_ext()
92 u32 len_blocks = block - start_contiguous_block; in build_sparse_ext()
106 u32 start_block = first_block + start_contiguous_block; in build_sparse_ext()
107 u32 len_blocks = last_block - start_contiguous_block; in build_sparse_ext()
Dext4_utils.c64 int bitmap_get_bit(u8 *bitmap, u32 bit) in bitmap_get_bit()
72 void bitmap_clear_bit(u8 *bitmap, u32 bit) in bitmap_clear_bit()
145 aux_info.blocks_per_ind = info.block_size / sizeof(u32); in ext4_create_fs_aux_info()
155 u32 last_group_size = aux_info.len_blocks % info.blocks_per_group; in ext4_create_fs_aux_info()
156 u32 last_header_size = 2 + aux_info.inode_table_blocks; in ext4_create_fs_aux_info()
270 u32 header_size = 0; in ext4_fill_in_sb()
333 u32 reserve_inode_len = 0; in ext4_create_resize_inode()
346 u32 reserved_block_start = group_start_block + 1 + in ext4_create_resize_inode()
348 u32 reserved_block_len = info.bg_desc_reserve_blocks; in ext4_create_resize_inode()
400 u32 i; in ext4_update_free()
[all …]
Duuid.c31 u32 time_low;
37 u32 node2_5;
/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.c31 typedef unsigned int u32; typedef
48 u32 version;
49 u32 header_sz;
51 u32 crc32;
52 u32 reserved;
63 u32 entries_count;
64 u32 entries_size;
65 u32 entries_crc32;
94 void init_mbr(u8 *mbr, u32 blocks) in init_mbr()
111 memcpy(mbr + 0x1ca, &blocks, sizeof(u32)); in init_mbr()
[all …]
/system/keymaster/
Docb.c115 uint32_t u32[2]; in bswap64() member
118 out.u32[0] = bswap32(in.u32[1]); in bswap64()
119 out.u32[1] = bswap32(in.u32[0]); in bswap64()
753 uint32_t u32[4]; in gen_offset_from_nonce() member
763 tmp.u32[0] = 0x01000000 + ((OCB_TAG_LEN * 8 % 128) << 1); in gen_offset_from_nonce()
765 tmp.u32[0] = 0x00000001 + ((OCB_TAG_LEN * 8 % 128) << 25); in gen_offset_from_nonce()
768 tmp.u32[0] = 0x01000000 + ((ctx->tag_len * 8 % 128) << 1); in gen_offset_from_nonce()
770 tmp.u32[0] = 0x00000001 + ((ctx->tag_len * 8 % 128) << 25); in gen_offset_from_nonce()
772 tmp.u32[1] = ((uint32_t*)nonce)[0]; in gen_offset_from_nonce()
773 tmp.u32[2] = ((uint32_t*)nonce)[1]; in gen_offset_from_nonce()
[all …]
/system/core/libmincrypt/
Dp256_ec.c44 typedef uint32_t u32; typedef
64 typedef u32 limb;
189 #define NON_ZERO_TO_ALL_ONES(x) ((((u32)(x) - 1) >> 31) - 1)
197 const u32 carry_mask = NON_ZERO_TO_ALL_ONES(carry); in felem_reduce_carry()
1050 u32 table_offset; in scalar_base_mult()
/system/extras/f2fs_utils/
Df2fs_sparseblock.c266 u32 bmp_size; in get_valid_checkpoint_info()
418 u32 bmp_size = le32_to_cpu(cp->sit_ver_bitmap_bytesize); in generate_f2fs_info()
/system/vold/
Dcryptfs.c2377 u32 first_block = aux_info.first_data_block + i * info.blocks_per_group;
2378 u32 block_count = min(info.blocks_per_group,
2447 u32 i;
2579 u32 i;