Lines Matching refs:cp
79 struct ddi_umem_cookie *cp;
101 cp = (struct ddi_umem_cookie *)dhp->dh_cookie;
103 if (cp->cook_refcnt != 0)
104 DRM_DEBUG_DRIVER("cookie is not zero: %d\n", cp->cook_refcnt);
106 cp->cook_refcnt = 1;
122 struct ddi_umem_cookie *cp;
127 cp = (struct ddi_umem_cookie *)dhp->dh_cookie;
128 cp->cook_refcnt++;
145 struct ddi_umem_cookie *cp;
153 cp = (struct ddi_umem_cookie *)dhp->dh_cookie;
160 ASSERT(ncp == cp);
169 ASSERT(ncp == cp);
172 ASSERT(cp->cook_refcnt > 0);
173 cp->cook_refcnt--;
174 if (cp->cook_refcnt == 0) {
175 DRM_DEBUG_DRIVER("last unmap of dh_cookie:0x%08x\n", cp);