Lines Matching defs:pipe
41 int pipe = -1;
46 pipe = PIPE_A;
49 pipe = PIPE_B;
52 pipe = PIPE_C;
55 return pipe;
70 int pipe_is_enabled(struct intel_vgpu *vgpu, int pipe)
75 pipe < PIPE_A || pipe >= I915_MAX_PIPES))
78 if (vgpu_vreg_t(vgpu, PIPECONF(pipe)) & PIPECONF_ENABLE)
82 get_edp_pipe(vgpu) == pipe)
173 int pipe;
184 for_each_pipe(dev_priv, pipe) {
185 vgpu_vreg_t(vgpu, PIPECONF(pipe)) &=
187 vgpu_vreg_t(vgpu, DSPCNTR(pipe)) &= ~DISPLAY_PLANE_ENABLE;
188 vgpu_vreg_t(vgpu, SPRCTL(pipe)) &= ~SPRITE_ENABLE;
189 vgpu_vreg_t(vgpu, CURCNTR(pipe)) &= ~MCURSOR_MODE;
190 vgpu_vreg_t(vgpu, CURCNTR(pipe)) |= MCURSOR_MODE_DISABLE;
497 for_each_pipe(dev_priv, pipe) {
498 vgpu_vreg_t(vgpu, DSPCNTR(pipe)) &= ~DISPLAY_PLANE_ENABLE;
499 vgpu_vreg_t(vgpu, SPRCTL(pipe)) &= ~SPRITE_ENABLE;
500 vgpu_vreg_t(vgpu, CURCNTR(pipe)) &= ~MCURSOR_MODE;
501 vgpu_vreg_t(vgpu, CURCNTR(pipe)) |= MCURSOR_MODE_DISABLE;
554 * be turned on/off when a virtual pipe is enabled/disabled.
565 int pipe, id;
570 for (pipe = 0; pipe < I915_MAX_PIPES; pipe++) {
571 if (pipe_is_enabled(vgpu, pipe)) {
590 static void emulate_vblank_on_pipe(struct intel_vgpu *vgpu, int pipe)
601 if (pipe < PIPE_A || pipe > PIPE_C)
604 for_each_set_bit(event, irq->flip_done_event[pipe],
606 clear_bit(event, irq->flip_done_event[pipe]);
607 if (!pipe_is_enabled(vgpu, pipe))
613 if (pipe_is_enabled(vgpu, pipe)) {
614 vgpu_vreg_t(vgpu, PIPE_FRMCOUNT_G4X(pipe))++;
615 intel_vgpu_trigger_virtual_event(vgpu, vblank_event[pipe]);
621 int pipe;
624 for_each_pipe(vgpu->gvt->gt->i915, pipe)
625 emulate_vblank_on_pipe(vgpu, pipe);