Searched refs:pos (Results 1 – 4 of 4) sorted by relevance
/littlefs-3.5.0-3.4.0/tests/ |
D | test_seek.toml | 27 lfs_soff_t pos = -1; 32 pos = lfs_file_tell(&lfs, &file); 34 assert(pos >= 0); 36 lfs_file_seek(&lfs, &file, pos, LFS_SEEK_SET) => pos; 52 lfs_file_seek(&lfs, &file, pos, LFS_SEEK_SET) => pos; 56 lfs_file_seek(&lfs, &file, -size, LFS_SEEK_CUR) => pos; 96 lfs_soff_t pos = -1; 101 pos = lfs_file_tell(&lfs, &file); 103 assert(pos >= 0); 106 lfs_file_seek(&lfs, &file, pos, LFS_SEEK_SET) => pos; [all …]
|
D | test_dirs.toml | 740 lfs_soff_t pos; 746 pos = lfs_dir_tell(&lfs, &dir); 747 assert(pos >= 0); 750 lfs_dir_seek(&lfs, &dir, pos) => 0; 768 lfs_dir_seek(&lfs, &dir, pos) => 0; 800 lfs_soff_t pos; 806 pos = lfs_dir_tell(&lfs, &dir); 807 assert(pos >= 0); 810 lfs_dir_seek(&lfs, &dir, pos) => 0; 828 lfs_dir_seek(&lfs, &dir, pos) => 0;
|
/littlefs-3.5.0-3.4.0/ |
D | lfs.c | 2156 ((lfs_dir_t*)d)->pos -= 1; in lfs_dir_relocatingcommit() 2162 ((lfs_dir_t*)d)->pos += 1; in lfs_dir_relocatingcommit() 2532 dir->pos = 0; in lfs_dir_rawopen() 2552 if (dir->pos == 0) { in lfs_dir_rawread() 2555 dir->pos += 1; in lfs_dir_rawread() 2557 } else if (dir->pos == 1) { in lfs_dir_rawread() 2560 dir->pos += 1; in lfs_dir_rawread() 2589 dir->pos += 1; in lfs_dir_rawread() 2601 dir->pos = lfs_min(2, off); in lfs_dir_rawseek() 2602 off -= dir->pos; in lfs_dir_rawseek() [all …]
|
D | lfs.h | 347 lfs_off_t pos; member 364 lfs_off_t pos; member
|