Lines Matching refs:pipe
45 int pipe = -1;
50 pipe = PIPE_A;
53 pipe = PIPE_B;
56 pipe = PIPE_C;
59 return pipe;
74 int pipe_is_enabled(struct intel_vgpu *vgpu, int pipe)
79 pipe < PIPE_A || pipe >= I915_MAX_PIPES))
82 if (vgpu_vreg_t(vgpu, TRANSCONF(pipe)) & TRANSCONF_ENABLE)
86 get_edp_pipe(vgpu) == pipe)
177 int pipe;
189 for_each_pipe(dev_priv, pipe) {
190 vgpu_vreg_t(vgpu, TRANSCONF(pipe)) &=
192 vgpu_vreg_t(vgpu, DSPCNTR(pipe)) &= ~DISP_ENABLE;
193 vgpu_vreg_t(vgpu, SPRCTL(pipe)) &= ~SPRITE_ENABLE;
194 vgpu_vreg_t(vgpu, CURCNTR(pipe)) &= ~MCURSOR_MODE_MASK;
195 vgpu_vreg_t(vgpu, CURCNTR(pipe)) |= MCURSOR_MODE_DISABLE;
502 for_each_pipe(dev_priv, pipe) {
503 vgpu_vreg_t(vgpu, DSPCNTR(pipe)) &= ~DISP_ENABLE;
504 vgpu_vreg_t(vgpu, SPRCTL(pipe)) &= ~SPRITE_ENABLE;
505 vgpu_vreg_t(vgpu, CURCNTR(pipe)) &= ~MCURSOR_MODE_MASK;
506 vgpu_vreg_t(vgpu, CURCNTR(pipe)) |= MCURSOR_MODE_DISABLE;
622 static void emulate_vblank_on_pipe(struct intel_vgpu *vgpu, int pipe)
633 if (pipe < PIPE_A || pipe > PIPE_C)
636 for_each_set_bit(event, irq->flip_done_event[pipe],
638 clear_bit(event, irq->flip_done_event[pipe]);
639 if (!pipe_is_enabled(vgpu, pipe))
645 if (pipe_is_enabled(vgpu, pipe)) {
646 vgpu_vreg_t(vgpu, PIPE_FRMCOUNT_G4X(pipe))++;
647 intel_vgpu_trigger_virtual_event(vgpu, vblank_event[pipe]);
653 int pipe;
656 for_each_pipe(vgpu->gvt->gt->i915, pipe)
657 emulate_vblank_on_pipe(vgpu, pipe);