Lines Matching refs:pipe

24 static inline u32 gma_pipestat(int pipe)
26 if (pipe == 0)
28 if (pipe == 1)
30 if (pipe == 2)
35 static inline u32 gma_pipeconf(int pipe)
37 if (pipe == 0)
39 if (pipe == 1)
41 if (pipe == 2)
46 void gma_enable_pipestat(struct drm_psb_private *dev_priv, int pipe, u32 mask)
48 if ((dev_priv->pipestat[pipe] & mask) != mask) {
49 u32 reg = gma_pipestat(pipe);
50 dev_priv->pipestat[pipe] |= mask;
62 void gma_disable_pipestat(struct drm_psb_private *dev_priv, int pipe, u32 mask)
64 if ((dev_priv->pipestat[pipe] & mask) != 0) {
65 u32 reg = gma_pipestat(pipe);
66 dev_priv->pipestat[pipe] &= ~mask;
78 * Display controller interrupt handler for pipe event.
80 static void gma_pipe_event_handler(struct drm_device *dev, int pipe)
85 uint32_t pipe_stat_reg = gma_pipestat(pipe);
86 uint32_t pipe_enable = dev_priv->pipestat[pipe];
87 uint32_t pipe_status = dev_priv->pipestat[pipe] >> 16;
111 "%s, can't clear status bits for pipe %d, its value = 0x%x.\n",
112 __func__, pipe, PSB_RVDC32(pipe_stat_reg));
115 struct drm_crtc *crtc = drm_crtc_from_index(dev, pipe);
119 drm_handle_vblank(dev, pipe);
379 unsigned int pipe = crtc->index;
383 uint32_t pipeconf_reg = gma_pipeconf(pipe);
395 if (pipe == 0)
397 else if (pipe == 1)
402 gma_enable_pipestat(dev_priv, pipe, PIPE_VBLANK_INTERRUPT_ENABLE);
412 unsigned int pipe = crtc->index;
418 if (pipe == 0)
420 else if (pipe == 1)
425 gma_disable_pipestat(dev_priv, pipe, PIPE_VBLANK_INTERRUPT_ENABLE);
431 * we use as a pipe index
436 unsigned int pipe = crtc->index;
443 switch (pipe) {
457 dev_err(dev->dev, "%s, invalid pipe.\n", __func__);
467 dev_err(dev->dev, "trying to get vblank count for disabled pipe %u\n",
468 pipe);