Lines Matching refs:exfat_node
30 struct exfat_node* exfat_get_node(struct exfat_node* node) in exfat_get_node()
38 void exfat_put_node(struct exfat* ef, struct exfat_node* node) in exfat_put_node()
62 int exfat_cleanup_node(struct exfat* ef, struct exfat_node* node) in exfat_cleanup_node()
80 static int read_entries(struct exfat* ef, struct exfat_node* dir, in read_entries()
101 static int write_entries(struct exfat* ef, struct exfat_node* dir, in write_entries()
120 static struct exfat_node* allocate_node(void) in allocate_node()
122 struct exfat_node* node = malloc(sizeof(struct exfat_node)); in allocate_node()
128 memset(node, 0, sizeof(struct exfat_node)); in allocate_node()
132 static void init_node_meta1(struct exfat_node* node, in init_node_meta1()
144 static void init_node_meta2(struct exfat_node* node, in init_node_meta2()
154 static void init_node_name(struct exfat_node* node, in init_node_name()
209 static bool check_node(const struct exfat* ef, struct exfat_node* node, in check_node()
296 static int parse_file_entries(struct exfat* ef, struct exfat_node* node, in parse_file_entries()
336 static int parse_file_entry(struct exfat* ef, struct exfat_node* parent, in parse_file_entry()
337 struct exfat_node** node, off_t* offset, int n) in parse_file_entry()
387 static int readdir(struct exfat* ef, struct exfat_node* parent, in readdir()
388 struct exfat_node** node, off_t* offset) in readdir()
532 int exfat_cache_directory(struct exfat* ef, struct exfat_node* dir) in exfat_cache_directory()
536 struct exfat_node* node; in exfat_cache_directory()
537 struct exfat_node* current = NULL; in exfat_cache_directory()
572 static void tree_attach(struct exfat_node* dir, struct exfat_node* node) in tree_attach()
583 static void tree_detach(struct exfat_node* node) in tree_detach()
596 static void reset_cache(struct exfat* ef, struct exfat_node* node) in reset_cache()
602 struct exfat_node* p = node->child; in reset_cache()
628 int exfat_flush_node(struct exfat* ef, struct exfat_node* node) in exfat_flush_node()
680 static int erase_entries(struct exfat* ef, struct exfat_node* dir, int n, in erase_entries()
695 static int erase_node(struct exfat* ef, struct exfat_node* node) in erase_node()
712 static int shrink_directory(struct exfat* ef, struct exfat_node* dir, in shrink_directory()
715 const struct exfat_node* node; in shrink_directory()
716 const struct exfat_node* last_node; in shrink_directory()
757 static int delete(struct exfat* ef, struct exfat_node* node) in delete()
759 struct exfat_node* parent = node->parent; in delete()
785 int exfat_unlink(struct exfat* ef, struct exfat_node* node) in exfat_unlink()
792 int exfat_rmdir(struct exfat* ef, struct exfat_node* node) in exfat_rmdir()
807 static int check_slot(struct exfat* ef, struct exfat_node* dir, off_t offset, in check_slot()
829 static int find_slot(struct exfat* ef, struct exfat_node* dir, in find_slot()
833 struct exfat_node* p; in find_slot()
894 static int commit_entry(struct exfat* ef, struct exfat_node* dir, in commit_entry()
897 struct exfat_node* node; in commit_entry()
955 struct exfat_node* dir; in create()
956 struct exfat_node* existing; in create()
998 struct exfat_node* node; in exfat_mkdir()
1025 static int rename_entry(struct exfat* ef, struct exfat_node* dir, in rename_entry()
1026 struct exfat_node* node, const le16_t* name, off_t new_offset) in rename_entry()
1075 struct exfat_node* node; in exfat_rename()
1076 struct exfat_node* existing; in exfat_rename()
1077 struct exfat_node* dir; in exfat_rename()
1096 struct exfat_node* p; in exfat_rename()
1172 void exfat_utimes(struct exfat_node* node, const struct timespec tv[2]) in exfat_utimes()
1179 void exfat_update_atime(struct exfat_node* node) in exfat_update_atime()
1185 void exfat_update_mtime(struct exfat_node* node) in exfat_update_mtime()