/system/extras/ext4_utils/ |
D | ext4_utils.c | 93 memcpy(buf + 1024, (u8*)aux_info.sb, 1024); in write_ext4_image() 97 write_data_block(out, 1024, (u8*)aux_info.sb, 1024); in write_ext4_image() 147 aux_info.sb = calloc(info.block_size, 1); in ext4_create_fs_aux_info() 148 if (!aux_info.sb) in ext4_create_fs_aux_info() 158 free(aux_info.sb); in ext4_free_fs_aux_info() 166 struct ext4_super_block *sb = aux_info.sb; in ext4_fill_in_sb() local 168 sb->s_inodes_count = info.inodes_per_group * aux_info.groups; in ext4_fill_in_sb() 169 sb->s_blocks_count_lo = aux_info.len_blocks; in ext4_fill_in_sb() 170 sb->s_r_blocks_count_lo = 0; in ext4_fill_in_sb() 171 sb->s_free_blocks_count_lo = 0; in ext4_fill_in_sb() [all …]
|
D | ext4_jbd2.h | 19 #define EXT4_SINGLEDATA_TRANS_BLOCKS(sb) (EXT4_HAS_INCOMPAT_FEATURE(sb, EXT4_FEATURE_INCOMPAT_EXT… argument 23 … EXT4_DATA_TRANS_BLOCKS(sb) (EXT4_SINGLEDATA_TRANS_BLOCKS(sb) + EXT4_XATTR_TRANS_BLOCKS - 2 + … argument 25 #define EXT4_META_TRANS_BLOCKS(sb) (EXT4_XATTR_TRANS_BLOCKS + EXT4_MAXQUOTAS_TRANS_BLOCKS(sb)) argument 27 #define EXT4_DELETE_TRANS_BLOCKS(sb) (2 * EXT4_DATA_TRANS_BLOCKS(sb) + 64) argument 35 #define EXT4_QUOTA_TRANS_BLOCKS(sb) 0 argument 36 #define EXT4_QUOTA_INIT_BLOCKS(sb) 0 argument 37 #define EXT4_QUOTA_DEL_BLOCKS(sb) 0 argument 38 #define EXT4_MAXQUOTAS_TRANS_BLOCKS(sb) (MAXQUOTAS*EXT4_QUOTA_TRANS_BLOCKS(sb)) argument 39 #define EXT4_MAXQUOTAS_INIT_BLOCKS(sb) (MAXQUOTAS*EXT4_QUOTA_INIT_BLOCKS(sb)) argument 40 #define EXT4_MAXQUOTAS_DEL_BLOCKS(sb) (MAXQUOTAS*EXT4_QUOTA_DEL_BLOCKS(sb)) argument
|
D | ext4.h | 362 #define test_opt(sb, opt) (EXT4_SB(sb)->s_mount_opt & EXT4_MOUNT_##opt) argument 453 #define EXT4_SB(sb) (sb) argument 471 #define EXT4_HAS_COMPAT_FEATURE(sb,mask) ((EXT4_SB(sb)->s_es->s_feature_compat & cpu_to_le32(mask… argument 472 #define EXT4_HAS_RO_COMPAT_FEATURE(sb,mask) ((EXT4_SB(sb)->s_es->s_feature_ro_compat & cpu_to_le3… argument 473 #define EXT4_HAS_INCOMPAT_FEATURE(sb,mask) ((EXT4_SB(sb)->s_es->s_feature_incompat & cpu_to_le32(… argument 474 #define EXT4_SET_COMPAT_FEATURE(sb,mask) EXT4_SB(sb)->s_es->s_feature_compat |= cpu_to_le32(mask) argument 475 #define EXT4_SET_RO_COMPAT_FEATURE(sb,mask) EXT4_SB(sb)->s_es->s_feature_ro_compat |= cpu_to_le32… argument 476 #define EXT4_SET_INCOMPAT_FEATURE(sb,mask) EXT4_SB(sb)->s_es->s_feature_incompat |= cpu_to_le32(m… argument 477 #define EXT4_CLEAR_COMPAT_FEATURE(sb,mask) EXT4_SB(sb)->s_es->s_feature_compat &= ~cpu_to_le32(ma… argument 478 #define EXT4_CLEAR_RO_COMPAT_FEATURE(sb,mask) EXT4_SB(sb)->s_es->s_feature_ro_compat &= ~cpu_to_l… argument [all …]
|
D | make_ext4fs.c | 319 aux_info.sb->s_inodes_count - aux_info.sb->s_free_inodes_count, in make_ext4fs() 320 aux_info.sb->s_inodes_count, in make_ext4fs() 321 aux_info.sb->s_blocks_count_lo - aux_info.sb->s_free_blocks_count_lo, in make_ext4fs() 322 aux_info.sb->s_blocks_count_lo); in make_ext4fs()
|
D | ext4_utils.h | 90 struct ext4_super_block *sb; member
|
/system/core/libpixelflinger/tinyutils/ |
D | SharedBuffer.cpp | 22 SharedBuffer* sb = static_cast<SharedBuffer *>(malloc(sizeof(SharedBuffer) + size)); in alloc() local 23 if (sb) { in alloc() 24 sb->mRefs = 1; in alloc() 25 sb->mSize = size; in alloc() 27 return sb; in alloc() 43 SharedBuffer* sb = alloc(mSize); in edit() local 44 if (sb) { in edit() 45 memcpy(sb->data(), data(), size()); in edit() 48 return sb; in edit() 62 SharedBuffer* sb = alloc(newSize); in editResize() local [all …]
|
D | VectorImpl.cpp | 89 SharedBuffer* sb = SharedBuffer::sharedBuffer(mStorage)->attemptEdit(); in editArrayImpl() local 90 if (sb == 0) { in editArrayImpl() 91 sb = SharedBuffer::alloc(capacity() * mItemSize); in editArrayImpl() 92 if (sb) { in editArrayImpl() 93 _do_copy(sb->data(), mStorage, mCount); in editArrayImpl() 95 mStorage = sb->data(); in editArrayImpl() 250 SharedBuffer* sb = SharedBuffer::alloc(new_capacity * mItemSize); in setCapacity() local 251 if (sb) { in setCapacity() 252 void* array = sb->data(); in setCapacity() 265 const SharedBuffer* sb = SharedBuffer::sharedBuffer(mStorage); in release_storage() local [all …]
|
/system/core/libcutils/ |
D | dir_hash.c | 42 struct stat sb; in get_file_hash() local 52 if (stat(path, &sb) != 0) { in get_file_hash() 56 if (S_ISLNK(sb.st_mode)) { in get_file_hash() 68 } else if (S_ISREG(sb.st_mode)) { in get_file_hash() 92 if (S_ISLNK(sb.st_mode) || S_ISREG(sb.st_mode)) { in get_file_hash() 101 " %d 0%o %d %d", (int) sb.st_size, sb.st_mode, in get_file_hash() 102 (int) sb.st_uid, (int) sb.st_gid); in get_file_hash() 105 "- - 0%o %d %d", sb.st_mode, in get_file_hash() 106 (int) sb.st_uid, (int) sb.st_gid); in get_file_hash() 175 struct stat sb; in recurse() local [all …]
|
/system/vold/ |
D | VolumeManager.cpp | 294 struct asec_superblock sb; in createAsec() local 295 memset(&sb, 0, sizeof(sb)); in createAsec() 297 sb.magic = ASEC_SB_MAGIC; in createAsec() 298 sb.ver = ASEC_SB_VER; in createAsec() 357 sb.c_cipher = ASEC_SB_C_CIPHER_TWOFISH; in createAsec() 367 sb.c_cipher = ASEC_SB_C_CIPHER_NONE; in createAsec() 397 if (write(sbfd, &sb, sizeof(sb)) != sizeof(sb)) { in createAsec() 727 struct asec_superblock sb; in mountAsec() local 728 memset(&sb, 0, sizeof(sb)); in mountAsec() 735 if (read(fd, &sb, sizeof(sb)) != sizeof(sb)) { in mountAsec() [all …]
|
/system/core/toolbox/ |
D | insmod.c | 16 struct stat sb; in read_file() local 26 if (fstat(fd, &sb) < 0) in read_file() 28 size = sb.st_size; in read_file()
|
D | newfs_msdos.c | 258 struct stat sb; in newfs_msdos_main() local 383 if (fstat(fd, &sb)) in newfs_msdos_main() 386 if (!S_ISREG(sb.st_mode)) in newfs_msdos_main() 389 if (!S_ISCHR(sb.st_mode)) in newfs_msdos_main() 393 check_mounted(fname, sb.st_mode); in newfs_msdos_main() 504 if ((fd1 = open(bname, O_RDONLY)) == -1 || fstat(fd1, &sb)) in newfs_msdos_main() 506 if (!S_ISREG(sb.st_mode) || sb.st_size % bpb.bps || in newfs_msdos_main() 507 sb.st_size < bpb.bps || sb.st_size > bpb.bps * MAXU16) in newfs_msdos_main() 509 bss = sb.st_size / bpb.bps; in newfs_msdos_main()
|
D | dd.c | 289 struct stat sb; in getfdtype() local 291 if (fstat(io->fd, &sb)) { in getfdtype() 297 if (S_ISCHR(sb.st_mode)) in getfdtype()
|
/system/core/nexus/ |
D | Controller.cpp | 124 struct stat sb; in loadFile() local 134 if (fstat(fd, &sb) < 0) in loadFile() 136 size = sb.st_size; in loadFile()
|
/system/media/opensles/libopensles/ |
D | android_SfPlayer.cpp | 159 struct stat sb; in setDataSource() local 160 int ret = fstat(fd, &sb); in setDataSource() 167 if (offset >= sb.st_size) { in setDataSource() 174 mDataLocator.fdi.length = sb.st_size; in setDataSource() 175 } else if (offset + length > sb.st_size) { in setDataSource() 176 mDataLocator.fdi.length = sb.st_size - offset; in setDataSource()
|
/system/core/debuggerd/ |
D | debuggerd.c | 510 struct stat sb; in find_and_open_tombstone() local 518 typecheck(mtime, sb.st_mtime); in find_and_open_tombstone() 527 if (!stat(path, &sb)) { in find_and_open_tombstone() 528 if (sb.st_mtime < mtime) { in find_and_open_tombstone() 530 mtime = sb.st_mtime; in find_and_open_tombstone()
|