/external/chromium_org/third_party/mesa/src/src/gallium/drivers/i915/ |
H A D | i915_state_derived.c | 39 static uint find_mapping(const struct i915_fragment_shader* fs, int unit) argument 44 if (fs->generic_mapping[i] == unit) 59 const struct i915_fragment_shader *fs = i915->fs; local 73 for (i = 0; i < fs->info.num_inputs; i++) { 74 switch (fs->info.input_semantic_name[i]) { 78 texCoords[find_mapping(fs, unit)] = TRUE; 82 assert(fs->info.input_semantic_index[i] < 2); 83 colors[fs->info.input_semantic_index[i]] = TRUE; 88 uint unit = fs [all...] |
/external/mesa3d/src/gallium/drivers/i915/ |
H A D | i915_state_derived.c | 39 static uint find_mapping(const struct i915_fragment_shader* fs, int unit) argument 44 if (fs->generic_mapping[i] == unit) 59 const struct i915_fragment_shader *fs = i915->fs; local 73 for (i = 0; i < fs->info.num_inputs; i++) { 74 switch (fs->info.input_semantic_name[i]) { 78 texCoords[find_mapping(fs, unit)] = TRUE; 82 assert(fs->info.input_semantic_index[i] < 2); 83 colors[fs->info.input_semantic_index[i]] = TRUE; 88 uint unit = fs [all...] |
/external/e2fsprogs/lib/ext2fs/ |
H A D | block.c | 22 ext2_filsys fs; member in struct:block_context 23 int (*func)(ext2_filsys fs, 67 limit = ctx->fs->blocksize >> 2; 71 ret = (*ctx->func)(ctx->fs, &blk64, 81 if (*ind_block >= ext2fs_blocks_count(ctx->fs->super) || 82 *ind_block < ctx->fs->super->s_first_data_block) { 87 ctx->errcode = ext2fs_read_ind_block(ctx->fs, *ind_block, 99 flags = (*ctx->func)(ctx->fs, &blk64, ctx->bcount, 115 flags = (*ctx->func)(ctx->fs, &blk64, ctx->bcount, 130 ctx->errcode = ext2fs_write_ind_block(ctx->fs, *ind_bloc 320 ext2fs_block_iterate3(ext2_filsys fs, ext2_ino_t ino, int flags, char *block_buf, int (*func)(ext2_filsys fs, blk64_t *blocknr, e2_blkcnt_t blockcnt, blk64_t ref_blk, int ref_offset, void *priv_data), void *priv_data) argument 576 xlate64_func(ext2_filsys fs, blk64_t *blocknr, e2_blkcnt_t blockcnt, blk64_t ref_blk, int ref_offset, void *priv_data) argument 590 ext2fs_block_iterate2(ext2_filsys fs, ext2_ino_t ino, int flags, char *block_buf, int (*func)(ext2_filsys fs, blk_t *blocknr, e2_blkcnt_t blockcnt, blk_t ref_blk, int ref_offset, void *priv_data), void *priv_data) argument 623 xlate_func(ext2_filsys fs, blk_t *blocknr, e2_blkcnt_t blockcnt, blk_t ref_block EXT2FS_ATTR((unused)), int ref_offset EXT2FS_ATTR((unused)), void *priv_data) argument 633 ext2fs_block_iterate(ext2_filsys fs, ext2_ino_t ino, int flags, char *block_buf, int (*func)(ext2_filsys fs, blk_t *blocknr, int blockcnt, void *priv_data), void *priv_data) argument [all...] |
H A D | punch.c | 47 static errcode_t ind_punch(ext2_filsys fs, struct ext2_inode *inode, argument 61 incr = 1ULL << ((EXT2_BLOCK_SIZE_BITS(fs->super)-2)*level); 73 retval = ext2fs_read_ind_block(fs, b, block_buf); 77 retval = ind_punch(fs, inode, block_buf + fs->blocksize, 80 fs->blocksize >> 2); 83 retval = ext2fs_write_ind_block(fs, b, block_buf); 86 if (!check_zero_block(block_buf, fs->blocksize)) 92 ext2fs_block_alloc_stats(fs, b, -1); 99 return ext2fs_iblk_sub_blocks(fs, inod 102 ext2fs_punch_ind(ext2_filsys fs, struct ext2_inode *inode, char *block_buf, blk_t start, blk_t count) argument 180 punch_extent_blocks(ext2_filsys fs, ext2_ino_t ino, struct ext2_inode *inode, blk64_t lfree_start, blk64_t free_start, __u32 free_count, int *freed) argument 248 ext2fs_punch_extent(ext2_filsys fs, ext2_ino_t ino, struct ext2_inode *inode, blk64_t start, blk64_t end) argument 412 ext2fs_punch(ext2_filsys fs, ext2_ino_t ino, struct ext2_inode *inode, char *block_buf, blk64_t start, blk64_t end) argument [all...] |
H A D | dblist.c | 31 errcode_t ext2fs_get_num_dirs(ext2_filsys fs, ext2_ino_t *ret_num_dirs) argument 36 EXT2_CHECK_MAGIC(fs, EXT2_ET_MAGIC_EXT2FS_FILSYS); 39 max_dirs = fs->super->s_inodes_per_group; 40 for (i = 0; i < fs->group_desc_count; i++) { 41 if (ext2fs_bg_used_dirs_count(fs, i) > max_dirs) 44 num_dirs += ext2fs_bg_used_dirs_count(fs, i); 46 if (num_dirs > fs->super->s_inodes_count) 47 num_dirs = fs->super->s_inodes_count; 58 static errcode_t make_dblist(ext2_filsys fs, ext2_ino_t size, argument 68 EXT2_CHECK_MAGIC(fs, EXT2_ET_MAGIC_EXT2FS_FILSY 114 ext2fs_init_dblist(ext2_filsys fs, ext2_dblist *ret_dblist) argument 224 ext2fs_dblist_iterate2(ext2_dblist dblist, int (*func)(ext2_filsys fs, struct ext2_db_entry2 *db_info, void *priv_data), void *priv_data) argument 336 passthrough_func(ext2_filsys fs, struct ext2_db_entry2 *db_info, void *priv_data) argument 354 ext2fs_dblist_iterate(ext2_dblist dblist, int (*func)(ext2_filsys fs, struct ext2_db_entry *db_info, void *priv_data), void *priv_data) argument [all...] |
/external/llvm/unittests/Support/ |
H A D | Path.cpp | 135 ASSERT_NO_ERROR(fs::make_absolute(temp_store)); 269 fs::createUniqueDirectory("file-system-test", TestDirectory)); 276 ASSERT_NO_ERROR(fs::remove(TestDirectory.str())); 285 fs::createTemporaryFile("prefix", "temp", FileDescriptor, TempPath)); 288 fs::UniqueID F1, F2; 289 ASSERT_NO_ERROR(fs::getUniqueID(Twine(TempPath), F1)); 290 ASSERT_NO_ERROR(fs::getUniqueID(Twine(TempPath), F2)); 297 fs::createTemporaryFile("prefix", "temp", FileDescriptor2, TempPath2)); 299 fs::UniqueID D; 300 ASSERT_NO_ERROR(fs [all...] |
/external/e2fsprogs/misc/ |
H A D | e2image.c | 225 static void write_image_file(ext2_filsys fs, int fd) argument 231 write_header(fd, NULL, sizeof(struct ext2_image_hdr), fs->blocksize); 235 retval = ext2fs_image_super_write(fs, fd, 0); 243 retval = ext2fs_image_inode_write(fs, fd, 252 retval = ext2fs_image_bitmap_write(fs, fd, 0); 260 retval = ext2fs_image_bitmap_write(fs, fd, IMAGER_FLAG_INODEMAP); 272 hdr.fs_blocksize = fs->blocksize; 281 memcpy(hdr.fs_uuid, fs->super->s_uuid, sizeof(hdr.fs_uuid)); 284 write_header(fd, &hdr, sizeof(struct ext2_image_hdr), fs->blocksize); 308 static errcode_t meta_get_blocks(ext2_filsys fs EXT2FS_ATT 343 use_inode_shortcuts(ext2_filsys fs, int use_shortcuts) argument 389 mark_table_blocks(ext2_filsys fs) argument 476 scramble_dir_block(ext2_filsys fs, blk64_t blk, char *buf) argument 556 output_meta_data_blocks(ext2_filsys fs, int fd, int flags) argument 862 initialize_qcow2_image(int fd, ext2_filsys fs, struct ext2_qcow2_image *image) argument 1122 output_qcow2_meta_data_blocks(ext2_filsys fs, int fd) argument 1242 write_raw_image_file(ext2_filsys fs, int fd, int type, int flags) argument 1360 ext2_filsys fs; local 1434 ext2_filsys fs; local [all...] |
H A D | mke2fs.c | 90 static int discard = 1; /* attempt to discard device before fs creation */ 126 "[-r fs-revision] [-E extended-option[,...]]\n" 127 "\t[-t fs-type] [-T usage-type ] [-U UUID] " 181 static void invalid_block(ext2_filsys fs EXT2FS_ATTR((unused)), blk_t blk) 190 static void read_bb_file(ext2_filsys fs, badblocks_list *bb_list, argument 202 retval = ext2fs_read_bb_FILE(fs, f, bb_list, invalid_block); 214 static void test_disk(ext2_filsys fs, badblocks_list *bb_list) argument 220 sprintf(buf, "badblocks -b %d -X %s%s%s %llu", fs->blocksize, 222 fs->device_name, ext2fs_blocks_count(fs 240 handle_bad_blocks(ext2_filsys fs, badblocks_list bb_list) argument 314 write_inode_tables(ext2_filsys fs, int lazy_flag, int itable_zeroed) argument 361 create_root_dir(ext2_filsys fs) argument 394 create_lost_and_found(ext2_filsys fs) argument 432 create_bad_block_inode(ext2_filsys fs, badblocks_list bb_list) argument 447 reserve_inodes(ext2_filsys fs) argument 460 zap_sector(ext2_filsys fs, int sect, int nsect) argument 498 create_journal_dev(ext2_filsys fs) argument 553 show_stats(ext2_filsys fs) argument 2274 mke2fs_discard_device(ext2_filsys fs) argument 2322 fix_cluster_bg_counts(ext2_filsys fs) argument 2350 create_quota_inodes(ext2_filsys fs) argument 2365 ext2_filsys fs; local [all...] |
/external/llvm/lib/Support/ |
H A D | LockFileManager.cpp | 39 sys::fs::remove(LockFileName); 56 sys::fs::remove(LockFileName); 77 if (std::error_code EC = sys::fs::make_absolute(this->FileName)) { 93 if (std::error_code EC = sys::fs::createUniqueFile( 119 sys::fs::remove(UniqueLockFileName.c_str()); 127 sys::fs::create_link(UniqueLockFileName.str(), LockFileName.str()); 140 sys::fs::remove(UniqueLockFileName.str()); 144 if (!sys::fs::exists(LockFileName.str())) { 152 if ((EC = sys::fs::remove(LockFileName.str()))) { 174 sys::fs [all...] |
/external/e2fsprogs/e2fsck/ |
H A D | journal.c | 7 * Parts of the code are based on fs/jfs/journal.c by Stephen C. Tweedie 61 retval= ext2fs_bmap2(inode->i_ctx->fs, inode->i_ino, 71 int bufsize = sizeof(*bh) + kdev->k_ctx->fs->blocksize - 87 bh->b_io = kdev->k_ctx->fs->io; 101 io = kdev->k_ctx->fs->io; 191 ctx->fs->super->s_feature_incompat &= ~EXT3_FEATURE_INCOMPAT_RECOVER; 195 ctx->fs->super->s_state &= ~EXT2_VALID_FS; 196 ext2fs_mark_super_dirty(ctx->fs); 206 static int process_journal_block(ext2_filsys fs, argument 218 if (!blk || blk < fs 943 ext2_filsys fs = ctx->fs; local [all...] |
H A D | pass3.c | 54 ext2_filsys fs = ctx->fs; local 63 init_resource_track(&rtrack, ctx->fs->io); 76 pctx.errcode = e2fsck_allocate_inode_bitmap(fs, _("inode done bitmap"), 136 print_resource_track(ctx, _("Pass 3"), &rtrack, ctx->fs->io); 145 ext2_filsys fs = ctx->fs; local 178 pctx.errcode = ext2fs_new_block2(fs, 0, ctx->block_found_map, &blk); 186 ext2fs_mark_block_bitmap2(fs->block_map, blk); 187 ext2fs_mark_bb_dirty(fs); 264 ext2_filsys fs = ctx->fs; local 358 ext2_filsys fs = ctx->fs; local 506 ext2_filsys fs = ctx->fs; local 557 ext2_filsys fs = ctx->fs; local 598 ext2_filsys fs; member in struct:fix_dotdot_struct 645 ext2_filsys fs = ctx->fs; local 690 expand_dir_proc(ext2_filsys fs, blk64_t *blocknr, e2_blkcnt_t blockcnt, blk64_t ref_block EXT2FS_ATTR((unused)), int ref_offset EXT2FS_ATTR((unused)), void *priv_data) argument 770 find_new_blocks_proc(ext2_filsys fs, blk64_t *blocknr, e2_blkcnt_t blockcnt, blk64_t ref_block EXT2FS_ATTR((unused)), int ref_offset EXT2FS_ATTR((unused)), void *priv_data) argument 787 ext2_filsys fs = ctx->fs; local [all...] |
H A D | emptydir.c | 52 retval = ext2fs_init_dblist(ctx->fs, &edi->empty_dblist); 56 retval = ext2fs_allocate_block_bitmap(ctx->fs, _("empty dirblocks"), 61 retval = ext2fs_allocate_inode_bitmap(ctx->fs, _("empty dir map"), 119 int empty_pass1(ext2_filsys fs, blk64_t *block_nr, e2_blkcnt_t blockcnt, argument 130 retval = ext2fs_bmap2(fs, edi->ino, &edi->inode, 148 static int fix_directory(ext2_filsys fs, argument 160 retval = ext2fs_read_inode(fs, db->ino, &edi->inode); 164 retval = ext2fs_block_iterate3(fs, db->ino, 0, edi->block_buf, 170 edi->inode.i_size -= edi->freed_blocks * fs->blocksize; 171 ext2fs_iblk_add_blocks(fs, [all...] |
/external/chromium_org/third_party/webrtc/modules/audio_coding/neteq/ |
H A D | expand.h | 37 int fs, 42 fs_hz_(fs), 46 overlap_length_(5 * fs / 8000), 51 assert(fs == 8000 || fs == 16000 || fs == 32000 || fs == 48000); 52 assert(fs <= kMaxSampleRate); // Should not be possible. 182 int fs, 34 Expand(BackgroundNoise* background_noise, SyncBuffer* sync_buffer, RandomVector* random_vector, int fs, size_t num_channels) argument
|
H A D | normal_unittest.cc | 34 int fs = 8000; local 39 Expand expand(&bgn, &sync_buffer, &random_vector, fs, channels); 40 Normal normal(fs, &db, bgn, &expand); 47 int fs = 8000; local 52 MockExpand expand(&bgn, &sync_buffer, &random_vector, fs, channels); 53 Normal normal(fs, &db, bgn, &expand); 91 int fs = 8000; local 96 MockExpand expand(&bgn, &sync_buffer, &random_vector, fs, channels); 97 Normal normal(fs, &db, bgn, &expand);
|
H A D | dtmf_tone_generator.cc | 14 // a = 2*cos(2*pi*f/fs). The recursion is started with x[-1] = 0 and 15 // x[-2] = sin(2*pi*f/fs). (Note that with this initialization, the resulting 16 // sinusoid gets a "negative" rotation; x[n] = sin(-2*pi*f/fs * n + phi), but 37 // The filter coefficient a = 2*cos(2*pi*f/fs) for the low frequency tone, for 38 // sample rates fs = {8000, 16000, 32000, 48000} Hz, and events 0 through 15. 50 // The filter coefficient a = 2*cos(2*pi*f/fs) for the high frequency tone, for 51 // sample rates fs = {8000, 16000, 32000, 48000} Hz, and events 0 through 15. 63 // The initialization value x[-2] = sin(2*pi*f/fs) for the low frequency tone, 64 // for sample rates fs = {8000, 16000, 32000, 48000} Hz, and events 0-15. 76 // The initialization value x[-2] = sin(2*pi*f/fs) fo 107 Init(int fs, int event, int attenuation) argument [all...] |
/external/chromium_org/chrome/common/extensions/docs/server2/ |
H A D | host_file_system_provider_test.py | 29 fs = creator.GetBranch('1500') 30 first_read = fs.ReadSingle(self._idle_path).Get() 33 second_read = fs.ReadSingle(self._idle_path).Get() 43 fs = creator.GetBranch('1500') 45 self.assertRaises(FileNotFoundError, fs.ReadSingle(self._idle_path).Get)
|
/external/chromium_org/content/test/data/fileapi/ |
H A D | quota_test.js | 5 function truncateFailByQuota(fs) { 6 fs.root.getFile('fd', {create: false, exclusive: false}, function(fileEntry) { 24 function requestFileSystemSuccess(fs) { 25 fs.root.getFile('fd', {create: true, exclusive: false}, function(fileEntry) { 34 truncateFailByQuota(fs);
|
/external/chromium_org/third_party/WebKit/Tools/Scripts/webkitpy/style/ |
H A D | patchreader.py | 55 def check(self, patch_string, fs=None): 57 fs = fs or FileSystem() 69 if match and fs.exists(path): 73 detection = SCMDetector(fs, Executive()).detect_scm_system(cwd)
|
/external/e2fsprogs/lib/quota/ |
H A D | mkquota.h | 13 * quota_init_context(&qctx, fs, -1); 41 ext2_filsys fs; member in struct:quota_ctx 46 errcode_t quota_init_context(quota_ctx_t *qctx, ext2_filsys fs, int qtype); 58 errcode_t quota_remove_inode(ext2_filsys fs, int qtype); 59 int quota_file_exists(ext2_filsys fs, int qtype, int fmt); 60 void quota_set_sb_inum(ext2_filsys fs, ext2_ino_t ino, int qtype);
|
/external/e2fsprogs/resize/ |
H A D | online.c | 50 errcode_t online_resize_fs(ext2_filsys fs, const char *mtpt, argument 56 struct ext2_super_block *sb = fs->super; 79 "on-line resizing required\n"), fs->device_name, mtpt); 92 fs->super->s_first_data_block, 93 EXT2_BLOCKS_PER_GROUP(fs->super)), 94 EXT2_DESC_PER_BLOCK(fs->super)); 96 fs->desc_blocks, new_desc_blocks); 101 if ((access("/sys/fs/ext4/features/meta_bg_resize", R_OK) != 0) || 103 if (!EXT2_HAS_COMPAT_FEATURE(fs->super, 105 (new_desc_blocks != fs [all...] |
/external/opencv/cxcore/src/ |
H A D | cximage.cpp | 147 bool CvImage::read( CvFileStorage* fs, const char* mapname, const char* imgname ) argument 154 CvFileNode* mapnode = cvGetFileNodeByName( fs, 0, mapname ); 156 obj = cvReadByName( fs, mapnode, imgname ); 159 obj = cvReadByName( fs, 0, imgname ); 167 bool CvImage::read( CvFileStorage* fs, const char* seqname, int idx ) argument 172 cvGetFileNodeByName( fs, 0, seqname ) : cvGetRootFileNode(fs,0); 175 obj = cvRead( fs, (CvFileNode*)cvGetSeqElem( seqnode->data.seq, idx )); 205 void CvImage::write( CvFileStorage* fs, const char* imgname ) argument 208 cvWrite( fs, imgnam 300 read( CvFileStorage* fs, const char* mapname, const char* matname ) argument 320 read( CvFileStorage* fs, const char* seqname, int idx ) argument 358 write( CvFileStorage* fs, const char* matname ) argument [all...] |
/external/chromium_org/third_party/webrtc/modules/audio_coding/neteq/mock/ |
H A D | mock_expand.h | 25 int fs, 27 : Expand(background_noise, sync_buffer, random_vector, fs, num_channels) { 53 int fs, 22 MockExpand(BackgroundNoise* background_noise, SyncBuffer* sync_buffer, RandomVector* random_vector, int fs, size_t num_channels) argument
|
/external/chromium_org/native_client_sdk/src/tests/nacl_io_test/ |
H A D | http_fs_test.cc | 264 HttpFsForTesting fs(args, NULL); 268 ASSERT_EQ(0, fs.Open(Path("/"), O_RDONLY, &node)); 279 HttpFsForTesting fs(args, NULL); 281 ASSERT_EQ(0, fs.ParseManifest(manifest)); 283 EXPECT_EQ(EEXIST, fs.Mkdir(Path("/"), 0)); 284 EXPECT_EQ(EEXIST, fs.Mkdir(Path("/mydir"), 0)); 286 EXPECT_EQ(EACCES, fs.Mkdir(Path("/non_existent"), 0)); 291 HttpFsForTesting fs(args, NULL); 293 ASSERT_EQ(0, fs.ParseManifest(manifest)); 295 EXPECT_EQ(EACCES, fs [all...] |
/external/chromium_org/third_party/webrtc/common_audio/vad/ |
H A D | webrtc_vad.c | 71 int WebRtcVad_Process(VadInst* handle, int fs, const int16_t* audio_frame, argument 86 if (WebRtcVad_ValidRateAndFrameLength(fs, frame_length) != 0) { 90 if (fs == 48000) { 92 } else if (fs == 32000) { 94 } else if (fs == 16000) { 96 } else if (fs == 8000) {
|
/external/fio/lib/ |
H A D | rand.c | 81 unsigned long fill_random_buf(struct frand_state *fs, void *buf, argument 84 unsigned long r = __rand(fs); 87 r *= (unsigned long) __rand(fs); 93 unsigned long fill_random_buf_percentage(struct frand_state *fs, void *buf, argument 97 unsigned long r = __rand(fs); 109 r *= (unsigned long) __rand(fs);
|