Lines Matching refs:fclus
80 static int fat_cache_lookup(struct inode *inode, int fclus, in fat_cache_lookup() argument
92 if (p->fcluster <= fclus && hit->fcluster < p->fcluster) { in fat_cache_lookup()
94 if ((hit->fcluster + hit->nr_contig) < fclus) { in fat_cache_lookup()
97 offset = fclus - hit->fcluster; in fat_cache_lookup()
217 static inline void cache_init(struct fat_cache_id *cid, int fclus, int dclus) in cache_init() argument
220 cid->fcluster = fclus; in cache_init()
225 int fat_get_cluster(struct inode *inode, int cluster, int *fclus, int *dclus) in fat_get_cluster() argument
236 *fclus = 0; in fat_get_cluster()
247 if (fat_cache_lookup(inode, cluster, &cid, fclus, dclus) < 0) { in fat_get_cluster()
256 while (*fclus < cluster) { in fat_get_cluster()
258 if (*fclus > limit) { in fat_get_cluster()
279 (*fclus)++; in fat_get_cluster()
282 cache_init(&cid, *fclus, *dclus); in fat_get_cluster()
294 int ret, fclus, dclus; in fat_bmap_cluster() local
299 ret = fat_get_cluster(inode, cluster, &fclus, &dclus); in fat_bmap_cluster()