Lines Matching refs:gma_crtc
99 struct gma_crtc *gma_crtc = to_gma_crtc(crtc); in psb_intel_crtc_mode_set() local
101 int pipe = gma_crtc->pipe; in psb_intel_crtc_mode_set()
140 limit = gma_crtc->clock_funcs->limit(crtc, refclk); in psb_intel_crtc_mode_set()
300 struct gma_crtc *gma_crtc = to_gma_crtc(crtc); in psb_intel_crtc_clock_get() local
302 int pipe = gma_crtc->pipe; in psb_intel_crtc_clock_get()
376 struct gma_crtc *gma_crtc = to_gma_crtc(crtc); in psb_intel_crtc_mode_get() local
377 int pipe = gma_crtc->pipe; in psb_intel_crtc_mode_get()
448 struct gma_crtc *gma_crtc) in psb_intel_cursor_init() argument
462 gma_crtc->cursor_gt = NULL; in psb_intel_cursor_init()
465 gma_crtc->cursor_gt = cursor_gt; in psb_intel_cursor_init()
466 gma_crtc->cursor_addr = dev_priv->stolen_base + in psb_intel_cursor_init()
469 gma_crtc->cursor_gt = NULL; in psb_intel_cursor_init()
473 REG_WRITE(control[gma_crtc->pipe], 0); in psb_intel_cursor_init()
474 REG_WRITE(base[gma_crtc->pipe], 0); in psb_intel_cursor_init()
481 struct gma_crtc *gma_crtc; in psb_intel_crtc_init() local
486 gma_crtc = kzalloc(sizeof(struct gma_crtc) + in psb_intel_crtc_init()
489 if (gma_crtc == NULL) in psb_intel_crtc_init()
492 gma_crtc->crtc_state = in psb_intel_crtc_init()
494 if (!gma_crtc->crtc_state) { in psb_intel_crtc_init()
496 kfree(gma_crtc); in psb_intel_crtc_init()
501 drm_crtc_init(dev, &gma_crtc->base, dev_priv->ops->crtc_funcs); in psb_intel_crtc_init()
504 gma_crtc->clock_funcs = dev_priv->ops->clock_funcs; in psb_intel_crtc_init()
506 drm_mode_crtc_set_gamma_size(&gma_crtc->base, 256); in psb_intel_crtc_init()
507 gma_crtc->pipe = pipe; in psb_intel_crtc_init()
508 gma_crtc->plane = pipe; in psb_intel_crtc_init()
511 gma_crtc->lut_adj[i] = 0; in psb_intel_crtc_init()
513 gma_crtc->mode_dev = mode_dev; in psb_intel_crtc_init()
514 gma_crtc->cursor_addr = 0; in psb_intel_crtc_init()
516 drm_crtc_helper_add(&gma_crtc->base, in psb_intel_crtc_init()
520 gma_crtc->mode_set.crtc = &gma_crtc->base; in psb_intel_crtc_init()
522 dev_priv->plane_to_crtc_mapping[gma_crtc->plane] != NULL); in psb_intel_crtc_init()
523 dev_priv->plane_to_crtc_mapping[gma_crtc->plane] = &gma_crtc->base; in psb_intel_crtc_init()
524 dev_priv->pipe_to_crtc_mapping[gma_crtc->pipe] = &gma_crtc->base; in psb_intel_crtc_init()
525 gma_crtc->mode_set.connectors = (struct drm_connector **)(gma_crtc + 1); in psb_intel_crtc_init()
526 gma_crtc->mode_set.num_connectors = 0; in psb_intel_crtc_init()
527 psb_intel_cursor_init(dev, gma_crtc); in psb_intel_crtc_init()
530 gma_crtc->active = true; in psb_intel_crtc_init()
538 struct gma_crtc *gma_crtc = to_gma_crtc(crtc); in psb_intel_get_crtc_from_pipe() local
539 if (gma_crtc->pipe == pipe) in psb_intel_get_crtc_from_pipe()