tv_mode 379 drivers/gpu/drm/i915/display/intel_tv.c static const struct tv_mode tv_modes[] = { tv_mode 943 drivers/gpu/drm/i915/display/intel_tv.c static const struct tv_mode *intel_tv_mode_find(const struct drm_connector_state *conn_state) tv_mode 954 drivers/gpu/drm/i915/display/intel_tv.c const struct tv_mode *tv_mode = intel_tv_mode_find(connector->state); tv_mode 964 drivers/gpu/drm/i915/display/intel_tv.c if (tv_mode && abs(tv_mode->refresh - drm_mode_vrefresh(mode) * 1000) tv_mode 972 drivers/gpu/drm/i915/display/intel_tv.c intel_tv_mode_vdisplay(const struct tv_mode *tv_mode) tv_mode 974 drivers/gpu/drm/i915/display/intel_tv.c if (tv_mode->progressive) tv_mode 975 drivers/gpu/drm/i915/display/intel_tv.c return tv_mode->nbr_end + 1; tv_mode 977 drivers/gpu/drm/i915/display/intel_tv.c return 2 * (tv_mode->nbr_end + 1); tv_mode 982 drivers/gpu/drm/i915/display/intel_tv.c const struct tv_mode *tv_mode) tv_mode 984 drivers/gpu/drm/i915/display/intel_tv.c mode->clock = tv_mode->clock / tv_mode 985 drivers/gpu/drm/i915/display/intel_tv.c (tv_mode->oversample >> !tv_mode->progressive); tv_mode 999 drivers/gpu/drm/i915/display/intel_tv.c tv_mode->hblank_start - tv_mode->hblank_end; tv_mode 1001 drivers/gpu/drm/i915/display/intel_tv.c tv_mode->htotal - tv_mode->hblank_start; tv_mode 1003 drivers/gpu/drm/i915/display/intel_tv.c tv_mode->hsync_end; tv_mode 1004 drivers/gpu/drm/i915/display/intel_tv.c mode->htotal = tv_mode->htotal + 1; tv_mode 1017 drivers/gpu/drm/i915/display/intel_tv.c mode->vdisplay = intel_tv_mode_vdisplay(tv_mode); tv_mode 1018 drivers/gpu/drm/i915/display/intel_tv.c if (tv_mode->progressive) { tv_mode 1020 drivers/gpu/drm/i915/display/intel_tv.c tv_mode->vsync_start_f1 + 1; tv_mode 1022 drivers/gpu/drm/i915/display/intel_tv.c tv_mode->vsync_len; tv_mode 1024 drivers/gpu/drm/i915/display/intel_tv.c tv_mode->vi_end_f1 + 1; tv_mode 1027 drivers/gpu/drm/i915/display/intel_tv.c tv_mode->vsync_start_f1 + 1 + tv_mode 1028 drivers/gpu/drm/i915/display/intel_tv.c tv_mode->vsync_start_f2 + 1; tv_mode 1030 drivers/gpu/drm/i915/display/intel_tv.c 2 * tv_mode->vsync_len; tv_mode 1032 drivers/gpu/drm/i915/display/intel_tv.c tv_mode->vi_end_f1 + 1 + tv_mode 1033 drivers/gpu/drm/i915/display/intel_tv.c tv_mode->vi_end_f2 + 1; tv_mode 1045 drivers/gpu/drm/i915/display/intel_tv.c tv_mode->progressive ? 'p' : 'i', tv_mode 1046 drivers/gpu/drm/i915/display/intel_tv.c tv_mode->name); tv_mode 1092 drivers/gpu/drm/i915/display/intel_tv.c struct tv_mode tv_mode = {}; tv_mode 1105 drivers/gpu/drm/i915/display/intel_tv.c tv_mode.htotal = (hctl1 & TV_HTOTAL_MASK) >> TV_HTOTAL_SHIFT; tv_mode 1106 drivers/gpu/drm/i915/display/intel_tv.c tv_mode.hsync_end = (hctl1 & TV_HSYNC_END_MASK) >> TV_HSYNC_END_SHIFT; tv_mode 1108 drivers/gpu/drm/i915/display/intel_tv.c tv_mode.hblank_start = (hctl3 & TV_HBLANK_START_MASK) >> TV_HBLANK_START_SHIFT; tv_mode 1109 drivers/gpu/drm/i915/display/intel_tv.c tv_mode.hblank_end = (hctl3 & TV_HSYNC_END_MASK) >> TV_HBLANK_END_SHIFT; tv_mode 1111 drivers/gpu/drm/i915/display/intel_tv.c tv_mode.nbr_end = (vctl1 & TV_NBR_END_MASK) >> TV_NBR_END_SHIFT; tv_mode 1112 drivers/gpu/drm/i915/display/intel_tv.c tv_mode.vi_end_f1 = (vctl1 & TV_VI_END_F1_MASK) >> TV_VI_END_F1_SHIFT; tv_mode 1113 drivers/gpu/drm/i915/display/intel_tv.c tv_mode.vi_end_f2 = (vctl1 & TV_VI_END_F2_MASK) >> TV_VI_END_F2_SHIFT; tv_mode 1115 drivers/gpu/drm/i915/display/intel_tv.c tv_mode.vsync_len = (vctl2 & TV_VSYNC_LEN_MASK) >> TV_VSYNC_LEN_SHIFT; tv_mode 1116 drivers/gpu/drm/i915/display/intel_tv.c tv_mode.vsync_start_f1 = (vctl2 & TV_VSYNC_START_F1_MASK) >> TV_VSYNC_START_F1_SHIFT; tv_mode 1117 drivers/gpu/drm/i915/display/intel_tv.c tv_mode.vsync_start_f2 = (vctl2 & TV_VSYNC_START_F2_MASK) >> TV_VSYNC_START_F2_SHIFT; tv_mode 1119 drivers/gpu/drm/i915/display/intel_tv.c tv_mode.clock = pipe_config->port_clock; tv_mode 1121 drivers/gpu/drm/i915/display/intel_tv.c tv_mode.progressive = tv_ctl & TV_PROGRESSIVE; tv_mode 1125 drivers/gpu/drm/i915/display/intel_tv.c tv_mode.oversample = 8; tv_mode 1128 drivers/gpu/drm/i915/display/intel_tv.c tv_mode.oversample = 4; tv_mode 1131 drivers/gpu/drm/i915/display/intel_tv.c tv_mode.oversample = 2; tv_mode 1134 drivers/gpu/drm/i915/display/intel_tv.c tv_mode.oversample = 1; tv_mode 1146 drivers/gpu/drm/i915/display/intel_tv.c intel_tv_mode_to_mode(&mode, &tv_mode); tv_mode 1172 drivers/gpu/drm/i915/display/intel_tv.c static bool intel_tv_vert_scaling(const struct drm_display_mode *tv_mode, tv_mode 1176 drivers/gpu/drm/i915/display/intel_tv.c return tv_mode->crtc_vdisplay - tv_mode 1190 drivers/gpu/drm/i915/display/intel_tv.c const struct tv_mode *tv_mode = intel_tv_mode_find(conn_state); tv_mode 1196 drivers/gpu/drm/i915/display/intel_tv.c if (!tv_mode) tv_mode 1207 drivers/gpu/drm/i915/display/intel_tv.c pipe_config->port_clock = tv_mode->clock; tv_mode 1209 drivers/gpu/drm/i915/display/intel_tv.c intel_tv_mode_to_mode(adjusted_mode, tv_mode); tv_mode 1240 drivers/gpu/drm/i915/display/intel_tv.c if (!tv_mode->progressive) { tv_mode 1339 drivers/gpu/drm/i915/display/intel_tv.c const struct tv_mode *tv_mode, tv_mode 1345 drivers/gpu/drm/i915/display/intel_tv.c hctl1 = (tv_mode->hsync_end << TV_HSYNC_END_SHIFT) | tv_mode 1346 drivers/gpu/drm/i915/display/intel_tv.c (tv_mode->htotal << TV_HTOTAL_SHIFT); tv_mode 1348 drivers/gpu/drm/i915/display/intel_tv.c hctl2 = (tv_mode->hburst_start << 16) | tv_mode 1349 drivers/gpu/drm/i915/display/intel_tv.c (tv_mode->hburst_len << TV_HBURST_LEN_SHIFT); tv_mode 1354 drivers/gpu/drm/i915/display/intel_tv.c hctl3 = (tv_mode->hblank_start << TV_HBLANK_START_SHIFT) | tv_mode 1355 drivers/gpu/drm/i915/display/intel_tv.c (tv_mode->hblank_end << TV_HBLANK_END_SHIFT); tv_mode 1357 drivers/gpu/drm/i915/display/intel_tv.c vctl1 = (tv_mode->nbr_end << TV_NBR_END_SHIFT) | tv_mode 1358 drivers/gpu/drm/i915/display/intel_tv.c (tv_mode->vi_end_f1 << TV_VI_END_F1_SHIFT) | tv_mode 1359 drivers/gpu/drm/i915/display/intel_tv.c (tv_mode->vi_end_f2 << TV_VI_END_F2_SHIFT); tv_mode 1361 drivers/gpu/drm/i915/display/intel_tv.c vctl2 = (tv_mode->vsync_len << TV_VSYNC_LEN_SHIFT) | tv_mode 1362 drivers/gpu/drm/i915/display/intel_tv.c (tv_mode->vsync_start_f1 << TV_VSYNC_START_F1_SHIFT) | tv_mode 1363 drivers/gpu/drm/i915/display/intel_tv.c (tv_mode->vsync_start_f2 << TV_VSYNC_START_F2_SHIFT); tv_mode 1365 drivers/gpu/drm/i915/display/intel_tv.c vctl3 = (tv_mode->veq_len << TV_VEQ_LEN_SHIFT) | tv_mode 1366 drivers/gpu/drm/i915/display/intel_tv.c (tv_mode->veq_start_f1 << TV_VEQ_START_F1_SHIFT) | tv_mode 1367 drivers/gpu/drm/i915/display/intel_tv.c (tv_mode->veq_start_f2 << TV_VEQ_START_F2_SHIFT); tv_mode 1369 drivers/gpu/drm/i915/display/intel_tv.c if (tv_mode->veq_ena) tv_mode 1372 drivers/gpu/drm/i915/display/intel_tv.c vctl4 = (tv_mode->vburst_start_f1 << TV_VBURST_START_F1_SHIFT) | tv_mode 1373 drivers/gpu/drm/i915/display/intel_tv.c (tv_mode->vburst_end_f1 << TV_VBURST_END_F1_SHIFT); tv_mode 1375 drivers/gpu/drm/i915/display/intel_tv.c vctl5 = (tv_mode->vburst_start_f2 << TV_VBURST_START_F2_SHIFT) | tv_mode 1376 drivers/gpu/drm/i915/display/intel_tv.c (tv_mode->vburst_end_f2 << TV_VBURST_END_F2_SHIFT); tv_mode 1378 drivers/gpu/drm/i915/display/intel_tv.c vctl6 = (tv_mode->vburst_start_f3 << TV_VBURST_START_F3_SHIFT) | tv_mode 1379 drivers/gpu/drm/i915/display/intel_tv.c (tv_mode->vburst_end_f3 << TV_VBURST_END_F3_SHIFT); tv_mode 1381 drivers/gpu/drm/i915/display/intel_tv.c vctl7 = (tv_mode->vburst_start_f4 << TV_VBURST_START_F4_SHIFT) | tv_mode 1382 drivers/gpu/drm/i915/display/intel_tv.c (tv_mode->vburst_end_f4 << TV_VBURST_END_F4_SHIFT); tv_mode 1425 drivers/gpu/drm/i915/display/intel_tv.c const struct tv_mode *tv_mode = intel_tv_mode_find(conn_state); tv_mode 1435 drivers/gpu/drm/i915/display/intel_tv.c if (!tv_mode) tv_mode 1446 drivers/gpu/drm/i915/display/intel_tv.c video_levels = tv_mode->composite_levels; tv_mode 1447 drivers/gpu/drm/i915/display/intel_tv.c color_conversion = tv_mode->composite_color; tv_mode 1448 drivers/gpu/drm/i915/display/intel_tv.c burst_ena = tv_mode->burst_ena; tv_mode 1453 drivers/gpu/drm/i915/display/intel_tv.c if (tv_mode->burst_ena) tv_mode 1461 drivers/gpu/drm/i915/display/intel_tv.c video_levels = tv_mode->svideo_levels; tv_mode 1462 drivers/gpu/drm/i915/display/intel_tv.c color_conversion = tv_mode->svideo_color; tv_mode 1463 drivers/gpu/drm/i915/display/intel_tv.c burst_ena = tv_mode->burst_ena; tv_mode 1469 drivers/gpu/drm/i915/display/intel_tv.c switch (tv_mode->oversample) { tv_mode 1484 drivers/gpu/drm/i915/display/intel_tv.c if (tv_mode->progressive) tv_mode 1486 drivers/gpu/drm/i915/display/intel_tv.c if (tv_mode->trilevel_sync) tv_mode 1488 drivers/gpu/drm/i915/display/intel_tv.c if (tv_mode->pal_burst) tv_mode 1492 drivers/gpu/drm/i915/display/intel_tv.c if (tv_mode->dda1_inc) tv_mode 1494 drivers/gpu/drm/i915/display/intel_tv.c if (tv_mode->dda2_inc) tv_mode 1496 drivers/gpu/drm/i915/display/intel_tv.c if (tv_mode->dda3_inc) tv_mode 1498 drivers/gpu/drm/i915/display/intel_tv.c scctl1 |= tv_mode->sc_reset; tv_mode 1501 drivers/gpu/drm/i915/display/intel_tv.c scctl1 |= tv_mode->dda1_inc << TV_SCDDA1_INC_SHIFT; tv_mode 1503 drivers/gpu/drm/i915/display/intel_tv.c scctl2 = tv_mode->dda2_size << TV_SCDDA2_SIZE_SHIFT | tv_mode 1504 drivers/gpu/drm/i915/display/intel_tv.c tv_mode->dda2_inc << TV_SCDDA2_INC_SHIFT; tv_mode 1506 drivers/gpu/drm/i915/display/intel_tv.c scctl3 = tv_mode->dda3_size << TV_SCDDA3_SIZE_SHIFT | tv_mode 1507 drivers/gpu/drm/i915/display/intel_tv.c tv_mode->dda3_inc << TV_SCDDA3_INC_SHIFT; tv_mode 1513 drivers/gpu/drm/i915/display/intel_tv.c set_tv_mode_timings(dev_priv, tv_mode, burst_ena); tv_mode 1539 drivers/gpu/drm/i915/display/intel_tv.c xsize = tv_mode->hblank_start - tv_mode->hblank_end; tv_mode 1540 drivers/gpu/drm/i915/display/intel_tv.c ysize = intel_tv_mode_vdisplay(tv_mode); tv_mode 1553 drivers/gpu/drm/i915/display/intel_tv.c I915_WRITE(TV_H_LUMA(i), tv_mode->filter_table[j++]); tv_mode 1555 drivers/gpu/drm/i915/display/intel_tv.c I915_WRITE(TV_H_CHROMA(i), tv_mode->filter_table[j++]); tv_mode 1557 drivers/gpu/drm/i915/display/intel_tv.c I915_WRITE(TV_V_LUMA(i), tv_mode->filter_table[j++]); tv_mode 1559 drivers/gpu/drm/i915/display/intel_tv.c I915_WRITE(TV_V_CHROMA(i), tv_mode->filter_table[j++]); tv_mode 1667 drivers/gpu/drm/i915/display/intel_tv.c const struct tv_mode *tv_mode = intel_tv_mode_find(connector->state); tv_mode 1675 drivers/gpu/drm/i915/display/intel_tv.c if (!tv_mode->component_only) tv_mode 1679 drivers/gpu/drm/i915/display/intel_tv.c tv_mode = &tv_modes[i]; tv_mode 1681 drivers/gpu/drm/i915/display/intel_tv.c if (!tv_mode->component_only) tv_mode 1743 drivers/gpu/drm/i915/display/intel_tv.c const struct tv_mode *tv_mode) tv_mode 1745 drivers/gpu/drm/i915/display/intel_tv.c int vdisplay = intel_tv_mode_vdisplay(tv_mode); tv_mode 1756 drivers/gpu/drm/i915/display/intel_tv.c const struct tv_mode *tv_mode) tv_mode 1760 drivers/gpu/drm/i915/display/intel_tv.c if (intel_tv_is_preferred_mode(mode, tv_mode)) tv_mode 1768 drivers/gpu/drm/i915/display/intel_tv.c const struct tv_mode *tv_mode = intel_tv_mode_find(connector->state); tv_mode 1776 drivers/gpu/drm/i915/display/intel_tv.c !tv_mode->progressive && tv_mode 1777 drivers/gpu/drm/i915/display/intel_tv.c !tv_mode->component_only) tv_mode 1782 drivers/gpu/drm/i915/display/intel_tv.c input->h > intel_tv_mode_vdisplay(tv_mode)) tv_mode 1796 drivers/gpu/drm/i915/display/intel_tv.c intel_tv_mode_to_mode(mode, tv_mode); tv_mode 1803 drivers/gpu/drm/i915/display/intel_tv.c intel_tv_set_mode_type(mode, tv_mode); tv_mode 204 drivers/gpu/drm/nouveau/dispnv04/tvnv17.c const struct drm_display_mode *tv_mode; tv_mode 207 drivers/gpu/drm/nouveau/dispnv04/tvnv17.c for (tv_mode = nv17_tv_modes; tv_mode->hdisplay; tv_mode++) { tv_mode 210 drivers/gpu/drm/nouveau/dispnv04/tvnv17.c mode = drm_mode_duplicate(encoder->dev, tv_mode); tv_mode 1128 drivers/gpu/drm/radeon/radeon_connectors.c struct drm_display_mode *tv_mode; tv_mode 1141 drivers/gpu/drm/radeon/radeon_connectors.c tv_mode = drm_cvt_mode(dev, 800, 600, 60, false, false, false); tv_mode 1142 drivers/gpu/drm/radeon/radeon_connectors.c tv_mode->type = DRM_MODE_TYPE_DRIVER | DRM_MODE_TYPE_PREFERRED; tv_mode 1143 drivers/gpu/drm/radeon/radeon_connectors.c drm_mode_probed_add(connector, tv_mode); tv_mode 212 drivers/gpu/drm/sun4i/sun4i_tv.c static const struct tv_mode tv_modes[] = { tv_mode 291 drivers/gpu/drm/sun4i/sun4i_tv.c static const struct tv_mode *sun4i_tv_find_tv_by_mode(const struct drm_display_mode *mode) tv_mode 297 drivers/gpu/drm/sun4i/sun4i_tv.c const struct tv_mode *tv_mode = &tv_modes[i]; tv_mode 300 drivers/gpu/drm/sun4i/sun4i_tv.c mode->name, tv_mode->name); tv_mode 302 drivers/gpu/drm/sun4i/sun4i_tv.c if (!strcmp(mode->name, tv_mode->name)) tv_mode 303 drivers/gpu/drm/sun4i/sun4i_tv.c return tv_mode; tv_mode 308 drivers/gpu/drm/sun4i/sun4i_tv.c const struct tv_mode *tv_mode = &tv_modes[i]; tv_mode 311 drivers/gpu/drm/sun4i/sun4i_tv.c mode->name, tv_mode->name, tv_mode 312 drivers/gpu/drm/sun4i/sun4i_tv.c mode->vdisplay, tv_mode->vdisplay); tv_mode 314 drivers/gpu/drm/sun4i/sun4i_tv.c if (mode->vdisplay == tv_mode->vdisplay) tv_mode 315 drivers/gpu/drm/sun4i/sun4i_tv.c return tv_mode; tv_mode 321 drivers/gpu/drm/sun4i/sun4i_tv.c static void sun4i_tv_mode_to_drm_mode(const struct tv_mode *tv_mode, tv_mode 330 drivers/gpu/drm/sun4i/sun4i_tv.c mode->hdisplay = tv_mode->hdisplay; tv_mode 331 drivers/gpu/drm/sun4i/sun4i_tv.c mode->hsync_start = mode->hdisplay + tv_mode->hfront_porch; tv_mode 332 drivers/gpu/drm/sun4i/sun4i_tv.c mode->hsync_end = mode->hsync_start + tv_mode->hsync_len; tv_mode 333 drivers/gpu/drm/sun4i/sun4i_tv.c mode->htotal = mode->hsync_end + tv_mode->hback_porch; tv_mode 335 drivers/gpu/drm/sun4i/sun4i_tv.c mode->vdisplay = tv_mode->vdisplay; tv_mode 336 drivers/gpu/drm/sun4i/sun4i_tv.c mode->vsync_start = mode->vdisplay + tv_mode->vfront_porch; tv_mode 337 drivers/gpu/drm/sun4i/sun4i_tv.c mode->vsync_end = mode->vsync_start + tv_mode->vsync_len; tv_mode 338 drivers/gpu/drm/sun4i/sun4i_tv.c mode->vtotal = mode->vsync_end + tv_mode->vback_porch; tv_mode 374 drivers/gpu/drm/sun4i/sun4i_tv.c const struct tv_mode *tv_mode = sun4i_tv_find_tv_by_mode(mode); tv_mode 386 drivers/gpu/drm/sun4i/sun4i_tv.c tv_mode->mode | tv_mode 387 drivers/gpu/drm/sun4i/sun4i_tv.c (tv_mode->yc_en ? SUN4I_TVE_CFG0_YC_EN : 0) | tv_mode 396 drivers/gpu/drm/sun4i/sun4i_tv.c (tv_mode->dac3_en ? SUN4I_TVE_DAC0_DAC_EN(3) : 0) | tv_mode 401 drivers/gpu/drm/sun4i/sun4i_tv.c (tv_mode->dac_bit25_en ? BIT(25) : 0) | tv_mode 410 drivers/gpu/drm/sun4i/sun4i_tv.c tv_mode->chroma_freq); tv_mode 414 drivers/gpu/drm/sun4i/sun4i_tv.c SUN4I_TVE_PORCH_BACK(tv_mode->back_porch) | tv_mode 415 drivers/gpu/drm/sun4i/sun4i_tv.c SUN4I_TVE_PORCH_FRONT(tv_mode->front_porch)); tv_mode 420 drivers/gpu/drm/sun4i/sun4i_tv.c SUN4I_TVE_LINE_NUMBER(tv_mode->line_number)); tv_mode 423 drivers/gpu/drm/sun4i/sun4i_tv.c SUN4I_TVE_LEVEL_BLANK(tv_mode->video_levels->blank) | tv_mode 424 drivers/gpu/drm/sun4i/sun4i_tv.c SUN4I_TVE_LEVEL_BLACK(tv_mode->video_levels->black)); tv_mode 433 drivers/gpu/drm/sun4i/sun4i_tv.c SUN4I_TVE_CB_CR_LVL_CB_BURST(tv_mode->burst_levels->cb) | tv_mode 434 drivers/gpu/drm/sun4i/sun4i_tv.c SUN4I_TVE_CB_CR_LVL_CR_BURST(tv_mode->burst_levels->cr)); tv_mode 443 drivers/gpu/drm/sun4i/sun4i_tv.c SUN4I_TVE_CB_CR_GAIN_CB(tv_mode->color_gains->cb) | tv_mode 444 drivers/gpu/drm/sun4i/sun4i_tv.c SUN4I_TVE_CB_CR_GAIN_CR(tv_mode->color_gains->cr)); tv_mode 448 drivers/gpu/drm/sun4i/sun4i_tv.c SUN4I_TVE_SYNC_VBI_VBLANK(tv_mode->vblank_level)); tv_mode 462 drivers/gpu/drm/sun4i/sun4i_tv.c SUN4I_TVE_RESYNC_PIXEL(tv_mode->resync_params->pixel) | tv_mode 463 drivers/gpu/drm/sun4i/sun4i_tv.c SUN4I_TVE_RESYNC_LINE(tv_mode->resync_params->line) | tv_mode 464 drivers/gpu/drm/sun4i/sun4i_tv.c (tv_mode->resync_params->field ? tv_mode 491 drivers/gpu/drm/sun4i/sun4i_tv.c const struct tv_mode *tv_mode = &tv_modes[i]; tv_mode 499 drivers/gpu/drm/sun4i/sun4i_tv.c strcpy(mode->name, tv_mode->name); tv_mode 501 drivers/gpu/drm/sun4i/sun4i_tv.c sun4i_tv_mode_to_drm_mode(tv_mode, mode); tv_mode 167 drivers/gpu/drm/vc4/vc4_vec.c const struct vc4_vec_tv_mode *tv_mode; tv_mode 370 drivers/gpu/drm/vc4/vc4_vec.c vec->tv_mode = &vc4_vec_tv_modes[VC4_VEC_TV_MODE_NTSC]; tv_mode 465 drivers/gpu/drm/vc4/vc4_vec.c vec->tv_mode->mode_set(vec); tv_mode 487 drivers/gpu/drm/vc4/vc4_vec.c vec->tv_mode = &vc4_vec_tv_modes[conn_state->tv.mode];