Home
last modified time | relevance | path

Searched refs:nv_encoder (Results 1 – 12 of 12) sorted by relevance

/linux-6.1.9/drivers/gpu/drm/nouveau/dispnv04/
Ddfp.c186 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 …]
Dtvnv04.c78 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 …]
Ddac.c414 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 …]
Ddisp.c221 struct nouveau_encoder *nv_encoder; in nv04_display_create() local
293 struct nouveau_encoder *nv_encoder = nouveau_encoder(encoder); in nv04_display_create() local
295 nvkm_i2c_bus_find(i2c, nv_encoder->dcb->i2c_index); in nv04_display_create()
296 nv_encoder->i2c = bus ? &bus->i2c : NULL; in nv04_display_create()
303 list_for_each_entry(nv_encoder, &dev->mode_config.encoder_list, base.base.head) in nv04_display_create()
304 nv_encoder->enc_save(&nv_encoder->base.base); in nv04_display_create()
Dcrtc.c262 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()
Ddisp.h99 nv04_encoder_get_connector(struct nouveau_encoder *nv_encoder);
Dtvnv17.c577 struct nouveau_encoder *nv_encoder = nouveau_encoder(encoder); in nv17_tv_commit() local
602 nv04_encoder_get_connector(nv_encoder)->base.name, in nv17_tv_commit()
603 nv_crtc->index, '@' + ffs(nv_encoder->dcb->or)); in nv17_tv_commit()
/linux-6.1.9/drivers/gpu/drm/nouveau/
Dnouveau_dp.c102 struct nouveau_encoder *nv_encoder) in nouveau_dp_detect() argument
104 struct drm_device *dev = nv_encoder->base.base.dev; in nouveau_dp_detect()
107 struct nv50_mstm *mstm = nv_encoder->dp.mstm; in nouveau_dp_detect()
109 u8 *dpcd = nv_encoder->dp.dpcd; in nouveau_dp_detect()
119 mutex_lock(&nv_encoder->dp.hpd_irq_lock); in nouveau_dp_detect()
146 status = nouveau_dp_probe_dpcd(nv_connector, nv_encoder); in nouveau_dp_detect()
156 nv_encoder->dp.link_bw = 27000 * dpcd[DP_MAX_LINK_RATE]; in nouveau_dp_detect()
157 nv_encoder->dp.link_nr = in nouveau_dp_detect()
169 if (val && (i == 0 || val > nv_encoder->dp.link_bw)) in nouveau_dp_detect()
170 nv_encoder->dp.link_bw = val; in nouveau_dp_detect()
[all …]
Dnouveau_connector.c381 struct nouveau_encoder *nv_encoder; in find_encoder() local
385 nv_encoder = nouveau_encoder(enc); in find_encoder()
388 (nv_encoder->dcb && nv_encoder->dcb->type == type)) in find_encoder()
389 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 …]
Dnouveau_backlight.c65 struct nouveau_encoder *nv_encoder = bl_get_data(bd); in nv40_get_intensity() local
66 struct nouveau_drm *drm = nouveau_drm(nv_encoder->base.base.dev); in nv40_get_intensity()
77 struct nouveau_encoder *nv_encoder = bl_get_data(bd); in nv40_set_intensity() local
78 struct nouveau_drm *drm = nouveau_drm(nv_encoder->base.base.dev); in nv40_set_intensity()
114 struct nouveau_encoder *nv_encoder = bl_get_data(bd); in nv50_get_intensity() local
115 struct nouveau_drm *drm = nouveau_drm(nv_encoder->base.base.dev); in nv50_get_intensity()
117 int or = ffs(nv_encoder->dcb->or) - 1; in nv50_get_intensity()
129 struct nouveau_encoder *nv_encoder = bl_get_data(bd); in nv50_set_intensity() local
130 struct nouveau_drm *drm = nouveau_drm(nv_encoder->base.base.dev); in nv50_set_intensity()
132 int or = ffs(nv_encoder->dcb->or) - 1; in nv50_set_intensity()
[all …]
Dnouveau_connector.h160 const struct nouveau_encoder *nv_encoder; in nouveau_connector_is_mst() local
166 nv_encoder = find_encoder(connector, DCB_OUTPUT_ANY); in nouveau_connector_is_mst()
167 if (!nv_encoder) in nouveau_connector_is_mst()
170 encoder = &nv_encoder->base.base; in nouveau_connector_is_mst()
/linux-6.1.9/drivers/gpu/drm/nouveau/dispnv50/
Ddisp.c321 nv50_outp_release(struct nouveau_encoder *nv_encoder) in nv50_outp_release() argument
323 struct nv50_disp *disp = nv50_disp(nv_encoder->base.base.dev); in nv50_outp_release()
329 .base.hasht = nv_encoder->dcb->hasht, in nv50_outp_release()
330 .base.hashm = nv_encoder->dcb->hashm, in nv50_outp_release()
334 nv_encoder->or = -1; in nv50_outp_release()
335 nv_encoder->link = 0; in nv50_outp_release()
339 nv50_outp_acquire(struct nouveau_encoder *nv_encoder, bool hda) in nv50_outp_acquire() argument
341 struct nouveau_drm *drm = nouveau_drm(nv_encoder->base.base.dev); in nv50_outp_acquire()
349 .base.hasht = nv_encoder->dcb->hasht, in nv50_outp_acquire()
350 .base.hashm = nv_encoder->dcb->hashm, in nv50_outp_acquire()
[all …]