Lines Matching refs:clu

67 	struct exfat_chain dir, clu;  in exfat_readdir()  local
90 exfat_chain_dup(&clu, &dir); in exfat_readdir()
92 if (clu.flags == ALLOC_NO_FAT_CHAIN) { in exfat_readdir()
93 clu.dir += clu_offset; in exfat_readdir()
94 clu.size -= clu_offset; in exfat_readdir()
100 clu.dir = ei->hint_bmap.clu; in exfat_readdir()
104 if (exfat_get_next_cluster(sb, &(clu.dir))) in exfat_readdir()
111 while (clu.dir != EXFAT_EOF_CLUSTER) { in exfat_readdir()
115 ep = exfat_get_dentry(sb, &clu, i, &bh, &sector); in exfat_readdir()
156 ep = exfat_get_dentry(sb, &clu, i + 1, &bh, NULL); in exfat_readdir()
165 ei->hint_bmap.clu = clu.dir; in exfat_readdir()
171 if (clu.flags == ALLOC_NO_FAT_CHAIN) { in exfat_readdir()
172 if (--clu.size > 0) in exfat_readdir()
173 clu.dir++; in exfat_readdir()
175 clu.dir = EXFAT_EOF_CLUSTER; in exfat_readdir()
177 if (exfat_get_next_cluster(sb, &(clu.dir))) in exfat_readdir()
312 int exfat_alloc_new_dir(struct inode *inode, struct exfat_chain *clu) in exfat_alloc_new_dir() argument
316 exfat_chain_set(clu, EXFAT_EOF_CLUSTER, 0, ALLOC_NO_FAT_CHAIN); in exfat_alloc_new_dir()
318 ret = exfat_alloc_cluster(inode, 1, clu); in exfat_alloc_new_dir()
322 return exfat_zeroed_cluster(inode, clu->dir); in exfat_alloc_new_dir()
622 unsigned int *clu) in exfat_walk_fat_chain() argument
648 *clu = cur_clu; in exfat_walk_fat_chain()
656 unsigned int off, clu = 0; in exfat_find_location() local
661 ret = exfat_walk_fat_chain(sb, p_dir, off, &clu); in exfat_find_location()
673 *sector += exfat_cluster_to_sector(sbi, clu); in exfat_find_location()
820 unsigned int off, byte_offset, clu = 0; in exfat_get_dentry_set() local
835 ret = exfat_walk_fat_chain(sb, p_dir, byte_offset, &clu); in exfat_get_dentry_set()
854 sec += exfat_cluster_to_sector(sbi, clu); in exfat_get_dentry_set()
874 clu++; in exfat_get_dentry_set()
875 else if (exfat_get_next_cluster(sb, &clu)) in exfat_get_dentry_set()
877 sec = exfat_cluster_to_sector(sbi, clu); in exfat_get_dentry_set()
923 struct exfat_chain clu; in exfat_find_dir_entry() local
930 exfat_chain_dup(&clu, p_dir); in exfat_find_dir_entry()
933 clu.dir = hint_stat->clu; in exfat_find_dir_entry()
942 while (clu.dir != EXFAT_EOF_CLUSTER) { in exfat_find_dir_entry()
951 ep = exfat_get_dentry(sb, &clu, i, &bh, NULL); in exfat_find_dir_entry()
965 clu.dir, clu.size, clu.flags); in exfat_find_dir_entry()
1067 if (clu.flags == ALLOC_NO_FAT_CHAIN) { in exfat_find_dir_entry()
1068 if (--clu.size > 0) in exfat_find_dir_entry()
1069 clu.dir++; in exfat_find_dir_entry()
1071 clu.dir = EXFAT_EOF_CLUSTER; in exfat_find_dir_entry()
1073 if (exfat_get_next_cluster(sb, &clu.dir)) in exfat_find_dir_entry()
1086 clu.dir = p_dir->dir; in exfat_find_dir_entry()
1094 hint_stat->clu = p_dir->dir; in exfat_find_dir_entry()
1103 if (clu.flags == ALLOC_NO_FAT_CHAIN) { in exfat_find_dir_entry()
1104 if (--clu.size > 0) in exfat_find_dir_entry()
1105 clu.dir++; in exfat_find_dir_entry()
1107 clu.dir = EXFAT_EOF_CLUSTER; in exfat_find_dir_entry()
1109 ret = exfat_get_next_cluster(sb, &clu.dir); in exfat_find_dir_entry()
1112 if (ret || clu.dir == EXFAT_EOF_CLUSTER) { in exfat_find_dir_entry()
1114 hint_stat->clu = p_dir->dir; in exfat_find_dir_entry()
1120 hint_stat->clu = clu.dir; in exfat_find_dir_entry()
1153 struct exfat_chain clu; in exfat_count_dir_entries() local
1160 exfat_chain_dup(&clu, p_dir); in exfat_count_dir_entries()
1162 while (clu.dir != EXFAT_EOF_CLUSTER) { in exfat_count_dir_entries()
1164 ep = exfat_get_dentry(sb, &clu, i, &bh, NULL); in exfat_count_dir_entries()
1177 if (clu.flags == ALLOC_NO_FAT_CHAIN) { in exfat_count_dir_entries()
1178 if (--clu.size > 0) in exfat_count_dir_entries()
1179 clu.dir++; in exfat_count_dir_entries()
1181 clu.dir = EXFAT_EOF_CLUSTER; in exfat_count_dir_entries()
1183 if (exfat_get_next_cluster(sb, &(clu.dir))) in exfat_count_dir_entries()