Lines Matching refs:hdmi_dev

39 #define HDMI_READ(reg)		readl(hdmi_dev->regs + (reg))
40 #define HDMI_WRITE(reg, val) writel(val, hdmi_dev->regs + (reg))
137 struct oaktrail_hdmi_dev *hdmi_dev = dev_priv->hdmi_priv; in oaktrail_hdmi_audio_enable() local
152 struct oaktrail_hdmi_dev *hdmi_dev = dev_priv->hdmi_priv; in oaktrail_hdmi_audio_disable() local
271 struct oaktrail_hdmi_dev *hdmi_dev = dev_priv->hdmi_priv; in oaktrail_crtc_hdmi_mode_set() local
501 struct oaktrail_hdmi_dev *hdmi_dev = dev_priv->hdmi_priv; in oaktrail_hdmi_dpms() local
536 struct oaktrail_hdmi_dev *hdmi_dev = dev_priv->hdmi_priv; in oaktrail_hdmi_detect() local
672 struct oaktrail_hdmi_dev *hdmi_dev; in oaktrail_hdmi_setup() local
679 hdmi_dev = kzalloc(sizeof(struct oaktrail_hdmi_dev), GFP_KERNEL); in oaktrail_hdmi_setup()
680 if (!hdmi_dev) { in oaktrail_hdmi_setup()
692 hdmi_dev->mmio = pci_resource_start(pdev, 0); in oaktrail_hdmi_setup()
693 hdmi_dev->mmio_len = pci_resource_len(pdev, 0); in oaktrail_hdmi_setup()
694 hdmi_dev->regs = ioremap(hdmi_dev->mmio, hdmi_dev->mmio_len); in oaktrail_hdmi_setup()
695 if (!hdmi_dev->regs) { in oaktrail_hdmi_setup()
700 hdmi_dev->dev = pdev; in oaktrail_hdmi_setup()
701 pci_set_drvdata(pdev, hdmi_dev); in oaktrail_hdmi_setup()
704 ret = oaktrail_hdmi_i2c_init(hdmi_dev->dev); in oaktrail_hdmi_setup()
708 dev_priv->hdmi_priv = hdmi_dev; in oaktrail_hdmi_setup()
716 kfree(hdmi_dev); in oaktrail_hdmi_setup()
724 struct oaktrail_hdmi_dev *hdmi_dev = dev_priv->hdmi_priv; in oaktrail_hdmi_teardown() local
727 if (hdmi_dev) { in oaktrail_hdmi_teardown()
728 pdev = hdmi_dev->dev; in oaktrail_hdmi_teardown()
731 iounmap(hdmi_dev->regs); in oaktrail_hdmi_teardown()
732 kfree(hdmi_dev); in oaktrail_hdmi_teardown()
741 struct oaktrail_hdmi_dev *hdmi_dev = dev_priv->hdmi_priv; in oaktrail_hdmi_save() local
747 hdmi_dev->saveDPLL_CTRL = PSB_RVDC32(DPLL_CTRL); in oaktrail_hdmi_save()
748 hdmi_dev->saveDPLL_DIV_CTRL = PSB_RVDC32(DPLL_DIV_CTRL); in oaktrail_hdmi_save()
749 hdmi_dev->saveDPLL_ADJUST = PSB_RVDC32(DPLL_ADJUST); in oaktrail_hdmi_save()
750 hdmi_dev->saveDPLL_UPDATE = PSB_RVDC32(DPLL_UPDATE); in oaktrail_hdmi_save()
751 hdmi_dev->saveDPLL_CLK_ENABLE = PSB_RVDC32(DPLL_CLK_ENABLE); in oaktrail_hdmi_save()
763 hdmi_dev->savePCH_PIPEBCONF = PSB_RVDC32(PCH_PIPEBCONF); in oaktrail_hdmi_save()
764 hdmi_dev->savePCH_PIPEBSRC = PSB_RVDC32(PCH_PIPEBSRC); in oaktrail_hdmi_save()
765 hdmi_dev->savePCH_HTOTAL_B = PSB_RVDC32(PCH_HTOTAL_B); in oaktrail_hdmi_save()
766 hdmi_dev->savePCH_HBLANK_B = PSB_RVDC32(PCH_HBLANK_B); in oaktrail_hdmi_save()
767 hdmi_dev->savePCH_HSYNC_B = PSB_RVDC32(PCH_HSYNC_B); in oaktrail_hdmi_save()
768 hdmi_dev->savePCH_VTOTAL_B = PSB_RVDC32(PCH_VTOTAL_B); in oaktrail_hdmi_save()
769 hdmi_dev->savePCH_VBLANK_B = PSB_RVDC32(PCH_VBLANK_B); in oaktrail_hdmi_save()
770 hdmi_dev->savePCH_VSYNC_B = PSB_RVDC32(PCH_VSYNC_B); in oaktrail_hdmi_save()
794 struct oaktrail_hdmi_dev *hdmi_dev = dev_priv->hdmi_priv; in oaktrail_hdmi_restore() local
800 PSB_WVDC32(hdmi_dev->saveDPLL_CTRL, DPLL_CTRL); in oaktrail_hdmi_restore()
801 PSB_WVDC32(hdmi_dev->saveDPLL_DIV_CTRL, DPLL_DIV_CTRL); in oaktrail_hdmi_restore()
802 PSB_WVDC32(hdmi_dev->saveDPLL_ADJUST, DPLL_ADJUST); in oaktrail_hdmi_restore()
803 PSB_WVDC32(hdmi_dev->saveDPLL_UPDATE, DPLL_UPDATE); in oaktrail_hdmi_restore()
804 PSB_WVDC32(hdmi_dev->saveDPLL_CLK_ENABLE, DPLL_CLK_ENABLE); in oaktrail_hdmi_restore()
816 PSB_WVDC32(hdmi_dev->savePCH_PIPEBSRC, PCH_PIPEBSRC); in oaktrail_hdmi_restore()
817 PSB_WVDC32(hdmi_dev->savePCH_HTOTAL_B, PCH_HTOTAL_B); in oaktrail_hdmi_restore()
818 PSB_WVDC32(hdmi_dev->savePCH_HBLANK_B, PCH_HBLANK_B); in oaktrail_hdmi_restore()
819 PSB_WVDC32(hdmi_dev->savePCH_HSYNC_B, PCH_HSYNC_B); in oaktrail_hdmi_restore()
820 PSB_WVDC32(hdmi_dev->savePCH_VTOTAL_B, PCH_VTOTAL_B); in oaktrail_hdmi_restore()
821 PSB_WVDC32(hdmi_dev->savePCH_VBLANK_B, PCH_VBLANK_B); in oaktrail_hdmi_restore()
822 PSB_WVDC32(hdmi_dev->savePCH_VSYNC_B, PCH_VSYNC_B); in oaktrail_hdmi_restore()
825 PSB_WVDC32(hdmi_dev->savePCH_PIPEBCONF, PCH_PIPEBCONF); in oaktrail_hdmi_restore()