Lines Matching refs:tv_norm
38 MODULE_PARM_DESC(tv_norm, "Default TV norm.\n"
44 module_param_named(tv_norm, nouveau_tv_norm, charp, 0400);
204 struct nv17_tv_norm_params *tv_norm = get_tv_norm(encoder); in nv17_tv_get_ld_modes() local
215 mode->clock = tv_norm->tv_enc_mode.vrefresh * in nv17_tv_get_ld_modes()
222 if (mode->hdisplay == tv_norm->tv_enc_mode.hdisplay && in nv17_tv_get_ld_modes()
223 mode->vdisplay == tv_norm->tv_enc_mode.vdisplay) in nv17_tv_get_ld_modes()
236 struct nv17_tv_norm_params *tv_norm = get_tv_norm(encoder); in nv17_tv_get_hd_modes() local
237 struct drm_display_mode *output_mode = &tv_norm->ctv_enc_mode.mode; in nv17_tv_get_hd_modes()
302 struct nv17_tv_norm_params *tv_norm = get_tv_norm(encoder); in nv17_tv_get_modes() local
304 if (tv_norm->kind == CTV_ENC_MODE) in nv17_tv_get_modes()
313 struct nv17_tv_norm_params *tv_norm = get_tv_norm(encoder); in nv17_tv_mode_valid() local
315 if (tv_norm->kind == CTV_ENC_MODE) { in nv17_tv_mode_valid()
317 &tv_norm->ctv_enc_mode.mode; in nv17_tv_mode_valid()
340 tv_norm->tv_enc_mode.vrefresh) > vsync_tolerance) in nv17_tv_mode_valid()
355 struct nv17_tv_norm_params *tv_norm = get_tv_norm(encoder); in nv17_tv_mode_fixup() local
360 if (tv_norm->kind == CTV_ENC_MODE) in nv17_tv_mode_fixup()
361 adjusted_mode->clock = tv_norm->ctv_enc_mode.mode.clock; in nv17_tv_mode_fixup()
374 struct nv17_tv_norm_params *tv_norm = get_tv_norm(encoder); in nv17_tv_dpms() local
385 if (tv_norm->kind == CTV_ENC_MODE) { in nv17_tv_dpms()
408 struct nv17_tv_norm_params *tv_norm = get_tv_norm(encoder); in nv17_tv_prepare() local
422 if (tv_norm->kind == CTV_ENC_MODE) { in nv17_tv_prepare()
439 if (tv_norm->kind == CTV_ENC_MODE) in nv17_tv_prepare()
448 if (tv_norm->kind == CTV_ENC_MODE) { in nv17_tv_prepare()
473 struct nv17_tv_norm_params *tv_norm = get_tv_norm(encoder); in nv17_tv_mode_set() local
482 if (tv_norm->kind == TV_ENC_MODE) { in nv17_tv_mode_set()
493 if (tv_norm->tv_enc_mode.vdisplay == 576) { in nv17_tv_mode_set()
497 } else if (tv_norm->tv_enc_mode.vdisplay == 480) { in nv17_tv_mode_set()
508 if (tv_norm->tv_enc_mode.vdisplay == 576) { in nv17_tv_mode_set()
514 } else if (tv_norm->tv_enc_mode.vdisplay == 480) { in nv17_tv_mode_set()
523 tv_regs->tv_enc[i] = tv_norm->tv_enc_mode.tv_enc[i]; in nv17_tv_mode_set()
527 &tv_norm->ctv_enc_mode.mode; in nv17_tv_mode_set()
538 regs->ctv_regs[i] = tv_norm->ctv_enc_mode.ctv_regs[i]; in nv17_tv_mode_set()
660 tv_enc->tv_norm = i; in nv17_tv_create_resources()
673 tv_enc->tv_norm); in nv17_tv_create_resources()
698 struct nv17_tv_norm_params *tv_norm = get_tv_norm(encoder); in nv17_tv_set_property() local
704 if (tv_norm->kind == CTV_ENC_MODE) in nv17_tv_set_property()
711 if (tv_norm->kind != TV_ENC_MODE) in nv17_tv_set_property()
718 if (tv_norm->kind != TV_ENC_MODE) in nv17_tv_set_property()
725 if (tv_norm->kind != TV_ENC_MODE) in nv17_tv_set_property()
736 tv_enc->tv_norm = val; in nv17_tv_set_property()
741 if (tv_norm->kind != TV_ENC_MODE) in nv17_tv_set_property()
808 tv_enc->tv_norm = TV_NORM_PAL; in nv17_tv_create()