Lines Matching defs:statep
205 drm_device_t *statep;
221 statep = ddi_get_soft_state(radeon_statep, unit);
223 statep->dip = dip;
224 statep->driver = &radeon_driver;
229 handle = drm_supp_register(dip, statep);
234 statep->drm_handle = handle;
240 statep->drm_supported = DRM_UNSUPPORT;
241 if (drm_probe(statep, radeon_pciidlist) != DDI_SUCCESS) {
246 statep->drm_supported = DRM_SUPPORT;
249 if (drm_attach(statep) != DDI_SUCCESS) {
255 if (efb_attach(statep) != DDI_SUCCESS) {
273 drm_device_t *statep;
280 statep = ddi_get_soft_state(radeon_statep, unit);
281 if (statep == NULL)
285 (void) efb_detach(statep);
288 (void) drm_detach(statep);
289 (void) drm_supp_unregister(statep->drm_handle);
300 drm_device_t *statep;
307 statep = ddi_get_soft_state(radeon_statep, unit);
308 if (statep == NULL || statep->dip == NULL) {
311 *result = (void *) statep->dip;