Lines Matching refs:softc
190 struct vgatext_softc *softc; in vgatext_attach() local
207 softc = getsoftc(unit); in vgatext_attach()
208 return (gfxp_fb_attach(devi, cmd, softc->gfxp_state)); in vgatext_attach()
219 softc = getsoftc(unit); in vgatext_attach()
220 softc->gfxp_state = gfxp_fb_softc_alloc(); in vgatext_attach()
221 if (softc->gfxp_state == NULL) { in vgatext_attach()
226 if (gfxp_fb_attach(devi, cmd, softc->gfxp_state) != DDI_SUCCESS) { in vgatext_attach()
227 gfxp_fb_softc_free(softc->gfxp_state); in vgatext_attach()
233 softc->devi = devi; in vgatext_attach()
234 ddi_set_driver_private(devi, softc); in vgatext_attach()
250 struct vgatext_softc *softc = getsoftc(instance); in vgatext_detach() local
255 (void) gfxp_fb_detach(devi, cmd, softc->gfxp_state); in vgatext_detach()
257 if (softc->gfxp_state != NULL) in vgatext_detach()
258 gfxp_fb_softc_free(softc->gfxp_state); in vgatext_detach()
281 return (gfxp_fb_detach(devi, cmd, softc->gfxp_state)); in vgatext_detach()
298 struct vgatext_softc *softc; in vgatext_info() local
304 softc = getsoftc(instance); in vgatext_info()
308 if (softc == NULL || softc->devi == NULL) { in vgatext_info()
311 *result = (void *) softc->devi; in vgatext_info()
330 struct vgatext_softc *softc = getsoftc(DEV2INST(*devp)); in vgatext_open() local
332 if (softc == NULL) in vgatext_open()
335 return (gfxp_fb_open(devp, flag, otyp, cred, softc->gfxp_state)); in vgatext_open()
341 struct vgatext_softc *softc = getsoftc(DEV2INST(devp)); in vgatext_close() local
343 if (softc == NULL) in vgatext_close()
346 return (gfxp_fb_close(devp, flag, otyp, cred, softc->gfxp_state)); in vgatext_close()
358 struct vgatext_softc *softc = getsoftc(DEV2INST(dev)); in vgatext_ioctl() local
364 softc->gfxp_state); in vgatext_ioctl()
390 struct vgatext_softc *softc; in vgatext_devmap() local
392 softc = getsoftc(DEV2INST(dev)); in vgatext_devmap()
393 if (softc == NULL) { in vgatext_devmap()
399 softc->gfxp_state)); in vgatext_devmap()