Lines Matching defs:tv_mode
141 struct tv_mode {
144 unsigned int tv_mode;
205 static const struct tv_mode tv_modes[] = {
207 .tv_mode = DRM_MODE_TV_MODE_NTSC,
225 .tv_mode = DRM_MODE_TV_MODE_PAL,
248 static const struct tv_mode *
254 const struct tv_mode *tv_mode = &tv_modes[i];
256 if (tv_mode->tv_mode == mode)
257 return tv_mode;
289 const struct tv_mode *tv_mode =
304 tv_mode->mode |
305 (tv_mode->yc_en ? SUN4I_TVE_CFG0_YC_EN : 0) |
314 (tv_mode->dac3_en ? SUN4I_TVE_DAC0_DAC_EN(3) : 0) |
319 (tv_mode->dac_bit25_en ? BIT(25) : 0) |
328 tv_mode->chroma_freq);
332 SUN4I_TVE_PORCH_BACK(tv_mode->back_porch) |
333 SUN4I_TVE_PORCH_FRONT(tv_mode->front_porch));
341 SUN4I_TVE_LEVEL_BLANK(tv_mode->video_levels->blank) |
342 SUN4I_TVE_LEVEL_BLACK(tv_mode->video_levels->black));
351 SUN4I_TVE_CB_CR_LVL_CB_BURST(tv_mode->burst_levels->cb) |
352 SUN4I_TVE_CB_CR_LVL_CR_BURST(tv_mode->burst_levels->cr));
361 SUN4I_TVE_CB_CR_GAIN_CB(tv_mode->color_gains->cb) |
362 SUN4I_TVE_CB_CR_GAIN_CR(tv_mode->color_gains->cr));
366 SUN4I_TVE_SYNC_VBI_VBLANK(tv_mode->vblank_level));
380 SUN4I_TVE_RESYNC_PIXEL(tv_mode->resync_params->pixel) |
381 SUN4I_TVE_RESYNC_LINE(tv_mode->resync_params->line) |
382 (tv_mode->resync_params->field ?