Lines Matching refs:first_cluster

750     int first_cluster = mapping->begin;  in read_directory()  local
768 first_cluster == 0 ? 0 : s->directory.next; in read_directory()
770 if (first_cluster != 0) { in read_directory()
784 if (first_cluster == 0 && s->directory.next >= s->root_entries - 1) { in read_directory()
790 if(first_cluster == 0 && (is_dotdot || is_dot)) in read_directory()
818 set_begin_of_direntry(direntry, first_cluster); in read_directory()
876 first_cluster += (s->directory.next - mapping->info.dir.first_dir_index) in read_directory()
878 mapping->end = first_cluster; in read_directory()
1593 struct { uint32_t first_cluster; } new_file; member
1638 char* path, uint32_t first_cluster) in schedule_new_file() argument
1642 commit->param.new_file.first_cluster = first_cluster; in schedule_new_file()
2340 uint32_t first_cluster, int dir_index) in commit_mappings() argument
2342 mapping_t* mapping = find_mapping_for_cluster(s, first_cluster); in commit_mappings()
2344 uint32_t cluster = first_cluster; in commit_mappings()
2349 assert(mapping->begin == first_cluster); in commit_mappings()
2420 uint32_t first_cluster = dir_index == 0 ? 0 : begin_of_direntry(direntry); in commit_direntries() local
2421 mapping_t* mapping = find_mapping_for_cluster(s, first_cluster); in commit_direntries()
2431 assert(mapping->begin == first_cluster); in commit_direntries()
2443 if (first_cluster == 0) { in commit_direntries()
2447 for (old_cluster_count = 0, c = first_cluster; !fat_eof(s, c); in commit_direntries()
2451 for (new_cluster_count = 0, c = first_cluster; !fat_eof(s, c); in commit_direntries()
2466 for (c = first_cluster; !fat_eof(s, c); c = modified_fat_get(s, c)) { in commit_direntries()
2482 ret = commit_mappings(s, first_cluster, dir_index); in commit_direntries()
2490 mapping = find_mapping_for_cluster(s, first_cluster); in commit_direntries()
2512 uint32_t first_cluster = c; in commit_one_file() local
2584 return commit_mappings(s, first_cluster, dir_index); in commit_one_file()
2804 int begin = commit->param.new_file.first_cluster; in handle_commits()
2983 int first_cluster, last_cluster; in vvfat_write() local
3030 first_cluster = sector2cluster(s, sector_num); in vvfat_write()
3033 for (i = first_cluster; i <= last_cluster;) { in vvfat_write()
3095 for (i = first_cluster; i <= last_cluster; i++) { in vvfat_write()