Lines Matching refs:tv_mode

141 struct tv_mode {  struct
144 unsigned int tv_mode; argument
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]; in sun4i_tv_find_tv_by_mode() local
256 if (tv_mode->tv_mode == mode) in sun4i_tv_find_tv_by_mode()
257 return tv_mode; in sun4i_tv_find_tv_by_mode()
289 const struct tv_mode *tv_mode = in sun4i_tv_enable() local
304 tv_mode->mode | in sun4i_tv_enable()
305 (tv_mode->yc_en ? SUN4I_TVE_CFG0_YC_EN : 0) | in sun4i_tv_enable()
314 (tv_mode->dac3_en ? SUN4I_TVE_DAC0_DAC_EN(3) : 0) | in sun4i_tv_enable()
319 (tv_mode->dac_bit25_en ? BIT(25) : 0) | in sun4i_tv_enable()
328 tv_mode->chroma_freq); in sun4i_tv_enable()
332 SUN4I_TVE_PORCH_BACK(tv_mode->back_porch) | in sun4i_tv_enable()
333 SUN4I_TVE_PORCH_FRONT(tv_mode->front_porch)); in sun4i_tv_enable()
341 SUN4I_TVE_LEVEL_BLANK(tv_mode->video_levels->blank) | in sun4i_tv_enable()
342 SUN4I_TVE_LEVEL_BLACK(tv_mode->video_levels->black)); in sun4i_tv_enable()
351 SUN4I_TVE_CB_CR_LVL_CB_BURST(tv_mode->burst_levels->cb) | in sun4i_tv_enable()
352 SUN4I_TVE_CB_CR_LVL_CR_BURST(tv_mode->burst_levels->cr)); in sun4i_tv_enable()
361 SUN4I_TVE_CB_CR_GAIN_CB(tv_mode->color_gains->cb) | in sun4i_tv_enable()
362 SUN4I_TVE_CB_CR_GAIN_CR(tv_mode->color_gains->cr)); in sun4i_tv_enable()
366 SUN4I_TVE_SYNC_VBI_VBLANK(tv_mode->vblank_level)); in sun4i_tv_enable()
380 SUN4I_TVE_RESYNC_PIXEL(tv_mode->resync_params->pixel) | in sun4i_tv_enable()
381 SUN4I_TVE_RESYNC_LINE(tv_mode->resync_params->line) | in sun4i_tv_enable()
382 (tv_mode->resync_params->field ? in sun4i_tv_enable()