Home
last modified time | relevance | path

Searched refs:pmp (Results 1 – 23 of 23) sorted by relevance

/freebsd-12-stable/usr.sbin/makefs/msdos/
Dmsdosfs_vfsops.c81 struct msdosfsmount *pmp = NULL; in msdosfs_mount() local
111 pmp = ecalloc(1, sizeof(*pmp)); in msdosfs_mount()
118 pmp->pm_BytesPerSec = getushort(b50->bpbBytesPerSec); in msdosfs_mount()
119 pmp->pm_ResSectors = getushort(b50->bpbResSectors); in msdosfs_mount()
120 pmp->pm_FATs = b50->bpbFATs; in msdosfs_mount()
121 pmp->pm_RootDirEnts = getushort(b50->bpbRootDirEnts); in msdosfs_mount()
122 pmp->pm_Sectors = getushort(b50->bpbSectors); in msdosfs_mount()
123 pmp->pm_FATsecs = getushort(b50->bpbFATsecs); in msdosfs_mount()
124 pmp->pm_SecPerTrack = getushort(b50->bpbSecPerTrack); in msdosfs_mount()
125 pmp->pm_Heads = getushort(b50->bpbHeads); in msdosfs_mount()
[all …]
Dmsdosfs_fat.c74 #define SYNCHRONOUS_WRITES(pmp) 1 argument
76 static int chainalloc(struct msdosfsmount *pmp, u_long start,
79 static int chainlength(struct msdosfsmount *pmp, u_long start,
81 static void fatblock(struct msdosfsmount *pmp, u_long ofs, u_long *bnp,
83 static int fatchain(struct msdosfsmount *pmp, u_long start, u_long count,
87 static void updatefats(struct msdosfsmount *pmp, struct buf *bp,
90 usemap_alloc(struct msdosfsmount *pmp, u_long cn);
92 usemap_free(struct msdosfsmount *pmp, u_long cn);
93 static int clusteralloc1(struct msdosfsmount *pmp, u_long start,
98 fatblock(struct msdosfsmount *pmp, u_long ofs, u_long *bnp, u_long *sizep, in fatblock() argument
[all …]
Dmsdosfsmount.h95 #define FATOFS(pmp, cn) ((cn) * (pmp)->pm_fatmult / (pmp)->pm_fatdiv) argument
117 #define bptoep(pmp, bp, dirofs) \ argument
119 + ((dirofs) & (pmp)->pm_crbomask)))
124 #define de_bn2cn(pmp, bn) \ argument
125 ((bn) >> ((pmp)->pm_cnshift - (pmp)->pm_bnshift))
130 #define de_cn2bn(pmp, cn) \ argument
131 ((cn) << ((pmp)->pm_cnshift - (pmp)->pm_bnshift))
136 #define de_cluster(pmp, off) \ argument
137 ((off) >> (pmp)->pm_cnshift)
142 #define de_clcount(pmp, size) \ argument
[all …]
Dmsdosfs_denode.c88 deget(struct msdosfsmount *pmp, u_long dirclust, u_long diroffset, in deget() argument
98 pmp, dirclust, diroffset, depp)); in deget()
104 if (FAT32(pmp) && dirclust == MSDOSFSROOT) in deget()
105 dirclust = pmp->pm_rootdirblk; in deget()
107 inode = (uint64_t)pmp->pm_bpcluster * dirclust + diroffset; in deget()
115 ldep->de_pmp = pmp; in deget()
122 || (FAT32(pmp) && dirclust == pmp->pm_rootdirblk)) in deget()
135 if (FAT32(pmp)) in deget()
136 ldep->de_StartCluster = pmp->pm_rootdirblk; in deget()
140 ldep->de_FileSize = pmp->pm_rootdirsize * DEV_BSIZE; in deget()
[all …]
Dmsdosfs_lookup.c85 struct msdosfsmount *pmp = ddep->de_pmp; in createde() local
104 dirclust = de_clcount(pmp, diroffset); in createde()
114 ddep->de_FileSize += de_cn2off(pmp, dirclust); in createde()
122 error = pcbmap(ddep, de_cluster(pmp, ddep->de_fndoffset), in createde()
128 diroffset &= pmp->pm_crbomask; in createde()
129 if ((error = bread(pmp->pm_devvp, bn, blsize, NOCRED, &bp)) != 0) { in createde()
133 ndep = bptoep(pmp, bp, ddep->de_fndoffset); in createde()
147 if (!(ddep->de_fndoffset & pmp->pm_crbomask)) { in createde()
153 de_cluster(pmp, in createde()
159 error = bread(pmp->pm_devvp, bn, blsize, in createde()
[all …]
Dfat.h79 #define FAT12(pmp) (pmp->pm_fatmask == FAT12_MASK) argument
80 #define FAT16(pmp) (pmp->pm_fatmask == FAT16_MASK) argument
81 #define FAT32(pmp) (pmp->pm_fatmask == FAT32_MASK) argument
83 #define MSDOSFSEOF(pmp, cn) ((((cn) | ~(pmp)->pm_fatmask) & CLUST_EOFS) == CLUST_EOFS) argument
103 int clusterfree(struct msdosfsmount *pmp, u_long cn, u_long *oldcnp);
104 int clusteralloc(struct msdosfsmount *pmp, u_long start, u_long count, u_long fillwith, u_long *ret…
105 int fatentry(int function, struct msdosfsmount *pmp, u_long cluster, u_long *oldcontents, u_long ne…
106 int freeclusterchain(struct msdosfsmount *pmp, u_long startchain);
Dmsdosfs_vnops.c165 struct msdosfsmount *pmp; in msdosfs_findslot() local
173 pmp = dp->de_pmp; in msdosfs_findslot()
192 if (pmp->pm_flags & MSDOSFSMNT_SHORTNAME) in msdosfs_findslot()
221 error = bread(pmp->pm_devvp, bn, blsize, 0, &bp); in msdosfs_findslot()
265 if (pmp->pm_flags & MSDOSFSMNT_SHORTNAME) in msdosfs_findslot()
445 struct msdosfsmount *pmp = dep->de_pmp; in msdosfs_wfile() local
489 u_long on = offs & pmp->pm_crbomask; in msdosfs_wfile()
499 if ((error = bread(pmp->pm_devvp, bn, blsize, 0, &bp)) != 0) { in msdosfs_wfile()
547 struct msdosfsmount *pmp = pdep->de_pmp; in msdosfs_mkdire() local
569 error = clusteralloc(pmp, 0, 1, CLUST_EOFE, &newcluster, NULL); in msdosfs_mkdire()
[all …]
Ddenode.h230 int readep(struct msdosfsmount *pmp, u_long dirclu, u_long dirofs, struct buf **bpp, struct dirent…
233 int fillinusemap(struct msdosfsmount *pmp);
/freebsd-12-stable/sys/fs/msdosfs/
Dmsdosfs_vfsops.c128 struct msdosfsmount *pmp = VFSTOMSDOSFS(mp); in update_mp() local
143 msdosfs_iconv->open(win, local, &pmp->pm_u2w); in update_mp()
144 msdosfs_iconv->open(local, win, &pmp->pm_w2u); in update_mp()
145 msdosfs_iconv->open(dos, local, &pmp->pm_u2d); in update_mp()
146 msdosfs_iconv->open(local, dos, &pmp->pm_d2u); in update_mp()
151 pmp->pm_w2u = NULL; in update_mp()
152 pmp->pm_u2w = NULL; in update_mp()
153 pmp->pm_d2u = NULL; in update_mp()
154 pmp->pm_u2d = NULL; in update_mp()
159 pmp->pm_gid = v; in update_mp()
[all …]
Dmsdosfs_fat.c68 static int chainalloc(struct msdosfsmount *pmp, u_long start,
71 static int chainlength(struct msdosfsmount *pmp, u_long start,
73 static void fatblock(struct msdosfsmount *pmp, u_long ofs, u_long *bnp,
75 static int fatchain(struct msdosfsmount *pmp, u_long start, u_long count,
79 static void updatefats(struct msdosfsmount *pmp, struct buf *bp,
82 usemap_alloc(struct msdosfsmount *pmp, u_long cn);
84 usemap_free(struct msdosfsmount *pmp, u_long cn);
85 static int clusteralloc1(struct msdosfsmount *pmp, u_long start,
90 fatblock(struct msdosfsmount *pmp, u_long ofs, u_long *bnp, u_long *sizep, in fatblock() argument
95 bn = ofs / pmp->pm_fatblocksize * pmp->pm_fatblocksec; in fatblock()
[all …]
Dmsdosfsmount.h131 #define FATOFS(pmp, cn) ((cn) * (pmp)->pm_fatmult / (pmp)->pm_fatdiv) argument
156 #define bptoep(pmp, bp, dirofs) \ argument
158 + ((dirofs) & (pmp)->pm_crbomask)))
163 #define de_bn2cn(pmp, bn) \ argument
164 ((bn) >> ((pmp)->pm_cnshift - (pmp)->pm_bnshift))
169 #define de_cn2bn(pmp, cn) \ argument
170 ((cn) << ((pmp)->pm_cnshift - (pmp)->pm_bnshift))
175 #define de_cluster(pmp, off) \ argument
176 ((off) >> (pmp)->pm_cnshift)
181 #define de_clcount(pmp, size) \ argument
[all …]
Dmsdosfs_lookup.c87 struct msdosfsmount *pmp; in msdosfs_deget_dotdot() local
90 pmp = VFSTOMSDOSFS(mp); in msdosfs_deget_dotdot()
92 error = deget(pmp, dd_arg->cluster, dd_arg->blkoff, &rdp); in msdosfs_deget_dotdot()
132 struct msdosfsmount *pmp; in msdosfs_lookup_() local
150 pmp = dp->de_pmp; in msdosfs_lookup_()
178 cnp->cn_namelen, 0, pmp)) { in msdosfs_lookup_()
185 cnp->cn_namelen, pmp) + 1; in msdosfs_lookup_()
190 cnp->cn_namelen, pmp) + 1; in msdosfs_lookup_()
193 if (pmp->pm_flags & MSDOSFSMNT_SHORTNAME) { in msdosfs_lookup_()
235 error = bread(pmp->pm_devvp, bn, blsize, NOCRED, &bp); in msdosfs_lookup_()
[all …]
Dmsdosfs_denode.c98 deget(struct msdosfsmount *pmp, u_long dirclust, u_long diroffset, in deget() argument
103 struct mount *mntp = pmp->pm_mountp; in deget()
111 pmp, dirclust, diroffset, depp); in deget()
118 if (FAT32(pmp) && dirclust == MSDOSFSROOT) in deget()
119 dirclust = pmp->pm_rootdirblk; in deget()
134 inode = (uint64_t)pmp->pm_bpcluster * dirclust + diroffset; in deget()
184 ldep->de_pmp = pmp; in deget()
190 || (FAT32(pmp) && dirclust == pmp->pm_rootdirblk)) in deget()
203 if (FAT32(pmp)) in deget()
204 ldep->de_StartCluster = pmp->pm_rootdirblk; in deget()
[all …]
Dfat.h79 #define FAT12(pmp) (pmp->pm_fatmask == FAT12_MASK) argument
80 #define FAT16(pmp) (pmp->pm_fatmask == FAT16_MASK) argument
81 #define FAT32(pmp) (pmp->pm_fatmask == FAT32_MASK) argument
83 #define MSDOSFSEOF(pmp, cn) ((((cn) | ~(pmp)->pm_fatmask) & CLUST_EOFS) == CLUST_EOFS) argument
100 int clusterfree(struct msdosfsmount *pmp, u_long cn, u_long *oldcnp);
101 int clusteralloc(struct msdosfsmount *pmp, u_long start, u_long count, u_long fillwith, u_long *ret…
102 int fatentry(int function, struct msdosfsmount *pmp, u_long cluster, u_long *oldcontents, u_long ne…
103 int freeclusterchain(struct msdosfsmount *pmp, u_long startchain);
106 int markvoldirty(struct msdosfsmount *pmp, int dirty);
Dmsdosfs_vnops.c229 struct msdosfsmount *pmp = dep->de_pmp; in msdosfs_access() local
234 file_mode &= (vp->v_type == VDIR ? pmp->pm_dirmask : pmp->pm_mask); in msdosfs_access()
252 return (vaccess(vp->v_type, file_mode, pmp->pm_uid, pmp->pm_gid, in msdosfs_access()
260 struct msdosfsmount *pmp = dep->de_pmp; in msdosfs_getattr() local
264 u_long dirsperblk = pmp->pm_BytesPerSec / sizeof(struct direntry); in msdosfs_getattr()
269 vap->va_fsid = dev2udev(pmp->pm_dev); in msdosfs_getattr()
276 fileid = (uint64_t)cntobn(pmp, dep->de_StartCluster) * in msdosfs_getattr()
281 fileid = (uint64_t)cntobn(pmp, dep->de_dirclust) * in msdosfs_getattr()
284 fileid = (uint64_t)roottobn(pmp, 0) * dirsperblk; in msdosfs_getattr()
293 (ap->a_vp->v_type == VDIR ? pmp->pm_dirmask : pmp->pm_mask); in msdosfs_getattr()
[all …]
Dmsdosfs_conv.c239 dos2unixfn(u_char dn[11], u_char *un, int lower, struct msdosfsmount *pmp) in dos2unixfn() argument
259 lower & LCASE_BASE, pmp); in dos2unixfn()
276 &i, lower & LCASE_EXT, pmp); in dos2unixfn()
301 struct msdosfsmount *pmp) in unix2dosfn() argument
346 if (unix2doschr(&cp, (size_t *)&i, pmp) == 0) in unix2dosfn()
386 c = unix2doschr(&cp, (size_t *)&i, pmp); in unix2dosfn()
425 c = unix2doschr(&un, &i, pmp); in unix2dosfn()
490 i -= mbsadjpos((const char**)&cp, i, unlen, 1, pmp->pm_flags, pmp->pm_d2u); in unix2dosfn()
521 int chksum, struct msdosfsmount *pmp) in unix2winfn() argument
536 pmp->pm_flags, pmp->pm_u2w); in unix2winfn()
[all …]
Ddirentry.h152 struct msdosfsmount *pmp);
154 struct msdosfsmount *pmp);
156 int chksum, struct msdosfsmount *pmp);
158 int chksum, struct msdosfsmount *pmp);
160 struct msdosfsmount *pmp);
162 int winSlotCnt(const u_char *un, size_t unlen, struct msdosfsmount *pmp);
Ddenode.h275 int readep(struct msdosfsmount *pmp, u_long dirclu, u_long dirofs, struct buf **bpp, struct dirent…
278 int fillinusemap(struct msdosfsmount *pmp);
/freebsd-12-stable/cddl/contrib/opensolaris/lib/libdtrace/common/
Ddt_pid.c267 dt_pid_per_mod(void *arg, const prmap_t *pmp, const char *obj) in dt_pid_per_mod() argument
279 (void) Plmid(pp->dpp_pr, pmp->pr_vaddr, &pp->dpp_lmid); in dt_pid_per_mod()
404 dt_pid_mod_filt(void *arg, const prmap_t *pmp, const char *obj) in dt_pid_mod_filt() argument
410 return (dt_pid_per_mod(pp, pmp, obj)); in dt_pid_mod_filt()
413 (void) Plmid(pp->dpp_pr, pmp->pr_vaddr, &pp->dpp_lmid); in dt_pid_mod_filt()
424 return (dt_pid_per_mod(pp, pmp, obj)); in dt_pid_mod_filt()
427 (void) Plmid(pp->dpp_pr, pmp->pr_vaddr, &pp->dpp_lmid); in dt_pid_mod_filt()
433 return (dt_pid_per_mod(pp, pmp, obj)); in dt_pid_mod_filt()
444 const prmap_t *pmp; in dt_pid_fix_mod() local
467 if ((pmp = Plmid_to_map(P, lmid, obj)) == NULL) in dt_pid_fix_mod()
[all …]
Ddt_module.c864 dt_module_t *pmp; in dt_module_getctf() local
904 if ((pmp = dt_module_create(dtp, parent)) == NULL || in dt_module_getctf()
905 (pfp = dt_module_getctf(dtp, pmp)) == NULL) { in dt_module_getctf()
906 if (pmp == NULL) in dt_module_getctf()
/freebsd-12-stable/usr.bin/calendar/
Ddates.c90 struct cal_month *pm, *pmp; in createdate() local
126 pmp = NULL; in createdate()
131 pmp = pm; in createdate()
143 if (pmp != NULL) in createdate()
144 pmp->nextmonth = pm; in createdate()
146 if (pmp == NULL) in createdate()
/freebsd-12-stable/usr.sbin/makefs/
Dmsdos.c153 struct msdosfsmount *pmp; in msdos_makefs() local
189 if ((pmp = msdosfs_mount(&vp)) == NULL) in msdos_makefs()
192 if (msdosfs_root(pmp, &rootvp) != 0) in msdos_makefs()
206 if (msdosfs_fsiflush(pmp) != 0) in msdos_makefs()
/freebsd-12-stable/sys/cam/ata/
Data_pmp.c142 static SYSCTL_NODE(_kern_cam, OID_AUTO, pmp, CTLFLAG_RD, 0,
158 PERIPHDRIVER_DECLARE(pmp, pmpdriver);