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()
155 static int lfs_bd_flush(lfs_t *lfs, in lfs_bd_flush()
190 static int lfs_bd_sync(lfs_t *lfs, in lfs_bd_sync()
206 static int lfs_bd_prog(lfs_t *lfs, in lfs_bd_prog()
254 static int lfs_bd_erase(lfs_t *lfs, lfs_block_t block) { in lfs_bd_erase()
462 static void lfs_mlist_remove(lfs_t *lfs, struct lfs_mlist *mlist) { in lfs_mlist_remove()
471 static void lfs_mlist_append(lfs_t *lfs, struct lfs_mlist *mlist) { in lfs_mlist_append()
529 lfs_t *lfs = (lfs_t*)p; in lfs_alloc_lookahead() local
544 static void lfs_alloc_ack(lfs_t *lfs) { in lfs_alloc_ack()
550 static void lfs_alloc_drop(lfs_t *lfs) { in lfs_alloc_drop()
557 static int lfs_alloc(lfs_t *lfs, lfs_block_t *block) { in lfs_alloc()
605 static lfs_stag_t lfs_dir_getslice(lfs_t *lfs, const lfs_mdir_t *dir, in lfs_dir_getslice()
667 static lfs_stag_t lfs_dir_get(lfs_t *lfs, const lfs_mdir_t *dir, in lfs_dir_get()
674 static int lfs_dir_getread(lfs_t *lfs, const lfs_mdir_t *dir, in lfs_dir_getread()
796 static int lfs_dir_traverse(lfs_t *lfs, in lfs_dir_traverse()
996 static lfs_stag_t lfs_dir_fetchmatch(lfs_t *lfs, in lfs_dir_fetchmatch()
1233 static int lfs_dir_fetch(lfs_t *lfs, in lfs_dir_fetch()
1241 static int lfs_dir_getgstate(lfs_t *lfs, const lfs_mdir_t *dir, in lfs_dir_getgstate()
1259 static int lfs_dir_getinfo(lfs_t *lfs, lfs_mdir_t *dir, in lfs_dir_getinfo()
1294 lfs_t *lfs; member
1302 lfs_t *lfs = name->lfs; in lfs_dir_find_match() local
1323 static lfs_stag_t lfs_dir_find(lfs_t *lfs, lfs_mdir_t *dir, in lfs_dir_find()
1435 static int lfs_dir_commitprog(lfs_t *lfs, struct lfs_commit *commit, in lfs_dir_commitprog()
1452 static int lfs_dir_commitattr(lfs_t *lfs, struct lfs_commit *commit, in lfs_dir_commitattr()
1499 static int lfs_dir_commitcrc(lfs_t *lfs, struct lfs_commit *commit) { in lfs_dir_commitcrc()
1601 static int lfs_dir_alloc(lfs_t *lfs, lfs_mdir_t *dir) { in lfs_dir_alloc()
1645 static int lfs_dir_drop(lfs_t *lfs, lfs_mdir_t *dir, lfs_mdir_t *tail) { in lfs_dir_drop()
1666 static int lfs_dir_split(lfs_t *lfs, in lfs_dir_split()
1712 lfs_t *lfs; member
1725 static bool lfs_dir_needsrelocation(lfs_t *lfs, lfs_mdir_t *dir) { in lfs_dir_needsrelocation()
1738 static int lfs_dir_compact(lfs_t *lfs, in lfs_dir_compact()
1911 static int lfs_dir_splittingcompact(lfs_t *lfs, lfs_mdir_t *dir, in lfs_dir_splittingcompact()
2007 static int lfs_dir_relocatingcommit(lfs_t *lfs, lfs_mdir_t *dir, in lfs_dir_relocatingcommit()
2178 static int lfs_dir_orphaningcommit(lfs_t *lfs, lfs_mdir_t *dir, in lfs_dir_orphaningcommit()
2371 static int lfs_dir_commit(lfs_t *lfs, lfs_mdir_t *dir, in lfs_dir_commit()
2395 static int lfs_rawmkdir(lfs_t *lfs, const char *path) { in lfs_rawmkdir()
2491 static int lfs_dir_rawopen(lfs_t *lfs, lfs_dir_t *dir, const char *path) { in lfs_dir_rawopen()
2535 static int lfs_dir_rawclose(lfs_t *lfs, lfs_dir_t *dir) { in lfs_dir_rawclose()
2542 static int lfs_dir_rawread(lfs_t *lfs, lfs_dir_t *dir, struct lfs_info *info) { in lfs_dir_rawread()
2587 static int lfs_dir_rawseek(lfs_t *lfs, lfs_dir_t *dir, lfs_off_t off) { in lfs_dir_rawseek()
2624 static lfs_soff_t lfs_dir_rawtell(lfs_t *lfs, lfs_dir_t *dir) { in lfs_dir_rawtell()
2629 static int lfs_dir_rawrewind(lfs_t *lfs, lfs_dir_t *dir) { in lfs_dir_rawrewind()
2643 static int lfs_ctz_index(lfs_t *lfs, lfs_off_t *off) { in lfs_ctz_index()
2656 static int lfs_ctz_find(lfs_t *lfs, in lfs_ctz_find()
2691 static int lfs_ctz_extend(lfs_t *lfs, in lfs_ctz_extend()
2790 static int lfs_ctz_traverse(lfs_t *lfs, in lfs_ctz_traverse()
2835 static int lfs_file_rawopencfg(lfs_t *lfs, lfs_file_t *file,
3001 static int lfs_file_rawopen(lfs_t *lfs, lfs_file_t *file,
3008 static int lfs_file_rawclose(lfs_t *lfs, lfs_file_t *file) {
3028 static int lfs_file_relocate(lfs_t *lfs, lfs_file_t *file) {
3099 static int lfs_file_outline(lfs_t *lfs, lfs_file_t *file) {
3112 static int lfs_file_flush(lfs_t *lfs, lfs_file_t *file) {
3193 static int lfs_file_rawsync(lfs_t *lfs, lfs_file_t *file) {
3245 static lfs_ssize_t lfs_file_flushedread(lfs_t *lfs, lfs_file_t *file,
3306 static lfs_ssize_t lfs_file_rawread(lfs_t *lfs, lfs_file_t *file,
3325 static lfs_ssize_t lfs_file_flushedwrite(lfs_t *lfs, lfs_file_t *file,
3413 static lfs_ssize_t lfs_file_rawwrite(lfs_t *lfs, lfs_file_t *file,
3457 static lfs_soff_t lfs_file_rawseek(lfs_t *lfs, lfs_file_t *file,
3521 static int lfs_file_rawtruncate(lfs_t *lfs, lfs_file_t *file, lfs_off_t size) {
3577 static lfs_soff_t lfs_file_rawtell(lfs_t *lfs, lfs_file_t *file) {
3582 static int lfs_file_rawrewind(lfs_t *lfs, lfs_file_t *file) {
3591 static lfs_soff_t lfs_file_rawsize(lfs_t *lfs, lfs_file_t *file) {
3605 static int lfs_rawstat(lfs_t *lfs, const char *path, struct lfs_info *info) {
3616 static int lfs_rawremove(lfs_t *lfs, const char *path) {
3695 static int lfs_rawrename(lfs_t *lfs, const char *oldpath, const char *newpath) {
3830 static lfs_ssize_t lfs_rawgetattr(lfs_t *lfs, const char *path,
3864 static int lfs_commitattr(lfs_t *lfs, const char *path,
3888 static int lfs_rawsetattr(lfs_t *lfs, const char *path,
3899 static int lfs_rawremoveattr(lfs_t *lfs, const char *path, uint8_t type) {
3906 static int lfs_init(lfs_t *lfs, const struct lfs_config *cfg) {
4015 static int lfs_deinit(lfs_t *lfs) {
4033 static int lfs_rawformat(lfs_t *lfs, const struct lfs_config *cfg) {
4098 static int lfs_rawmount(lfs_t *lfs, const struct lfs_config *cfg) {
4239 static int lfs_rawunmount(lfs_t *lfs) {
4245 int lfs_fs_rawtraverse(lfs_t *lfs,
4344 static int lfs_fs_pred(lfs_t *lfs,
4373 lfs_t *lfs; member
4382 lfs_t *lfs = find->lfs; local
4400 static lfs_stag_t lfs_fs_parent(lfs_t *lfs, const lfs_block_t pair[2],
4429 static int lfs_fs_preporphans(lfs_t *lfs, int8_t orphans) {
4440 static void lfs_fs_prepmove(lfs_t *lfs,
4450 static int lfs_fs_demove(lfs_t *lfs) {
4482 static int lfs_fs_deorphan(lfs_t *lfs, bool powerloss) {
4609 static int lfs_fs_forceconsistency(lfs_t *lfs) {
4631 static lfs_ssize_t lfs_fs_rawsize(lfs_t *lfs) {
4729 static int lfs1_bd_read(lfs_t *lfs, lfs_block_t block,
4737 static int lfs1_bd_crc(lfs_t *lfs, lfs_block_t block,
4792 static int lfs1_dir_fetch(lfs_t *lfs,
4854 static int lfs1_dir_next(lfs_t *lfs, lfs1_dir_t *dir, lfs1_entry_t *entry) {
4884 int lfs1_traverse(lfs_t *lfs, int (*cb)(void*, lfs_block_t), void *data) {
4953 static int lfs1_moved(lfs_t *lfs, const void *e) {
4994 static int lfs1_mount(lfs_t *lfs, struct lfs1 *lfs1,
5057 static int lfs1_unmount(lfs_t *lfs) {
5062 static int lfs_rawmigrate(lfs_t *lfs, const struct lfs_config *cfg) {
5303 int lfs_format(lfs_t *lfs, const struct lfs_config *cfg) {
5333 int lfs_mount(lfs_t *lfs, const struct lfs_config *cfg) {
5362 int lfs_unmount(lfs_t *lfs) {
5377 int lfs_remove(lfs_t *lfs, const char *path) {
5393 int lfs_rename(lfs_t *lfs, const char *oldpath, const char *newpath) {
5408 int lfs_stat(lfs_t *lfs, const char *path, struct lfs_info *info) {
5422 lfs_ssize_t lfs_getattr(lfs_t *lfs, const char *path,
5439 int lfs_setattr(lfs_t *lfs, const char *path,
5457 int lfs_removeattr(lfs_t *lfs, const char *path, uint8_t type) {
5473 int lfs_file_open(lfs_t *lfs, lfs_file_t *file, const char *path, int flags) {
5490 int lfs_file_opencfg(lfs_t *lfs, lfs_file_t *file,
5510 int lfs_file_close(lfs_t *lfs, lfs_file_t *file) {
5526 int lfs_file_sync(lfs_t *lfs, lfs_file_t *file) {
5542 lfs_ssize_t lfs_file_read(lfs_t *lfs, lfs_file_t *file,
5560 lfs_ssize_t lfs_file_write(lfs_t *lfs, lfs_file_t *file,
5578 lfs_soff_t lfs_file_seek(lfs_t *lfs, lfs_file_t *file,
5596 int lfs_file_truncate(lfs_t *lfs, lfs_file_t *file, lfs_off_t size) {
5613 lfs_soff_t lfs_file_tell(lfs_t *lfs, lfs_file_t *file) {
5628 int lfs_file_rewind(lfs_t *lfs, lfs_file_t *file) {
5642 lfs_soff_t lfs_file_size(lfs_t *lfs, lfs_file_t *file) {
5658 int lfs_mkdir(lfs_t *lfs, const char *path) {
5673 int lfs_dir_open(lfs_t *lfs, lfs_dir_t *dir, const char *path) {
5688 int lfs_dir_close(lfs_t *lfs, lfs_dir_t *dir) {
5702 int lfs_dir_read(lfs_t *lfs, lfs_dir_t *dir, struct lfs_info *info) {
5717 int lfs_dir_seek(lfs_t *lfs, lfs_dir_t *dir, lfs_off_t off) {
5732 lfs_soff_t lfs_dir_tell(lfs_t *lfs, lfs_dir_t *dir) {
5746 int lfs_dir_rewind(lfs_t *lfs, lfs_dir_t *dir) {
5760 lfs_ssize_t lfs_fs_size(lfs_t *lfs) {
5774 int lfs_fs_traverse(lfs_t *lfs, int (*cb)(void *, lfs_block_t), void *data) {
5790 int lfs_migrate(lfs_t *lfs, const struct lfs_config *cfg) {