gma_crtc
if (gma_crtc->pipe == 0)
if (gma_crtc->pipe == 0)
struct gma_crtc *gma_crtc = to_gma_crtc(crtc);
struct gma_crtc *gma_crtc = to_gma_crtc(crtc);
int pipe = gma_crtc->pipe;
struct gma_crtc *gma_crtc = to_gma_crtc(crtc);
gma_crtc->clock_funcs->clock(refclk, &clock);
struct gma_crtc *gma_crtc = NULL;
gma_crtc = to_gma_crtc(crtc);
if (crtc->primary->fb == NULL || !gma_crtc->active)
struct gma_crtc *gma_crtc = to_gma_crtc(crtc);
if (gma_crtc->pipe == 1 &&
struct gma_crtc *gma_crtc = to_gma_crtc(crtc);
int pipe = gma_crtc->pipe;
limit = gma_crtc->clock_funcs->limit(crtc, refclk);
struct gma_crtc *gma_crtc = to_gma_crtc(crtc);
int pipe = gma_crtc->pipe;
struct gma_crtc *gma_crtc = to_gma_crtc(crtc);
int pipe = gma_crtc->pipe;
struct gma_crtc *gma_crtc = to_gma_crtc(crtc);
if (gma_crtc->pipe == 1)
pfit_control |= gma_crtc->pipe << PFIT_PIPE_SHIFT;
struct gma_crtc *gma_crtc = to_gma_crtc(crtc);
int pipe = gma_crtc->pipe;
struct gma_crtc *crtc = to_gma_crtc(encoder->crtc);
struct gma_crtc *gma_crtc = to_gma_crtc(crtc);
if (gma_crtc->pipe == 1)
struct gma_crtc *gma_crtc = to_gma_crtc(encoder->crtc);
pfit_control |= gma_crtc->pipe << PFIT_PIPE_SHIFT;
struct gma_crtc *crtc = to_gma_crtc(encoder->crtc);
struct gma_crtc *gma_crtc = to_gma_crtc(crtc);
const struct psb_offset *map = &dev_priv->regmap[gma_crtc->pipe];
(((*r++ >> 8) + gma_crtc->lut_adj[i]) << 16) |
(((*g++ >> 8) + gma_crtc->lut_adj[i]) << 8) |
((*b++ >> 8) + gma_crtc->lut_adj[i]));
(((*r++ >> 8) + gma_crtc->lut_adj[i]) << 16) |
(((*g++ >> 8) + gma_crtc->lut_adj[i]) << 8) |
((*b++ >> 8) + gma_crtc->lut_adj[i]);
struct gma_crtc *gma_crtc = to_gma_crtc(crtc);
int pipe = gma_crtc->pipe;
if (gma_crtc->active)
gma_crtc->active = true;
if (!gma_crtc->active)
gma_crtc->active = false;
struct gma_crtc *gma_crtc = to_gma_crtc(crtc);
int pipe = gma_crtc->pipe;
struct psb_gem_object *cursor_pobj = gma_crtc->cursor_pobj;
if (gma_crtc->cursor_obj) {
pobj = to_psb_gem_object(gma_crtc->cursor_obj);
drm_gem_object_put(gma_crtc->cursor_obj);
gma_crtc->cursor_obj = NULL;
addr = gma_crtc->cursor_addr;
gma_crtc->cursor_addr = addr;
if (gma_crtc->cursor_obj) {
pobj = to_psb_gem_object(gma_crtc->cursor_obj);
drm_gem_object_put(gma_crtc->cursor_obj);
gma_crtc->cursor_obj = obj;
struct gma_crtc *gma_crtc = to_gma_crtc(crtc);
int pipe = gma_crtc->pipe;
addr = gma_crtc->cursor_addr;
struct gma_crtc *gma_crtc = to_gma_crtc(crtc);
if (gma_crtc->cursor_pobj)
drm_gem_object_put(&gma_crtc->cursor_pobj->base);
kfree(gma_crtc->crtc_state);
kfree(gma_crtc);
struct gma_crtc *gma_crtc = to_gma_crtc(crtc);
gma_crtc->page_flip_event = event;
if (gma_crtc->page_flip_event) {
gma_crtc->page_flip_event = NULL;
struct gma_crtc *gma_crtc = to_gma_crtc(crtc);
struct psb_intel_crtc_state *crtc_state = gma_crtc->crtc_state;
const struct psb_offset *map = &dev_priv->regmap[gma_crtc->pipe];
struct gma_crtc *gma_crtc = to_gma_crtc(crtc);
struct psb_intel_crtc_state *crtc_state = gma_crtc->crtc_state;
const struct psb_offset *map = &dev_priv->regmap[gma_crtc->pipe];
struct gma_crtc *gma_crtc = to_gma_crtc(crtc);
int pipe = gma_crtc->pipe;
struct gma_crtc *gma_crtc = to_gma_crtc(crtc);
int pipe = gma_crtc->pipe;
struct gma_crtc *gma_crtc = to_gma_crtc(crtc);
int pipe = gma_crtc->pipe;
drm_mode_copy(&gma_crtc->saved_mode, mode);
drm_mode_copy(&gma_crtc->saved_adjusted_mode, adjusted_mode);
struct gma_crtc *gma_crtc = to_gma_crtc(crtc);
int pipe = gma_crtc->pipe;
struct gma_crtc *gma_crtc = to_gma_crtc(crtc);
int pipe = gma_crtc->pipe;
limit = gma_crtc->clock_funcs->limit(crtc, refclk);
struct gma_crtc *gma_crtc = to_gma_crtc(crtc);
int pipe = gma_crtc->pipe;
struct gma_crtc *gma_crtc = to_gma_crtc(crtc);
int pipe = gma_crtc->pipe;
struct gma_crtc *gma_crtc)
gma_crtc->cursor_pobj = NULL;
gma_crtc->cursor_pobj = cursor_pobj;
gma_crtc->cursor_addr = dev_priv->stolen_base + cursor_pobj->offset;
gma_crtc->cursor_pobj = NULL;
REG_WRITE(control[gma_crtc->pipe], 0);
REG_WRITE(base[gma_crtc->pipe], 0);
struct gma_crtc *gma_crtc;
gma_crtc = kzalloc(sizeof(struct gma_crtc) +
if (gma_crtc == NULL)
gma_crtc->crtc_state =
if (!gma_crtc->crtc_state) {
kfree(gma_crtc);
drm_crtc_init(dev, &gma_crtc->base, &gma_crtc_funcs);
gma_crtc->clock_funcs = dev_priv->ops->clock_funcs;
drm_mode_crtc_set_gamma_size(&gma_crtc->base, 256);
gma_crtc->pipe = pipe;
gma_crtc->plane = pipe;
gma_crtc->lut_adj[i] = 0;
gma_crtc->mode_dev = mode_dev;
gma_crtc->cursor_addr = 0;
drm_crtc_helper_add(&gma_crtc->base,
gma_crtc->mode_set.crtc = &gma_crtc->base;
dev_priv->plane_to_crtc_mapping[gma_crtc->plane] != NULL);
dev_priv->plane_to_crtc_mapping[gma_crtc->plane] = &gma_crtc->base;
dev_priv->pipe_to_crtc_mapping[gma_crtc->pipe] = &gma_crtc->base;
gma_crtc->mode_set.connectors = (struct drm_connector **)(gma_crtc + 1);
gma_crtc->mode_set.num_connectors = 0;
psb_intel_cursor_init(dev, gma_crtc);
gma_crtc->active = true;
struct gma_crtc *gma_crtc = to_gma_crtc(crtc);
if (gma_crtc->pipe == pipe)
container_of(x, struct gma_crtc, base)
struct gma_crtc *gma_crtc = to_gma_crtc(encoder->crtc);
if (!IS_MRST(dev) && gma_crtc->pipe == 0) {
if (IS_MRST(dev) && gma_crtc->pipe != 0) {
struct gma_crtc *crtc = to_gma_crtc(encoder->crtc);
if (gma_crtc->pipe == 1)
struct gma_crtc *gma_crtc = to_gma_crtc(crtc);
struct gma_crtc *gma_crtc = to_gma_crtc(crtc);
if (gma_crtc->page_flip_event) {
gma_crtc->page_flip_event);
gma_crtc->page_flip_event = NULL;