Home
last modified time | relevance | path

Searched refs:nv_crtc (Results 1 - 24 of 24) sorted by relevance

/kernel/linux/linux-5.10/drivers/gpu/drm/nouveau/dispnv04/
H A 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 in nv04_cursor_set_pos()
38 nv04_cursor_set_offset(struct nouveau_crtc *nv_crtc, uint32_t offset) nv04_cursor_set_offset() argument
[all...]
H A Ddisp.c89 struct nouveau_crtc *nv_crtc = nouveau_crtc(crtc); in nv04_display_fini() local
90 if (nv_crtc->cursor.nvbo) { in nv04_display_fini()
91 if (nv_crtc->cursor.set_offset) in nv04_display_fini()
92 nouveau_bo_unmap(nv_crtc->cursor.nvbo); in nv04_display_fini()
93 nouveau_bo_unpin(nv_crtc->cursor.nvbo); in nv04_display_fini()
116 struct nouveau_crtc *nv_crtc = nouveau_crtc(crtc); in nv04_display_init() local
117 nv_crtc->save(&nv_crtc->base); in nv04_display_init()
143 struct nouveau_crtc *nv_crtc = nouveau_crtc(crtc); in nv04_display_init() local
144 if (!nv_crtc in nv04_display_init()
157 struct nouveau_crtc *nv_crtc = nouveau_crtc(crtc); nv04_display_init() local
173 struct nouveau_crtc *nv_crtc = nouveau_crtc(crtc); nv04_display_init() local
194 struct nouveau_crtc *nv_crtc; nv04_display_destroy() local
[all...]
H A Dcrtc.c65 struct nouveau_crtc *nv_crtc = nouveau_crtc(crtc); in nv_crtc_set_digital_vibrance() local
67 struct nv04_crtc_reg *regp = &nv04_display(dev)->mode_reg.crtc_reg[nv_crtc->index]; in nv_crtc_set_digital_vibrance()
69 regp->CRTC[NV_CIO_CRE_CSB] = nv_crtc->saturation = level; in nv_crtc_set_digital_vibrance()
70 if (nv_crtc->saturation && nv_gf4_disp_arch(crtc->dev)) { in nv_crtc_set_digital_vibrance()
72 regp->CRTC[NV_CIO_CRE_5B] = nv_crtc->saturation << 2; in nv_crtc_set_digital_vibrance()
80 struct nouveau_crtc *nv_crtc = nouveau_crtc(crtc); in nv_crtc_set_image_sharpening() local
82 struct nv04_crtc_reg *regp = &nv04_display(dev)->mode_reg.crtc_reg[nv_crtc->index]; in nv_crtc_set_image_sharpening()
84 nv_crtc->sharpness = level; in nv_crtc_set_image_sharpening()
88 NVWriteRAMDAC(crtc->dev, nv_crtc->index, NV_PRAMDAC_634, regp->ramdac_634); in nv_crtc_set_image_sharpening()
123 struct nouveau_crtc *nv_crtc in nv_crtc_calc_state_ext() local
177 struct nouveau_crtc *nv_crtc = nouveau_crtc(crtc); nv_crtc_dpms() local
240 struct nouveau_crtc *nv_crtc = nouveau_crtc(crtc); nv_crtc_mode_set_vga() local
465 struct nouveau_crtc *nv_crtc = nouveau_crtc(crtc); nv_crtc_mode_set_regs() local
615 struct nouveau_crtc *nv_crtc = nouveau_crtc(crtc); nv_crtc_swap_fbs() local
642 struct nouveau_crtc *nv_crtc = nouveau_crtc(crtc); nv_crtc_mode_set() local
667 struct nouveau_crtc *nv_crtc = nouveau_crtc(crtc); nv_crtc_save() local
688 struct nouveau_crtc *nv_crtc = nouveau_crtc(crtc); nv_crtc_restore() local
706 struct nouveau_crtc *nv_crtc = nouveau_crtc(crtc); nv_crtc_prepare() local
729 struct nouveau_crtc *nv_crtc = nouveau_crtc(crtc); nv_crtc_commit() local
750 struct nouveau_crtc *nv_crtc = nouveau_crtc(crtc); nv_crtc_destroy() local
771 struct nouveau_crtc *nv_crtc = nouveau_crtc(crtc); nv_crtc_gamma_load() local
795 struct nouveau_crtc *nv_crtc = nouveau_crtc(crtc); nv_crtc_disable() local
806 struct nouveau_crtc *nv_crtc = nouveau_crtc(crtc); nv_crtc_gamma_set() local
828 struct nouveau_crtc *nv_crtc = nouveau_crtc(crtc); nv04_crtc_do_mode_set_base() local
994 struct nouveau_crtc *nv_crtc = nouveau_crtc(crtc); nv04_crtc_cursor_set() local
1033 struct nouveau_crtc *nv_crtc = nouveau_crtc(crtc); nv04_crtc_cursor_move() local
1306 struct nouveau_crtc *nv_crtc = nv04_crtc_vblank_handler() local
1317 struct nouveau_crtc *nv_crtc; nv04_crtc_create() local
[all...]
H A 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 in nv04_dfp_update_fp_control()
287 struct nouveau_crtc *nv_crtc = nouveau_crtc(encoder->crtc); nv04_dfp_mode_set() local
451 struct nouveau_crtc *nv_crtc = nouveau_crtc(encoder->crtc); nv04_dfp_commit() local
[all...]
H A 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()
H A Doverlay.c124 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()
H A 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()
H A 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()
/kernel/linux/linux-6.6/drivers/gpu/drm/nouveau/dispnv04/
H A 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 in nv04_cursor_set_pos()
38 nv04_cursor_set_offset(struct nouveau_crtc *nv_crtc, uint32_t offset) nv04_cursor_set_offset() argument
[all...]
H A Ddisp.c89 struct nouveau_crtc *nv_crtc = nouveau_crtc(crtc); in nv04_display_fini() local
90 if (nv_crtc->cursor.nvbo) { in nv04_display_fini()
91 if (nv_crtc->cursor.set_offset) in nv04_display_fini()
92 nouveau_bo_unmap(nv_crtc->cursor.nvbo); in nv04_display_fini()
93 nouveau_bo_unpin(nv_crtc->cursor.nvbo); in nv04_display_fini()
116 struct nouveau_crtc *nv_crtc = nouveau_crtc(crtc); in nv04_display_init() local
117 nv_crtc->save(&nv_crtc->base); in nv04_display_init()
143 struct nouveau_crtc *nv_crtc = nouveau_crtc(crtc); in nv04_display_init() local
144 if (!nv_crtc in nv04_display_init()
157 struct nouveau_crtc *nv_crtc = nouveau_crtc(crtc); nv04_display_init() local
173 struct nouveau_crtc *nv_crtc = nouveau_crtc(crtc); nv04_display_init() local
194 struct nouveau_crtc *nv_crtc; nv04_display_destroy() local
[all...]
H A Dcrtc.c65 struct nouveau_crtc *nv_crtc = nouveau_crtc(crtc); in nv_crtc_set_digital_vibrance() local
67 struct nv04_crtc_reg *regp = &nv04_display(dev)->mode_reg.crtc_reg[nv_crtc->index]; in nv_crtc_set_digital_vibrance()
69 regp->CRTC[NV_CIO_CRE_CSB] = nv_crtc->saturation = level; in nv_crtc_set_digital_vibrance()
70 if (nv_crtc->saturation && nv_gf4_disp_arch(crtc->dev)) { in nv_crtc_set_digital_vibrance()
72 regp->CRTC[NV_CIO_CRE_5B] = nv_crtc->saturation << 2; in nv_crtc_set_digital_vibrance()
80 struct nouveau_crtc *nv_crtc = nouveau_crtc(crtc); in nv_crtc_set_image_sharpening() local
82 struct nv04_crtc_reg *regp = &nv04_display(dev)->mode_reg.crtc_reg[nv_crtc->index]; in nv_crtc_set_image_sharpening()
84 nv_crtc->sharpness = level; in nv_crtc_set_image_sharpening()
88 NVWriteRAMDAC(crtc->dev, nv_crtc->index, NV_PRAMDAC_634, regp->ramdac_634); in nv_crtc_set_image_sharpening()
123 struct nouveau_crtc *nv_crtc in nv_crtc_calc_state_ext() local
177 struct nouveau_crtc *nv_crtc = nouveau_crtc(crtc); nv_crtc_dpms() local
240 struct nouveau_crtc *nv_crtc = nouveau_crtc(crtc); nv_crtc_mode_set_vga() local
465 struct nouveau_crtc *nv_crtc = nouveau_crtc(crtc); nv_crtc_mode_set_regs() local
615 struct nouveau_crtc *nv_crtc = nouveau_crtc(crtc); nv_crtc_swap_fbs() local
642 struct nouveau_crtc *nv_crtc = nouveau_crtc(crtc); nv_crtc_mode_set() local
667 struct nouveau_crtc *nv_crtc = nouveau_crtc(crtc); nv_crtc_save() local
688 struct nouveau_crtc *nv_crtc = nouveau_crtc(crtc); nv_crtc_restore() local
706 struct nouveau_crtc *nv_crtc = nouveau_crtc(crtc); nv_crtc_prepare() local
729 struct nouveau_crtc *nv_crtc = nouveau_crtc(crtc); nv_crtc_commit() local
750 struct nouveau_crtc *nv_crtc = nouveau_crtc(crtc); nv_crtc_destroy() local
772 struct nouveau_crtc *nv_crtc = nouveau_crtc(crtc); nv_crtc_gamma_load() local
796 struct nouveau_crtc *nv_crtc = nouveau_crtc(crtc); nv_crtc_disable() local
807 struct nouveau_crtc *nv_crtc = nouveau_crtc(crtc); nv_crtc_gamma_set() local
829 struct nouveau_crtc *nv_crtc = nouveau_crtc(crtc); nv04_crtc_do_mode_set_base() local
987 struct nouveau_crtc *nv_crtc = nouveau_crtc(crtc); nv04_crtc_cursor_set() local
1026 struct nouveau_crtc *nv_crtc = nouveau_crtc(crtc); nv04_crtc_cursor_move() local
1278 struct nouveau_crtc *nv_crtc = container_of(event, struct nouveau_crtc, vblank); nv04_crtc_vblank_handler() local
1288 struct nouveau_crtc *nv_crtc; nv04_crtc_create() local
[all...]
H A 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 in nv04_dfp_update_fp_control()
287 struct nouveau_crtc *nv_crtc = nouveau_crtc(encoder->crtc); nv04_dfp_mode_set() local
451 struct nouveau_crtc *nv_crtc = nouveau_crtc(encoder->crtc); nv04_dfp_commit() local
[all...]
H A 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()
H A Doverlay.c124 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()
H A 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()
H A Dtvnv17.c577 struct nouveau_crtc *nv_crtc = nouveau_crtc(encoder->crtc); in nv17_tv_commit() local
604 nv_crtc->index, '@' + ffs(nv_encoder->dcb->or)); in nv17_tv_commit()
/kernel/linux/linux-6.6/drivers/gpu/drm/nouveau/dispnv50/
H A Ddisp.c487 struct nouveau_crtc *nv_crtc = nv50_outp_get_new_crtc(state, nv_encoder); in nv50_dac_atomic_enable() local
489 nv50_head_atom(drm_atomic_get_new_crtc_state(state, &nv_crtc->base)); in nv50_dac_atomic_enable()
493 switch (nv_crtc->index) { in nv50_dac_atomic_enable()
510 nv_encoder->crtc = &nv_crtc->base; in nv50_dac_atomic_enable()
606 struct nouveau_crtc *nv_crtc; in nv50_audio_component_get_eld() local
621 nv_crtc = nouveau_crtc(nv_encoder->crtc); in nv50_audio_component_get_eld()
623 if (!nv_crtc || nv_encoder->outp.or.id != port || nv_crtc->index != dev_id) in nv50_audio_component_get_eld()
720 nv50_audio_disable(struct drm_encoder *encoder, struct nouveau_crtc *nv_crtc) in nv50_audio_disable() argument
733 nvif_outp_hda_eld(&nv_encoder->outp, nv_crtc in nv50_audio_disable()
741 nv50_audio_enable(struct drm_encoder *encoder, struct nouveau_crtc *nv_crtc, struct nouveau_connector *nv_connector, struct drm_atomic_state *state, struct drm_display_mode *mode) nv50_audio_enable() argument
768 nv50_hdmi_enable(struct drm_encoder *encoder, struct nouveau_crtc *nv_crtc, struct nouveau_connector *nv_connector, struct drm_atomic_state *state, struct drm_display_mode *mode, bool hda) nv50_hdmi_enable() argument
1537 struct nouveau_crtc *nv_crtc = nouveau_crtc(nv_encoder->crtc); nv50_sor_atomic_disable() local
1576 struct nouveau_crtc *nv_crtc = nv50_outp_get_new_crtc(state, nv_encoder); nv50_sor_atomic_enable() local
1825 struct nouveau_crtc *nv_crtc = nv50_outp_get_new_crtc(state, nv_encoder); nv50_pior_atomic_enable() local
[all...]
H A Dhead.c560 struct nouveau_crtc *nv_crtc = container_of(event, struct nouveau_crtc, vblank); in nv50_head_vblank_handler() local
562 if (drm_crtc_handle_vblank(&nv_crtc->base)) in nv50_head_vblank_handler()
563 nv50_crc_handle_vblank(nv50_head(&nv_crtc->base)); in nv50_head_vblank_handler()
575 struct nouveau_crtc *nv_crtc; in nv50_head_create() local
608 nv_crtc = &head->base; in nv50_head_create()
609 crtc = &nv_crtc->base; in nv50_head_create()
632 false, &nv_crtc->vblank); in nv50_head_create()
/kernel/linux/linux-5.10/drivers/gpu/drm/nouveau/
H A Dnouveau_connector.h168 nouveau_crtc_connector_get(struct nouveau_crtc *nv_crtc) in nouveau_crtc_connector_get() argument
170 struct drm_device *dev = nv_crtc->base.dev; in nouveau_crtc_connector_get()
174 struct drm_crtc *crtc = to_drm_crtc(nv_crtc); in nouveau_crtc_connector_get()
H A Dnouveau_display.c52 struct nouveau_crtc *nv_crtc; in nouveau_display_vblank_enable() local
54 nv_crtc = nouveau_crtc(crtc); in nouveau_display_vblank_enable()
55 nvif_notify_get(&nv_crtc->vblank); in nouveau_display_vblank_enable()
63 struct nouveau_crtc *nv_crtc; in nouveau_display_vblank_disable() local
65 nv_crtc = nouveau_crtc(crtc); in nouveau_display_vblank_disable()
66 nvif_notify_put(&nv_crtc->vblank); in nouveau_display_vblank_disable()
/kernel/linux/linux-6.6/drivers/gpu/drm/nouveau/
H A Dnouveau_connector.h182 nouveau_crtc_connector_get(struct nouveau_crtc *nv_crtc) in nouveau_crtc_connector_get() argument
184 struct drm_device *dev = nv_crtc->base.dev; in nouveau_crtc_connector_get()
188 struct drm_crtc *crtc = to_drm_crtc(nv_crtc); in nouveau_crtc_connector_get()
H A Dnouveau_display.c51 struct nouveau_crtc *nv_crtc; in nouveau_display_vblank_enable() local
53 nv_crtc = nouveau_crtc(crtc); in nouveau_display_vblank_enable()
54 nvif_event_allow(&nv_crtc->vblank); in nouveau_display_vblank_enable()
62 struct nouveau_crtc *nv_crtc; in nouveau_display_vblank_disable() local
64 nv_crtc = nouveau_crtc(crtc); in nouveau_display_vblank_disable()
65 nvif_event_block(&nv_crtc->vblank); in nouveau_display_vblank_disable()
/kernel/linux/linux-5.10/drivers/gpu/drm/nouveau/dispnv50/
H A Dhead.c538 struct nouveau_crtc *nv_crtc = in nv50_head_vblank_handler() local
541 if (drm_crtc_handle_vblank(&nv_crtc->base)) in nv50_head_vblank_handler()
542 nv50_crc_handle_vblank(nv50_head(&nv_crtc->base)); in nv50_head_vblank_handler()
554 struct nouveau_crtc *nv_crtc; in nv50_head_create() local
587 nv_crtc = &head->base; in nv50_head_create()
588 crtc = &nv_crtc->base; in nv50_head_create()
609 .head = nv_crtc->index, in nv50_head_create()
613 &nv_crtc->vblank); in nv50_head_create()
H A Ddisp.c505 struct nouveau_crtc *nv_crtc = nouveau_crtc(encoder->crtc); in nv50_dac_enable() local
506 struct nv50_head_atom *asyh = nv50_head_atom(nv_crtc->base.state); in nv50_dac_enable()
510 switch (nv_crtc->index) { in nv50_dac_enable()
628 struct nouveau_crtc *nv_crtc; in nv50_audio_component_get_eld() local
650 nv_crtc = nouveau_crtc(encoder->crtc); in nv50_audio_component_get_eld()
651 if (!nv_crtc || nv_encoder->or != port || in nv50_audio_component_get_eld()
652 nv_crtc->index != dev_id) in nv50_audio_component_get_eld()
729 nv50_audio_disable(struct drm_encoder *encoder, struct nouveau_crtc *nv_crtc) in nv50_audio_disable() argument
742 (0x0100 << nv_crtc->index), in nv50_audio_disable()
752 nv_crtc in nv50_audio_disable()
761 struct nouveau_crtc *nv_crtc = nouveau_crtc(encoder->crtc); nv50_audio_enable() local
796 nv50_hdmi_disable(struct drm_encoder *encoder, struct nouveau_crtc *nv_crtc) nv50_hdmi_disable() argument
820 struct nouveau_crtc *nv_crtc = nouveau_crtc(encoder->crtc); nv50_hdmi_enable() local
1652 struct nouveau_crtc *nv_crtc = nouveau_crtc(nv_encoder->crtc); nv50_sor_disable() local
1683 struct nouveau_crtc *nv_crtc = nouveau_crtc(encoder->crtc); nv50_sor_enable() local
1922 struct nouveau_crtc *nv_crtc = nouveau_crtc(encoder->crtc); nv50_pior_enable() local
[all...]

Completed in 22 milliseconds