Lines Matching refs:tv_mode
357 struct tv_mode {
421 static const struct tv_mode tv_modes[] = {
877 static const struct tv_mode *
883 const struct tv_mode *tv_mode = &tv_modes[i];
885 if (!strcmp(tv_format, tv_mode->name))
886 return tv_mode;
891 static const struct tv_mode *
902 const struct tv_mode *tv_mode = intel_tv_mode_find(intel_tv);
905 if (tv_mode && abs(tv_mode->refresh - drm_mode_vrefresh(mode) * 1000)
918 const struct tv_mode *tv_mode = intel_tv_mode_find(intel_tv);
920 if (!tv_mode)
923 pipe_config->adjusted_mode.clock = tv_mode->clock;
941 const struct tv_mode *tv_mode = intel_tv_mode_find(intel_tv);
952 if (!tv_mode)
963 video_levels = tv_mode->composite_levels;
964 color_conversion = tv_mode->composite_color;
965 burst_ena = tv_mode->burst_ena;
970 if (tv_mode->burst_ena)
978 video_levels = tv_mode->svideo_levels;
979 color_conversion = tv_mode->svideo_color;
980 burst_ena = tv_mode->burst_ena;
983 hctl1 = (tv_mode->hsync_end << TV_HSYNC_END_SHIFT) |
984 (tv_mode->htotal << TV_HTOTAL_SHIFT);
986 hctl2 = (tv_mode->hburst_start << 16) |
987 (tv_mode->hburst_len << TV_HBURST_LEN_SHIFT);
992 hctl3 = (tv_mode->hblank_start << TV_HBLANK_START_SHIFT) |
993 (tv_mode->hblank_end << TV_HBLANK_END_SHIFT);
995 vctl1 = (tv_mode->nbr_end << TV_NBR_END_SHIFT) |
996 (tv_mode->vi_end_f1 << TV_VI_END_F1_SHIFT) |
997 (tv_mode->vi_end_f2 << TV_VI_END_F2_SHIFT);
999 vctl2 = (tv_mode->vsync_len << TV_VSYNC_LEN_SHIFT) |
1000 (tv_mode->vsync_start_f1 << TV_VSYNC_START_F1_SHIFT) |
1001 (tv_mode->vsync_start_f2 << TV_VSYNC_START_F2_SHIFT);
1003 vctl3 = (tv_mode->veq_len << TV_VEQ_LEN_SHIFT) |
1004 (tv_mode->veq_start_f1 << TV_VEQ_START_F1_SHIFT) |
1005 (tv_mode->veq_start_f2 << TV_VEQ_START_F2_SHIFT);
1007 if (tv_mode->veq_ena)
1010 vctl4 = (tv_mode->vburst_start_f1 << TV_VBURST_START_F1_SHIFT) |
1011 (tv_mode->vburst_end_f1 << TV_VBURST_END_F1_SHIFT);
1013 vctl5 = (tv_mode->vburst_start_f2 << TV_VBURST_START_F2_SHIFT) |
1014 (tv_mode->vburst_end_f2 << TV_VBURST_END_F2_SHIFT);
1016 vctl6 = (tv_mode->vburst_start_f3 << TV_VBURST_START_F3_SHIFT) |
1017 (tv_mode->vburst_end_f3 << TV_VBURST_END_F3_SHIFT);
1019 vctl7 = (tv_mode->vburst_start_f4 << TV_VBURST_START_F4_SHIFT) |
1020 (tv_mode->vburst_end_f4 << TV_VBURST_END_F4_SHIFT);
1024 tv_ctl |= tv_mode->oversample;
1026 if (tv_mode->progressive)
1028 if (tv_mode->trilevel_sync)
1030 if (tv_mode->pal_burst)
1034 if (tv_mode->dda1_inc)
1036 if (tv_mode->dda2_inc)
1038 if (tv_mode->dda3_inc)
1040 scctl1 |= tv_mode->sc_reset;
1043 scctl1 |= tv_mode->dda1_inc << TV_SCDDA1_INC_SHIFT;
1045 scctl2 = tv_mode->dda2_size << TV_SCDDA2_SIZE_SHIFT |
1046 tv_mode->dda2_inc << TV_SCDDA2_INC_SHIFT;
1048 scctl3 = tv_mode->dda3_size << TV_SCDDA3_SIZE_SHIFT |
1049 tv_mode->dda3_inc << TV_SCDDA3_INC_SHIFT;
1114 xsize = tv_mode->hblank_start - tv_mode->hblank_end;
1115 if (tv_mode->progressive)
1116 ysize = tv_mode->nbr_end + 1;
1118 ysize = 2*tv_mode->nbr_end + 1;
1136 I915_WRITE(TV_H_LUMA_0 + (i<<2), tv_mode->filter_table[j++]);
1138 I915_WRITE(TV_H_CHROMA_0 + (i<<2), tv_mode->filter_table[j++]);
1140 I915_WRITE(TV_V_LUMA_0 + (i<<2), tv_mode->filter_table[j++]);
1142 I915_WRITE(TV_V_CHROMA_0 + (i<<2), tv_mode->filter_table[j++]);
1282 const struct tv_mode *tv_mode = intel_tv_mode_find(intel_tv);
1285 if (tv_mode == NULL ||
1287 tv_mode->component_only)
1292 tv_mode = tv_modes + i;
1295 tv_mode->component_only)
1299 intel_tv->tv_format = tv_mode->name;
1360 const struct tv_mode *tv_mode = intel_tv_mode_find(intel_tv);
1362 if (tv_mode == NULL)
1364 else if (tv_mode->nbr_end < 480 && mode_ptr->vdisplay == 480)
1366 else if (tv_mode->nbr_end > 480) {
1367 if (tv_mode->progressive == true && tv_mode->nbr_end < 720) {
1387 const struct tv_mode *tv_mode = intel_tv_mode_find(intel_tv);
1391 if(tv_mode == NULL)
1400 if (tv_mode->max_srcw && input->w > tv_mode->max_srcw)
1403 if (input->w > 1024 && (!tv_mode->progressive
1404 && !tv_mode->component_only))
1426 tmp = (u64) tv_mode->refresh * mode_ptr->vtotal;