Home
last modified time | relevance | path

Searched refs:f (Results 1 – 13 of 13) sorted by relevance

/littlefs-3.5.0-3.4.0/scripts/
Dreadmdir.py275 def _dump_tags(self, tags, f=sys.stdout, truncate=True): argument
276 f.write("%-8s %-8s %-13s %4s %4s" % (
279 f.write(' data (truncated)')
280 f.write('\n')
283 f.write("%08x: %08x %-13s %4s %4s" % (
287 f.write(" %-23s %-8s\n" % (
292 f.write("\n")
294 f.write(" %08x: %-47s %-16s\n" % (
300 def dump_tags(self, f=sys.stdout, truncate=True): argument
301 self._dump_tags(self.tags, f=f, truncate=truncate)
[all …]
Dtest.py179 def build(self, f, **_): argument
183 f.write('#define %s %s\n' % (k, v))
185 f.write('void test_case%d(%s) {' % (self.caseno, ','.join(
190 f.write(PROLOGUE)
191 f.write('\n')
192 f.write(4*' '+'// test case %d\n' % self.caseno)
193 f.write(4*' '+'#line %d "%s"\n' % (self.code_lineno, self.suite.path))
196 f.write(self.code)
199 f.write(EPILOGUE)
200 f.write('}\n')
[all …]
Dreadtree.py17 with open(args.disk, 'rb') as f:
32 f.seek(block * args.block_size)
33 data.append(f.read(args.block_size)
133 f = io.StringIO()
135 mdir.dump_log(f, truncate=not args.no_truncate)
137 mdir.dump_all(f, truncate=not args.no_truncate)
139 mdir.dump_tags(f, truncate=not args.no_truncate)
141 lines = list(filter(None, f.getvalue().split('\n')))
Dcoverage.py24 with open(path) as f:
25 for line in f:
95 with openio(args['use']) as f:
96 r = csv.DictReader(f)
114 with openio(args['diff']) as f:
115 r = csv.DictReader(f)
140 with openio(args['merge']) as f:
141 r = csv.DictReader(f)
156 with openio(args['output'], 'w') as f:
157 … w = csv.DictWriter(f, ['file', 'name', *other_fields, 'coverage_hits', 'coverage_count'])
Ddata.py92 with openio(args['use']) as f:
93 r = csv.DictReader(f)
108 with openio(args['diff']) as f:
109 r = csv.DictReader(f)
131 with openio(args['merge']) as f:
132 r = csv.DictReader(f)
145 with openio(args['output'], 'w') as f:
146 w = csv.DictWriter(f, ['file', 'name', *other_fields, 'data_size'])
Dcode.py93 with openio(args['use']) as f:
94 r = csv.DictReader(f)
109 with openio(args['diff']) as f:
110 r = csv.DictReader(f)
132 with openio(args['merge']) as f:
133 r = csv.DictReader(f)
146 with openio(args['output'], 'w') as f:
147 w = csv.DictWriter(f, ['file', 'name', *other_fields, 'code_size'])
Dstack.py53 with open(path) as f:
54 vcg = parse_vcg(f.read())
145 with openio(args['use']) as f:
146 r = csv.DictReader(f)
166 with openio(args['diff']) as f:
167 r = csv.DictReader(f)
194 with openio(args['merge']) as f:
195 r = csv.DictReader(f)
210 with openio(args['output'], 'w') as f:
211 w = csv.DictWriter(f, ['file', 'name', *other_fields, 'stack_frame', 'stack_limit'])
Dstructs.py144 with openio(args['use']) as f:
145 r = csv.DictReader(f)
160 with openio(args['diff']) as f:
161 r = csv.DictReader(f)
183 with openio(args['merge']) as f:
184 r = csv.DictReader(f)
197 with openio(args['output'], 'w') as f:
198 w = csv.DictWriter(f, ['file', 'name', *other_fields, 'struct_size'])
Dreadblock.py6 with open(args.disk, 'rb') as f:
7 f.seek(args.block * args.block_size)
8 block = (f.read(args.block_size)
Dsummary.py74 with openio(path) as f:
75 r = csv.DictReader(f)
98 fields = [fields_dict[f] for f in args['fields']]
119 with openio(args['diff']) as f:
120 r = csv.DictReader(f)
Dexplode_asserts.py299 except ParseFailure as f:
301 lastf = f
365 except ParseFailure as f:
/littlefs-3.5.0-3.4.0/tests/
Dtest_interspersed.toml122 lfs_file_open(&lfs, &files[1], "f", LFS_O_WRONLY | LFS_O_CREAT) => 0;
127 lfs_file_write(&lfs, &files[1], (const void*)"f", 1) => 1;
131 lfs_remove(&lfs, "f") => 0;
135 lfs_file_write(&lfs, &files[1], (const void*)"f", 1) => 1;
/littlefs-3.5.0-3.4.0/
Dlfs.c2188 for (lfs_file_t *f = (lfs_file_t*)lfs->mlist; f; f = f->next) { in lfs_dir_orphaningcommit() local
2189 if (dir != &f->m && lfs_pair_cmp(f->m.pair, dir->pair) == 0 && in lfs_dir_orphaningcommit()
2190 f->type == LFS_TYPE_REG && (f->flags & LFS_F_INLINE) && in lfs_dir_orphaningcommit()
2191 f->ctz.size > lfs->cfg->cache_size) { in lfs_dir_orphaningcommit()
2192 int err = lfs_file_outline(lfs, f); in lfs_dir_orphaningcommit()
2197 err = lfs_file_flush(lfs, f); in lfs_dir_orphaningcommit()
4323 for (lfs_file_t *f = (lfs_file_t*)lfs->mlist; f; f = f->next) { local
4324 if (f->type != LFS_TYPE_REG) {
4328 if ((f->flags & LFS_F_DIRTY) && !(f->flags & LFS_F_INLINE)) {
4329 int err = lfs_ctz_traverse(lfs, &f->cache, &lfs->rcache,
[all …]