Home
last modified time | relevance | path

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

/Linux-v4.19/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 …]
Dcursor.c10 nv04_cursor_show(struct nouveau_crtc *nv_crtc, bool update) in nv04_cursor_show() argument
12 nv_show_cursor(nv_crtc->base.dev, nv_crtc->index, true); in nv04_cursor_show()
16 nv04_cursor_hide(struct nouveau_crtc *nv_crtc, bool update) in nv04_cursor_hide() argument
18 nv_show_cursor(nv_crtc->base.dev, nv_crtc->index, false); in nv04_cursor_hide()
22 nv04_cursor_set_pos(struct nouveau_crtc *nv_crtc, int x, int y) in nv04_cursor_set_pos() argument
24 nv_crtc->cursor_saved_x = x; nv_crtc->cursor_saved_y = y; in nv04_cursor_set_pos()
25 NVWriteRAMDAC(nv_crtc->base.dev, nv_crtc->index, in nv04_cursor_set_pos()
39 nv04_cursor_set_offset(struct nouveau_crtc *nv_crtc, uint32_t offset) in nv04_cursor_set_offset() argument
41 struct drm_device *dev = nv_crtc->base.dev; in nv04_cursor_set_offset()
43 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 …]
Ddisp.c131 struct nouveau_crtc *nv_crtc; in nv04_display_destroy() local
137 list_for_each_entry(nv_crtc, &dev->mode_config.crtc_list, base.head) in nv04_display_destroy()
138 nv_crtc->restore(&nv_crtc->base); in nv04_display_destroy()
Dtvnv04.c146 struct nouveau_crtc *nv_crtc = nouveau_crtc(encoder->crtc); in nv04_tv_mode_set() local
147 struct nv04_crtc_reg *regp = &nv04_display(dev)->mode_reg.crtc_reg[nv_crtc->index]; in nv04_tv_mode_set()
170 struct nouveau_crtc *nv_crtc = nouveau_crtc(encoder->crtc); in nv04_tv_commit() local
177 nv_crtc->index, '@' + ffs(nv_encoder->dcb->or)); in nv04_tv_commit()
Doverlay.c125 struct nouveau_crtc *nv_crtc = nouveau_crtc(crtc); in nv10_update_plane() local
128 int soff = NV_PCRTC0_SIZE * nv_crtc->index; in nv10_update_plane()
129 int soff2 = NV_PCRTC0_SIZE * !nv_crtc->index; in nv10_update_plane()
Ddac.c416 struct nouveau_crtc *nv_crtc = nouveau_crtc(encoder->crtc); in nv04_dac_commit() local
423 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-v4.19/drivers/gpu/drm/nouveau/
Dnouveau_display.c52 struct nouveau_crtc *nv_crtc = in nouveau_display_vblank_handler() local
53 container_of(notify, typeof(*nv_crtc), vblank); in nouveau_display_vblank_handler()
54 drm_crtc_handle_vblank(&nv_crtc->base); in nouveau_display_vblank_handler()
62 struct nouveau_crtc *nv_crtc; in nouveau_display_vblank_enable() local
68 nv_crtc = nouveau_crtc(crtc); in nouveau_display_vblank_enable()
69 nvif_notify_get(&nv_crtc->vblank); in nouveau_display_vblank_enable()
78 struct nouveau_crtc *nv_crtc; in nouveau_display_vblank_disable() local
84 nv_crtc = nouveau_crtc(crtc); in nouveau_display_vblank_disable()
85 nvif_notify_put(&nv_crtc->vblank); in nouveau_display_vblank_disable()
164 struct nouveau_crtc *nv_crtc = nouveau_crtc(crtc); in nouveau_display_vblank_fini() local
[all …]
Dnouveau_connector.h86 nouveau_crtc_connector_get(struct nouveau_crtc *nv_crtc) in nouveau_crtc_connector_get() argument
88 struct drm_device *dev = nv_crtc->base.dev; in nouveau_crtc_connector_get()
92 struct drm_crtc *crtc = to_drm_crtc(nv_crtc); in nouveau_crtc_connector_get()
/Linux-v4.19/drivers/gpu/drm/nouveau/dispnv50/
Ddisp.c367 struct nouveau_crtc *nv_crtc = nouveau_crtc(encoder->crtc); in nv50_dac_enable() local
368 struct nv50_head_atom *asyh = nv50_head_atom(nv_crtc->base.state); in nv50_dac_enable()
373 core->func->dac->ctrl(core, nv_encoder->or, 1 << nv_crtc->index, asyh); in nv50_dac_enable()
460 nv50_audio_disable(struct drm_encoder *encoder, struct nouveau_crtc *nv_crtc) in nv50_audio_disable() argument
472 (0x0100 << nv_crtc->index), in nv50_audio_disable()
482 struct nouveau_crtc *nv_crtc = nouveau_crtc(encoder->crtc); in nv50_audio_enable() local
496 (0x0100 << nv_crtc->index), in nv50_audio_enable()
513 nv50_hdmi_disable(struct drm_encoder *encoder, struct nouveau_crtc *nv_crtc) in nv50_hdmi_disable() argument
525 (0x0100 << nv_crtc->index), in nv50_hdmi_disable()
535 struct nouveau_crtc *nv_crtc = nouveau_crtc(encoder->crtc); in nv50_hdmi_enable() local
[all …]