Ejemplo n.º 1
0
Archivo: fb.c Proyecto: 3null/linux
static void tegra_fb_output_poll_changed(struct drm_device *drm)
{
	struct tegra_drm *tegra = drm->dev_private;

	if (tegra->fbdev)
		drm_fb_helper_hotplug_event(&tegra->fbdev->base);
}
Ejemplo n.º 2
0
static void omap_fb_output_poll_changed(struct drm_device *dev)
{
	struct omap_drm_private *priv = dev->dev_private;
	DBG("dev=%p", dev);
	if (priv->fbdev)
		drm_fb_helper_hotplug_event(priv->fbdev);
}
Ejemplo n.º 3
0
ssize_t vbox_connector_write_sysfs(struct device *pDev,
                                   struct device_attribute *pAttr,
                                   const char *psz, size_t cch)
{
    struct vbox_connector *pVBoxConnector;
    struct drm_device *pDrmDev;
    struct vbox_private *pVBox;
    int cX, cY;
    char ch;

    LogFunc(("vboxvideo: %d: pDev=%p, pAttr=%p, psz=%s, cch=%llu\n", __LINE__,
             pDev, pAttr, psz, (unsigned long long)cch));
    pVBoxConnector = container_of(pAttr, struct vbox_connector,
                                  deviceAttribute);
    pDrmDev = pVBoxConnector->base.dev;
    pVBox = pDrmDev->dev_private;
    if (sscanf(psz, "%dx%d\n%c", &cX, &cY, &ch) != 2)
        return -EINVAL;
    if (   cX < 64 || cX > VBE_DISPI_MAX_XRES
        || cY < 64 || cY > VBE_DISPI_MAX_YRES)
        return -EINVAL;
    pVBoxConnector->modeHint.cX = (uint16_t)cX;
    pVBoxConnector->modeHint.cY = (uint16_t)cY;
    drm_helper_hpd_irq_event(pVBoxConnector->base.dev);
    if (pVBox->fbdev)
        drm_fb_helper_hotplug_event(&pVBox->fbdev->helper);
    LogFunc(("vboxvideo: %d\n", __LINE__));
    return cch;
}
Ejemplo n.º 4
0
static void rockchip_drm_output_poll_changed(struct drm_device *dev)
{
	struct rockchip_drm_private *private = dev->dev_private;
	struct drm_fb_helper *fb_helper = &private->fbdev_helper;

	drm_fb_helper_hotplug_event(fb_helper);
}
Ejemplo n.º 5
0
static void exynos_drm_output_poll_changed(struct drm_device *dev)
{
	struct exynos_drm_private *private = dev->dev_private;
	struct drm_fb_helper *fb_helper = private->fb_helper;

	if (fb_helper)
		drm_fb_helper_hotplug_event(fb_helper);
}
Ejemplo n.º 6
0
static void armada_output_poll_changed(struct drm_device *dev)
{
	struct armada_private *priv = dev->dev_private;
	struct drm_fb_helper *fbh = priv->fbdev;

	if (fbh)
		drm_fb_helper_hotplug_event(fbh);
}
Ejemplo n.º 7
0
static void msm_fb_output_poll_changed(struct drm_device *dev)
{
#ifdef CONFIG_DRM_MSM_FBDEV
	struct msm_drm_private *priv = dev->dev_private;
	if (priv->fbdev)
		drm_fb_helper_hotplug_event(priv->fbdev);
#endif
}
void mtk_drm_mode_output_poll_changed(struct drm_device *dev)
{
	struct mtk_drm_private *priv =
		(struct mtk_drm_private *)dev->dev_private;

	if (priv->fb_helper)
		drm_fb_helper_hotplug_event(priv->fb_helper);
}
Ejemplo n.º 9
0
static void msm_fb_output_poll_changed(struct drm_device *dev)
{
	struct msm_drm_private *priv = dev->dev_private;
	if (priv->fbdev)
		drm_fb_helper_hotplug_event(priv->fbdev);
}
Ejemplo n.º 10
0
void
nouveau_fbcon_output_poll_changed(struct drm_device *dev)
{
	struct drm_nouveau_private *dev_priv = dev->dev_private;
	drm_fb_helper_hotplug_event(&dev_priv->nfbdev->helper);
}
Ejemplo n.º 11
0
void amdgpu_fb_output_poll_changed(struct amdgpu_device *adev)
{
	if (adev->mode_info.rfbdev)
		drm_fb_helper_hotplug_event(&adev->mode_info.rfbdev->helper);
}
Ejemplo n.º 12
0
void intel_fb_output_poll_changed(struct drm_device *dev)
{
	drm_i915_private_t *dev_priv = dev->dev_private;
	drm_fb_helper_hotplug_event(&dev_priv->fbdev->helper);
}
Ejemplo n.º 13
0
void radeon_fb_output_poll_changed(struct radeon_device *rdev)
{
	drm_fb_helper_hotplug_event(&rdev->mode_info.rfbdev->helper);
}
Ejemplo n.º 14
0
void xengfx_output_poll_changed(struct drm_device *dev)
{
        struct xengfx_private *dev_priv = dev->dev_private;

        drm_fb_helper_hotplug_event(&dev_priv->fbdev->helper);
}