Lines Matching refs:pipe
25 psb_pipestat(int pipe) in psb_pipestat() argument
27 if (pipe == 0) in psb_pipestat()
29 if (pipe == 1) in psb_pipestat()
31 if (pipe == 2) in psb_pipestat()
37 mid_pipe_event(int pipe) in mid_pipe_event() argument
39 if (pipe == 0) in mid_pipe_event()
41 if (pipe == 1) in mid_pipe_event()
43 if (pipe == 2) in mid_pipe_event()
49 mid_pipe_vsync(int pipe) in mid_pipe_vsync() argument
51 if (pipe == 0) in mid_pipe_vsync()
53 if (pipe == 1) in mid_pipe_vsync()
55 if (pipe == 2) in mid_pipe_vsync()
61 mid_pipeconf(int pipe) in mid_pipeconf() argument
63 if (pipe == 0) in mid_pipeconf()
65 if (pipe == 1) in mid_pipeconf()
67 if (pipe == 2) in mid_pipeconf()
73 psb_enable_pipestat(struct drm_psb_private *dev_priv, int pipe, u32 mask) in psb_enable_pipestat() argument
75 if ((dev_priv->pipestat[pipe] & mask) != mask) { in psb_enable_pipestat()
76 u32 reg = psb_pipestat(pipe); in psb_enable_pipestat()
77 dev_priv->pipestat[pipe] |= mask; in psb_enable_pipestat()
90 psb_disable_pipestat(struct drm_psb_private *dev_priv, int pipe, u32 mask) in psb_disable_pipestat() argument
92 if ((dev_priv->pipestat[pipe] & mask) != 0) { in psb_disable_pipestat()
93 u32 reg = psb_pipestat(pipe); in psb_disable_pipestat()
94 dev_priv->pipestat[pipe] &= ~mask; in psb_disable_pipestat()
105 static void mid_enable_pipe_event(struct drm_psb_private *dev_priv, int pipe) in mid_enable_pipe_event() argument
108 u32 pipe_event = mid_pipe_event(pipe); in mid_enable_pipe_event()
116 static void mid_disable_pipe_event(struct drm_psb_private *dev_priv, int pipe) in mid_disable_pipe_event() argument
118 if (dev_priv->pipestat[pipe] == 0) { in mid_disable_pipe_event()
120 u32 pipe_event = mid_pipe_event(pipe); in mid_disable_pipe_event()
133 static void mid_pipe_event_handler(struct drm_device *dev, int pipe) in mid_pipe_event_handler() argument
139 uint32_t pipe_stat_reg = psb_pipestat(pipe); in mid_pipe_event_handler()
140 uint32_t pipe_enable = dev_priv->pipestat[pipe]; in mid_pipe_event_handler()
141 uint32_t pipe_status = dev_priv->pipestat[pipe] >> 16; in mid_pipe_event_handler()
166 __func__, pipe, PSB_RVDC32(pipe_stat_reg)); in mid_pipe_event_handler()
169 drm_handle_vblank(dev, pipe); in mid_pipe_event_handler()
172 drm_handle_vblank(dev, pipe); in mid_pipe_event_handler()
500 int psb_enable_vblank(struct drm_device *dev, unsigned int pipe) in psb_enable_vblank() argument
505 uint32_t pipeconf_reg = mid_pipeconf(pipe); in psb_enable_vblank()
510 return mdfld_enable_te(dev, pipe); in psb_enable_vblank()
522 if (pipe == 0) in psb_enable_vblank()
524 else if (pipe == 1) in psb_enable_vblank()
529 psb_enable_pipestat(dev_priv, pipe, PIPE_VBLANK_INTERRUPT_ENABLE); in psb_enable_vblank()
539 void psb_disable_vblank(struct drm_device *dev, unsigned int pipe) in psb_disable_vblank() argument
545 mdfld_disable_te(dev, pipe); in psb_disable_vblank()
548 if (pipe == 0) in psb_disable_vblank()
550 else if (pipe == 1) in psb_disable_vblank()
555 psb_disable_pipestat(dev_priv, pipe, PIPE_VBLANK_INTERRUPT_ENABLE); in psb_disable_vblank()
563 int mdfld_enable_te(struct drm_device *dev, int pipe) in mdfld_enable_te() argument
569 uint32_t pipeconf_reg = mid_pipeconf(pipe); in mdfld_enable_te()
581 mid_enable_pipe_event(dev_priv, pipe); in mdfld_enable_te()
582 psb_enable_pipestat(dev_priv, pipe, PIPE_TE_ENABLE); in mdfld_enable_te()
592 void mdfld_disable_te(struct drm_device *dev, int pipe) in mdfld_disable_te() argument
603 mid_disable_pipe_event(dev_priv, pipe); in mdfld_disable_te()
604 psb_disable_pipestat(dev_priv, pipe, PIPE_TE_ENABLE); in mdfld_disable_te()
612 u32 psb_get_vblank_counter(struct drm_device *dev, unsigned int pipe) in psb_get_vblank_counter() argument
620 switch (pipe) { in psb_get_vblank_counter()
645 pipe); in psb_get_vblank_counter()