Lines Matching refs:tv_norm

37 MODULE_PARM_DESC(tv_norm, "Default TV norm.\n"
43 module_param_named(tv_norm, nouveau_tv_norm, charp, 0400);
203 struct nv17_tv_norm_params *tv_norm = get_tv_norm(encoder); in nv17_tv_get_ld_modes() local
212 mode->clock = tv_norm->tv_enc_mode.vrefresh * in nv17_tv_get_ld_modes()
219 if (mode->hdisplay == tv_norm->tv_enc_mode.hdisplay && in nv17_tv_get_ld_modes()
220 mode->vdisplay == tv_norm->tv_enc_mode.vdisplay) in nv17_tv_get_ld_modes()
233 struct nv17_tv_norm_params *tv_norm = get_tv_norm(encoder); in nv17_tv_get_hd_modes() local
234 struct drm_display_mode *output_mode = &tv_norm->ctv_enc_mode.mode; in nv17_tv_get_hd_modes()
295 struct nv17_tv_norm_params *tv_norm = get_tv_norm(encoder); in nv17_tv_get_modes() local
297 if (tv_norm->kind == CTV_ENC_MODE) in nv17_tv_get_modes()
306 struct nv17_tv_norm_params *tv_norm = get_tv_norm(encoder); in nv17_tv_mode_valid() local
308 if (tv_norm->kind == CTV_ENC_MODE) { in nv17_tv_mode_valid()
310 &tv_norm->ctv_enc_mode.mode; in nv17_tv_mode_valid()
333 tv_norm->tv_enc_mode.vrefresh) > vsync_tolerance) in nv17_tv_mode_valid()
348 struct nv17_tv_norm_params *tv_norm = get_tv_norm(encoder); in nv17_tv_mode_fixup() local
353 if (tv_norm->kind == CTV_ENC_MODE) in nv17_tv_mode_fixup()
354 adjusted_mode->clock = tv_norm->ctv_enc_mode.mode.clock; in nv17_tv_mode_fixup()
367 struct nv17_tv_norm_params *tv_norm = get_tv_norm(encoder); in nv17_tv_dpms() local
378 if (tv_norm->kind == CTV_ENC_MODE) { in nv17_tv_dpms()
401 struct nv17_tv_norm_params *tv_norm = get_tv_norm(encoder); in nv17_tv_prepare() local
415 if (tv_norm->kind == CTV_ENC_MODE) { in nv17_tv_prepare()
432 if (tv_norm->kind == CTV_ENC_MODE) in nv17_tv_prepare()
441 if (tv_norm->kind == CTV_ENC_MODE) { in nv17_tv_prepare()
466 struct nv17_tv_norm_params *tv_norm = get_tv_norm(encoder); in nv17_tv_mode_set() local
475 if (tv_norm->kind == TV_ENC_MODE) { in nv17_tv_mode_set()
486 if (tv_norm->tv_enc_mode.vdisplay == 576) { in nv17_tv_mode_set()
490 } else if (tv_norm->tv_enc_mode.vdisplay == 480) { in nv17_tv_mode_set()
501 if (tv_norm->tv_enc_mode.vdisplay == 576) { in nv17_tv_mode_set()
507 } else if (tv_norm->tv_enc_mode.vdisplay == 480) { in nv17_tv_mode_set()
516 tv_regs->tv_enc[i] = tv_norm->tv_enc_mode.tv_enc[i]; in nv17_tv_mode_set()
520 &tv_norm->ctv_enc_mode.mode; in nv17_tv_mode_set()
531 regs->ctv_regs[i] = tv_norm->ctv_enc_mode.ctv_regs[i]; in nv17_tv_mode_set()
653 tv_enc->tv_norm = i; in nv17_tv_create_resources()
666 tv_enc->tv_norm); in nv17_tv_create_resources()
691 struct nv17_tv_norm_params *tv_norm = get_tv_norm(encoder); in nv17_tv_set_property() local
697 if (tv_norm->kind == CTV_ENC_MODE) in nv17_tv_set_property()
704 if (tv_norm->kind != TV_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()
729 tv_enc->tv_norm = val; in nv17_tv_set_property()
734 if (tv_norm->kind != TV_ENC_MODE) in nv17_tv_set_property()
801 tv_enc->tv_norm = TV_NORM_PAL; in nv17_tv_create()