Lines Matching refs:cp

103 hfs_getinoquota(cp)
104 register struct cnode *cp;
111 vp = cp->c_vp ? cp->c_vp : cp->c_rsrc_vp;
117 if (cp->c_dquot[USRQUOTA] == NODQUOT) {
118 error = dqget(cp->c_uid, &hfsmp->hfs_qfiles[USRQUOTA], USRQUOTA, &cp->c_dquot[USRQUOTA]);
130 if (cp->c_dquot[GRPQUOTA] == NODQUOT) {
131 error = dqget(cp->c_gid, &hfsmp->hfs_qfiles[GRPQUOTA], GRPQUOTA, &cp->c_dquot[GRPQUOTA]);
134 dqrele(cp->c_dquot[USRQUOTA]);
135 cp->c_dquot[USRQUOTA] = NODQUOT;
148 hfs_chkdq(cp, change, cred, flags)
149 register struct cnode *cp;
162 hfs_chkdquot(cp);
168 if ((dq = cp->c_dquot[i]) == NODQUOT)
193 if ((dq = cp->c_dquot[i]) == NODQUOT)
195 error = hfs_chkdqchg(cp, change, cred, i);
203 if ((dq = cp->c_dquot[i]) == NODQUOT)
221 hfs_chkdqchg(cp, change, cred, type)
222 struct cnode *cp;
227 register struct dquot *dq = cp->c_dquot[type];
229 struct vnode *vp = cp->c_vp ? cp->c_vp : cp->c_rsrc_vp;
239 cp->c_uid == kauth_cred_getuid(cred)) {
262 if (cp->c_uid == kauth_cred_getuid(cred))
272 cp->c_uid == kauth_cred_getuid(cred)) {
294 hfs_chkiq(cp, change, cred, flags)
295 register struct cnode *cp;
307 hfs_chkdquot(cp);
313 if ((dq = cp->c_dquot[i]) == NODQUOT)
338 if ((dq = cp->c_dquot[i]) == NODQUOT)
340 error = hfs_chkiqchg(cp, change, cred, i);
348 if ((dq = cp->c_dquot[i]) == NODQUOT)
426 hfs_chkiqchg(cp, change, cred, type)
427 struct cnode *cp;
432 register struct dquot *dq = cp->c_dquot[type];
434 struct vnode *vp = cp->c_vp ? cp->c_vp : cp->c_rsrc_vp;
444 cp->c_uid == kauth_cred_getuid(cred)) {
467 if (cp->c_uid == kauth_cred_getuid(cred))
477 cp->c_uid == kauth_cred_getuid(cred)) {
501 hfs_chkdquot(cp)
502 register struct cnode *cp;
504 struct vnode *vp = cp->c_vp ? cp->c_vp : cp->c_rsrc_vp;
511 if (cp->c_dquot[i] == NODQUOT) {
637 struct cnode *cp;
642 cp = VTOC(vp);
644 dq = cp->c_dquot[args->type];
645 cp->c_dquot[args->type] = NODQUOT;
923 struct cnode *cp;
927 cp = VTOC(vp);
930 dq = cp->c_dquot[i];