Home | History | Annotate | Download | only in dev

Lines Matching defs:adp

424 	struct amidisplaycc_softc            * adp;
428 adp = device_private(self);
440 if (adp) {
445 amidisplaycc_consolescreen.device = adp;
446 adp->currentscreen = &amidisplaycc_consolescreen;
449 adp->currentscreen = NULL;
453 adp->ison = 1;
459 adp->gfxview = NULL;
460 adp->gfxon = 0;
461 adp->gfxwidth = amidisplaycc_screentab[0].wsdescr.ncols *
463 adp->gfxheight = amidisplaycc_screentab[0].wsdescr.nrows *
467 adp->gfxdepth = 8;
469 adp->gfxdepth = 4;
478 waa.accesscookie = adp;
1035 struct amidisplaycc_softc *adp;
1037 adp = dp;
1039 if (adp == NULL) {
1040 printf("amidisplaycc_ioctl: adp==NULL\n");
1058 return amidisplaycc_setvideo(adp, UINTDATA);
1062 UINTDATA = adp->ison ?
1070 return amidisplaycc_setgfxview(adp, 0);
1073 return amidisplaycc_setgfxview(adp, 1);
1079 FBINFO.width = adp->gfxwidth;
1080 FBINFO.height = adp->gfxheight;
1081 FBINFO.depth = adp->gfxdepth;
1087 return amidisplaycc_cmapioctl(adp->gfxview, cmd,
1090 amidisplaycc_initgfxview(adp);
1091 return amidisplaycc_getfbinfo(adp, data);
1102 amidisplaycc_getfbinfo(struct amidisplaycc_softc *adp, struct wsdisplayio_fbinfo *fbinfo)
1106 KASSERT(adp);
1108 if (adp->gfxview == NULL) {
1112 bm = adp->gfxview->bitmap;
1116 fbinfo->fbi_fbsize = bm->bytes_per_row * bm->rows * adp->gfxdepth;
1121 fbinfo->fbi_bitsperpixel = adp->gfxdepth;
1124 fbinfo->fbi_subtype.fbi_cmapinfo.cmap_entries = 1 << adp->gfxdepth;
1133 amidisplaycc_initgfxview(struct amidisplaycc_softc *adp)
1137 if (adp->gfxview == NULL) {
1139 dimension.width = adp->gfxwidth;
1140 dimension.height = adp->gfxheight;
1141 adp->gfxview = grf_alloc_view(NULL,
1143 adp->gfxdepth);
1155 amidisplaycc_setgfxview(struct amidisplaycc_softc *adp, int on)
1161 if ( (on > 0) == (adp->gfxon > 0) )
1170 adp->gfxon = 0;
1171 if (adp->currentscreen)
1172 grf_display_view(adp->currentscreen->view);
1173 else if (adp->gfxview)
1174 grf_remove_view(adp->gfxview);
1180 amidisplaycc_initgfxview(adp);
1182 if (adp->gfxview) {
1183 adp->gfxon = 1;
1185 grf_display_view(adp->gfxview);
1200 struct amidisplaycc_softc * adp;
1204 adp = (struct amidisplaycc_softc*)dp;
1207 if (adp->gfxon == 0 || adp->gfxview == NULL) {
1217 bm = adp->gfxview->bitmap;
1252 struct amidisplaycc_softc * adp;
1266 adp = dp;
1295 if (adp == NULL) {
1318 scr->device = adp;
1335 if (adp)
1397 if (adp == NULL)
1400 if (adp) {
1420 struct amidisplaycc_softc * adp;
1423 adp = (struct amidisplaycc_softc*)dp;
1434 if (adp->currentscreen == scr)
1435 adp->currentscreen = NULL;
1457 struct amidisplaycc_softc *adp;
1459 adp = (struct amidisplaycc_softc*)dp;
1462 if (adp == NULL) {
1463 dprintf("amidisplaycc_show_screen: adp==NULL\n");
1471 if (adp->gfxon) {
1473 adp->gfxon = 0;
1476 adp->currentscreen = scr;
1477 adp->ison = 1;
1493 struct amidisplaycc_softc * adp __diagused;
1496 adp = dp;
1499 KASSERT(adp);
1520 amidisplaycc_setvideo(struct amidisplaycc_softc *adp, int mode)
1524 if (adp == NULL) {
1525 dprintf("amidisplaycc_setvideo: adp==NULL\n");
1528 if (adp->currentscreen == NULL) {
1529 dprintf("amidisplaycc_setvideo: adp->currentscreen==NULL\n");
1534 if (adp->gfxon && adp->gfxview)
1535 view = adp->gfxview;
1537 view = adp->currentscreen->view;
1544 adp->ison = 1;
1551 adp->ison = 0;