Lines Matching full:clu
72 struct exfat_chain dir, clu; in exfat_readdir() local
96 exfat_chain_dup(&clu, &dir); in exfat_readdir()
98 if (clu.flags == ALLOC_NO_FAT_CHAIN) { in exfat_readdir()
99 clu.dir += clu_offset; in exfat_readdir()
100 clu.size -= clu_offset; in exfat_readdir()
106 clu.dir = ei->hint_bmap.clu; in exfat_readdir()
109 while (clu_offset > 0 && clu.dir != EXFAT_EOF_CLUSTER) { in exfat_readdir()
110 if (exfat_get_next_cluster(sb, &(clu.dir))) in exfat_readdir()
117 while (clu.dir != EXFAT_EOF_CLUSTER && dentry < max_dentries) { in exfat_readdir()
121 ep = exfat_get_dentry(sb, &clu, i, &bh); in exfat_readdir()
155 err = exfat_get_uniname_from_ext_entry(sb, &clu, i, in exfat_readdir()
166 ep = exfat_get_dentry(sb, &clu, i + 1, &bh); in exfat_readdir()
175 ei->hint_bmap.clu = clu.dir; in exfat_readdir()
181 if (clu.flags == ALLOC_NO_FAT_CHAIN) { in exfat_readdir()
182 if (--clu.size > 0) in exfat_readdir()
183 clu.dir++; in exfat_readdir()
185 clu.dir = EXFAT_EOF_CLUSTER; in exfat_readdir()
187 if (exfat_get_next_cluster(sb, &(clu.dir))) in exfat_readdir()
321 int exfat_alloc_new_dir(struct inode *inode, struct exfat_chain *clu) in exfat_alloc_new_dir() argument
325 exfat_chain_set(clu, EXFAT_EOF_CLUSTER, 0, ALLOC_NO_FAT_CHAIN); in exfat_alloc_new_dir()
327 ret = exfat_alloc_cluster(inode, 1, clu, IS_DIRSYNC(inode)); in exfat_alloc_new_dir()
331 return exfat_zeroed_cluster(inode, clu->dir); in exfat_alloc_new_dir()
582 unsigned int *clu) in exfat_walk_fat_chain() argument
599 "invalid dentry access beyond EOF (clu : %u, eidx : %d)", in exfat_walk_fat_chain()
608 *clu = cur_clu; in exfat_walk_fat_chain()
616 unsigned int off, clu = 0; in exfat_find_location() local
621 ret = exfat_walk_fat_chain(sb, p_dir, off, &clu); in exfat_find_location()
633 *sector += exfat_cluster_to_sector(sbi, clu); in exfat_find_location()
827 unsigned int clu = exfat_sector_to_cluster(sbi, sec); in __exfat_get_dentry_set() local
830 clu++; in __exfat_get_dentry_set()
831 else if (exfat_get_next_cluster(sb, &clu)) in __exfat_get_dentry_set()
833 sec = exfat_cluster_to_sector(sbi, clu); in __exfat_get_dentry_set()
962 struct exfat_hint_femp *candi_empty, struct exfat_chain *clu, in exfat_set_empty_hint() argument
970 candi_empty->cur = *clu; in exfat_set_empty_hint()
1012 struct exfat_chain clu; in exfat_find_dir_entry() local
1023 exfat_chain_dup(&clu, p_dir); in exfat_find_dir_entry()
1026 clu.dir = hint_stat->clu; in exfat_find_dir_entry()
1038 while (clu.dir != EXFAT_EOF_CLUSTER) { in exfat_find_dir_entry()
1047 ep = exfat_get_dentry(sb, &clu, i, &bh); in exfat_find_dir_entry()
1057 exfat_set_empty_hint(ei, &candi_empty, &clu, in exfat_find_dir_entry()
1071 hint_opt->clu = clu.dir; in exfat_find_dir_entry()
1146 if (clu.flags == ALLOC_NO_FAT_CHAIN) { in exfat_find_dir_entry()
1147 if (--clu.size > 0) in exfat_find_dir_entry()
1148 clu.dir++; in exfat_find_dir_entry()
1150 clu.dir = EXFAT_EOF_CLUSTER; in exfat_find_dir_entry()
1152 if (exfat_get_next_cluster(sb, &clu.dir)) in exfat_find_dir_entry()
1165 clu.dir = p_dir->dir; in exfat_find_dir_entry()
1180 hint_stat->clu = p_dir->dir; in exfat_find_dir_entry()
1189 if (clu.flags == ALLOC_NO_FAT_CHAIN) { in exfat_find_dir_entry()
1190 if (--clu.size > 0) in exfat_find_dir_entry()
1191 clu.dir++; in exfat_find_dir_entry()
1193 clu.dir = EXFAT_EOF_CLUSTER; in exfat_find_dir_entry()
1195 ret = exfat_get_next_cluster(sb, &clu.dir); in exfat_find_dir_entry()
1198 if (ret || clu.dir == EXFAT_EOF_CLUSTER) { in exfat_find_dir_entry()
1200 hint_stat->clu = p_dir->dir; in exfat_find_dir_entry()
1206 hint_stat->clu = clu.dir; in exfat_find_dir_entry()
1216 struct exfat_chain clu; in exfat_count_dir_entries() local
1223 exfat_chain_dup(&clu, p_dir); in exfat_count_dir_entries()
1225 while (clu.dir != EXFAT_EOF_CLUSTER) { in exfat_count_dir_entries()
1227 ep = exfat_get_dentry(sb, &clu, i, &bh); in exfat_count_dir_entries()
1240 if (clu.flags == ALLOC_NO_FAT_CHAIN) { in exfat_count_dir_entries()
1241 if (--clu.size > 0) in exfat_count_dir_entries()
1242 clu.dir++; in exfat_count_dir_entries()
1244 clu.dir = EXFAT_EOF_CLUSTER; in exfat_count_dir_entries()
1246 if (exfat_get_next_cluster(sb, &(clu.dir))) in exfat_count_dir_entries()