Home | History | Annotate | Download | only in gvt

Lines Matching defs:pipe

46 	int pipe = -1;
51 pipe = PIPE_A;
54 pipe = PIPE_B;
57 pipe = PIPE_C;
60 return pipe;
75 int pipe_is_enabled(struct intel_vgpu *vgpu, int pipe)
79 if (WARN_ON(pipe < PIPE_A || pipe >= I915_MAX_PIPES))
82 if (vgpu_vreg_t(vgpu, PIPECONF(pipe)) & PIPECONF_ENABLE)
86 get_edp_pipe(vgpu) == pipe)
177 int pipe;
303 for_each_pipe(dev_priv, pipe) {
304 vgpu_vreg_t(vgpu, DSPCNTR(pipe)) &= ~DISPLAY_PLANE_ENABLE;
305 vgpu_vreg_t(vgpu, SPRCTL(pipe)) &= ~SPRITE_ENABLE;
306 vgpu_vreg_t(vgpu, CURCNTR(pipe)) &= ~MCURSOR_MODE;
307 vgpu_vreg_t(vgpu, CURCNTR(pipe)) |= MCURSOR_MODE_DISABLE;
359 * be turned on/off when a virtual pipe is enabled/disabled.
370 int pipe, id;
375 for (pipe = 0; pipe < I915_MAX_PIPES; pipe++) {
376 if (pipe_is_enabled(vgpu, pipe)) {
395 static void emulate_vblank_on_pipe(struct intel_vgpu *vgpu, int pipe)
406 if (pipe < PIPE_A || pipe > PIPE_C)
409 for_each_set_bit(event, irq->flip_done_event[pipe],
411 clear_bit(event, irq->flip_done_event[pipe]);
412 if (!pipe_is_enabled(vgpu, pipe))
418 if (pipe_is_enabled(vgpu, pipe)) {
419 vgpu_vreg_t(vgpu, PIPE_FRMCOUNT_G4X(pipe))++;
420 intel_vgpu_trigger_virtual_event(vgpu, vblank_event[pipe]);
426 int pipe;
429 for_each_pipe(vgpu->gvt->dev_priv, pipe)
430 emulate_vblank_on_pipe(vgpu, pipe);