Lines Matching defs:cdp
99 struct cms_ctl *cdp = cmi_hdl_getspecific(hdl);
101 return (cdp != NULL ? cdp->cs_cms : NULL);
107 struct cms_ctl *cdp = cmi_hdl_getspecific(hdl);
109 return (cdp != NULL ? cdp->cs_cmsdata : NULL);
410 struct cms_ctl *cdp;
414 cdp = kmem_alloc(sizeof (*cdp), KM_SLEEP);
415 cdp->cs_cms = cms;
416 cdp->cs_cmsdata = data;
417 cmi_hdl_setspecific(hdl, cdp);
427 struct cms_ctl *cdp;
433 cdp = (struct cms_ctl *)cmi_hdl_getspecific(hdl);
434 if (cdp != NULL) {
435 if (cdp->cs_cms != NULL)
436 cms_rele(cdp->cs_cms);
437 kmem_free(cdp, sizeof (*cdp));