Home
last modified time | relevance | path

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

/kernel/linux/linux-5.10/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()
/kernel/linux/linux-5.10/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()
136 status = nouveau_dp_probe_dpcd(nv_connector, nv_encoder); in nouveau_dp_detect()
146 nv_encoder->dp.link_bw = 27000 * dpcd[DP_MAX_LINK_RATE]; in nouveau_dp_detect()
147 nv_encoder->dp.link_nr = in nouveau_dp_detect()
151 nv_encoder->dp.link_nr, nv_encoder->dp.link_bw, in nouveau_dp_detect()
154 nv_encoder->dcb->dpconf.link_nr, in nouveau_dp_detect()
[all …]
Dnouveau_backlight.c68 struct nouveau_encoder *nv_encoder = bl_get_data(bd); in nv40_get_intensity() local
69 struct nouveau_drm *drm = nouveau_drm(nv_encoder->base.base.dev); in nv40_get_intensity()
80 struct nouveau_encoder *nv_encoder = bl_get_data(bd); in nv40_set_intensity() local
81 struct nouveau_drm *drm = nouveau_drm(nv_encoder->base.base.dev); in nv40_set_intensity()
118 struct nouveau_encoder *nv_encoder = bl_get_data(bd); in nv50_get_intensity() local
119 struct nouveau_drm *drm = nouveau_drm(nv_encoder->base.base.dev); in nv50_get_intensity()
121 int or = ffs(nv_encoder->dcb->or) - 1; in nv50_get_intensity()
133 struct nouveau_encoder *nv_encoder = bl_get_data(bd); in nv50_set_intensity() local
134 struct nouveau_drm *drm = nouveau_drm(nv_encoder->base.base.dev); in nv50_set_intensity()
136 int or = ffs(nv_encoder->dcb->or) - 1; in nv50_set_intensity()
[all …]
Dnouveau_connector.c380 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()
414 struct nouveau_encoder *nv_encoder = NULL, *found = NULL; in nouveau_connector_ddc_detect() local
420 nv_encoder = nouveau_encoder(encoder); in nouveau_connector_ddc_detect()
422 switch (nv_encoder->dcb->type) { in nouveau_connector_ddc_detect()
425 nv_encoder); in nouveau_connector_ddc_detect()
429 found = nv_encoder; in nouveau_connector_ddc_detect()
437 if (!nv_encoder->i2c) in nouveau_connector_ddc_detect()
[all …]
Dnouveau_connector.h149 const struct nouveau_encoder *nv_encoder; in nouveau_connector_is_mst() local
155 nv_encoder = find_encoder(connector, DCB_OUTPUT_ANY); in nouveau_connector_is_mst()
156 if (!nv_encoder) in nouveau_connector_is_mst()
159 encoder = &nv_encoder->base.base; in nouveau_connector_is_mst()
/kernel/linux/linux-5.10/drivers/gpu/drm/nouveau/dispnv50/
Ddisp.c307 nv50_outp_release(struct nouveau_encoder *nv_encoder) in nv50_outp_release() argument
309 struct nv50_disp *disp = nv50_disp(nv_encoder->base.base.dev); in nv50_outp_release()
315 .base.hasht = nv_encoder->dcb->hasht, in nv50_outp_release()
316 .base.hashm = nv_encoder->dcb->hashm, in nv50_outp_release()
320 nv_encoder->or = -1; in nv50_outp_release()
321 nv_encoder->link = 0; in nv50_outp_release()
325 nv50_outp_acquire(struct nouveau_encoder *nv_encoder, bool hda) in nv50_outp_acquire() argument
327 struct nouveau_drm *drm = nouveau_drm(nv_encoder->base.base.dev); in nv50_outp_acquire()
335 .base.hasht = nv_encoder->dcb->hasht, in nv50_outp_acquire()
336 .base.hashm = nv_encoder->dcb->hashm, in nv50_outp_acquire()
[all …]