/drivers/gpu/drm/nouveau/ |
H A D | nv50_cursor.c | 37 nv50_cursor_show(struct nouveau_crtc *nv_crtc, bool update) argument 39 struct drm_device *dev = nv_crtc->base.dev; 46 if (update && nv_crtc->cursor.visible) 56 BEGIN_RING(evo, 0, NV84_EVO_CRTC(nv_crtc->index, CURSOR_DMA), 1); 59 BEGIN_RING(evo, 0, NV50_EVO_CRTC(nv_crtc->index, CURSOR_CTRL), 2); 61 OUT_RING(evo, nv_crtc->cursor.offset >> 8); 67 nv_crtc->cursor.visible = true; 72 nv50_cursor_hide(struct nouveau_crtc *nv_crtc, bool update) argument 74 struct drm_device *dev = nv_crtc->base.dev; 81 if (update && !nv_crtc 106 nv50_cursor_set_pos(struct nouveau_crtc *nv_crtc, int x, int y) argument 118 nv50_cursor_set_offset(struct nouveau_crtc *nv_crtc, uint32_t offset) argument 132 nv50_cursor_init(struct nouveau_crtc *nv_crtc) argument [all...] |
H A D | nv04_cursor.c | 9 nv04_cursor_show(struct nouveau_crtc *nv_crtc, bool update) argument 11 nv_show_cursor(nv_crtc->base.dev, nv_crtc->index, true); 15 nv04_cursor_hide(struct nouveau_crtc *nv_crtc, bool update) argument 17 nv_show_cursor(nv_crtc->base.dev, nv_crtc->index, false); 21 nv04_cursor_set_pos(struct nouveau_crtc *nv_crtc, int x, int y) argument 23 nv_crtc->cursor_saved_x = x; nv_crtc->cursor_saved_y = y; 24 NVWriteRAMDAC(nv_crtc 38 nv04_cursor_set_offset(struct nouveau_crtc *nv_crtc, uint32_t offset) argument [all...] |
H A D | nv04_tv.c | 137 struct nouveau_crtc *nv_crtc = nouveau_crtc(encoder->crtc); local 138 struct nv04_crtc_reg *regp = &dev_priv->mode_reg.crtc_reg[nv_crtc->index]; 160 struct nouveau_crtc *nv_crtc = nouveau_crtc(encoder->crtc); local 166 drm_get_connector_name(&nouveau_encoder_connector_get(nv_encoder)->base), nv_crtc->index,
|
H A D | nouveau_drv.c | 207 struct nouveau_crtc *nv_crtc = nouveau_crtc(crtc); local 209 nouveau_bo_unmap(nv_crtc->cursor.nvbo); 210 nouveau_bo_unpin(nv_crtc->cursor.nvbo); 357 struct nouveau_crtc *nv_crtc = nouveau_crtc(crtc); local 359 ret = nouveau_bo_pin(nv_crtc->cursor.nvbo, TTM_PL_FLAG_VRAM); 361 ret = nouveau_bo_map(nv_crtc->cursor.nvbo); 373 struct nouveau_crtc *nv_crtc = nouveau_crtc(crtc); local 375 nv_crtc->lut.depth = 0; 381 struct nouveau_crtc *nv_crtc = nouveau_crtc(crtc); local 382 u32 offset = nv_crtc [all...] |
H A D | nouveau_fbcon.c | 239 struct nouveau_crtc *nv_crtc = nouveau_crtc(crtc); local 241 nv_crtc->lut.r[regno] = red; 242 nv_crtc->lut.g[regno] = green; 243 nv_crtc->lut.b[regno] = blue; 249 struct nouveau_crtc *nv_crtc = nouveau_crtc(crtc); local 251 *red = nv_crtc->lut.r[regno]; 252 *green = nv_crtc->lut.g[regno]; 253 *blue = nv_crtc->lut.b[regno];
|
H A D | nouveau_hdmi.c | 46 struct nouveau_crtc *nv_crtc = nouveau_crtc(nv_encoder->crtc); local 48 return 0x616500 + (nv_crtc->index * 0x800);
|
H A D | nouveau_connector.c | 415 struct nouveau_crtc *nv_crtc; local 418 nv_crtc = NULL; 420 nv_crtc = nouveau_crtc(connector->encoder->crtc); 449 if (!nv_crtc) 452 if (modeset || !nv_crtc->set_scale) { 453 ret = drm_crtc_helper_set_mode(&nv_crtc->base, 454 &nv_crtc->base.mode, 455 nv_crtc->base.x, 456 nv_crtc->base.y, NULL); 460 ret = nv_crtc [all...] |
H A D | nouveau_dp.c | 417 struct nouveau_crtc *nv_crtc = nouveau_crtc(encoder->crtc); local 432 dp.crtc = nv_crtc->index;
|
H A D | nv04_dac.c | 396 struct nouveau_crtc *nv_crtc = nouveau_crtc(encoder->crtc); local 403 nv_crtc->index, '@' + ffs(nv_encoder->dcb->or));
|
H A D | nv04_dfp.c | 116 struct nouveau_crtc *nv_crtc; local 120 nv_crtc = nouveau_crtc(encoder->crtc); 121 fpc = &dev_priv->mode_reg.crtc_reg[nv_crtc->index].fp_control; 128 *fpc = nv_crtc->dpms_saved_fp_control; 131 nv_crtc->fp_users |= 1 << nouveau_encoder(encoder)->dcb->index; 132 NVWriteRAMDAC(dev, nv_crtc->index, NV_PRAMDAC_FP_TG_CONTROL, *fpc); 135 nv_crtc = nouveau_crtc(crtc); 136 fpc = &dev_priv->mode_reg.crtc_reg[nv_crtc->index].fp_control; 138 nv_crtc->fp_users &= ~(1 << nouveau_encoder(encoder)->dcb->index); 139 if (!is_fpc_off(*fpc) && !nv_crtc 286 struct nouveau_crtc *nv_crtc = nouveau_crtc(encoder->crtc); local 449 struct nouveau_crtc *nv_crtc = nouveau_crtc(encoder->crtc); local [all...] |
H A D | nv17_tv.c | 570 struct nouveau_crtc *nv_crtc = nouveau_crtc(encoder->crtc); local 598 nv_crtc->index, '@' + ffs(nv_encoder->dcb->or));
|
H A D | nv50_display.c | 430 struct nouveau_crtc *nv_crtc = nouveau_crtc(crtc); local 431 struct nv50_display_crtc *dispc = &disp->crtc[nv_crtc->index]; 459 struct nouveau_crtc *nv_crtc = nouveau_crtc(crtc); local 460 struct nv50_display_crtc *dispc = &disp->crtc[nv_crtc->index]; 478 OUT_RING (chan, NvEvoSema0 + nv_crtc->index); 491 u64 offset = chan->dispc_vma[nv_crtc->index].offset;
|
H A D | nv04_crtc.c | 51 struct nouveau_crtc *nv_crtc = nouveau_crtc(crtc); local 53 struct nv04_crtc_reg *regp = &dev_priv->mode_reg.crtc_reg[nv_crtc->index]; 55 regp->CRTC[NV_CIO_CRE_CSB] = nv_crtc->saturation = level; 56 if (nv_crtc->saturation && nv_gf4_disp_arch(crtc->dev)) { 58 regp->CRTC[NV_CIO_CRE_5B] = nv_crtc->saturation << 2; 66 struct nouveau_crtc *nv_crtc = nouveau_crtc(crtc); local 68 struct nv04_crtc_reg *regp = &dev_priv->mode_reg.crtc_reg[nv_crtc->index]; 70 nv_crtc->sharpness = level; 74 NVWriteRAMDAC(crtc->dev, nv_crtc->index, NV_PRAMDAC_634, regp->ramdac_634); 107 struct nouveau_crtc *nv_crtc local 159 struct nouveau_crtc *nv_crtc = nouveau_crtc(crtc); local 229 struct nouveau_crtc *nv_crtc = nouveau_crtc(crtc); local 456 struct nouveau_crtc *nv_crtc = nouveau_crtc(crtc); local 613 struct nouveau_crtc *nv_crtc = nouveau_crtc(crtc); local 633 struct nouveau_crtc *nv_crtc = nouveau_crtc(crtc); local 654 struct nouveau_crtc *nv_crtc = nouveau_crtc(crtc); local 672 struct nouveau_crtc *nv_crtc = nouveau_crtc(crtc); local 696 struct nouveau_crtc *nv_crtc = nouveau_crtc(crtc); local 716 struct nouveau_crtc *nv_crtc = nouveau_crtc(crtc); local 733 struct nouveau_crtc *nv_crtc = nouveau_crtc(crtc); local 754 struct nouveau_crtc *nv_crtc = nouveau_crtc(crtc); local 780 struct nouveau_crtc *nv_crtc = nouveau_crtc(crtc); local 958 struct nouveau_crtc *nv_crtc = nouveau_crtc(crtc); local 997 struct nouveau_crtc *nv_crtc = nouveau_crtc(crtc); local 1028 struct nouveau_crtc *nv_crtc; local [all...] |
H A D | nv50_crtc.c | 44 struct nouveau_crtc *nv_crtc = nouveau_crtc(crtc); local 45 void __iomem *lut = nvbo_kmap_obj_iovirtual(nv_crtc->lut.nvbo); 51 writew(nv_crtc->lut.r[i] >> 2, lut + 8*i + 0); 52 writew(nv_crtc->lut.g[i] >> 2, lut + 8*i + 2); 53 writew(nv_crtc->lut.b[i] >> 2, lut + 8*i + 4); 56 if (nv_crtc->lut.depth == 30) { 57 writew(nv_crtc->lut.r[i - 1] >> 2, lut + 8*i + 0); 58 writew(nv_crtc->lut.g[i - 1] >> 2, lut + 8*i + 2); 59 writew(nv_crtc->lut.b[i - 1] >> 2, lut + 8*i + 4); 64 nv50_crtc_blank(struct nouveau_crtc *nv_crtc, boo argument 135 nv50_crtc_set_dither(struct nouveau_crtc *nv_crtc, bool update) argument 174 nv50_crtc_set_color_vibrance(struct nouveau_crtc *nv_crtc, bool update) argument 209 nouveau_crtc_connector_get(struct nouveau_crtc *nv_crtc) argument 227 nv50_crtc_set_scale(struct nouveau_crtc *nv_crtc, bool update) argument 387 struct nouveau_crtc *nv_crtc; local 411 struct nouveau_crtc *nv_crtc = nouveau_crtc(crtc); local 450 struct nouveau_crtc *nv_crtc = nouveau_crtc(crtc); local 461 struct nouveau_crtc *nv_crtc = nouveau_crtc(crtc); local 513 struct nouveau_crtc *nv_crtc = nouveau_crtc(crtc); local 527 struct nouveau_crtc *nv_crtc = nouveau_crtc(crtc); local 549 struct nouveau_crtc *nv_crtc = nouveau_crtc(crtc); local 633 struct nouveau_crtc *nv_crtc = nouveau_crtc(crtc); local 749 struct nouveau_crtc *nv_crtc = NULL; local [all...] |
H A D | nvd0_display.c | 257 struct nouveau_crtc *nv_crtc = nouveau_crtc(crtc); local 258 struct evo *evo = &disp->evo[EVO_FLIP(nv_crtc->index)]; 281 struct nouveau_crtc *nv_crtc = nouveau_crtc(crtc); local 282 struct evo *evo = &disp->evo[EVO_FLIP(nv_crtc->index)]; 303 offset = chan->dispc_vma[nv_crtc->index].offset; 364 nvd0_crtc_set_dither(struct nouveau_crtc *nv_crtc, bool update) argument 366 struct drm_nouveau_private *dev_priv = nv_crtc->base.dev->dev_private; 367 struct drm_device *dev = nv_crtc->base.dev; 373 nv_connector = nouveau_crtc_connector_get(nv_crtc); 376 if (nv_crtc 409 nvd0_crtc_set_scale(struct nouveau_crtc *nv_crtc, bool update) argument 500 nvd0_crtc_set_image(struct nouveau_crtc *nv_crtc, struct drm_framebuffer *fb, int x, int y, bool update) argument 529 nvd0_crtc_cursor_show(struct nouveau_crtc *nv_crtc, bool show, bool update) argument 564 struct nouveau_crtc *nv_crtc = nouveau_crtc(crtc); local 586 struct nouveau_crtc *nv_crtc = nouveau_crtc(crtc); local 639 struct nouveau_crtc *nv_crtc = nouveau_crtc(crtc); local 704 struct nouveau_crtc *nv_crtc = nouveau_crtc(crtc); local 727 struct nouveau_crtc *nv_crtc = nouveau_crtc(crtc); local 736 struct nouveau_crtc *nv_crtc = nouveau_crtc(crtc); local 751 struct nouveau_crtc *nv_crtc = nouveau_crtc(crtc); local 790 struct nouveau_crtc *nv_crtc = nouveau_crtc(crtc); local 802 struct nouveau_crtc *nv_crtc = nouveau_crtc(crtc); local 818 struct nouveau_crtc *nv_crtc = nouveau_crtc(crtc); local 848 nvd0_cursor_set_pos(struct nouveau_crtc *nv_crtc, int x, int y) argument 853 nvd0_cursor_set_offset(struct nouveau_crtc *nv_crtc, uint32_t offset) argument 860 struct nouveau_crtc *nv_crtc; local 969 struct nouveau_crtc *nv_crtc = nouveau_crtc(encoder->crtc); local 1134 struct nouveau_crtc *nv_crtc = nouveau_crtc(encoder->crtc); local 1178 struct nouveau_crtc *nv_crtc = nouveau_crtc(nv_encoder->crtc); local 1444 struct nouveau_crtc *nv_crtc = nouveau_crtc(encoder->crtc); local [all...] |