Lines Matching defs:lfs
15 static inline void lfs_cache_drop(lfs_t *lfs, lfs_cache_t *rcache) { in lfs_cache_drop()
22 static inline void lfs_cache_zero(lfs_t *lfs, lfs_cache_t *pcache) { in lfs_cache_zero()
28 static int lfs_bd_read(lfs_t *lfs, in lfs_bd_read()
117 static int lfs_bd_cmp(lfs_t *lfs, in lfs_bd_cmp()
145 static int lfs_bd_flush(lfs_t *lfs, in lfs_bd_flush()
180 static int lfs_bd_sync(lfs_t *lfs, in lfs_bd_sync()
196 static int lfs_bd_prog(lfs_t *lfs, in lfs_bd_prog()
244 static int lfs_bd_erase(lfs_t *lfs, lfs_block_t block) { in lfs_bd_erase()
442 static void lfs_mlist_remove(lfs_t *lfs, struct lfs_mlist *mlist) { in lfs_mlist_remove()
451 static void lfs_mlist_append(lfs_t *lfs, struct lfs_mlist *mlist) { in lfs_mlist_append()
507 lfs_t *lfs = (lfs_t*)p; in lfs_alloc_lookahead() local
522 static void lfs_alloc_ack(lfs_t *lfs) { in lfs_alloc_ack()
528 static void lfs_alloc_drop(lfs_t *lfs) { in lfs_alloc_drop()
535 static int lfs_alloc(lfs_t *lfs, lfs_block_t *block) { in lfs_alloc()
583 static lfs_stag_t lfs_dir_getslice(lfs_t *lfs, const lfs_mdir_t *dir, in lfs_dir_getslice()
645 static lfs_stag_t lfs_dir_get(lfs_t *lfs, const lfs_mdir_t *dir, in lfs_dir_get()
652 static int lfs_dir_getread(lfs_t *lfs, const lfs_mdir_t *dir, in lfs_dir_getread()
744 static int lfs_dir_traverse(lfs_t *lfs, in lfs_dir_traverse()
839 static lfs_stag_t lfs_dir_fetchmatch(lfs_t *lfs, in lfs_dir_fetchmatch()
1076 static int lfs_dir_fetch(lfs_t *lfs, in lfs_dir_fetch()
1084 static int lfs_dir_getgstate(lfs_t *lfs, const lfs_mdir_t *dir, in lfs_dir_getgstate()
1102 static int lfs_dir_getinfo(lfs_t *lfs, lfs_mdir_t *dir, in lfs_dir_getinfo()
1137 lfs_t *lfs; member
1145 lfs_t *lfs = name->lfs; in lfs_dir_find_match() local
1166 static lfs_stag_t lfs_dir_find(lfs_t *lfs, lfs_mdir_t *dir, in lfs_dir_find()
1278 static int lfs_dir_commitprog(lfs_t *lfs, struct lfs_commit *commit, in lfs_dir_commitprog()
1295 static int lfs_dir_commitattr(lfs_t *lfs, struct lfs_commit *commit, in lfs_dir_commitattr()
1342 static int lfs_dir_commitcrc(lfs_t *lfs, struct lfs_commit *commit) { in lfs_dir_commitcrc()
1444 static int lfs_dir_alloc(lfs_t *lfs, lfs_mdir_t *dir) { in lfs_dir_alloc()
1488 static int lfs_dir_drop(lfs_t *lfs, lfs_mdir_t *dir, lfs_mdir_t *tail) { in lfs_dir_drop()
1509 static int lfs_dir_split(lfs_t *lfs, in lfs_dir_split()
1555 lfs_t *lfs; member
1568 static int lfs_dir_compact(lfs_t *lfs, in lfs_dir_compact()
1827 static int lfs_dir_commit(lfs_t *lfs, lfs_mdir_t *dir, in lfs_dir_commit()
2020 static int lfs_rawmkdir(lfs_t *lfs, const char *path) { in lfs_rawmkdir()
2116 static int lfs_dir_rawopen(lfs_t *lfs, lfs_dir_t *dir, const char *path) { in lfs_dir_rawopen()
2160 static int lfs_dir_rawclose(lfs_t *lfs, lfs_dir_t *dir) { in lfs_dir_rawclose()
2167 static int lfs_dir_rawread(lfs_t *lfs, lfs_dir_t *dir, struct lfs_info *info) { in lfs_dir_rawread()
2212 static int lfs_dir_rawseek(lfs_t *lfs, lfs_dir_t *dir, lfs_off_t off) { in lfs_dir_rawseek()
2249 static lfs_soff_t lfs_dir_rawtell(lfs_t *lfs, lfs_dir_t *dir) { in lfs_dir_rawtell()
2254 static int lfs_dir_rawrewind(lfs_t *lfs, lfs_dir_t *dir) { in lfs_dir_rawrewind()
2268 static int lfs_ctz_index(lfs_t *lfs, lfs_off_t *off) { in lfs_ctz_index()
2281 static int lfs_ctz_find(lfs_t *lfs, in lfs_ctz_find()
2316 static int lfs_ctz_extend(lfs_t *lfs, in lfs_ctz_extend()
2415 static int lfs_ctz_traverse(lfs_t *lfs, in lfs_ctz_traverse()
2460 static int lfs_file_rawopencfg(lfs_t *lfs, lfs_file_t *file,
2623 static int lfs_file_rawopen(lfs_t *lfs, lfs_file_t *file,
2630 static int lfs_file_rawclose(lfs_t *lfs, lfs_file_t *file) {
2650 static int lfs_file_relocate(lfs_t *lfs, lfs_file_t *file) {
2721 static int lfs_file_outline(lfs_t *lfs, lfs_file_t *file) {
2735 static int lfs_file_flush(lfs_t *lfs, lfs_file_t *file) {
2815 static int lfs_file_rawsync(lfs_t *lfs, lfs_file_t *file) {
2867 static lfs_ssize_t lfs_file_rawread(lfs_t *lfs, lfs_file_t *file,
2941 static lfs_ssize_t lfs_file_rawwrite(lfs_t *lfs, lfs_file_t *file,
3063 static lfs_soff_t lfs_file_rawseek(lfs_t *lfs, lfs_file_t *file,
3099 static int lfs_file_rawtruncate(lfs_t *lfs, lfs_file_t *file, lfs_off_t size) {
3155 static lfs_soff_t lfs_file_rawtell(lfs_t *lfs, lfs_file_t *file) {
3160 static int lfs_file_rawrewind(lfs_t *lfs, lfs_file_t *file) {
3169 static lfs_soff_t lfs_file_rawsize(lfs_t *lfs, lfs_file_t *file) {
3183 static int lfs_rawstat(lfs_t *lfs, const char *path, struct lfs_info *info) {
3194 static int lfs_rawremove(lfs_t *lfs, const char *path) {
3273 static int lfs_rawrename(lfs_t *lfs, const char *oldpath, const char *newpath) {
3407 static lfs_ssize_t lfs_rawgetattr(lfs_t *lfs, const char *path,
3441 static int lfs_commitattr(lfs_t *lfs, const char *path,
3465 static int lfs_rawsetattr(lfs_t *lfs, const char *path,
3476 static int lfs_rawremoveattr(lfs_t *lfs, const char *path, uint8_t type) {
3483 static int lfs_init(lfs_t *lfs, const struct lfs_config *cfg) {
3592 static int lfs_deinit(lfs_t *lfs) {
3610 static int lfs_rawformat(lfs_t *lfs, const struct lfs_config *cfg) {
3675 static int lfs_rawmount(lfs_t *lfs, const struct lfs_config *cfg) {
3802 static int lfs_rawunmount(lfs_t *lfs) {
3808 int lfs_fs_rawtraverse(lfs_t *lfs,
3907 static int lfs_fs_pred(lfs_t *lfs,
3936 lfs_t *lfs; member
3945 lfs_t *lfs = find->lfs; local
3963 static lfs_stag_t lfs_fs_parent(lfs_t *lfs, const lfs_block_t pair[2],
3992 static int lfs_fs_relocate(lfs_t *lfs,
4095 static int lfs_fs_preporphans(lfs_t *lfs, int8_t orphans) {
4106 static void lfs_fs_prepmove(lfs_t *lfs,
4116 static int lfs_fs_demove(lfs_t *lfs) {
4148 static int lfs_fs_deorphan(lfs_t *lfs) {
4223 static int lfs_fs_forceconsistency(lfs_t *lfs) {
4245 static lfs_ssize_t lfs_fs_rawsize(lfs_t *lfs) {
4343 static int lfs1_bd_read(lfs_t *lfs, lfs_block_t block,
4351 static int lfs1_bd_crc(lfs_t *lfs, lfs_block_t block,
4406 static int lfs1_dir_fetch(lfs_t *lfs,
4468 static int lfs1_dir_next(lfs_t *lfs, lfs1_dir_t *dir, lfs1_entry_t *entry) {
4498 int lfs1_traverse(lfs_t *lfs, int (*cb)(void*, lfs_block_t), void *data) {
4567 static int lfs1_moved(lfs_t *lfs, const void *e) {
4608 static int lfs1_mount(lfs_t *lfs, struct lfs1 *lfs1,
4671 static int lfs1_unmount(lfs_t *lfs) {
4676 static int lfs_rawmigrate(lfs_t *lfs, const struct lfs_config *cfg) {
4917 int lfs_format(lfs_t *lfs, const struct lfs_config *cfg) {
4947 int lfs_mount(lfs_t *lfs, const struct lfs_config *cfg) {
4976 int lfs_unmount(lfs_t *lfs) {
4991 int lfs_remove(lfs_t *lfs, const char *path) {
5007 int lfs_rename(lfs_t *lfs, const char *oldpath, const char *newpath) {
5022 int lfs_stat(lfs_t *lfs, const char *path, struct lfs_info *info) {
5036 lfs_ssize_t lfs_getattr(lfs_t *lfs, const char *path,
5053 int lfs_setattr(lfs_t *lfs, const char *path,
5071 int lfs_removeattr(lfs_t *lfs, const char *path, uint8_t type) {
5086 int lfs_file_open(lfs_t *lfs, lfs_file_t *file, const char *path, int flags) {
5102 int lfs_file_opencfg(lfs_t *lfs, lfs_file_t *file,
5122 int lfs_file_close(lfs_t *lfs, lfs_file_t *file) {
5138 int lfs_file_sync(lfs_t *lfs, lfs_file_t *file) {
5154 lfs_ssize_t lfs_file_read(lfs_t *lfs, lfs_file_t *file,
5172 lfs_ssize_t lfs_file_write(lfs_t *lfs, lfs_file_t *file,
5190 lfs_soff_t lfs_file_seek(lfs_t *lfs, lfs_file_t *file,
5208 int lfs_file_truncate(lfs_t *lfs, lfs_file_t *file, lfs_off_t size) {
5225 lfs_soff_t lfs_file_tell(lfs_t *lfs, lfs_file_t *file) {
5240 int lfs_file_rewind(lfs_t *lfs, lfs_file_t *file) {
5254 lfs_soff_t lfs_file_size(lfs_t *lfs, lfs_file_t *file) {
5270 int lfs_mkdir(lfs_t *lfs, const char *path) {
5285 int lfs_dir_open(lfs_t *lfs, lfs_dir_t *dir, const char *path) {
5300 int lfs_dir_close(lfs_t *lfs, lfs_dir_t *dir) {
5314 int lfs_dir_read(lfs_t *lfs, lfs_dir_t *dir, struct lfs_info *info) {
5329 int lfs_dir_seek(lfs_t *lfs, lfs_dir_t *dir, lfs_off_t off) {
5344 lfs_soff_t lfs_dir_tell(lfs_t *lfs, lfs_dir_t *dir) {
5358 int lfs_dir_rewind(lfs_t *lfs, lfs_dir_t *dir) {
5372 lfs_ssize_t lfs_fs_size(lfs_t *lfs) {
5386 int lfs_fs_traverse(lfs_t *lfs, int (*cb)(void *, lfs_block_t), void *data) {
5402 int lfs_migrate(lfs_t *lfs, const struct lfs_config *cfg) {