Lines Matching refs:hdmi_dev

36 #define HDMI_READ(reg)		readl(hdmi_dev->regs + (reg))
37 #define HDMI_WRITE(reg, val) writel(val, hdmi_dev->regs + (reg))
134 struct oaktrail_hdmi_dev *hdmi_dev = dev_priv->hdmi_priv; in oaktrail_hdmi_audio_enable() local
149 struct oaktrail_hdmi_dev *hdmi_dev = dev_priv->hdmi_priv; in oaktrail_hdmi_audio_disable() local
268 struct oaktrail_hdmi_dev *hdmi_dev = dev_priv->hdmi_priv; in oaktrail_crtc_hdmi_mode_set() local
498 struct oaktrail_hdmi_dev *hdmi_dev = dev_priv->hdmi_priv; in oaktrail_hdmi_dpms() local
533 struct oaktrail_hdmi_dev *hdmi_dev = dev_priv->hdmi_priv; in oaktrail_hdmi_detect() local
670 struct oaktrail_hdmi_dev *hdmi_dev; in oaktrail_hdmi_setup() local
677 hdmi_dev = kzalloc(sizeof(struct oaktrail_hdmi_dev), GFP_KERNEL); in oaktrail_hdmi_setup()
678 if (!hdmi_dev) { in oaktrail_hdmi_setup()
690 hdmi_dev->mmio = pci_resource_start(pdev, 0); in oaktrail_hdmi_setup()
691 hdmi_dev->mmio_len = pci_resource_len(pdev, 0); in oaktrail_hdmi_setup()
692 hdmi_dev->regs = ioremap(hdmi_dev->mmio, hdmi_dev->mmio_len); in oaktrail_hdmi_setup()
693 if (!hdmi_dev->regs) { in oaktrail_hdmi_setup()
698 hdmi_dev->dev = pdev; in oaktrail_hdmi_setup()
699 pci_set_drvdata(pdev, hdmi_dev); in oaktrail_hdmi_setup()
702 ret = oaktrail_hdmi_i2c_init(hdmi_dev->dev); in oaktrail_hdmi_setup()
706 dev_priv->hdmi_priv = hdmi_dev; in oaktrail_hdmi_setup()
714 kfree(hdmi_dev); in oaktrail_hdmi_setup()
722 struct oaktrail_hdmi_dev *hdmi_dev = dev_priv->hdmi_priv; in oaktrail_hdmi_teardown() local
725 if (hdmi_dev) { in oaktrail_hdmi_teardown()
726 pdev = hdmi_dev->dev; in oaktrail_hdmi_teardown()
729 iounmap(hdmi_dev->regs); in oaktrail_hdmi_teardown()
730 kfree(hdmi_dev); in oaktrail_hdmi_teardown()
739 struct oaktrail_hdmi_dev *hdmi_dev = dev_priv->hdmi_priv; in oaktrail_hdmi_save() local
745 hdmi_dev->saveDPLL_CTRL = PSB_RVDC32(DPLL_CTRL); in oaktrail_hdmi_save()
746 hdmi_dev->saveDPLL_DIV_CTRL = PSB_RVDC32(DPLL_DIV_CTRL); in oaktrail_hdmi_save()
747 hdmi_dev->saveDPLL_ADJUST = PSB_RVDC32(DPLL_ADJUST); in oaktrail_hdmi_save()
748 hdmi_dev->saveDPLL_UPDATE = PSB_RVDC32(DPLL_UPDATE); in oaktrail_hdmi_save()
749 hdmi_dev->saveDPLL_CLK_ENABLE = PSB_RVDC32(DPLL_CLK_ENABLE); in oaktrail_hdmi_save()
761 hdmi_dev->savePCH_PIPEBCONF = PSB_RVDC32(PCH_PIPEBCONF); in oaktrail_hdmi_save()
762 hdmi_dev->savePCH_PIPEBSRC = PSB_RVDC32(PCH_PIPEBSRC); in oaktrail_hdmi_save()
763 hdmi_dev->savePCH_HTOTAL_B = PSB_RVDC32(PCH_HTOTAL_B); in oaktrail_hdmi_save()
764 hdmi_dev->savePCH_HBLANK_B = PSB_RVDC32(PCH_HBLANK_B); in oaktrail_hdmi_save()
765 hdmi_dev->savePCH_HSYNC_B = PSB_RVDC32(PCH_HSYNC_B); in oaktrail_hdmi_save()
766 hdmi_dev->savePCH_VTOTAL_B = PSB_RVDC32(PCH_VTOTAL_B); in oaktrail_hdmi_save()
767 hdmi_dev->savePCH_VBLANK_B = PSB_RVDC32(PCH_VBLANK_B); in oaktrail_hdmi_save()
768 hdmi_dev->savePCH_VSYNC_B = PSB_RVDC32(PCH_VSYNC_B); in oaktrail_hdmi_save()
792 struct oaktrail_hdmi_dev *hdmi_dev = dev_priv->hdmi_priv; in oaktrail_hdmi_restore() local
798 PSB_WVDC32(hdmi_dev->saveDPLL_CTRL, DPLL_CTRL); in oaktrail_hdmi_restore()
799 PSB_WVDC32(hdmi_dev->saveDPLL_DIV_CTRL, DPLL_DIV_CTRL); in oaktrail_hdmi_restore()
800 PSB_WVDC32(hdmi_dev->saveDPLL_ADJUST, DPLL_ADJUST); in oaktrail_hdmi_restore()
801 PSB_WVDC32(hdmi_dev->saveDPLL_UPDATE, DPLL_UPDATE); in oaktrail_hdmi_restore()
802 PSB_WVDC32(hdmi_dev->saveDPLL_CLK_ENABLE, DPLL_CLK_ENABLE); in oaktrail_hdmi_restore()
814 PSB_WVDC32(hdmi_dev->savePCH_PIPEBSRC, PCH_PIPEBSRC); in oaktrail_hdmi_restore()
815 PSB_WVDC32(hdmi_dev->savePCH_HTOTAL_B, PCH_HTOTAL_B); in oaktrail_hdmi_restore()
816 PSB_WVDC32(hdmi_dev->savePCH_HBLANK_B, PCH_HBLANK_B); in oaktrail_hdmi_restore()
817 PSB_WVDC32(hdmi_dev->savePCH_HSYNC_B, PCH_HSYNC_B); in oaktrail_hdmi_restore()
818 PSB_WVDC32(hdmi_dev->savePCH_VTOTAL_B, PCH_VTOTAL_B); in oaktrail_hdmi_restore()
819 PSB_WVDC32(hdmi_dev->savePCH_VBLANK_B, PCH_VBLANK_B); in oaktrail_hdmi_restore()
820 PSB_WVDC32(hdmi_dev->savePCH_VSYNC_B, PCH_VSYNC_B); in oaktrail_hdmi_restore()
823 PSB_WVDC32(hdmi_dev->savePCH_PIPEBCONF, PCH_PIPEBCONF); in oaktrail_hdmi_restore()