Lines Matching refs:nv_crtc

117 	struct nouveau_crtc *nv_crtc;  in nv04_dfp_update_fp_control()  local
121 nv_crtc = nouveau_crtc(encoder->crtc); in nv04_dfp_update_fp_control()
122 fpc = &nv04_display(dev)->mode_reg.crtc_reg[nv_crtc->index].fp_control; in nv04_dfp_update_fp_control()
129 *fpc = nv_crtc->dpms_saved_fp_control; in nv04_dfp_update_fp_control()
132 nv_crtc->fp_users |= 1 << nouveau_encoder(encoder)->dcb->index; in nv04_dfp_update_fp_control()
133 NVWriteRAMDAC(dev, nv_crtc->index, NV_PRAMDAC_FP_TG_CONTROL, *fpc); in nv04_dfp_update_fp_control()
136 nv_crtc = nouveau_crtc(crtc); in nv04_dfp_update_fp_control()
137 fpc = &nv04_display(dev)->mode_reg.crtc_reg[nv_crtc->index].fp_control; in nv04_dfp_update_fp_control()
139 nv_crtc->fp_users &= ~(1 << nouveau_encoder(encoder)->dcb->index); in nv04_dfp_update_fp_control()
140 if (!is_fpc_off(*fpc) && !nv_crtc->fp_users) { in nv04_dfp_update_fp_control()
141 nv_crtc->dpms_saved_fp_control = *fpc; in nv04_dfp_update_fp_control()
145 NVWriteRAMDAC(dev, nv_crtc->index, in nv04_dfp_update_fp_control()
287 struct nouveau_crtc *nv_crtc = nouveau_crtc(encoder->crtc); in nv04_dfp_mode_set() local
288 struct nv04_crtc_reg *regp = &nv04_display(dev)->mode_reg.crtc_reg[nv_crtc->index]; in nv04_dfp_mode_set()
289 struct nv04_crtc_reg *savep = &nv04_display(dev)->saved_reg.crtc_reg[nv_crtc->index]; in nv04_dfp_mode_set()
290 struct nouveau_connector *nv_connector = nouveau_crtc_connector_get(nv_crtc); in nv04_dfp_mode_set()
297 NV_DEBUG(drm, "Output mode on CRTC %d:\n", nv_crtc->index); in nv04_dfp_mode_set()
451 struct nouveau_crtc *nv_crtc = nouveau_crtc(encoder->crtc); in nv04_dfp_commit() local
483 nv_crtc->index, '@' + ffs(nv_encoder->dcb->or)); in nv04_dfp_commit()