Lines Matching defs:fsp

136 	struct pcfs *fsp = VFSTOPCFS(vp->v_vfsp);
164 if (PCA_IS_HIDDEN(fsp, dp->pc_entry.pcd_attr)) {
177 pc_getnode(fsp, slot.sl_blkno, slot.sl_offset,
223 boff = pc_blkoff(fsp, offset);
228 blkno = pc_daddrdb(fsp, bp->b_blkno);
232 *pcpp = pc_getnode(fsp, blkno, boff, ep);
235 (*pcpp)->pc_size = fsp->pcfs_clsize;
240 error = pc_syncfat(fsp);
276 struct pcfs *fsp = VFSTOPCFS(vp->v_vfsp);
301 if (!IS_FAT32(fsp))
313 cn = pc_alloccluster(fsp, 0);
320 bp = ngeteblk(fsp->pcfs_clsize);
321 bp->b_edev = fsp->pcfs_xdev;
323 bp->b_blkno = pc_cldaddr(fsp, cn);
325 pc_setstartcluster(fsp, ep, cn);
326 pc_setstartcluster(fsp, &dirtemplate.t_dot, cn);
327 cn = pc_getstartcluster(fsp, &dp->pc_entry);
328 pc_setstartcluster(fsp, &dirtemplate.t_dotdot, cn);
344 pc_mark_irrecov(fsp);
348 pc_setstartcluster(fsp, ep, 0);
352 boff = pc_blkoff(fsp, offset);
397 struct pcfs *fsp = VFSTOPCFS(vp->v_vfsp);
402 PCA_IS_HIDDEN(fsp, dp->pc_entry.pcd_attr)) {
569 struct pcfs *fsp = VFSTOPCFS(vp->v_vfsp);
738 if (IS_FAT32(fsp))
786 boff = pc_blkoff(fsp, offset);
791 blkno = pc_daddrdb(fsp, bp->b_blkno);
793 if (IS_FAT32(fsp))
852 struct pcfs *fsp = VFSTOPCFS(vp->v_vfsp);
876 cn = pc_getstartcluster(fsp, &npdp->pc_entry);
877 pc_setstartcluster(fsp, ep, cn);
884 pc_mark_irrecov(fsp);
908 struct pcfs *fsp;
920 fsp = VFSTOPCFS(vp->v_vfsp);
921 error = pc_verify(fsp);
933 boff = pc_blkoff(fsp, offset);
955 slotp->sl_blkno = pc_daddrdb(fsp,
998 struct pcfs *fsp;
1004 fsp = VFSTOPCFS(PCTOV(pcp)->v_vfsp);
1005 size = pc_blksize(fsp, pcp, offset);
1006 if (pc_blkoff(fsp, offset) >= size) {
1010 error = pc_bmap(pcp, pc_lblkno(fsp, offset), &bn, (uint_t *)0);
1014 bp = bread(fsp->pcfs_xdev, bn, size);
1018 pc_mark_irrecov(fsp);
1023 (struct pcdir *)(bp->b_un.b_addr + pc_blkoff(fsp, offset));
1114 struct pcfs *fsp = VFSTOPCFS(vp->v_vfsp);
1130 slotp->sl_blkno = pc_daddrdb(fsp, slotp->sl_bp->b_blkno);
1131 slotp->sl_offset = pc_blkoff(fsp, *offset);
1154 struct pcfs *fsp = VFSTOPCFS(vp->v_vfsp);
1155 int boff = pc_blkoff(fsp, *offset);
1157 if (PCA_IS_HIDDEN(fsp, ep->pcd_attr)) {
1186 pc_daddrdb(fsp, slotp->sl_bp->b_blkno);
1206 struct pcfs *fsp = VFSTOPCFS(vp->v_vfsp);
1217 boff = pc_blkoff(fsp, lfn_offset);
1271 struct pcfs *fsp = VFSTOPCFS(vp->v_vfsp);
1282 boff = pc_blkoff(fsp, offset);
1293 if (!IS_FAT32(fsp) && (vp->v_flag & VROOT))
1297 pc_lblkno(fsp, offset), 1, &bn);
1300 pcp->pc_size += fsp->pcfs_clsize;
1301 spaceavail += fsp->pcfs_clsize;
1302 offset += fsp->pcfs_clsize;
1624 struct pcfs *fsp = VFSTOPCFS(vp->v_vfsp);
1629 boff = pc_blkoff(fsp, offset);
1670 pc_getstartcluster(struct pcfs *fsp, struct pcdir *ep)
1672 if (IS_FAT32(fsp)) {
1687 pc_setstartcluster(struct pcfs *fsp, struct pcdir *ep, pc_cluster32_t cln)
1689 if (IS_FAT32(fsp)) {