Lines Matching refs:fbcon
1605 const struct drm_mode_fb_cmd *fbcon)
1611 /* Create a new reference for the fbcon so that we can track it
1613 * delete our reference and not fbcon's!
1616 flink.handle = fbcon->handle;
1625 bo->pitch = fbcon->pitch;
1635 struct drm_mode_fb_cmd fbcon;
1655 /* Scan the connectors for a framebuffer and assume that is the fbcon */
1656 VG_CLEAR(fbcon);
1657 fbcon.fb_id = 0;
1671 fbcon.fb_id = mode.fb_id;
1672 if (drmIoctl(sna->kgem.fd, DRM_IOCTL_MODE_GETFB, &fbcon)) {
1673 fbcon.fb_id = 0;
1678 if (fbcon.fb_id == 0) {
1679 DBG(("%s: no fbcon found\n", __FUNCTION__));
1683 if (fbcon.fb_id == fb_id(priv->gpu_bo)) {
1688 DBG(("%s: found fbcon, size=%dx%d, depth=%d, bpp=%d\n",
1689 __FUNCTION__, fbcon.width, fbcon.height, fbcon.depth, fbcon.bpp));
1691 bo = sna_create_bo_for_fbcon(sna, &fbcon);
1695 DBG(("%s: fbcon handle=%d\n", __FUNCTION__, bo->handle));
1697 scratch.drawable.width = fbcon.width;
1698 scratch.drawable.height = fbcon.height;
1699 scratch.drawable.depth = fbcon.depth;
1700 scratch.drawable.bitsPerPixel = fbcon.bpp;
1704 box.x2 = min(fbcon.width, sna->front->drawable.width);
1705 box.y2 = min(fbcon.height, sna->front->drawable.height);
1708 if (box.x2 < (uint16_t)fbcon.width)
1709 sx = (fbcon.width - box.x2) / 2;
1714 if (box.y2 < (uint16_t)fbcon.height)
1715 sy = (fbcon.height - box.y2) / 2;
6582 /* VT switching, likely to be fbcon so make the backlight usable */