/external/e2fsprogs/lib/ext2fs/ |
freefs.c | 22 void ext2fs_free(ext2_filsys fs) 24 if (!fs || (fs->magic != EXT2_ET_MAGIC_EXT2FS_FILSYS)) 26 if (fs->image_io != fs->io) { 27 if (fs->image_io) 28 io_channel_close(fs->image_io); 30 if (fs->io) { 31 io_channel_close(fs->io); 33 if (fs->device_name [all...] |
dupfs.c | 24 ext2_filsys fs; local 29 retval = ext2fs_get_mem(sizeof(struct struct_ext2_filsys), &fs); 33 *fs = *src; 34 fs->device_name = 0; 35 fs->super = 0; 36 fs->orig_super = 0; 37 fs->group_desc = 0; 38 fs->inode_map = 0; 39 fs->block_map = 0; 40 fs->badblocks = 0 [all...] |
openfs.c | 32 blk_t ext2fs_descriptor_block_loc(ext2_filsys fs, blk_t group_block, dgrp_t i) 38 if (!(fs->super->s_feature_incompat & EXT2_FEATURE_INCOMPAT_META_BG) || 39 (i < fs->super->s_first_meta_bg)) 42 bg = EXT2_DESC_PER_BLOCK(fs->super) * i; 43 if (ext2fs_bg_has_super(fs, bg)) 45 ret_blk = ext2fs_group_first_block(fs, bg) + has_super; 54 if (group_block != fs->super->s_first_data_block && 55 ((ret_blk + fs->super->s_blocks_per_group) < 56 fs->super->s_blocks_count)) 57 ret_blk += fs->super->s_blocks_per_group 85 ext2_filsys fs; local [all...] |
alloc_stats.c | 18 void ext2fs_inode_alloc_stats2(ext2_filsys fs, ext2_ino_t ino, 21 int group = ext2fs_group_of_ino(fs, ino); 24 if (ino > fs->super->s_inodes_count) { 31 ext2fs_mark_inode_bitmap(fs->inode_map, ino); 33 ext2fs_unmark_inode_bitmap(fs->inode_map, ino); 34 fs->group_desc[group].bg_free_inodes_count -= inuse; 36 fs->group_desc[group].bg_used_dirs_count += inuse; 40 fs->group_desc[group].bg_flags &= ~EXT2_BG_INODE_UNINIT; 41 if (EXT2_HAS_RO_COMPAT_FEATURE(fs->super, 43 ext2_ino_t first_unused_inode = fs->super->s_inodes_per_group [all...] |
rw_bitmaps.c | 30 static errcode_t write_bitmaps(ext2_filsys fs, int do_inode, int do_block) 40 blk_t blk_itr = fs->super->s_first_data_block; 43 EXT2_CHECK_MAGIC(fs, EXT2_ET_MAGIC_EXT2FS_FILSYS); 45 if (!(fs->flags & EXT2_FLAG_RW)) 48 if (EXT2_HAS_RO_COMPAT_FEATURE(fs->super, 54 block_nbytes = EXT2_BLOCKS_PER_GROUP(fs->super) / 8; 55 retval = ext2fs_get_mem(fs->blocksize, &block_buf); 58 memset(block_buf, 0xff, fs->blocksize); 62 ((EXT2_INODES_PER_GROUP(fs->super)+7) / 8); 63 retval = ext2fs_get_mem(fs->blocksize, &inode_buf) [all...] |
alloc.c | 32 static void check_block_uninit(ext2_filsys fs, ext2fs_block_bitmap map, 39 if (!(EXT2_HAS_RO_COMPAT_FEATURE(fs->super, 41 !(fs->group_desc[group].bg_flags & EXT2_BG_BLOCK_UNINIT)) 44 blk = (group * fs->super->s_blocks_per_group) + 45 fs->super->s_first_data_block; 47 ext2fs_super_and_bgd_loc(fs, group, &super_blk, 50 if (fs->super->s_feature_incompat & 52 old_desc_blocks = fs->super->s_first_meta_bg; 54 old_desc_blocks = fs->desc_blocks + fs->super->s_reserved_gdt_blocks [all...] |
closefs.c | 35 int ext2fs_bg_has_super(ext2_filsys fs, int group_block) 37 if (!(fs->super->s_feature_ro_compat & 61 int ext2fs_super_and_bgd_loc(ext2_filsys fs, 73 group_block = ext2fs_group_first_block(fs, group); 75 if (fs->super->s_feature_incompat & EXT2_FEATURE_INCOMPAT_META_BG) 76 old_desc_blocks = fs->super->s_first_meta_bg; 79 fs->desc_blocks + fs->super->s_reserved_gdt_blocks; 81 if (group == fs->group_desc_count-1) { 82 numblocks = (fs->super->s_blocks_count [all...] |
alloc_tables.c | 36 static blk_t flexbg_offset(ext2_filsys fs, dgrp_t group, blk_t start_blk, 44 flexbg_size = 1 << fs->super->s_log_groups_per_flex; 47 if (size > (int) (fs->super->s_blocks_per_group / 8)) 48 size = (int) fs->super->s_blocks_per_group / 8; 63 start_blk = ext2fs_group_first_block(fs, flexbg_size * flexbg); 65 if (last_grp > fs->group_desc_count) 66 last_grp = fs->group_desc_count; 67 last_blk = ext2fs_group_last_block(fs, last_grp); 70 if (ext2fs_get_free_blocks(fs, start_blk, last_blk, 1, bmap, 74 if (ext2fs_get_free_blocks(fs, first_free + offset, last_blk, size [all...] |
csum.c | 32 STATIC __u16 ext2fs_group_desc_csum(ext2_filsys fs, dgrp_t group) 37 desc = &fs->group_desc[group]; 39 if (fs->super->s_feature_ro_compat & EXT4_FEATURE_RO_COMPAT_GDT_CSUM) { 51 crc = ext2fs_crc16(~0, fs->super->s_uuid, 52 sizeof(fs->super->s_uuid)); 58 if (offset < fs->super->s_desc_size) { 60 fs->super->s_desc_size - offset); 67 int ext2fs_group_desc_csum_verify(ext2_filsys fs, dgrp_t group) 69 if (EXT2_HAS_RO_COMPAT_FEATURE(fs->super, 71 (fs->group_desc[group].bg_checksum ! 181 ext2_filsys fs; local [all...] |
imager.c | 61 errcode_t ext2fs_image_inode_write(ext2_filsys fs, int fd, int flags) 69 buf = malloc(fs->blocksize * BUF_BLOCKS); 73 for (group = 0; group < fs->group_desc_count; group++) { 74 blk = fs->group_desc[(unsigned)group].bg_inode_table; 79 left = fs->inode_blocks_per_group; 84 retval = io_channel_read_blk(fs->io, blk, c, buf); 94 if (check_zero_block(cp, fs->blocksize)) { 98 cp += fs->blocksize; 99 lseek(fd, fs->blocksize, SEEK_CUR); 104 if (check_zero_block(cp + d*fs->blocksize, fs->blocksize) [all...] |
check_desc.c | 32 errcode_t ext2fs_check_desc(ext2_filsys fs) 37 blk_t first_block = fs->super->s_first_data_block; 38 blk_t last_block = fs->super->s_blocks_count-1; 42 EXT2_CHECK_MAGIC(fs, EXT2_ET_MAGIC_EXT2FS_FILSYS); 44 retval = ext2fs_allocate_block_bitmap(fs, "check_desc map", &bmap); 48 for (i = 0; i < fs->group_desc_count; i++) 49 ext2fs_reserve_super_and_bgd(fs, i, bmap); 51 for (i = 0; i < fs->group_desc_count; i++) { 52 if (!EXT2_HAS_INCOMPAT_FEATURE(fs->super, 54 first_block = ext2fs_group_first_block(fs, i) [all...] |
mkdir.c | 33 errcode_t ext2fs_mkdir(ext2_filsys fs, ext2_ino_t parent, ext2_ino_t inum, 43 EXT2_CHECK_MAGIC(fs, EXT2_ET_MAGIC_EXT2FS_FILSYS); 49 retval = ext2fs_new_inode(fs, parent, LINUX_S_IFDIR | 0755, 58 retval = ext2fs_new_block(fs, 0, 0, &blk); 65 retval = ext2fs_new_dir_block(fs, ino, parent, &block); 73 retval = ext2fs_read_inode(fs, parent, &parent_inode); 83 inode.i_mode = LINUX_S_IFDIR | (0777 & ~fs->umask); 85 ext2fs_iblk_set(fs, &inode, 1); 88 inode.i_size = fs->blocksize; 93 retval = ext2fs_write_dir_block(fs, blk, block) [all...] |
initialize.c | 66 static unsigned int calc_reserved_gdt_blocks(ext2_filsys fs) 68 struct ext2_super_block *sb = fs->super; 81 rsv_gdb = ext2fs_div_ceil(rsv_groups, gdpb) - fs->desc_blocks; 96 ext2_filsys fs; local 114 retval = ext2fs_get_mem(sizeof(struct struct_ext2_filsys), &fs); 118 memset(fs, 0, sizeof(struct struct_ext2_filsys)); 119 fs->magic = EXT2_ET_MAGIC_EXT2FS_FILSYS; 120 fs->flags = flags | EXT2_FLAG_RW; 121 fs->umask = 022; 123 fs->flags |= EXT2_FLAG_SWAP_BYTES [all...] |
/external/grub/stage2/ |
fs.h | 42 * @(#)fs.h 7.7 (Berkeley) 5/9/89 57 * For file system fs, the offsets of the various blocks of interest 59 * [fs->fs_sblkno] Super-block 60 * [fs->fs_cblkno] Cylinder group block 61 * [fs->fs_iblkno] Inode blocks 62 * [fs->fs_dblkno] Data blocks 63 * The beginning of cylinder group cg in fs, is given by 64 * the ``cgbase(fs, cg)'' macro. 89 * information in the inode, using the ``blksize(fs, ip, lbn)'' macro. 146 struct fs struct [all...] |
/external/llvm/test/FrontendC/ |
2003-11-04-EmptyStruct.c | 5 void __copy_fs_struct(struct fs_struct *fs) { fs->lock = (rwlock_t) { }; }
|
/system/extras/fatblock/ |
fs.h | 23 struct fs { struct 44 int fs_alloc_extent(struct fs *fs, struct extent *extent, 46 struct extent *fs_find_extent(struct fs *fs, offset_t start, offset_t len, struct extent *last, 48 int fs_init(struct fs *fs, uint16_t cluster_size, offset_t data_size, offset_t *total_size_out); 49 void fs_set_rootdir_start(struct fs *fs, cluster_t rootdir_start); 50 void fs_update_free_clusters(struct fs *fs) [all...] |
fs.c | 23 #include "fs.h" 28 static void fs_add_extent(struct fs *fs, struct extent *extent, 31 assert(fs); 38 extent->next = fs->extents; 39 fs->extents = extent; 42 struct extent *fs_find_extent(struct fs *fs, offset_t start, offset_t len, 52 assert(fs); 56 e = last ? last->next : fs->extents [all...] |
/frameworks/base/media/libstagefright/codecs/aacdec/ |
get_sbr_startfreq.h | 77 Int get_sbr_startfreq(const Int32 fs,
|
get_sbr_stopfreq.h | 77 Int get_sbr_stopfreq(const Int32 fs,
|
/bionic/libc/string/ |
strtotimeval.c | 37 long fs; /* Fractional seconds */ local 40 fs = 0; 48 fs = 0; 53 fs = fs*10 + (*s - '0'); 58 fs *= 10; 61 ts->tv_usec = fs;
|
/external/e2fsprogs/resize/ |
resize2fs.c | 43 static void fix_uninit_block_bitmaps(ext2_filsys fs); 50 static errcode_t fix_resize_inode(ext2_filsys fs); 51 static errcode_t ext2fs_calculate_summary_stats(ext2_filsys fs); 52 static errcode_t fix_sb_journal_backup(ext2_filsys fs); 57 #define FS_BLOCK_BM(fs, i) ((fs)->group_desc[(i)].bg_block_bitmap) 58 #define FS_INODE_BM(fs, i) ((fs)->group_desc[(i)].bg_inode_bitmap) 59 #define FS_INODE_TB(fs, i) ((fs)->group_desc[(i)].bg_inode_table 570 ext2_filsys fs; local 733 ext2_filsys fs = rfs->new_fs; local 781 ext2_filsys fs, old_fs; local 1047 ext2_filsys fs = rfs->new_fs; local 1101 ext2_filsys fs = rfs->new_fs; local 1585 ext2_filsys fs = rfs->new_fs; local [all...] |
/external/webkit/Tools/Scripts/webkitpy/common/system/ |
filesystem_unittest.py | 52 fs = FileSystem() 53 cwd = fs.getcwd() 57 fs.chdir(newdir) 58 self.assertEquals(fs.getcwd(), newdir) 59 fs.chdir(cwd) 62 fs = FileSystem() 66 self.assertRaises(OSError, fs.chdir, newdir) 69 fs = FileSystem() 70 self.assertTrue(fs.exists(self._this_file)) 73 fs = FileSystem( [all...] |
/bionic/libc/kernel/arch-sh/asm/ |
fb.h | 16 #include <linux/fs.h>
|
/external/e2fsprogs/e2fsck/ |
pass5.c | 32 init_resource_track(&rtrack, ctx->fs->io); 39 if ((ctx->progress)(ctx, 5, 0, ctx->fs->group_desc_count*2)) 64 print_resource_track(ctx, _("Pass 5"), &rtrack, ctx->fs->io); 105 ext2_filsys fs = ctx->fs; local 121 fs->group_desc_count * sizeof(int), "free block count array"); 123 if ((fs->super->s_first_data_block < 125 (fs->super->s_blocks_count-1 > 128 pctx.blk = fs->super->s_first_data_block; 129 pctx.blk2 = fs->super->s_blocks_count -1 328 ext2_filsys fs = ctx->fs; local 546 ext2_filsys fs = ctx->fs; local 590 ext2_filsys fs = ctx->fs; local [all...] |
/external/mesa3d/src/glsl/builtins/tools/ |
texture_builtins.py | 102 def end_function(fs, name): 104 fs[name] = sys.stdout.getvalue(); 112 def generate_texture_functions(fs): 127 end_function(fs, "texture") 141 end_function(fs, "textureProj") 150 end_function(fs, "textureLod") 158 end_function(fs, "texelFetch") 166 end_function(fs, "textureProjLod") 175 end_function(fs, "textureGrad") 183 end_function(fs, "textureProjGrad" [all...] |