Lines Matching defs:lfs
31 static inline void lfs_cache_drop(lfs_t *lfs, lfs_cache_t *rcache) { in lfs_cache_drop()
38 static inline void lfs_cache_zero(lfs_t *lfs, lfs_cache_t *pcache) { in lfs_cache_zero()
44 static int lfs_bd_read(lfs_t *lfs, in lfs_bd_read()
127 static int lfs_bd_cmp(lfs_t *lfs, in lfs_bd_cmp()
154 static int lfs_bd_crc(lfs_t *lfs, in lfs_bd_crc()
176 static int lfs_bd_flush(lfs_t *lfs, in lfs_bd_flush()
211 static int lfs_bd_sync(lfs_t *lfs, in lfs_bd_sync()
227 static int lfs_bd_prog(lfs_t *lfs, in lfs_bd_prog()
275 static int lfs_bd_erase(lfs_t *lfs, lfs_block_t block) { in lfs_bd_erase()
507 static void lfs_mlist_remove(lfs_t *lfs, struct lfs_mlist *mlist) { in lfs_mlist_remove()
516 static void lfs_mlist_append(lfs_t *lfs, struct lfs_mlist *mlist) { in lfs_mlist_append()
522 static uint32_t lfs_fs_disk_version(lfs_t *lfs) { in lfs_fs_disk_version()
534 static uint16_t lfs_fs_disk_version_major(lfs_t *lfs) { in lfs_fs_disk_version_major()
539 static uint16_t lfs_fs_disk_version_minor(lfs_t *lfs) { in lfs_fs_disk_version_minor()
598 lfs_t *lfs = (lfs_t*)p; in lfs_alloc_lookahead() local
613 static void lfs_alloc_ack(lfs_t *lfs) { in lfs_alloc_ack()
619 static void lfs_alloc_drop(lfs_t *lfs) { in lfs_alloc_drop()
626 static int lfs_fs_rawgc(lfs_t *lfs) { in lfs_fs_rawgc()
646 static int lfs_alloc(lfs_t *lfs, lfs_block_t *block) { in lfs_alloc()
686 static lfs_stag_t lfs_dir_getslice(lfs_t *lfs, const lfs_mdir_t *dir, in lfs_dir_getslice()
748 static lfs_stag_t lfs_dir_get(lfs_t *lfs, const lfs_mdir_t *dir, in lfs_dir_get()
755 static int lfs_dir_getread(lfs_t *lfs, const lfs_mdir_t *dir, in lfs_dir_getread()
877 static int lfs_dir_traverse(lfs_t *lfs, in lfs_dir_traverse()
1072 static lfs_stag_t lfs_dir_fetchmatch(lfs_t *lfs, in lfs_dir_fetchmatch()
1351 static int lfs_dir_fetch(lfs_t *lfs, in lfs_dir_fetch()
1359 static int lfs_dir_getgstate(lfs_t *lfs, const lfs_mdir_t *dir, in lfs_dir_getgstate()
1377 static int lfs_dir_getinfo(lfs_t *lfs, lfs_mdir_t *dir, in lfs_dir_getinfo()
1412 lfs_t *lfs; member
1420 lfs_t *lfs = name->lfs; in lfs_dir_find_match() local
1441 static lfs_stag_t lfs_dir_find(lfs_t *lfs, lfs_mdir_t *dir, in lfs_dir_find()
1553 static int lfs_dir_commitprog(lfs_t *lfs, struct lfs_commit *commit, in lfs_dir_commitprog()
1570 static int lfs_dir_commitattr(lfs_t *lfs, struct lfs_commit *commit, in lfs_dir_commitattr()
1618 static int lfs_dir_commitcrc(lfs_t *lfs, struct lfs_commit *commit) { in lfs_dir_commitcrc()
1764 static int lfs_dir_alloc(lfs_t *lfs, lfs_mdir_t *dir) { in lfs_dir_alloc()
1808 static int lfs_dir_drop(lfs_t *lfs, lfs_mdir_t *dir, lfs_mdir_t *tail) { in lfs_dir_drop()
1829 static int lfs_dir_split(lfs_t *lfs, in lfs_dir_split()
1875 lfs_t *lfs; member
1888 static bool lfs_dir_needsrelocation(lfs_t *lfs, lfs_mdir_t *dir) { in lfs_dir_needsrelocation()
1901 static int lfs_dir_compact(lfs_t *lfs, in lfs_dir_compact()
2074 static int lfs_dir_splittingcompact(lfs_t *lfs, lfs_mdir_t *dir, in lfs_dir_splittingcompact()
2179 static int lfs_dir_relocatingcommit(lfs_t *lfs, lfs_mdir_t *dir, in lfs_dir_relocatingcommit()
2350 static int lfs_dir_orphaningcommit(lfs_t *lfs, lfs_mdir_t *dir, in lfs_dir_orphaningcommit()
2543 static int lfs_dir_commit(lfs_t *lfs, lfs_mdir_t *dir, in lfs_dir_commit()
2567 static int lfs_rawmkdir(lfs_t *lfs, const char *path) { in lfs_rawmkdir()
2663 static int lfs_dir_rawopen(lfs_t *lfs, lfs_dir_t *dir, const char *path) { in lfs_dir_rawopen()
2707 static int lfs_dir_rawclose(lfs_t *lfs, lfs_dir_t *dir) { in lfs_dir_rawclose()
2714 static int lfs_dir_rawread(lfs_t *lfs, lfs_dir_t *dir, struct lfs_info *info) { in lfs_dir_rawread()
2759 static int lfs_dir_rawseek(lfs_t *lfs, lfs_dir_t *dir, lfs_off_t off) { in lfs_dir_rawseek()
2796 static lfs_soff_t lfs_dir_rawtell(lfs_t *lfs, lfs_dir_t *dir) { in lfs_dir_rawtell()
2801 static int lfs_dir_rawrewind(lfs_t *lfs, lfs_dir_t *dir) { in lfs_dir_rawrewind()
2815 static int lfs_ctz_index(lfs_t *lfs, lfs_off_t *off) { in lfs_ctz_index()
2828 static int lfs_ctz_find(lfs_t *lfs, in lfs_ctz_find()
2863 static int lfs_ctz_extend(lfs_t *lfs, in lfs_ctz_extend()
2962 static int lfs_ctz_traverse(lfs_t *lfs, in lfs_ctz_traverse()
3007 static int lfs_file_rawopencfg(lfs_t *lfs, lfs_file_t *file,
3174 static int lfs_file_rawopen(lfs_t *lfs, lfs_file_t *file,
3182 static int lfs_file_rawclose(lfs_t *lfs, lfs_file_t *file) {
3202 static int lfs_file_relocate(lfs_t *lfs, lfs_file_t *file) {
3273 static int lfs_file_outline(lfs_t *lfs, lfs_file_t *file) {
3286 static int lfs_file_flush(lfs_t *lfs, lfs_file_t *file) {
3367 static int lfs_file_rawsync(lfs_t *lfs, lfs_file_t *file) {
3419 static lfs_ssize_t lfs_file_flushedread(lfs_t *lfs, lfs_file_t *file,
3480 static lfs_ssize_t lfs_file_rawread(lfs_t *lfs, lfs_file_t *file,
3499 static lfs_ssize_t lfs_file_flushedwrite(lfs_t *lfs, lfs_file_t *file,
3587 static lfs_ssize_t lfs_file_rawwrite(lfs_t *lfs, lfs_file_t *file,
3631 static lfs_soff_t lfs_file_rawseek(lfs_t *lfs, lfs_file_t *file,
3695 static int lfs_file_rawtruncate(lfs_t *lfs, lfs_file_t *file, lfs_off_t size) {
3780 static lfs_soff_t lfs_file_rawtell(lfs_t *lfs, lfs_file_t *file) {
3785 static int lfs_file_rawrewind(lfs_t *lfs, lfs_file_t *file) {
3794 static lfs_soff_t lfs_file_rawsize(lfs_t *lfs, lfs_file_t *file) {
3808 static int lfs_rawstat(lfs_t *lfs, const char *path, struct lfs_info *info) {
3819 static int lfs_rawremove(lfs_t *lfs, const char *path) {
3898 static int lfs_rawrename(lfs_t *lfs, const char *oldpath, const char *newpath) {
4033 static lfs_ssize_t lfs_rawgetattr(lfs_t *lfs, const char *path,
4067 static int lfs_commitattr(lfs_t *lfs, const char *path,
4091 static int lfs_rawsetattr(lfs_t *lfs, const char *path,
4102 static int lfs_rawremoveattr(lfs_t *lfs, const char *path, uint8_t type) {
4109 static int lfs_init(lfs_t *lfs, const struct lfs_config *cfg) {
4237 static int lfs_deinit(lfs_t *lfs) {
4257 static int lfs_rawformat(lfs_t *lfs, const struct lfs_config *cfg) {
4324 static int lfs_rawmount(lfs_t *lfs, const struct lfs_config *cfg) {
4491 static int lfs_rawunmount(lfs_t *lfs) {
4497 static int lfs_fs_rawstat(lfs_t *lfs, struct lfs_fsinfo *fsinfo) {
4537 int lfs_fs_rawtraverse(lfs_t *lfs,
4645 static int lfs_fs_pred(lfs_t *lfs,
4683 lfs_t *lfs; member
4692 lfs_t *lfs = find->lfs; local
4710 static lfs_stag_t lfs_fs_parent(lfs_t *lfs, const lfs_block_t pair[2],
4747 static void lfs_fs_prepsuperblock(lfs_t *lfs, bool needssuperblock) {
4753 static int lfs_fs_preporphans(lfs_t *lfs, int8_t orphans) {
4765 static void lfs_fs_prepmove(lfs_t *lfs,
4775 static int lfs_fs_desuperblock(lfs_t *lfs) {
4814 static int lfs_fs_demove(lfs_t *lfs) {
4850 static int lfs_fs_deorphan(lfs_t *lfs, bool powerloss) {
4981 static int lfs_fs_forceconsistency(lfs_t *lfs) {
5002 int lfs_fs_rawmkconsistent(lfs_t *lfs) {
5038 static lfs_ssize_t lfs_fs_rawsize(lfs_t *lfs) {
5049 int lfs_fs_rawgrow(lfs_t *lfs, lfs_size_t block_count) {
5175 static int lfs1_bd_read(lfs_t *lfs, lfs_block_t block,
5183 static int lfs1_bd_crc(lfs_t *lfs, lfs_block_t block,
5238 static int lfs1_dir_fetch(lfs_t *lfs,
5300 static int lfs1_dir_next(lfs_t *lfs, lfs1_dir_t *dir, lfs1_entry_t *entry) {
5330 int lfs1_traverse(lfs_t *lfs, int (*cb)(void*, lfs_block_t), void *data) {
5399 static int lfs1_moved(lfs_t *lfs, const void *e) {
5440 static int lfs1_mount(lfs_t *lfs, struct lfs1 *lfs1,
5503 static int lfs1_unmount(lfs_t *lfs) {
5508 static int lfs_rawmigrate(lfs_t *lfs, const struct lfs_config *cfg) {
5753 int lfs_format(lfs_t *lfs, const struct lfs_config *cfg) {
5783 int lfs_mount(lfs_t *lfs, const struct lfs_config *cfg) {
5812 int lfs_unmount(lfs_t *lfs) {
5827 int lfs_remove(lfs_t *lfs, const char *path) {
5843 int lfs_rename(lfs_t *lfs, const char *oldpath, const char *newpath) {
5858 int lfs_stat(lfs_t *lfs, const char *path, struct lfs_info *info) {
5872 lfs_ssize_t lfs_getattr(lfs_t *lfs, const char *path,
5889 int lfs_setattr(lfs_t *lfs, const char *path,
5907 int lfs_removeattr(lfs_t *lfs, const char *path, uint8_t type) {
5923 int lfs_file_open(lfs_t *lfs, lfs_file_t *file, const char *path, int flags) {
5940 int lfs_file_opencfg(lfs_t *lfs, lfs_file_t *file,
5960 int lfs_file_close(lfs_t *lfs, lfs_file_t *file) {
5976 int lfs_file_sync(lfs_t *lfs, lfs_file_t *file) {
5992 lfs_ssize_t lfs_file_read(lfs_t *lfs, lfs_file_t *file,
6010 lfs_ssize_t lfs_file_write(lfs_t *lfs, lfs_file_t *file,
6028 lfs_soff_t lfs_file_seek(lfs_t *lfs, lfs_file_t *file,
6046 int lfs_file_truncate(lfs_t *lfs, lfs_file_t *file, lfs_off_t size) {
6063 lfs_soff_t lfs_file_tell(lfs_t *lfs, lfs_file_t *file) {
6078 int lfs_file_rewind(lfs_t *lfs, lfs_file_t *file) {
6092 lfs_soff_t lfs_file_size(lfs_t *lfs, lfs_file_t *file) {
6108 int lfs_mkdir(lfs_t *lfs, const char *path) {
6123 int lfs_dir_open(lfs_t *lfs, lfs_dir_t *dir, const char *path) {
6138 int lfs_dir_close(lfs_t *lfs, lfs_dir_t *dir) {
6152 int lfs_dir_read(lfs_t *lfs, lfs_dir_t *dir, struct lfs_info *info) {
6167 int lfs_dir_seek(lfs_t *lfs, lfs_dir_t *dir, lfs_off_t off) {
6182 lfs_soff_t lfs_dir_tell(lfs_t *lfs, lfs_dir_t *dir) {
6196 int lfs_dir_rewind(lfs_t *lfs, lfs_dir_t *dir) {
6210 int lfs_fs_stat(lfs_t *lfs, struct lfs_fsinfo *fsinfo) {
6224 lfs_ssize_t lfs_fs_size(lfs_t *lfs) {
6238 int lfs_fs_traverse(lfs_t *lfs, int (*cb)(void *, lfs_block_t), void *data) {
6254 int lfs_fs_gc(lfs_t *lfs) {
6270 int lfs_fs_mkconsistent(lfs_t *lfs) {
6286 int lfs_fs_grow(lfs_t *lfs, lfs_size_t block_count) {
6302 int lfs_migrate(lfs_t *lfs, const struct lfs_config *cfg) {