Home | History | Annotate | Download | only in msdosfs

Lines Matching refs:dep

167  * dep	  - address of denode representing the file of interest
182 msdosfs_pcbmap(struct denode *dep,
197 struct msdosfsmount *pmp = dep->de_pmp;
209 cn = dep->de_StartCluster;
218 if (dep->de_Attributes & ATTR_DIRECTORY) {
219 if (de_cn2off(pmp, findcn) >= dep->de_FileSize) {
232 dep->de_FileSize - de_cn2off(pmp, findcn));
257 msdosfs_fc_lookup(dep, findcn, &i, &cn);
264 fc_lastclust = dep->de_fc[FC_LASTFC].fc_frcn;
331 fc_setcache(dep, FC_LASTMAP, i, cn);
341 fc_setcache(dep, FC_LASTFC, i - 1, prevcn);
351 msdosfs_fc_lookup(struct denode *dep, u_long findcn, u_long *frcnp,
359 cn = dep->de_fc[i].fc_frcn;
362 closest = &dep->de_fc[i];
372 * Purge the FAT cache in denode dep of all entries relating to file
376 msdosfs_fc_purge(struct denode *dep, u_int frcn)
381 fcp = dep->de_fc;
1007 * dep - the file to extend
1021 msdosfs_extendfile(struct denode *dep, u_long count, struct buf **bpp,
1026 struct msdosfsmount *pmp = dep->de_pmp;
1032 if (dep->de_StartCluster == MSDOSFSROOT
1033 && (dep->de_Attributes & ATTR_DIRECTORY)) {
1043 if (dep->de_fc[FC_LASTFC].fc_frcn == FCE_EMPTY &&
1044 dep->de_StartCluster != 0) {
1046 error = msdosfs_pcbmap(dep, CLUST_END, 0, &cn, 0);
1052 fc_last_to_nexttolast(dep);
1066 if (dep->de_StartCluster == 0)
1069 cn = dep->de_fc[FC_LASTFC].fc_fsrcn + 1;
1085 if (dep->de_StartCluster == 0) {
1086 dep->de_StartCluster = cn;
1090 dep->de_fc[FC_LASTFC].fc_fsrcn,
1096 frcn = dep->de_fc[FC_LASTFC].fc_frcn + 1;
1104 fc_setcache(dep, FC_LASTFC, frcn + got - 1, cn + got - 1);
1106 (dep->de_Attributes & ATTR_DIRECTORY)) {