Home
last modified time | relevance | path

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

/Linux-v4.19/drivers/gpu/drm/nouveau/
Dnouveau_dp.c60 nouveau_dp_detect(struct nouveau_encoder *nv_encoder) in nouveau_dp_detect() argument
62 struct drm_device *dev = nv_encoder->base.base.dev; in nouveau_dp_detect()
68 aux = nv_encoder->aux; in nouveau_dp_detect()
76 nv_encoder->dp.link_bw = 27000 * dpcd[1]; in nouveau_dp_detect()
77 nv_encoder->dp.link_nr = dpcd[2] & DP_MAX_LANE_COUNT_MASK; in nouveau_dp_detect()
80 nv_encoder->dp.link_nr, nv_encoder->dp.link_bw, dpcd[0]); in nouveau_dp_detect()
82 nv_encoder->dcb->dpconf.link_nr, in nouveau_dp_detect()
83 nv_encoder->dcb->dpconf.link_bw); in nouveau_dp_detect()
85 if (nv_encoder->dcb->dpconf.link_nr < nv_encoder->dp.link_nr) in nouveau_dp_detect()
86 nv_encoder->dp.link_nr = nv_encoder->dcb->dpconf.link_nr; in nouveau_dp_detect()
[all …]
Dnouveau_connector.c366 struct nouveau_encoder *nv_encoder; in find_encoder() local
371 nv_encoder = nouveau_encoder(enc); in find_encoder()
374 (nv_encoder->dcb && nv_encoder->dcb->type == type)) in find_encoder()
375 return nv_encoder; in find_encoder()
412 struct nouveau_encoder *nv_encoder = NULL, *found = NULL; in nouveau_connector_ddc_detect() local
418 nv_encoder = nouveau_encoder(encoder); in nouveau_connector_ddc_detect()
420 switch (nv_encoder->dcb->type) { in nouveau_connector_ddc_detect()
422 ret = nouveau_dp_detect(nv_encoder); in nouveau_connector_ddc_detect()
426 found = nv_encoder; in nouveau_connector_ddc_detect()
434 if (!nv_encoder->i2c) in nouveau_connector_ddc_detect()
[all …]
Dnouveau_backlight.c134 struct nouveau_encoder *nv_encoder = bl_get_data(bd); in nv50_get_intensity() local
135 struct nouveau_drm *drm = nouveau_drm(nv_encoder->base.base.dev); in nv50_get_intensity()
137 int or = ffs(nv_encoder->dcb->or) - 1; in nv50_get_intensity()
149 struct nouveau_encoder *nv_encoder = bl_get_data(bd); in nv50_set_intensity() local
150 struct nouveau_drm *drm = nouveau_drm(nv_encoder->base.base.dev); in nv50_set_intensity()
152 int or = ffs(nv_encoder->dcb->or) - 1; in nv50_set_intensity()
170 struct nouveau_encoder *nv_encoder = bl_get_data(bd); in nva3_get_intensity() local
171 struct nouveau_drm *drm = nouveau_drm(nv_encoder->base.base.dev); in nva3_get_intensity()
173 int or = ffs(nv_encoder->dcb->or) - 1; in nva3_get_intensity()
188 struct nouveau_encoder *nv_encoder = bl_get_data(bd); in nva3_set_intensity() local
[all …]
Dnouveau_connector.h67 const struct nouveau_encoder *nv_encoder; in nouveau_connector_is_mst() local
73 nv_encoder = find_encoder(connector, DCB_OUTPUT_ANY); in nouveau_connector_is_mst()
74 if (!nv_encoder) in nouveau_connector_is_mst()
77 encoder = &nv_encoder->base.base; in nouveau_connector_is_mst()
/Linux-v4.19/drivers/gpu/drm/nouveau/dispnv04/
Ddfp.c186 struct nouveau_encoder *nv_encoder = nouveau_encoder(encoder); in nv04_dfp_mode_fixup() local
187 struct nouveau_connector *nv_connector = nouveau_encoder_connector_get(nv_encoder); in nv04_dfp_mode_fixup()
193 nv_encoder->mode = *adjusted_mode; in nv04_dfp_mode_fixup()
196 nv_encoder->mode = *nv_connector->native_mode; in nv04_dfp_mode_fixup()
204 struct nouveau_encoder *nv_encoder, int head) in nv04_dfp_prepare_sel_clk() argument
207 uint32_t bits1618 = nv_encoder->dcb->or & DCB_OUTPUT_A ? 0x10000 : 0x40000; in nv04_dfp_prepare_sel_clk()
209 if (nv_encoder->dcb->location != DCB_LOC_ON_CHIP) in nv04_dfp_prepare_sel_clk()
236 if (nv_encoder->dcb->type == DCB_OUTPUT_LVDS && nv04_display(dev)->saved_reg.sel_clk & 0xf0) { in nv04_dfp_prepare_sel_clk()
246 struct nouveau_encoder *nv_encoder = nouveau_encoder(encoder); in nv04_dfp_prepare() local
256 nv04_dfp_prepare_sel_clk(dev, nv_encoder, head); in nv04_dfp_prepare()
[all …]
Dtvnv04.c79 struct nouveau_encoder *nv_encoder = nouveau_encoder(encoder); in nv04_tv_dpms() local
84 mode, nv_encoder->dcb->index); in nv04_tv_dpms()
167 struct nouveau_encoder *nv_encoder = nouveau_encoder(encoder); in nv04_tv_commit() local
176 nouveau_encoder_connector_get(nv_encoder)->base.name, in nv04_tv_commit()
177 nv_crtc->index, '@' + ffs(nv_encoder->dcb->or)); in nv04_tv_commit()
205 struct nouveau_encoder *nv_encoder; in nv04_tv_create() local
219 nv_encoder = kzalloc(sizeof(*nv_encoder), GFP_KERNEL); in nv04_tv_create()
220 if (!nv_encoder) in nv04_tv_create()
224 encoder = to_drm_encoder(nv_encoder); in nv04_tv_create()
230 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 nouveau_encoder_connector_get(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.c42 struct nouveau_encoder *nv_encoder; in nv04_display_create() local
107 struct nouveau_encoder *nv_encoder = nouveau_encoder(encoder); in nv04_display_create() local
109 nvkm_i2c_bus_find(i2c, nv_encoder->dcb->i2c_index); in nv04_display_create()
110 nv_encoder->i2c = bus ? &bus->i2c : NULL; in nv04_display_create()
117 list_for_each_entry(nv_encoder, &dev->mode_config.encoder_list, base.base.head) in nv04_display_create()
118 nv_encoder->enc_save(&nv_encoder->base.base); in nv04_display_create()
Dcrtc.c257 struct nouveau_encoder *nv_encoder = nouveau_encoder(encoder); in nv_crtc_mode_set_vga() local
260 (nv_encoder->dcb->type == DCB_OUTPUT_LVDS || in nv_crtc_mode_set_vga()
261 nv_encoder->dcb->type == DCB_OUTPUT_TMDS)) in nv_crtc_mode_set_vga()
469 struct nouveau_encoder *nv_encoder = nouveau_encoder(encoder); in nv_crtc_mode_set_regs() local
475 if (nv_encoder->dcb->type == DCB_OUTPUT_LVDS) in nv_crtc_mode_set_regs()
477 if (nv_encoder->dcb->type == DCB_OUTPUT_TV) in nv_crtc_mode_set_regs()
479 if (nv_encoder->dcb->type == DCB_OUTPUT_TMDS) in nv_crtc_mode_set_regs()
481 if (nv_encoder->dcb->location != DCB_LOC_ON_CHIP && digital) in nv_crtc_mode_set_regs()
Dtvnv17.c577 struct nouveau_encoder *nv_encoder = nouveau_encoder(encoder); in nv17_tv_commit() local
602 nouveau_encoder_connector_get(nv_encoder)->base.name, in nv17_tv_commit()
603 nv_crtc->index, '@' + ffs(nv_encoder->dcb->or)); in nv17_tv_commit()
/Linux-v4.19/drivers/gpu/drm/nouveau/dispnv50/
Ddisp.c252 nv50_outp_release(struct nouveau_encoder *nv_encoder) in nv50_outp_release() argument
254 struct nv50_disp *disp = nv50_disp(nv_encoder->base.base.dev); in nv50_outp_release()
260 .base.hasht = nv_encoder->dcb->hasht, in nv50_outp_release()
261 .base.hashm = nv_encoder->dcb->hashm, in nv50_outp_release()
265 nv_encoder->or = -1; in nv50_outp_release()
266 nv_encoder->link = 0; in nv50_outp_release()
270 nv50_outp_acquire(struct nouveau_encoder *nv_encoder) in nv50_outp_acquire() argument
272 struct nouveau_drm *drm = nouveau_drm(nv_encoder->base.base.dev); in nv50_outp_acquire()
280 .base.hasht = nv_encoder->dcb->hasht, in nv50_outp_acquire()
281 .base.hashm = nv_encoder->dcb->hashm, in nv50_outp_acquire()
[all …]