/linux-6.6.21/drivers/gpu/drm/nouveau/ |
D | nouveau_dp.c | 101 struct nouveau_encoder *nv_encoder) in nouveau_dp_detect() argument 103 struct drm_device *dev = nv_encoder->base.base.dev; in nouveau_dp_detect() 106 struct nv50_mstm *mstm = nv_encoder->dp.mstm; in nouveau_dp_detect() 108 u8 *dpcd = nv_encoder->dp.dpcd; in nouveau_dp_detect() 118 mutex_lock(&nv_encoder->dp.hpd_irq_lock); in nouveau_dp_detect() 143 nvif_outp_dp_aux_pwr(&nv_encoder->outp, false); in nouveau_dp_detect() 146 nvif_outp_dp_aux_pwr(&nv_encoder->outp, true); in nouveau_dp_detect() 148 status = nouveau_dp_probe_dpcd(nv_connector, nv_encoder); in nouveau_dp_detect() 150 nvif_outp_dp_aux_pwr(&nv_encoder->outp, false); in nouveau_dp_detect() 160 nv_encoder->dp.link_bw = 27000 * dpcd[DP_MAX_LINK_RATE]; in nouveau_dp_detect() [all …]
|
D | nouveau_connector.c | 380 struct nouveau_encoder *nv_encoder; in find_encoder() local 384 nv_encoder = nouveau_encoder(enc); in find_encoder() 387 (nv_encoder->dcb && nv_encoder->dcb->type == type)) in find_encoder() 388 return nv_encoder; in find_encoder() 416 struct nouveau_encoder *nv_encoder = NULL, *found = NULL; in nouveau_connector_ddc_detect() local 422 nv_encoder = nouveau_encoder(encoder); in nouveau_connector_ddc_detect() 424 switch (nv_encoder->dcb->type) { in nouveau_connector_ddc_detect() 427 nv_encoder); in nouveau_connector_ddc_detect() 431 found = nv_encoder; in nouveau_connector_ddc_detect() 439 if (!nv_encoder->i2c) in nouveau_connector_ddc_detect() [all …]
|
D | nouveau_backlight.c | 66 struct nouveau_encoder *nv_encoder = bl_get_data(bd); in nv40_get_intensity() local 67 struct nouveau_drm *drm = nouveau_drm(nv_encoder->base.base.dev); in nv40_get_intensity() 78 struct nouveau_encoder *nv_encoder = bl_get_data(bd); in nv40_set_intensity() local 79 struct nouveau_drm *drm = nouveau_drm(nv_encoder->base.base.dev); in nv40_set_intensity() 115 struct nouveau_encoder *nv_encoder = bl_get_data(bd); in nv50_get_intensity() local 116 struct nouveau_drm *drm = nouveau_drm(nv_encoder->base.base.dev); in nv50_get_intensity() 118 int or = ffs(nv_encoder->dcb->or) - 1; in nv50_get_intensity() 130 struct nouveau_encoder *nv_encoder = bl_get_data(bd); in nv50_set_intensity() local 131 struct nouveau_drm *drm = nouveau_drm(nv_encoder->base.base.dev); in nv50_set_intensity() 133 int or = ffs(nv_encoder->dcb->or) - 1; in nv50_set_intensity() [all …]
|
D | nouveau_connector.h | 163 const struct nouveau_encoder *nv_encoder; in nouveau_connector_is_mst() local 169 nv_encoder = find_encoder(connector, DCB_OUTPUT_ANY); in nouveau_connector_is_mst() 170 if (!nv_encoder) in nouveau_connector_is_mst() 173 encoder = &nv_encoder->base.base; in nouveau_connector_is_mst()
|
/linux-6.6.21/drivers/gpu/drm/nouveau/dispnv04/ |
D | dfp.c | 186 struct nouveau_encoder *nv_encoder = nouveau_encoder(encoder); in nv04_dfp_mode_fixup() local 188 nv04_encoder_get_connector(nv_encoder); in nv04_dfp_mode_fixup() 194 nv_encoder->mode = *adjusted_mode; in nv04_dfp_mode_fixup() 197 nv_encoder->mode = *nv_connector->native_mode; in nv04_dfp_mode_fixup() 205 struct nouveau_encoder *nv_encoder, int head) in nv04_dfp_prepare_sel_clk() argument 208 uint32_t bits1618 = nv_encoder->dcb->or & DCB_OUTPUT_A ? 0x10000 : 0x40000; in nv04_dfp_prepare_sel_clk() 210 if (nv_encoder->dcb->location != DCB_LOC_ON_CHIP) in nv04_dfp_prepare_sel_clk() 237 if (nv_encoder->dcb->type == DCB_OUTPUT_LVDS && nv04_display(dev)->saved_reg.sel_clk & 0xf0) { in nv04_dfp_prepare_sel_clk() 247 struct nouveau_encoder *nv_encoder = nouveau_encoder(encoder); in nv04_dfp_prepare() local 257 nv04_dfp_prepare_sel_clk(dev, nv_encoder, head); in nv04_dfp_prepare() [all …]
|
D | tvnv04.c | 78 struct nouveau_encoder *nv_encoder = nouveau_encoder(encoder); in nv04_tv_dpms() local 83 mode, nv_encoder->dcb->index); in nv04_tv_dpms() 166 struct nouveau_encoder *nv_encoder = nouveau_encoder(encoder); in nv04_tv_commit() local 175 nv04_encoder_get_connector(nv_encoder)->base.name, in nv04_tv_commit() 176 nv_crtc->index, '@' + ffs(nv_encoder->dcb->or)); in nv04_tv_commit() 204 struct nouveau_encoder *nv_encoder; in nv04_tv_create() local 218 nv_encoder = kzalloc(sizeof(*nv_encoder), GFP_KERNEL); in nv04_tv_create() 219 if (!nv_encoder) in nv04_tv_create() 223 encoder = to_drm_encoder(nv_encoder); in nv04_tv_create() 229 nv_encoder->enc_save = drm_i2c_encoder_save; in nv04_tv_create() [all …]
|
D | dac.c | 414 struct nouveau_encoder *nv_encoder = nouveau_encoder(encoder); in nv04_dac_commit() local 422 nv04_encoder_get_connector(nv_encoder)->base.name, in nv04_dac_commit() 423 nv_crtc->index, '@' + ffs(nv_encoder->dcb->or)); in nv04_dac_commit() 462 struct nouveau_encoder *nv_encoder = nouveau_encoder(encoder); in nv04_dac_dpms() local 465 if (nv_encoder->last_dpms == mode) in nv04_dac_dpms() 467 nv_encoder->last_dpms = mode; in nv04_dac_dpms() 470 mode, nv_encoder->dcb->index); in nv04_dac_dpms() 477 struct nouveau_encoder *nv_encoder = nouveau_encoder(encoder); in nv04_dac_save() local 481 nv_encoder->restore.output = NVReadRAMDAC(dev, 0, NV_PRAMDAC_DACCLK + in nv04_dac_save() 487 struct nouveau_encoder *nv_encoder = nouveau_encoder(encoder); in nv04_dac_restore() local [all …]
|
D | disp.c | 221 struct nouveau_encoder *nv_encoder; in nv04_display_create() local 296 struct nouveau_encoder *nv_encoder = nouveau_encoder(encoder); in nv04_display_create() local 298 nvkm_i2c_bus_find(i2c, nv_encoder->dcb->i2c_index); in nv04_display_create() 299 nv_encoder->i2c = bus ? &bus->i2c : NULL; in nv04_display_create() 306 list_for_each_entry(nv_encoder, &dev->mode_config.encoder_list, base.base.head) in nv04_display_create() 307 nv_encoder->enc_save(&nv_encoder->base.base); in nv04_display_create()
|
D | crtc.c | 262 struct nouveau_encoder *nv_encoder = nouveau_encoder(encoder); in nv_crtc_mode_set_vga() local 265 (nv_encoder->dcb->type == DCB_OUTPUT_LVDS || in nv_crtc_mode_set_vga() 266 nv_encoder->dcb->type == DCB_OUTPUT_TMDS)) in nv_crtc_mode_set_vga() 474 struct nouveau_encoder *nv_encoder = nouveau_encoder(encoder); in nv_crtc_mode_set_regs() local 480 if (nv_encoder->dcb->type == DCB_OUTPUT_LVDS) in nv_crtc_mode_set_regs() 482 if (nv_encoder->dcb->type == DCB_OUTPUT_TV) in nv_crtc_mode_set_regs() 484 if (nv_encoder->dcb->type == DCB_OUTPUT_TMDS) in nv_crtc_mode_set_regs() 486 if (nv_encoder->dcb->location != DCB_LOC_ON_CHIP && digital) in nv_crtc_mode_set_regs()
|
D | disp.h | 102 nv04_encoder_get_connector(struct nouveau_encoder *nv_encoder);
|
D | tvnv17.c | 578 struct nouveau_encoder *nv_encoder = nouveau_encoder(encoder); in nv17_tv_commit() local 603 nv04_encoder_get_connector(nv_encoder)->base.name, in nv17_tv_commit() 604 nv_crtc->index, '@' + ffs(nv_encoder->dcb->or)); in nv17_tv_commit()
|
/linux-6.6.21/drivers/gpu/drm/nouveau/dispnv50/ |
D | disp.c | 371 struct nouveau_encoder *nv_encoder = nouveau_encoder(encoder); in nv50_outp_atomic_fix_depth() local 375 switch (nv_encoder->dcb->type) { in nv50_outp_atomic_fix_depth() 377 max_rate = nv_encoder->dp.link_nr * nv_encoder->dp.link_bw; in nv50_outp_atomic_fix_depth() 474 struct nouveau_encoder *nv_encoder = nouveau_encoder(encoder); in nv50_dac_atomic_disable() local 478 core->func->dac->ctrl(core, nv_encoder->outp.or.id, ctrl, NULL); in nv50_dac_atomic_disable() 479 nv_encoder->crtc = NULL; in nv50_dac_atomic_disable() 480 nvif_outp_release(&nv_encoder->outp); in nv50_dac_atomic_disable() 486 struct nouveau_encoder *nv_encoder = nouveau_encoder(encoder); in nv50_dac_atomic_enable() local 487 struct nouveau_crtc *nv_crtc = nv50_outp_get_new_crtc(state, nv_encoder); in nv50_dac_atomic_enable() 505 nvif_outp_acquire_rgb_crt(&nv_encoder->outp); in nv50_dac_atomic_enable() [all …]
|