Lines Matching defs:pcp

229 	struct pcnode *pcp;
238 if ((pcp = VTOPC(vp)) == NULL || pcp->pc_flags & PC_INVAL) {
242 error = rwpcp(pcp, uiop, UIO_READ, ioflag);
244 pc_mark_acc(fsp, pcp);
263 struct pcnode *pcp;
272 if ((pcp = VTOPC(vp)) == NULL || pcp->pc_flags & PC_INVAL) {
280 uiop->uio_loffset = pcp->pc_size;
282 error = rwpcp(pcp, uiop, UIO_WRITE, ioflag);
283 pcp->pc_flags |= PC_MOD;
284 pc_mark_mod(fsp, pcp);
286 (void) pc_nodeupdate(pcp);
300 struct pcnode *pcp,
305 struct vnode *vp = PCTOV(pcp);
323 PC_DPRINTF4(5, "rwpcp pcp=%p off=%lld resid=%ld size=%u\n", (void *)pcp,
324 uio->uio_loffset, uio->uio_resid, pcp->pc_size);
379 diff = pcp->pc_size - uio->uio_loffset;
417 if (uio->uio_loffset + n > pcp->pc_size) {
420 ncl = (uint_t)howmany((offset_t)pcp->pc_size,
422 if (uio->uio_loffset > pcp->pc_size &&
433 error = pc_balloc(pcp, (daddr_t)lcn,
443 error = pc_balloc(pcp,
448 pcp->pc_flags |= PC_CHG;
462 pcp->pc_scluster, &ncl);
468 pcp->pc_scluster);
469 pcp->pc_size = 0;
470 pcp->pc_flags |= PC_INVAL;
476 pcp->pc_size = fsp->pcfs_clsize * ncl;
479 (pcp->pc_size - uio->uio_loffset)
484 n, pcp->pc_size);
485 n = (int)(pcp->pc_size -
495 pcp->pc_size =
547 uio->uio_loffset == pcp->pc_size)
573 struct pcnode *pcp;
592 if ((pcp = VTOPC(vp)) == NULL) {
600 attr = pcp->pc_entry.pcd_attr;
625 vap->va_nodeid = (ino64_t)pc_makenodeid(pcp->pc_eblkno,
626 pcp->pc_eoffset, pcp->pc_entry.pcd_attr,
627 pc_getstartcluster(fsp, &pcp->pc_entry), pc_direntpersec(fsp));
629 vap->va_size = (u_offset_t)pcp->pc_size;
632 (fsblkcnt64_t)howmany((offset_t)pcp->pc_size, DEV_BSIZE);
648 pc_pcttotv(&pcp->pc_entry.pcd_mtime, &unixtime);
674 atime.pct_date = pcp->pc_entry.pcd_ladate;
675 if (atime.pct_date == pcp->pc_entry.pcd_mtime.pct_date)
676 atime.pct_time = pcp->pc_entry.pcd_mtime.pct_time;
708 struct pcnode *pcp;
743 if ((pcp = VTOPC(vp)) == NULL || pcp->pc_flags & PC_INVAL) {
762 pcp->pc_entry.pcd_attr |= PCA_RDONLY;
764 pcp->pc_entry.pcd_attr &= ~PCA_RDONLY;
765 pcp->pc_flags |= PC_CHG;
771 if (pcp->pc_entry.pcd_attr & PCA_RDONLY) {
779 error = pc_truncate(pcp, (uint_t)vap->va_size);
808 error = pc_tvtopct(timep, &pcp->pc_entry.pcd_mtime);
811 pcp->pc_flags |= PC_CHG;
839 pcp->pc_entry.pcd_ladate = atime.pct_date;
840 pcp->pc_flags |= PC_CHG;
857 struct pcnode *pcp;
863 if ((pcp = VTOPC(vp)) == NULL || pcp->pc_flags & PC_INVAL)
865 if ((mode & VWRITE) && (pcp->pc_entry.pcd_attr & PCA_RDONLY))
890 struct pcnode *pcp;
899 if ((pcp = VTOPC(vp)) == NULL || pcp->pc_flags & PC_INVAL) {
904 error = pc_nodesync(pcp);
918 struct pcnode *pcp;
931 pcp = VTOPC(vp);
936 remque(pcp);
940 kmem_free(pcp, sizeof (struct pcnode));
960 pcp = VTOPC(vp);
961 if (pcp == NULL || pcp->pc_flags & PC_INVAL) {
968 if (pcp == NULL) {
971 pc_rele(pcp);
993 struct pcnode *pcp;
1025 error = pc_dirlook(VTOPC(dvp), nm, &pcp);
1027 *vpp = PCTOV(pcp);
1028 pcp->pc_flags |= PC_EXTERNAL;
1050 struct pcnode *pcp;
1063 pcp = NULL;
1085 pcp = VTOPC(dvp);
1088 error = pc_direnter(VTOPC(dvp), nm, vap, &pcp);
1095 vp = PCTOV(pcp);
1100 error = pcfs_access(PCTOV(pcp), mode, 0,
1107 VN_RELE(PCTOV(pcp));
1110 error = pc_truncate(pcp, 0L);
1112 VN_RELE(PCTOV(pcp));
1114 vnevent_create(PCTOV(pcp), ct);
1122 *vpp = PCTOV(pcp);
1123 pcp->pc_flags |= PC_EXTERNAL;
1138 struct pcnode *pcp;
1147 if ((pcp = VTOPC(vp)) == NULL || pcp->pc_flags & PC_INVAL) {
1157 error = pc_dirremove(pcp, nm, (struct vnode *)0, VREG, ct);
1220 struct pcnode *pcp;
1241 error = pc_direnter(VTOPC(dvp), nm, vap, &pcp);
1244 pcp -> pc_flags |= PC_EXTERNAL;
1245 *vpp = PCTOV(pcp);
1247 VN_RELE(PCTOV(pcp));
1264 struct pcnode *pcp;
1273 if ((pcp = VTOPC(dvp)) == NULL || pcp->pc_flags & PC_INVAL) {
1285 error = pc_dirremove(pcp, nm, cdir, VDIR, ct);
1305 struct pcnode *pcp;
1335 if ((pcp = VTOPC(dvp)) == NULL || pcp->pc_flags & PC_INVAL) {
1388 error = pc_blkatoff(pcp, offset, &bp, &ep);
1447 struct pcnode *pcp;
1463 if ((pcp = VTOPC(vp)) == NULL || pcp->pc_flags & PC_INVAL)
1479 if ((pcp->pc_flags & PC_ACC) == 0 &&
1481 pc_mark_acc(fsp, pcp);
1502 off, (size_t)MIN(pc_blksize(fsp, pcp, off), PAGESIZE), 0);
1510 for (pgoff = 0; pgoff < PAGESIZE && xferoffset < pcp->pc_size;
1519 err1 = pc_bmap(pcp, lbn, &bn, &xfersize);
1632 struct pcnode *pcp;
1654 if ((pcp = VTOPC(vp)) == NULL) {
1658 if (pcp->pc_flags & PC_INVAL)
1687 if (!vn_has_cached_data(vp) || off >= pcp->pc_size) {
1702 io_off < pcp->pc_size; io_off += io_len) {
1764 struct pcnode *pcp;
1774 pcp = VTOPC(vp);
1785 if ((pcp->pc_flags & PC_MOD) == 0 || (flags & B_FORCE)) {
1786 pcp->pc_flags |= PC_MOD;
1787 pc_mark_mod(fsp, pcp);
1802 for (pgoff = 0; pgoff < io_len && xferoffset < pcp->pc_size;
1814 err1 = pc_bmap(pcp, (daddr_t)lbn, &bn, &xfersize);
2166 pc_extract_long_fn(struct pcnode *pcp, char *namep,
2171 struct vnode *dvp = PCTOV(pcp);
2203 error = pc_blkatoff(pcp, *offset, bp, &ep);
2240 error = pc_blkatoff(pcp, *offset, bp, &ep);
2318 struct pcnode *pcp = VTOPC(dvp);
2325 error = pc_extract_long_fn(pcp, ld->d_name, epp, offset, bp);
2405 struct pcnode *pcp;
2415 if ((pcp = VTOPC(vp)) == NULL || pcp->pc_flags & PC_INVAL) {
2433 pcfid->pcfid_block = pcp->pc_eblkno;
2434 pcfid->pcfid_offset = pcp->pc_eoffset;
2435 pcfid->pcfid_ctime = pcp->pc_entry.pcd_crtime.pct_time;