Lines Matching refs:gma_crtc
55 struct gma_crtc *gma_crtc = to_gma_crtc(crtc); in gma_pipe_set_base() local
58 int pipe = gma_crtc->pipe; in gma_pipe_set_base()
140 struct gma_crtc *gma_crtc = to_gma_crtc(crtc); in gma_crtc_load_lut() local
141 const struct psb_offset *map = &dev_priv->regmap[gma_crtc->pipe]; in gma_crtc_load_lut()
157 (((*r++ >> 8) + gma_crtc->lut_adj[i]) << 16) | in gma_crtc_load_lut()
158 (((*g++ >> 8) + gma_crtc->lut_adj[i]) << 8) | in gma_crtc_load_lut()
159 ((*b++ >> 8) + gma_crtc->lut_adj[i])); in gma_crtc_load_lut()
166 (((*r++ >> 8) + gma_crtc->lut_adj[i]) << 16) | in gma_crtc_load_lut()
167 (((*g++ >> 8) + gma_crtc->lut_adj[i]) << 8) | in gma_crtc_load_lut()
168 ((*b++ >> 8) + gma_crtc->lut_adj[i]); in gma_crtc_load_lut()
193 struct gma_crtc *gma_crtc = to_gma_crtc(crtc); in gma_crtc_dpms() local
194 int pipe = gma_crtc->pipe; in gma_crtc_dpms()
209 if (gma_crtc->active) in gma_crtc_dpms()
212 gma_crtc->active = true; in gma_crtc_dpms()
260 if (!gma_crtc->active) in gma_crtc_dpms()
263 gma_crtc->active = false; in gma_crtc_dpms()
326 struct gma_crtc *gma_crtc = to_gma_crtc(crtc); in gma_crtc_cursor_set() local
327 int pipe = gma_crtc->pipe; in gma_crtc_cursor_set()
333 struct gtt_range *cursor_gt = gma_crtc->cursor_gt; in gma_crtc_cursor_set()
348 if (gma_crtc->cursor_obj) { in gma_crtc_cursor_set()
349 gt = container_of(gma_crtc->cursor_obj, in gma_crtc_cursor_set()
352 drm_gem_object_put_unlocked(gma_crtc->cursor_obj); in gma_crtc_cursor_set()
353 gma_crtc->cursor_obj = NULL; in gma_crtc_cursor_set()
407 addr = gma_crtc->cursor_addr; in gma_crtc_cursor_set()
410 gma_crtc->cursor_addr = addr; in gma_crtc_cursor_set()
425 if (gma_crtc->cursor_obj) { in gma_crtc_cursor_set()
426 gt = container_of(gma_crtc->cursor_obj, struct gtt_range, gem); in gma_crtc_cursor_set()
428 drm_gem_object_put_unlocked(gma_crtc->cursor_obj); in gma_crtc_cursor_set()
431 gma_crtc->cursor_obj = obj; in gma_crtc_cursor_set()
443 struct gma_crtc *gma_crtc = to_gma_crtc(crtc); in gma_crtc_cursor_move() local
444 int pipe = gma_crtc->pipe; in gma_crtc_cursor_move()
460 addr = gma_crtc->cursor_addr; in gma_crtc_cursor_move()
497 struct gma_crtc *gma_crtc = to_gma_crtc(crtc); in gma_crtc_destroy() local
499 kfree(gma_crtc->crtc_state); in gma_crtc_destroy()
501 kfree(gma_crtc); in gma_crtc_destroy()
528 struct gma_crtc *gma_crtc = to_gma_crtc(crtc); in gma_crtc_save() local
529 struct psb_intel_crtc_state *crtc_state = gma_crtc->crtc_state; in gma_crtc_save()
530 const struct psb_offset *map = &dev_priv->regmap[gma_crtc->pipe]; in gma_crtc_save()
571 struct gma_crtc *gma_crtc = to_gma_crtc(crtc); in gma_crtc_restore() local
572 struct psb_intel_crtc_state *crtc_state = gma_crtc->crtc_state; in gma_crtc_restore()
573 const struct psb_offset *map = &dev_priv->regmap[gma_crtc->pipe]; in gma_crtc_restore()