Home
last modified time | relevance | path

Searched refs:s (Results 1 – 25 of 29) sorted by relevance

12

/littlefs-latest/scripts/
Dplot.py101 s = '%.*f' % (w, abs(x) / (10.0**p))
102 s = s.lstrip('0')
104 if '.' in s:
105 s = s[:max(s.find('.'), w-(2 if x < 0 else 1))]
106 s = s.rstrip('0')
107 s = s.rstrip('.')
108 return '%s%s%s' % ('-' if x < 0 else '', s, SI_PREFIXES[p])
120 s = '%.*f' % (w, abs(x) / (2.0**p))
121 s = s.lstrip('0')
123 if '.' in s:
[all …]
Dplotmpl.py104 s = '%.3f' % (abs(x) / (10.0**p))
105 s = s[:3+1]
107 if '.' in s:
108 s = s.rstrip('0')
109 s = s.rstrip('.')
110 return '%s%s%s' % ('-' if x < 0 else '', s, SI_PREFIXES[p])
120 s = '%.3f' % (abs(x) / (2.0**p))
121 s = s[:3+1]
123 if '.' in s:
124 s = s.rstrip('0')
[all …]
Dbench.py241 suites.sort(key=lambda s: s.name)
283 def write(s): argument
284 f.lineno += s.count('\n')
285 _write(s)
286 def writeln(s=''): argument
287 f.lineno += s.count('\n') + 1
288 _write(s)
Dtest.py249 suites.sort(key=lambda s: s.name)
291 def write(s): argument
292 f.lineno += s.count('\n')
293 _write(s)
294 def writeln(s=''): argument
295 f.lineno += s.count('\n') + 1
296 _write(s)
Dtailpipe.py42 def write(self, s): argument
44 lines = s.split('\n')
Dperf.py504 for s, (a_, _) in syms_[dso].items()
505 for a, _ in syms[s])
533 os.path.abspath(file) == os.path.abspath(s)
534 for s in sources):
976 if not annotate and not any(i+1 in s for s, _ in spans):
Dperfbd.py346 == os.path.abspath(s)
347 for s in sources):
499 == os.path.abspath(s)
500 for s in sources):
961 if not annotate and not any(i+1 in s for s, _ in spans):
Dstack.py205 os.path.abspath(s_file) == os.path.abspath(s)
206 for s in sources):
231 os.path.abspath(s_file) == os.path.abspath(s)
232 for s in sources):
Dwatch.py78 def write(self, s): argument
80 lines = s.split('\n')
Dcov.py244 os.path.abspath(file['file']) == os.path.abspath(s)
245 for s in sources):
546 if not annotate and not any(i+1 in s for s, _ in spans):
Dtracebd.py64 def write(self, s): argument
66 lines = s.split('\n')
782 def writeln(s=''): argument
783 f.write(s)
Dprettyasserts.py426 def writeln(s=''): argument
427 f.write(s)
Dstructs.py234 os.path.abspath(r.file) == os.path.abspath(s)
235 for s in sources):
Ddata.py290 os.path.abspath(file) == os.path.abspath(s)
291 for s in sources):
Dcode.py290 os.path.abspath(file) == os.path.abspath(s)
291 for s in sources):
/littlefs-latest/
Dlfs_util.h149 uint32_t s; in lfs_npw2()
151 s = (a > 0xffff) << 4; a >>= s; r |= s; in lfs_npw2()
152 s = (a > 0xff ) << 3; a >>= s; r |= s; in lfs_npw2()
153 s = (a > 0xf ) << 2; a >>= s; r |= s; in lfs_npw2()
154 s = (a > 0x3 ) << 1; a >>= s; r |= s; in lfs_npw2()
DDESIGN.md38 To make the situation more annoying, it's very common for these embedded
54 used to store frequently updated metadata and cause a device's early death.
70 So, what's already out there? There are, of course, many different filesystems,
106 binding relationship of storage location and data removes the filesystem's
245 Let's say that our COW structure doesn't copy after a single write, but instead
254 mutually solve each other's limitations.
353 Error detection can be provided with a checksum, and in littlefs's case we
410 Compared to other filesystems, littlefs's garbage collector is relatively
420 loss. It's only when the commit's checksum is written that the compacted
508 collection), and ![s] static entries (entries that need to be copied during
[all …]
DSPEC.md136 Here's a more complete example of metadata block containing 4 entries:
200 so it's possible that the next commit had an attempted program that left the
257 Before we go further, there's one important thing to note. These tags are
508 case, the file data is stored directly in the tag's data area.
577 file's CTZ skip-list.
591 the chunk field, and the user attribute itself can be found in the tag's data.
620 The metadata pair's tail pointer is used in littlefs for a linked-list
798 In addition, the CRC tag's chunk field contains a set of flags which can
860 1. **FCRC size (32-bits)** - Number of bytes after this commit's CRC tag's
863 2. **FCRC (32-bits)** - CRC of the bytes after this commit's CRC tag's padding
DREADME.md30 Here's a simple example that updates a file named `boot_count` every time
123 [lfs.h](lfs.h), or an error returned by the user's block device operations.
231 to use littlefs in a Rust-friendly API, reaping the benefits of Rust's memory
254 - [ramcrc32bd] - An example block device using littlefs's 32-bit CRC for
273 - [ChaN's FatFs] - A lightweight reimplementation of the infamous FAT filesystem
296 [ChaN's FatFs]: http://elm-chan.org/fsw/ff/00index_e.html
DMakefile24 ASM := $(SRC:%.c=$(BUILDDIR)/%.s)
525 $(BUILDDIR)/%.s: %.c
/littlefs-latest/tests/
Dtest_paths.toml3199 // here's a weird one, what happens if our rename is also a noop?
3350 // here's a weird one, what happens if our rename is also a noop?
3592 // here's a weird one, what happens if our rename is also a noop?
3853 // here's a weird one, what happens if our rename is also a noop?
4071 // here's a weird one, what happens if our rename is also a noop?
4289 // here's a weird one, what happens if our rename is also a noop?
4491 // here's a weird one, what happens if our rename is also a noop?
4968 sprintf(path, "coffee/%s", a_name);
4972 sprintf(path, "coffee/%s", a_name);
4979 sprintf(path, "coffee/%s", a_name);
[all …]
Dtest_alloc.toml29 sprintf(path, "breakfast/%s", names[n]);
50 sprintf(path, "breakfast/%s", names[n]);
87 sprintf(path, "breakfast/%s", names[n]);
107 sprintf(path, "breakfast/%s", names[n]);
146 sprintf(path, "breakfast/%s", names[n]);
164 sprintf(path, "breakfast/%s", names[n]);
180 sprintf(path, "breakfast/%s", names[n]);
212 sprintf(path, "breakfast/%s", names[n]);
229 sprintf(path, "breakfast/%s", names[n]);
245 sprintf(path, "breakfast/%s", names[n]);
Dtest_evil.toml61 // test that accessing our bad dir fails, note there's a number
113 // test that accessing our bad file fails, note there's a number
178 // test that accessing our bad file fails, note there's a number
/littlefs-latest/runners/
Dtest_runner.c71 static uintmax_t leb16_parse(const char *s, char **tail) { in leb16_parse() argument
75 *tail = (char*)s; in leb16_parse()
78 if (s[0] == 'w') { in leb16_parse()
80 s = s+1; in leb16_parse()
85 uintmax_t nibble = s[i]; in leb16_parse()
98 s = s + i; in leb16_parse()
104 *tail = (char*)s; in leb16_parse()
2327 char *s = optarg + 1; in main() local
2330 sizes[count] = strtoumax(s, &parsed, 0); in main()
2333 s = parsed + strspn(parsed, " "); in main()
[all …]
Dbench_runner.c71 static uintmax_t leb16_parse(const char *s, char **tail) { in leb16_parse() argument
75 *tail = (char*)s; in leb16_parse()
78 if (s[0] == 'w') { in leb16_parse()
80 s = s+1; in leb16_parse()
85 uintmax_t nibble = s[i]; in leb16_parse()
98 s = s + i; in leb16_parse()
104 *tail = (char*)s; in leb16_parse()
1746 char *s = optarg + 1; in main() local
1749 sizes[count] = strtoumax(s, &parsed, 0); in main()
1752 s = parsed + strspn(parsed, " "); in main()
[all …]

12