Lines Matching defs:statep

67 efb_attach(drm_device_t *statep)
75 dev_priv = statep->dev_private;
83 efb_priv->dip = statep->dip;
85 if (pci_config_setup(statep->dip, &efb_priv->pci_handle)
89 efb_detach(statep);
93 if (efb_map_registers(statep) != DDI_SUCCESS) {
96 efb_detach(statep);
107 if (ddi_prop_update_int(DDI_DEV_T_NONE, statep->dip,
119 efb_detach(drm_device_t *statep)
124 dev_priv = (drm_radeon_private_t *)statep->dev_private;
128 efb_unmap_registers(statep);
135 efb_read_pci_config(drm_device_t *statep, void *pBuffer, int offset,
146 dev_priv = (drm_radeon_private_t *)statep->dev_private;
225 efb_get_pci_config(drm_device_t *statep, dev_t dev, intptr_t arg, int mode)
231 efb_read_pci_config(statep, &efb_pci_cfg, (uint_t)0,
242 efb_map_registers(drm_device_t *statep)
247 dev_priv = (drm_radeon_private_t *)statep->dev_private;
250 if (ddi_regs_map_setup(statep->dip, 3, (caddr_t *)&efb_priv->registers,
259 efb_unmap_registers(drm_device_t *statep)
264 dev_priv = (drm_radeon_private_t *)statep->dev_private;
274 efb_get_gfx_identifier(drm_device_t *statep, dev_t dev, intptr_t arg, int mode)
285 if (ddi_getlongprop(DDI_DEV_T_ANY, statep->dip, DDI_PROP_DONTPASS,
293 if (ddi_getlongprop(DDI_DEV_T_ANY, statep->dip, DDI_PROP_DONTPASS,
310 efb_set_video_mode(drm_device_t *statep, dev_t dev, intptr_t arg, int mode)
317 dev_priv = (drm_radeon_private_t *)statep->dev_private;
326 efb_termemu_callback(statep);
333 efb_get_video_mode(drm_device_t *statep, dev_t dev, intptr_t arg, int mode)
340 dev_priv = (drm_radeon_private_t *)statep->dev_private;
352 efb_get_edid_length(drm_device_t *statep, dev_t dev1, intptr_t arg, int mode)
356 drm_device_t *dev = statep;
365 dev_priv = (drm_radeon_private_t *)statep->dev_private;
405 efb_get_edid(drm_device_t *statep, dev_t dev1, intptr_t arg, int mode)
409 drm_device_t *dev = statep;
418 dev_priv = (drm_radeon_private_t *)statep->dev_private;
496 drm_device_t *statep;
501 statep = ddi_get_soft_state(radeon_statep, unit);
502 if (statep == NULL)
510 ret = efb_vis_devinit(statep, (caddr_t)arg, mode);
516 ret = efb_vis_devfini(statep, (caddr_t)arg, mode);
522 ret = efb_vis_consdisplay(statep, (caddr_t)arg, mode);
528 ret = efb_vis_conscursor(statep, (caddr_t)arg, mode);
534 ret = efb_vis_conscopy(statep, (caddr_t)arg, mode);
540 ret = efb_vis_putcmap(statep, (caddr_t)arg, mode);
577 ret = efb_get_gfx_identifier(statep, dev, arg, mode);
583 ret = efb_get_pci_config(statep, dev, arg, mode);
589 ret = efb_set_video_mode(statep, dev, arg, mode);
595 ret = efb_get_video_mode(statep, dev, arg, mode);
601 ret = efb_get_edid_length(statep, dev, arg, mode);
607 ret = efb_get_edid(statep, dev, arg, mode);