Lines Matching refs:devi
77 gfxp_check_for_console(dev_info_t *devi, struct gfxp_fb_softc *softc, in gfxp_check_for_console() argument
103 if (pci_config_setup(devi, &pci_conf) != DDI_SUCCESS) { in gfxp_check_for_console()
124 pdevi = devi; in gfxp_check_for_console()
191 gfxp_fb_attach(dev_info_t *devi, ddi_attach_cmd_t cmd, gfxp_fb_softc_ptr_t ptr) in gfxp_fb_attach() argument
215 softc->devi = devi; /* Copy and init DEVI */ in gfxp_fb_attach()
220 error = ddi_prop_lookup_string(DDI_DEV_T_ANY, ddi_get_parent(devi), in gfxp_fb_attach()
231 gfxp_check_for_console(devi, softc, pci_pcie_bus); in gfxp_fb_attach()
234 if (ddi_prop_update_int(DDI_DEV_T_NONE, devi, in gfxp_fb_attach()
249 error = gfxp_vga_attach(devi, softc); in gfxp_fb_attach()
255 error = gfxp_bm_attach(devi, softc); in gfxp_fb_attach()
265 (void) ddi_prop_remove(DDI_DEV_T_ANY, devi, "primary-controller"); in gfxp_fb_attach()
267 (void) gfxp_fb_detach(devi, DDI_DETACH, (void *)softc); in gfxp_fb_attach()
272 gfxp_fb_detach(dev_info_t *devi, ddi_detach_cmd_t cmd, gfxp_fb_softc_ptr_t ptr) in gfxp_fb_detach() argument
285 (void) ddi_prop_remove(DDI_DEV_T_ANY, devi, in gfxp_fb_detach()
290 error = gfxp_bm_detach(devi, softc); in gfxp_fb_detach()
293 error = gfxp_vga_detach(devi, softc); in gfxp_fb_detach()