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()
661 unsigned int *clu) in exfat_walk_fat_chain() argument
678 "invalid dentry access beyond EOF (clu : %u, eidx : %d)", in exfat_walk_fat_chain()
687 *clu = cur_clu; in exfat_walk_fat_chain()
695 unsigned int off, clu = 0; in exfat_find_location() local
700 ret = exfat_walk_fat_chain(sb, p_dir, off, &clu); in exfat_find_location()
712 *sector += exfat_cluster_to_sector(sbi, clu); in exfat_find_location()
904 unsigned int clu = exfat_sector_to_cluster(sbi, sec); in exfat_get_dentry_set() local
907 clu++; in exfat_get_dentry_set()
908 else if (exfat_get_next_cluster(sb, &clu)) in exfat_get_dentry_set()
910 sec = exfat_cluster_to_sector(sbi, clu); in exfat_get_dentry_set()
941 struct exfat_hint_femp *candi_empty, struct exfat_chain *clu, in exfat_set_empty_hint() argument
949 candi_empty->cur = *clu; in exfat_set_empty_hint()
991 struct exfat_chain clu; in exfat_find_dir_entry() local
1002 exfat_chain_dup(&clu, p_dir); in exfat_find_dir_entry()
1005 clu.dir = hint_stat->clu; in exfat_find_dir_entry()
1017 while (clu.dir != EXFAT_EOF_CLUSTER) { in exfat_find_dir_entry()
1026 ep = exfat_get_dentry(sb, &clu, i, &bh); in exfat_find_dir_entry()
1036 exfat_set_empty_hint(ei, &candi_empty, &clu, in exfat_find_dir_entry()
1050 hint_opt->clu = clu.dir; in exfat_find_dir_entry()
1125 if (clu.flags == ALLOC_NO_FAT_CHAIN) { in exfat_find_dir_entry()
1126 if (--clu.size > 0) in exfat_find_dir_entry()
1127 clu.dir++; in exfat_find_dir_entry()
1129 clu.dir = EXFAT_EOF_CLUSTER; in exfat_find_dir_entry()
1131 if (exfat_get_next_cluster(sb, &clu.dir)) in exfat_find_dir_entry()
1144 clu.dir = p_dir->dir; in exfat_find_dir_entry()
1159 hint_stat->clu = p_dir->dir; in exfat_find_dir_entry()
1168 if (clu.flags == ALLOC_NO_FAT_CHAIN) { in exfat_find_dir_entry()
1169 if (--clu.size > 0) in exfat_find_dir_entry()
1170 clu.dir++; in exfat_find_dir_entry()
1172 clu.dir = EXFAT_EOF_CLUSTER; in exfat_find_dir_entry()
1174 ret = exfat_get_next_cluster(sb, &clu.dir); in exfat_find_dir_entry()
1177 if (ret || clu.dir == EXFAT_EOF_CLUSTER) { in exfat_find_dir_entry()
1179 hint_stat->clu = p_dir->dir; in exfat_find_dir_entry()
1185 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()