Lines Matching refs:crtc

456 	struct drm_crtc *crtc;
461 for_each_new_crtc_in_state(state, crtc, crtc_state, i) {
463 return nouveau_crtc(crtc);
480 nv_encoder->crtc = NULL;
511 nv_encoder->crtc = &nv_crtc->base;
615 nv_crtc = nouveau_crtc(nv_encoder->crtc);
1139 struct drm_crtc *crtc = connector_state->crtc;
1141 if (!(mstc->mstm->outp->dcb->heads & drm_crtc_mask(crtc)))
1144 return &nv50_head(crtc)->msto->encoder;
1263 struct drm_crtc *crtc;
1285 drm_for_each_crtc(crtc, dev) {
1286 if (!(mstm->outp->dcb->heads & drm_crtc_mask(crtc)))
1290 &nv50_head(crtc)->msto->encoder);
1565 struct nv50_head *head = nv50_head(nv_encoder->crtc);
1595 nv_encoder->crtc = NULL;
1763 nv_encoder->crtc = &nv_crtc->base;
1974 nv_encoder->crtc = NULL;
2019 nv_encoder->crtc = &nv_crtc->base;
2136 nv50_audio_enable(outp->encoder, nouveau_crtc(nv_encoder->crtc),
2170 struct drm_crtc *crtc;
2194 for_each_oldnew_crtc_in_state(state, crtc, old_crtc_state, new_crtc_state, i) {
2196 struct nv50_head *head = nv50_head(crtc);
2198 NV_ATOMIC(drm, "%s: clr %04x (set %04x)\n", crtc->name,
2203 drm_crtc_vblank_off(crtc);
2277 for_each_oldnew_crtc_in_state(state, crtc, old_crtc_state, new_crtc_state, i) {
2279 struct nv50_head *head = nv50_head(crtc);
2281 NV_ATOMIC(drm, "%s: set %04x (clr %04x)\n", crtc->name,
2291 drm_crtc_vblank_on(crtc);
2295 drm_crtc_vblank_get(crtc);
2328 for_each_oldnew_crtc_in_state(state, crtc, old_crtc_state, new_crtc_state, i) {
2330 struct nv50_head *head = nv50_head(crtc);
2332 NV_ATOMIC(drm, "%s: set %04x (clr %04x)\n", crtc->name,
2385 for_each_new_crtc_in_state(state, crtc, new_crtc_state, i) {
2390 drm_crtc_accurate_vblank_count(crtc);
2391 spin_lock_irqsave(&crtc->dev->event_lock, flags);
2392 drm_crtc_send_vblank_event(crtc, new_crtc_state->event);
2393 spin_unlock_irqrestore(&crtc->dev->event_lock, flags);
2397 drm_crtc_vblank_put(crtc);
2511 struct drm_crtc *crtc;
2514 if (!(crtc = old_connector_state->crtc))
2517 old_crtc_state = drm_atomic_get_old_crtc_state(&atom->state, crtc);
2518 new_crtc_state = drm_atomic_get_new_crtc_state(&atom->state, crtc);
2540 struct drm_crtc *crtc;
2543 if (!(crtc = connector_state->crtc))
2546 new_crtc_state = drm_atomic_get_new_crtc_state(&atom->state, crtc);
2567 struct drm_crtc *crtc;
2573 drm_for_each_crtc(crtc, dev) {
2575 crtc);
2579 head = nv50_head(crtc);
2586 for_each_new_crtc_in_state(state, crtc, new_crtc_state, i) {
2588 ret = drm_atomic_add_affected_planes(state, crtc);
2691 struct drm_crtc *crtc;
2726 drm_for_each_crtc(crtc, dev) {
2727 if (crtc->index != head_idx)
2730 armh = nv50_head_atom(crtc->state);
2755 outp->crtc = crtc;
2756 outp->ctrl = NVVAL(NV507D, SOR_SET_CONTROL, PROTOCOL, proto) | BIT(crtc->index);
2759 conn->state->crtc = crtc;
2994 /* create crtc objects to represent the hw heads */