Lines Matching defs:statep
152 drm_device_t *statep;
167 statep = ddi_get_soft_state(radeon_statep, unit);
168 statep->dip = dip;
169 statep->driver = &radeon_driver;
174 handle = drm_supp_register(dip, statep);
179 statep->drm_handle = handle;
184 statep->drm_supported = DRM_UNSUPPORT;
185 if (drm_probe(statep, radeon_pciidlist) != DDI_SUCCESS) {
190 statep->drm_supported = DRM_SUPPORT;
193 if (drm_attach(statep) != DDI_SUCCESS) {
210 drm_device_t *statep;
217 statep = ddi_get_soft_state(radeon_statep, unit);
218 if (statep == NULL)
221 (void) drm_detach(statep);
222 (void) drm_supp_unregister(statep->drm_handle);
233 drm_device_t *statep;
240 statep = ddi_get_soft_state(radeon_statep, unit);
241 if (statep == NULL || statep->dip == NULL) {
244 *result = (void *) statep->dip;