Lines Matching refs:lfs_t

35 static inline void lfs_cache_drop(lfs_t *lfs, lfs_cache_t *rcache) {  in lfs_cache_drop()
42 static inline void lfs_cache_zero(lfs_t *lfs, lfs_cache_t *pcache) { in lfs_cache_zero()
48 static int lfs_bd_read(lfs_t *lfs, in lfs_bd_read()
131 static int lfs_bd_cmp(lfs_t *lfs, in lfs_bd_cmp()
159 static int lfs_bd_flush(lfs_t *lfs, in lfs_bd_flush()
194 static int lfs_bd_sync(lfs_t *lfs, in lfs_bd_sync()
210 static int lfs_bd_prog(lfs_t *lfs, in lfs_bd_prog()
258 static int lfs_bd_erase(lfs_t *lfs, lfs_block_t block) { in lfs_bd_erase()
468 static void lfs_mlist_remove(lfs_t *lfs, struct lfs_mlist *mlist) { in lfs_mlist_remove()
477 static void lfs_mlist_append(lfs_t *lfs, struct lfs_mlist *mlist) { in lfs_mlist_append()
485 static int lfs_dir_commit(lfs_t *lfs, lfs_mdir_t *dir,
487 static int lfs_dir_compact(lfs_t *lfs,
490 static lfs_ssize_t lfs_file_flushedwrite(lfs_t *lfs, lfs_file_t *file,
492 static lfs_ssize_t lfs_file_rawwrite(lfs_t *lfs, lfs_file_t *file,
494 static int lfs_file_rawsync(lfs_t *lfs, lfs_file_t *file);
495 static int lfs_file_outline(lfs_t *lfs, lfs_file_t *file);
496 static int lfs_file_flush(lfs_t *lfs, lfs_file_t *file);
498 static int lfs_fs_deorphan(lfs_t *lfs, bool powerloss);
499 static int lfs_fs_preporphans(lfs_t *lfs, int8_t orphans);
500 static void lfs_fs_prepmove(lfs_t *lfs,
502 static int lfs_fs_pred(lfs_t *lfs, const lfs_block_t dir[2],
504 static lfs_stag_t lfs_fs_parent(lfs_t *lfs, const lfs_block_t dir[2],
506 static int lfs_fs_forceconsistency(lfs_t *lfs);
510 static int lfs1_traverse(lfs_t *lfs,
514 static int lfs_dir_rawrewind(lfs_t *lfs, lfs_dir_t *dir);
516 static lfs_ssize_t lfs_file_flushedread(lfs_t *lfs, lfs_file_t *file,
518 static lfs_ssize_t lfs_file_rawread(lfs_t *lfs, lfs_file_t *file,
520 static int lfs_file_rawclose(lfs_t *lfs, lfs_file_t *file);
521 static lfs_soff_t lfs_file_rawsize(lfs_t *lfs, lfs_file_t *file);
523 static lfs_ssize_t lfs_fs_rawsize(lfs_t *lfs);
524 static int lfs_fs_rawtraverse(lfs_t *lfs,
528 static int lfs_deinit(lfs_t *lfs);
529 static int lfs_rawunmount(lfs_t *lfs);
535 lfs_t *lfs = (lfs_t*)p; in lfs_alloc_lookahead()
550 static void lfs_alloc_ack(lfs_t *lfs) { in lfs_alloc_ack()
556 static void lfs_alloc_drop(lfs_t *lfs) { in lfs_alloc_drop()
563 static int lfs_alloc(lfs_t *lfs, lfs_block_t *block) { in lfs_alloc()
611 static lfs_stag_t lfs_dir_getslice(lfs_t *lfs, const lfs_mdir_t *dir, in lfs_dir_getslice()
673 static lfs_stag_t lfs_dir_get(lfs_t *lfs, const lfs_mdir_t *dir, in lfs_dir_get()
680 static int lfs_dir_getread(lfs_t *lfs, const lfs_mdir_t *dir, in lfs_dir_getread()
802 static int lfs_dir_traverse(lfs_t *lfs, in lfs_dir_traverse()
1002 static lfs_stag_t lfs_dir_fetchmatch(lfs_t *lfs, in lfs_dir_fetchmatch()
1239 static int lfs_dir_fetch(lfs_t *lfs, in lfs_dir_fetch()
1247 static int lfs_dir_getgstate(lfs_t *lfs, const lfs_mdir_t *dir, in lfs_dir_getgstate()
1265 static int lfs_dir_getinfo(lfs_t *lfs, lfs_mdir_t *dir, in lfs_dir_getinfo()
1300 lfs_t *lfs;
1308 lfs_t *lfs = name->lfs; in lfs_dir_find_match()
1329 static lfs_stag_t lfs_dir_find(lfs_t *lfs, lfs_mdir_t *dir, in lfs_dir_find()
1441 static int lfs_dir_commitprog(lfs_t *lfs, struct lfs_commit *commit, in lfs_dir_commitprog()
1458 static int lfs_dir_commitattr(lfs_t *lfs, struct lfs_commit *commit, in lfs_dir_commitattr()
1505 static int lfs_dir_commitcrc(lfs_t *lfs, struct lfs_commit *commit) { in lfs_dir_commitcrc()
1607 static int lfs_dir_alloc(lfs_t *lfs, lfs_mdir_t *dir) { in lfs_dir_alloc()
1651 static int lfs_dir_drop(lfs_t *lfs, lfs_mdir_t *dir, lfs_mdir_t *tail) { in lfs_dir_drop()
1672 static int lfs_dir_split(lfs_t *lfs, in lfs_dir_split()
1718 lfs_t *lfs;
1731 static bool lfs_dir_needsrelocation(lfs_t *lfs, lfs_mdir_t *dir) { in lfs_dir_needsrelocation()
1744 static int lfs_dir_compact(lfs_t *lfs, in lfs_dir_compact()
1917 static int lfs_dir_splittingcompact(lfs_t *lfs, lfs_mdir_t *dir, in lfs_dir_splittingcompact()
2013 static int lfs_dir_relocatingcommit(lfs_t *lfs, lfs_mdir_t *dir, in lfs_dir_relocatingcommit()
2184 static int lfs_dir_orphaningcommit(lfs_t *lfs, lfs_mdir_t *dir, in lfs_dir_orphaningcommit()
2377 static int lfs_dir_commit(lfs_t *lfs, lfs_mdir_t *dir, in lfs_dir_commit()
2401 static int lfs_rawmkdir(lfs_t *lfs, const char *path) { in lfs_rawmkdir()
2497 static int lfs_dir_rawopen(lfs_t *lfs, lfs_dir_t *dir, const char *path) { in lfs_dir_rawopen()
2541 static int lfs_dir_rawclose(lfs_t *lfs, lfs_dir_t *dir) { in lfs_dir_rawclose()
2548 static int lfs_dir_rawread(lfs_t *lfs, lfs_dir_t *dir, struct lfs_info *info) { in lfs_dir_rawread()
2593 static int lfs_dir_rawseek(lfs_t *lfs, lfs_dir_t *dir, lfs_off_t off) { in lfs_dir_rawseek()
2630 static lfs_soff_t lfs_dir_rawtell(lfs_t *lfs, lfs_dir_t *dir) { in lfs_dir_rawtell()
2635 static int lfs_dir_rawrewind(lfs_t *lfs, lfs_dir_t *dir) { in lfs_dir_rawrewind()
2649 static int lfs_ctz_index(lfs_t *lfs, lfs_off_t *off) { in lfs_ctz_index()
2662 static int lfs_ctz_find(lfs_t *lfs, in lfs_ctz_find()
2697 static int lfs_ctz_extend(lfs_t *lfs, in lfs_ctz_extend()
2796 static int lfs_ctz_traverse(lfs_t *lfs, in lfs_ctz_traverse()
2841 static int lfs_file_rawopencfg(lfs_t *lfs, lfs_file_t *file,
3007 static int lfs_file_rawopen(lfs_t *lfs, lfs_file_t *file,
3014 static int lfs_file_rawclose(lfs_t *lfs, lfs_file_t *file) {
3034 static int lfs_file_relocate(lfs_t *lfs, lfs_file_t *file) {
3105 static int lfs_file_outline(lfs_t *lfs, lfs_file_t *file) {
3118 static int lfs_file_flush(lfs_t *lfs, lfs_file_t *file) {
3199 static int lfs_file_rawsync(lfs_t *lfs, lfs_file_t *file) {
3251 static lfs_ssize_t lfs_file_flushedread(lfs_t *lfs, lfs_file_t *file,
3312 static lfs_ssize_t lfs_file_rawread(lfs_t *lfs, lfs_file_t *file,
3331 static lfs_ssize_t lfs_file_flushedwrite(lfs_t *lfs, lfs_file_t *file,
3419 static lfs_ssize_t lfs_file_rawwrite(lfs_t *lfs, lfs_file_t *file,
3463 static lfs_soff_t lfs_file_rawseek(lfs_t *lfs, lfs_file_t *file,
3527 static int lfs_file_rawtruncate(lfs_t *lfs, lfs_file_t *file, lfs_off_t size) {
3583 static lfs_soff_t lfs_file_rawtell(lfs_t *lfs, lfs_file_t *file) {
3588 static int lfs_file_rawrewind(lfs_t *lfs, lfs_file_t *file) {
3597 static lfs_soff_t lfs_file_rawsize(lfs_t *lfs, lfs_file_t *file) {
3611 static int lfs_rawstat(lfs_t *lfs, const char *path, struct lfs_info *info) {
3622 static int lfs_rawremove(lfs_t *lfs, const char *path) {
3701 static int lfs_rawrename(lfs_t *lfs, const char *oldpath, const char *newpath) {
3836 static lfs_ssize_t lfs_rawgetattr(lfs_t *lfs, const char *path,
3870 static int lfs_commitattr(lfs_t *lfs, const char *path,
3894 static int lfs_rawsetattr(lfs_t *lfs, const char *path,
3905 static int lfs_rawremoveattr(lfs_t *lfs, const char *path, uint8_t type) {
3912 static int lfs_init(lfs_t *lfs, const struct lfs_config *cfg) {
4021 static int lfs_deinit(lfs_t *lfs) {
4039 static int lfs_rawformat(lfs_t *lfs, const struct lfs_config *cfg) {
4104 static int lfs_rawmount(lfs_t *lfs, const struct lfs_config *cfg) {
4245 static int lfs_rawunmount(lfs_t *lfs) {
4251 int lfs_fs_rawtraverse(lfs_t *lfs,
4350 static int lfs_fs_pred(lfs_t *lfs,
4379 lfs_t *lfs;
4388 lfs_t *lfs = find->lfs;
4406 static lfs_stag_t lfs_fs_parent(lfs_t *lfs, const lfs_block_t pair[2],
4435 static int lfs_fs_preporphans(lfs_t *lfs, int8_t orphans) {
4446 static void lfs_fs_prepmove(lfs_t *lfs,
4456 static int lfs_fs_demove(lfs_t *lfs) {
4488 static int lfs_fs_deorphan(lfs_t *lfs, bool powerloss) {
4615 static int lfs_fs_forceconsistency(lfs_t *lfs) {
4637 static lfs_ssize_t lfs_fs_rawsize(lfs_t *lfs) {
4735 static int lfs1_bd_read(lfs_t *lfs, lfs_block_t block,
4743 static int lfs1_bd_crc(lfs_t *lfs, lfs_block_t block,
4798 static int lfs1_dir_fetch(lfs_t *lfs,
4860 static int lfs1_dir_next(lfs_t *lfs, lfs1_dir_t *dir, lfs1_entry_t *entry) {
4890 int lfs1_traverse(lfs_t *lfs, int (*cb)(void*, lfs_block_t), void *data) {
4959 static int lfs1_moved(lfs_t *lfs, const void *e) {
5000 static int lfs1_mount(lfs_t *lfs, struct lfs1 *lfs1,
5063 static int lfs1_unmount(lfs_t *lfs) {
5068 static int lfs_rawmigrate(lfs_t *lfs, const struct lfs_config *cfg) {
5309 int lfs_format(lfs_t *lfs, const struct lfs_config *cfg) {
5339 int lfs_mount(lfs_t *lfs, const struct lfs_config *cfg) {
5368 int lfs_unmount(lfs_t *lfs) {
5383 int lfs_remove(lfs_t *lfs, const char *path) {
5399 int lfs_rename(lfs_t *lfs, const char *oldpath, const char *newpath) {
5414 int lfs_stat(lfs_t *lfs, const char *path, struct lfs_info *info) {
5428 lfs_ssize_t lfs_getattr(lfs_t *lfs, const char *path,
5445 int lfs_setattr(lfs_t *lfs, const char *path,
5463 int lfs_removeattr(lfs_t *lfs, const char *path, uint8_t type) {
5479 int lfs_file_open(lfs_t *lfs, lfs_file_t *file, const char *path, int flags) {
5496 int lfs_file_opencfg(lfs_t *lfs, lfs_file_t *file,
5516 int lfs_file_close(lfs_t *lfs, lfs_file_t *file) {
5532 int lfs_file_sync(lfs_t *lfs, lfs_file_t *file) {
5548 lfs_ssize_t lfs_file_read(lfs_t *lfs, lfs_file_t *file,
5566 lfs_ssize_t lfs_file_write(lfs_t *lfs, lfs_file_t *file,
5584 lfs_soff_t lfs_file_seek(lfs_t *lfs, lfs_file_t *file,
5602 int lfs_file_truncate(lfs_t *lfs, lfs_file_t *file, lfs_off_t size) {
5619 lfs_soff_t lfs_file_tell(lfs_t *lfs, lfs_file_t *file) {
5634 int lfs_file_rewind(lfs_t *lfs, lfs_file_t *file) {
5648 lfs_soff_t lfs_file_size(lfs_t *lfs, lfs_file_t *file) {
5664 int lfs_mkdir(lfs_t *lfs, const char *path) {
5679 int lfs_dir_open(lfs_t *lfs, lfs_dir_t *dir, const char *path) {
5694 int lfs_dir_close(lfs_t *lfs, lfs_dir_t *dir) {
5708 int lfs_dir_read(lfs_t *lfs, lfs_dir_t *dir, struct lfs_info *info) {
5723 int lfs_dir_seek(lfs_t *lfs, lfs_dir_t *dir, lfs_off_t off) {
5738 lfs_soff_t lfs_dir_tell(lfs_t *lfs, lfs_dir_t *dir) {
5752 int lfs_dir_rewind(lfs_t *lfs, lfs_dir_t *dir) {
5766 lfs_ssize_t lfs_fs_size(lfs_t *lfs) {
5780 int lfs_fs_traverse(lfs_t *lfs, int (*cb)(void *, lfs_block_t), void *data) {
5796 int lfs_migrate(lfs_t *lfs, const struct lfs_config *cfg) {