Lines Matching refs:cid

84 		unsigned int fclus, struct exfat_cache_id *cid,  in exfat_cache_lookup()  argument
108 cid->id = ei->cache_valid_id; in exfat_cache_lookup()
109 cid->nr_contig = hit->nr_contig; in exfat_cache_lookup()
110 cid->fcluster = hit->fcluster; in exfat_cache_lookup()
111 cid->dcluster = hit->dcluster; in exfat_cache_lookup()
112 *cached_fclus = cid->fcluster + offset; in exfat_cache_lookup()
113 *cached_dclus = cid->dcluster + offset; in exfat_cache_lookup()
220 static inline int cache_contiguous(struct exfat_cache_id *cid, in cache_contiguous() argument
223 cid->nr_contig++; in cache_contiguous()
224 return cid->dcluster + cid->nr_contig == dclus; in cache_contiguous()
227 static inline void cache_init(struct exfat_cache_id *cid, in cache_init() argument
230 cid->id = EXFAT_CACHE_VALID; in cache_init()
231 cid->fcluster = fclus; in cache_init()
232 cid->dcluster = dclus; in cache_init()
233 cid->nr_contig = 0; in cache_init()
244 struct exfat_cache_id cid; in exfat_get_cluster() local
264 cache_init(&cid, EXFAT_EOF_CLUSTER, EXFAT_EOF_CLUSTER); in exfat_get_cluster()
266 if (exfat_cache_lookup(inode, cluster, &cid, fclus, dclus) == in exfat_get_cluster()
272 WARN_ON(cid.id != EXFAT_CACHE_VALID || in exfat_get_cluster()
273 cid.fcluster != EXFAT_EOF_CLUSTER || in exfat_get_cluster()
274 cid.dcluster != EXFAT_EOF_CLUSTER || in exfat_get_cluster()
275 cid.nr_contig != 0); in exfat_get_cluster()
308 if (!cache_contiguous(&cid, *dclus)) in exfat_get_cluster()
309 cache_init(&cid, *fclus, *dclus); in exfat_get_cluster()
312 exfat_cache_add(inode, &cid); in exfat_get_cluster()