Home
last modified time | relevance | path

Searched refs:nv_crtc (Results 1 – 11 of 11) sorted by relevance

/Linux-v5.4/drivers/gpu/drm/nouveau/dispnv04/
Dcrtc.c60 struct nouveau_crtc *nv_crtc = nouveau_crtc(crtc); in nv_crtc_set_digital_vibrance() local
62 struct nv04_crtc_reg *regp = &nv04_display(dev)->mode_reg.crtc_reg[nv_crtc->index]; in nv_crtc_set_digital_vibrance()
64 regp->CRTC[NV_CIO_CRE_CSB] = nv_crtc->saturation = level; in nv_crtc_set_digital_vibrance()
65 if (nv_crtc->saturation && nv_gf4_disp_arch(crtc->dev)) { in nv_crtc_set_digital_vibrance()
67 regp->CRTC[NV_CIO_CRE_5B] = nv_crtc->saturation << 2; in nv_crtc_set_digital_vibrance()
75 struct nouveau_crtc *nv_crtc = nouveau_crtc(crtc); in nv_crtc_set_image_sharpening() local
77 struct nv04_crtc_reg *regp = &nv04_display(dev)->mode_reg.crtc_reg[nv_crtc->index]; in nv_crtc_set_image_sharpening()
79 nv_crtc->sharpness = level; in nv_crtc_set_image_sharpening()
83 NVWriteRAMDAC(crtc->dev, nv_crtc->index, NV_PRAMDAC_634, regp->ramdac_634); in nv_crtc_set_image_sharpening()
118 struct nouveau_crtc *nv_crtc = nouveau_crtc(crtc); in nv_crtc_calc_state_ext() local
[all …]
Ddisp.c65 struct nouveau_crtc *nv_crtc = nouveau_crtc(crtc); in nv04_display_fini() local
66 if (nv_crtc->cursor.nvbo) { in nv04_display_fini()
67 if (nv_crtc->cursor.set_offset) in nv04_display_fini()
68 nouveau_bo_unmap(nv_crtc->cursor.nvbo); in nv04_display_fini()
69 nouveau_bo_unpin(nv_crtc->cursor.nvbo); in nv04_display_fini()
92 struct nouveau_crtc *nv_crtc = nouveau_crtc(crtc); in nv04_display_init() local
93 nv_crtc->save(&nv_crtc->base); in nv04_display_init()
119 struct nouveau_crtc *nv_crtc = nouveau_crtc(crtc); in nv04_display_init() local
120 if (!nv_crtc->cursor.nvbo) in nv04_display_init()
123 ret = nouveau_bo_pin(nv_crtc->cursor.nvbo, TTM_PL_FLAG_VRAM, true); in nv04_display_init()
[all …]
Dcursor.c9 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 …]
Ddfp.c117 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 …]
Dtvnv04.c145 struct nouveau_crtc *nv_crtc = nouveau_crtc(encoder->crtc); in nv04_tv_mode_set() local
146 struct nv04_crtc_reg *regp = &nv04_display(dev)->mode_reg.crtc_reg[nv_crtc->index]; in nv04_tv_mode_set()
169 struct nouveau_crtc *nv_crtc = nouveau_crtc(encoder->crtc); in nv04_tv_commit() local
176 nv_crtc->index, '@' + ffs(nv_encoder->dcb->or)); in nv04_tv_commit()
Doverlay.c124 struct nouveau_crtc *nv_crtc = nouveau_crtc(crtc); in nv10_update_plane() local
127 int soff = NV_PCRTC0_SIZE * nv_crtc->index; in nv10_update_plane()
128 int soff2 = NV_PCRTC0_SIZE * !nv_crtc->index; in nv10_update_plane()
Ddac.c415 struct nouveau_crtc *nv_crtc = nouveau_crtc(encoder->crtc); in nv04_dac_commit() local
422 nv_crtc->index, '@' + ffs(nv_encoder->dcb->or)); in nv04_dac_commit()
Dtvnv17.c576 struct nouveau_crtc *nv_crtc = nouveau_crtc(encoder->crtc); in nv17_tv_commit() local
603 nv_crtc->index, '@' + ffs(nv_encoder->dcb->or)); in nv17_tv_commit()
/Linux-v5.4/drivers/gpu/drm/nouveau/
Dnouveau_display.c50 struct nouveau_crtc *nv_crtc = in nouveau_display_vblank_handler() local
51 container_of(notify, typeof(*nv_crtc), vblank); in nouveau_display_vblank_handler()
52 drm_crtc_handle_vblank(&nv_crtc->base); in nouveau_display_vblank_handler()
60 struct nouveau_crtc *nv_crtc; in nouveau_display_vblank_enable() local
66 nv_crtc = nouveau_crtc(crtc); in nouveau_display_vblank_enable()
67 nvif_notify_get(&nv_crtc->vblank); in nouveau_display_vblank_enable()
76 struct nouveau_crtc *nv_crtc; in nouveau_display_vblank_disable() local
82 nv_crtc = nouveau_crtc(crtc); in nouveau_display_vblank_disable()
83 nvif_notify_put(&nv_crtc->vblank); in nouveau_display_vblank_disable()
162 struct nouveau_crtc *nv_crtc = nouveau_crtc(crtc); in nouveau_display_vblank_fini() local
[all …]
Dnouveau_connector.h96 nouveau_crtc_connector_get(struct nouveau_crtc *nv_crtc) in nouveau_crtc_connector_get() argument
98 struct drm_device *dev = nv_crtc->base.dev; in nouveau_crtc_connector_get()
102 struct drm_crtc *crtc = to_drm_crtc(nv_crtc); in nouveau_crtc_connector_get()
/Linux-v5.4/drivers/gpu/drm/nouveau/dispnv50/
Ddisp.c380 struct nouveau_crtc *nv_crtc = nouveau_crtc(encoder->crtc); in nv50_dac_enable() local
381 struct nv50_head_atom *asyh = nv50_head_atom(nv_crtc->base.state); in nv50_dac_enable()
386 core->func->dac->ctrl(core, nv_encoder->or, 1 << nv_crtc->index, asyh); in nv50_dac_enable()
473 nv50_audio_disable(struct drm_encoder *encoder, struct nouveau_crtc *nv_crtc) in nv50_audio_disable() argument
485 (0x0100 << nv_crtc->index), in nv50_audio_disable()
495 struct nouveau_crtc *nv_crtc = nouveau_crtc(encoder->crtc); in nv50_audio_enable() local
509 (0x0100 << nv_crtc->index), in nv50_audio_enable()
526 nv50_hdmi_disable(struct drm_encoder *encoder, struct nouveau_crtc *nv_crtc) in nv50_hdmi_disable() argument
538 (0x0100 << nv_crtc->index), in nv50_hdmi_disable()
549 struct nouveau_crtc *nv_crtc = nouveau_crtc(encoder->crtc); in nv50_hdmi_enable() local
[all …]