Home
last modified time | relevance | path

Searched refs:fclus (Results 1 – 6 of 6) sorted by relevance

/linux/fs/exfat/
H A Dcache.c89 unsigned int fclus, unsigned int end, in exfat_cache_lookup() argument
105 if (p->fcluster <= fclus) { in exfat_cache_lookup()
135 offset = min(cid->nr_contig, fclus - cid->fcluster); in exfat_cache_lookup()
253 unsigned int fclus, unsigned int dclus) in cache_init() argument
256 cid->fcluster = fclus; in cache_init()
269 unsigned int content, fclus; in exfat_get_cluster() local
279 fclus = 0; in exfat_get_cluster()
294 if (fclus == cluster && *count == 1) in exfat_get_cluster()
297 cache_init(&cid, fclus, *dclus); in exfat_get_cluster()
302 end = exfat_cache_lookup(inode, &cid, cluster, end, &fclus, dclus); in exfat_get_cluster()
[all …]
/linux/fs/fat/
H A Dcache.c75 static int fat_cache_lookup(struct inode *inode, int fclus, in fat_cache_lookup() argument
87 if (p->fcluster <= fclus && hit->fcluster < p->fcluster) { in fat_cache_lookup()
89 if ((hit->fcluster + hit->nr_contig) < fclus) { in fat_cache_lookup()
92 offset = fclus - hit->fcluster; in fat_cache_lookup()
212 static inline void cache_init(struct fat_cache_id *cid, int fclus, int dclus) in cache_init() argument
215 cid->fcluster = fclus; in cache_init()
220 int fat_get_cluster(struct inode *inode, int cluster, int *fclus, int *dclus) in fat_get_cluster() argument
231 *fclus = 0; in fat_get_cluster()
242 if (fat_cache_lookup(inode, cluster, &cid, fclus, dclus) < 0) { in fat_get_cluster()
251 while (*fclus < cluster) { in fat_get_cluster()
[all …]
H A Dmisc.c119 int fclus, dclus; in fat_chain_add() local
121 ret = fat_get_cluster(inode, FAT_ENT_EOF, &fclus, &dclus); in fat_chain_add()
124 new_fclus = fclus + 1; in fat_chain_add()
H A Dfile.c345 int ret, fclus, dclus; in fat_free() local
347 ret = fat_get_cluster(inode, skip - 1, &fclus, &dclus); in fat_free()
H A Dinode.c480 int ret, fclus, dclus; in fat_calc_dir_size() local
486 ret = fat_get_cluster(inode, FAT_ENT_EOF, &fclus, &dclus); in fat_calc_dir_size()
489 inode->i_size = (fclus + 1) << sbi->cluster_bits; in fat_calc_dir_size()
H A Dfat.h320 int *fclus, int *dclus);