Lines Matching defs:pmp

87  * pmp	     - address of msdosfsmount structure of the filesystem containing
98 deget(struct msdosfsmount *pmp, u_long dirclust, u_long diroffset,
103 struct mount *mntp = pmp->pm_mountp;
110 printf("deget(pmp %p, dirclust %lu, diroffset %lx, flags %#x, "
112 pmp, dirclust, diroffset, lkflags, depp);
120 if (FAT32(pmp) && dirclust == MSDOSFSROOT)
121 dirclust = pmp->pm_rootdirblk;
136 inode = DETOI(pmp, dirclust, diroffset);
149 pmp->pm_mountp->mnt_stat.f_mntonname,
155 pmp->pm_mountp->mnt_stat.f_mntonname,
163 msdosfs_integrity_error(pmp);
209 ldep->de_pmp = pmp;
215 (FAT32(pmp) && dirclust == pmp->pm_rootdirblk)) &&
228 if (FAT32(pmp))
229 ldep->de_StartCluster = pmp->pm_rootdirblk;
233 ldep->de_FileSize = pmp->pm_rootdirsize * DEV_BSIZE;
250 error = readep(pmp, dirclust, diroffset, &bp, &direntptr);
297 ldep->de_FileSize = de_cn2off(pmp, size);
372 struct msdosfsmount *pmp = dep->de_pmp;
386 if ((DETOV(dep)->v_vflag & VV_ROOT) && !FAT32(pmp)) {
411 error = pcbmap(dep, de_clcount(pmp, length) - 1, 0,
421 fc_purge(dep, de_clcount(pmp, length));
428 if ((boff = length & pmp->pm_crbomask) != 0) {
430 bn = cntobn(pmp, eofentry);
431 error = bread(pmp->pm_devvp, bn, pmp->pm_bpcluster,
434 error = bread(DETOV(dep), de_cluster(pmp, length),
435 pmp->pm_bpcluster, cred, &bp);
443 memset(bp->b_data + boff, 0, pmp->pm_bpcluster - boff);
457 allerror = vtruncbuf(DETOV(dep), length, pmp->pm_bpcluster);
475 error = fatentry(FAT_GET_AND_SET, pmp, eofentry,
483 fc_setcache(dep, FC_LASTFC, de_cluster(pmp, length - 1),
491 if (chaintofree != 0 && !MSDOSFSEOF(pmp, chaintofree))
492 freeclusterchain(pmp, chaintofree);
503 struct msdosfsmount *pmp = dep->de_pmp;
513 if ((vp->v_vflag & VV_ROOT) != 0 && !FAT32(pmp))
528 count = de_clcount(pmp, length) - de_clcount(pmp, dep->de_FileSize);
530 if (count > pmp->pm_freeclustercount)
550 error = bread(vp, de_cluster(pmp, dep->de_FileSize), pmp->pm_bpcluster,
555 eof_clusteroff = de_cn2off(pmp, de_cluster(pmp, dep->de_FileSize));
557 pmp->pm_bpcluster - dep->de_FileSize + eof_clusteroff);