/linux-4.1.27/drivers/gpu/drm/nouveau/dispnv04/ |
D | crtc.c | 59 struct nouveau_crtc *nv_crtc = nouveau_crtc(crtc); in nv_crtc_set_digital_vibrance() local 61 struct nv04_crtc_reg *regp = &nv04_display(dev)->mode_reg.crtc_reg[nv_crtc->index]; in nv_crtc_set_digital_vibrance() 63 regp->CRTC[NV_CIO_CRE_CSB] = nv_crtc->saturation = level; in nv_crtc_set_digital_vibrance() 64 if (nv_crtc->saturation && nv_gf4_disp_arch(crtc->dev)) { in nv_crtc_set_digital_vibrance() 66 regp->CRTC[NV_CIO_CRE_5B] = nv_crtc->saturation << 2; in nv_crtc_set_digital_vibrance() 74 struct nouveau_crtc *nv_crtc = nouveau_crtc(crtc); in nv_crtc_set_image_sharpening() local 76 struct nv04_crtc_reg *regp = &nv04_display(dev)->mode_reg.crtc_reg[nv_crtc->index]; in nv_crtc_set_image_sharpening() 78 nv_crtc->sharpness = level; in nv_crtc_set_image_sharpening() 82 NVWriteRAMDAC(crtc->dev, nv_crtc->index, NV_PRAMDAC_634, regp->ramdac_634); in nv_crtc_set_image_sharpening() 117 struct nouveau_crtc *nv_crtc = nouveau_crtc(crtc); in nv_crtc_calc_state_ext() local [all …]
|
D | cursor.c | 9 nv04_cursor_show(struct nouveau_crtc *nv_crtc, bool update) in nv04_cursor_show() argument 11 nv_show_cursor(nv_crtc->base.dev, nv_crtc->index, true); in nv04_cursor_show() 15 nv04_cursor_hide(struct nouveau_crtc *nv_crtc, bool update) in nv04_cursor_hide() argument 17 nv_show_cursor(nv_crtc->base.dev, nv_crtc->index, false); in nv04_cursor_hide() 21 nv04_cursor_set_pos(struct nouveau_crtc *nv_crtc, int x, int y) in nv04_cursor_set_pos() argument 23 nv_crtc->cursor_saved_x = x; nv_crtc->cursor_saved_y = y; in nv04_cursor_set_pos() 24 NVWriteRAMDAC(nv_crtc->base.dev, nv_crtc->index, in nv04_cursor_set_pos() 38 nv04_cursor_set_offset(struct nouveau_crtc *nv_crtc, uint32_t offset) in nv04_cursor_set_offset() argument 40 struct drm_device *dev = nv_crtc->base.dev; in nv04_cursor_set_offset() 42 struct nv04_crtc_reg *regp = &nv04_display(dev)->mode_reg.crtc_reg[nv_crtc->index]; in nv04_cursor_set_offset() [all …]
|
D | dfp.c | 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() [all …]
|
D | tvnv04.c | 142 struct nouveau_crtc *nv_crtc = nouveau_crtc(encoder->crtc); in nv04_tv_mode_set() local 143 struct nv04_crtc_reg *regp = &nv04_display(dev)->mode_reg.crtc_reg[nv_crtc->index]; in nv04_tv_mode_set() 166 struct nouveau_crtc *nv_crtc = nouveau_crtc(encoder->crtc); in nv04_tv_commit() local 173 nv_crtc->index, '@' + ffs(nv_encoder->dcb->or)); in nv04_tv_commit()
|
D | overlay.c | 103 struct nouveau_crtc *nv_crtc = nouveau_crtc(crtc); in nv10_update_plane() local 106 int soff = NV_PCRTC0_SIZE * nv_crtc->index; in nv10_update_plane() 107 int soff2 = NV_PCRTC0_SIZE * !nv_crtc->index; in nv10_update_plane()
|
D | dac.c | 411 struct nouveau_crtc *nv_crtc = nouveau_crtc(encoder->crtc); in nv04_dac_commit() local 418 nv_crtc->index, '@' + ffs(nv_encoder->dcb->or)); in nv04_dac_commit()
|
D | tvnv17.c | 584 struct nouveau_crtc *nv_crtc = nouveau_crtc(encoder->crtc); in nv17_tv_commit() local 611 nv_crtc->index, '@' + ffs(nv_encoder->dcb->or)); in nv17_tv_commit()
|
/linux-4.1.27/drivers/gpu/drm/nouveau/ |
D | nv50_display.c | 546 struct nouveau_crtc *nv_crtc = nouveau_crtc(crtc); in nv50_display_flip_next() local 572 OUT_RING (chan, NvEvoSema0 + nv_crtc->index); in nv50_display_flip_next() 581 u64 addr = nv84_fence_crtc(chan, nv_crtc->index) + sync->addr; in nv50_display_flip_next() 600 u64 addr = nv84_fence_crtc(chan, nv_crtc->index) + sync->addr; in nv50_display_flip_next() 674 nv50_crtc_set_dither(struct nouveau_crtc *nv_crtc, bool update) in nv50_crtc_set_dither() argument 676 struct nv50_mast *mast = nv50_mast(nv_crtc->base.dev); in nv50_crtc_set_dither() 681 nv_connector = nouveau_crtc_connector_get(nv_crtc); in nv50_crtc_set_dither() 684 if (nv_crtc->base.primary->fb->depth > connector->display_info.bpc * 3) in nv50_crtc_set_dither() 700 evo_mthd(push, 0x08a0 + (nv_crtc->index * 0x0400), 1); in nv50_crtc_set_dither() 704 evo_mthd(push, 0x0490 + (nv_crtc->index * 0x0300), 1); in nv50_crtc_set_dither() [all …]
|
D | nouveau_display.c | 47 struct nouveau_crtc *nv_crtc = in nouveau_display_vblank_handler() local 48 container_of(notify, typeof(*nv_crtc), vblank); in nouveau_display_vblank_handler() 49 drm_handle_vblank(nv_crtc->base.dev, nv_crtc->index); in nouveau_display_vblank_handler() 58 struct nouveau_crtc *nv_crtc = nouveau_crtc(crtc); in nouveau_display_vblank_enable() local 59 if (nv_crtc->index == head) { in nouveau_display_vblank_enable() 60 nvif_notify_get(&nv_crtc->vblank); in nouveau_display_vblank_enable() 72 struct nouveau_crtc *nv_crtc = nouveau_crtc(crtc); in nouveau_display_vblank_disable() local 73 if (nv_crtc->index == head) { in nouveau_display_vblank_disable() 74 nvif_notify_put(&nv_crtc->vblank); in nouveau_display_vblank_disable() 174 struct nouveau_crtc *nv_crtc = nouveau_crtc(crtc); in nouveau_display_vblank_fini() local [all …]
|
D | nouveau_connector.c | 448 struct nouveau_crtc *nv_crtc; in nouveau_connector_set_property() local 451 nv_crtc = NULL; in nouveau_connector_set_property() 453 nv_crtc = nouveau_crtc(connector->encoder->crtc); in nouveau_connector_set_property() 499 if (!nv_crtc) in nouveau_connector_set_property() 502 if (modeset || !nv_crtc->set_scale) { in nouveau_connector_set_property() 503 ret = drm_crtc_helper_set_mode(&nv_crtc->base, in nouveau_connector_set_property() 504 &nv_crtc->base.mode, in nouveau_connector_set_property() 505 nv_crtc->base.x, in nouveau_connector_set_property() 506 nv_crtc->base.y, NULL); in nouveau_connector_set_property() 510 ret = nv_crtc->set_scale(nv_crtc, true); in nouveau_connector_set_property() [all …]
|
D | nouveau_connector.h | 92 nouveau_crtc_connector_get(struct nouveau_crtc *nv_crtc) in nouveau_crtc_connector_get() argument 94 struct drm_device *dev = nv_crtc->base.dev; in nouveau_crtc_connector_get() 96 struct drm_crtc *crtc = to_drm_crtc(nv_crtc); in nouveau_crtc_connector_get()
|
D | nouveau_fbcon.c | 296 struct nouveau_crtc *nv_crtc = nouveau_crtc(crtc); in nouveau_fbcon_gamma_set() local 298 nv_crtc->lut.r[regno] = red; in nouveau_fbcon_gamma_set() 299 nv_crtc->lut.g[regno] = green; in nouveau_fbcon_gamma_set() 300 nv_crtc->lut.b[regno] = blue; in nouveau_fbcon_gamma_set() 306 struct nouveau_crtc *nv_crtc = nouveau_crtc(crtc); in nouveau_fbcon_gamma_get() local 308 *red = nv_crtc->lut.r[regno]; in nouveau_fbcon_gamma_get() 309 *green = nv_crtc->lut.g[regno]; in nouveau_fbcon_gamma_get() 310 *blue = nv_crtc->lut.b[regno]; in nouveau_fbcon_gamma_get()
|