• Home
  • Raw
  • Download

Lines Matching refs:mode

205 	u32 h_total = sig->mode.hactive + sig->mode.hsync_len +  in ipu_di_sync_config_interlaced()
206 sig->mode.hback_porch + sig->mode.hfront_porch; in ipu_di_sync_config_interlaced()
207 u32 v_total = sig->mode.vactive + sig->mode.vsync_len + in ipu_di_sync_config_interlaced()
208 sig->mode.vback_porch + sig->mode.vfront_porch; in ipu_di_sync_config_interlaced()
220 .cnt_down = sig->mode.hsync_len * 2, in ipu_di_sync_config_interlaced()
227 .cnt_down = sig->mode.vsync_len * 2, in ipu_di_sync_config_interlaced()
240 .offset_count = (sig->mode.vsync_len + in ipu_di_sync_config_interlaced()
241 sig->mode.vback_porch) / 2, in ipu_di_sync_config_interlaced()
243 .repeat_count = sig->mode.vactive / 2, in ipu_di_sync_config_interlaced()
248 .offset_count = sig->mode.hsync_len + in ipu_di_sync_config_interlaced()
249 sig->mode.hback_porch, in ipu_di_sync_config_interlaced()
251 .repeat_count = sig->mode.hactive, in ipu_di_sync_config_interlaced()
268 u32 h_total = sig->mode.hactive + sig->mode.hsync_len + in ipu_di_sync_config_noninterlaced()
269 sig->mode.hback_porch + sig->mode.hfront_porch; in ipu_di_sync_config_noninterlaced()
270 u32 v_total = sig->mode.vactive + sig->mode.vsync_len + in ipu_di_sync_config_noninterlaced()
271 sig->mode.vback_porch + sig->mode.vfront_porch; in ipu_di_sync_config_noninterlaced()
285 .cnt_down = sig->mode.hsync_len * 2, in ipu_di_sync_config_noninterlaced()
292 .cnt_down = sig->mode.vsync_len * 2, in ipu_di_sync_config_noninterlaced()
296 .offset_count = sig->mode.vsync_len + in ipu_di_sync_config_noninterlaced()
297 sig->mode.vback_porch, in ipu_di_sync_config_noninterlaced()
299 .repeat_count = sig->mode.vactive, in ipu_di_sync_config_noninterlaced()
304 .offset_count = sig->mode.hsync_len + in ipu_di_sync_config_noninterlaced()
305 sig->mode.hback_porch, in ipu_di_sync_config_noninterlaced()
307 .repeat_count = sig->mode.hactive, in ipu_di_sync_config_noninterlaced()
328 .offset_count = sig->mode.vsync_len + in ipu_di_sync_config_noninterlaced()
329 sig->mode.vback_porch, in ipu_di_sync_config_noninterlaced()
331 .repeat_count = sig->mode.vactive, in ipu_di_sync_config_noninterlaced()
341 .cnt_down = sig->mode.hsync_len * 2, in ipu_di_sync_config_noninterlaced()
345 .offset_count = sig->mode.hsync_len + in ipu_di_sync_config_noninterlaced()
346 sig->mode.hback_porch, in ipu_di_sync_config_noninterlaced()
348 .repeat_count = sig->mode.hactive, in ipu_di_sync_config_noninterlaced()
358 .cnt_down = sig->mode.vsync_len * 2, in ipu_di_sync_config_noninterlaced()
367 .cnt_down = sig->mode.hsync_len * 2, in ipu_di_sync_config_noninterlaced()
376 .cnt_down = sig->mode.vsync_len * 2, in ipu_di_sync_config_noninterlaced()
424 clk_set_rate(clk, sig->mode.pixelclock); in ipu_di_config_clock()
427 div = DIV_ROUND_CLOSEST(in_rate, sig->mode.pixelclock); in ipu_di_config_clock()
444 div = DIV_ROUND_CLOSEST(clkrate, sig->mode.pixelclock); in ipu_di_config_clock()
448 error = rate / (sig->mode.pixelclock / 1000); in ipu_di_config_clock()
465 clk_set_rate(clk, sig->mode.pixelclock); in ipu_di_config_clock()
468 div = DIV_ROUND_CLOSEST(in_rate, sig->mode.pixelclock); in ipu_di_config_clock()
495 sig->mode.pixelclock, in ipu_di_config_clock()
506 int ipu_di_adjust_videomode(struct ipu_di *di, struct videomode *mode) in ipu_di_adjust_videomode() argument
510 if (!IS_ALIGNED(mode->hactive, 8) && in ipu_di_adjust_videomode()
511 mode->hfront_porch < ALIGN(mode->hactive, 8) - mode->hactive) { in ipu_di_adjust_videomode()
513 mode->hactive); in ipu_di_adjust_videomode()
517 if (mode->vfront_porch >= 2) in ipu_di_adjust_videomode()
520 diff = 2 - mode->vfront_porch; in ipu_di_adjust_videomode()
522 if (mode->vback_porch >= diff) { in ipu_di_adjust_videomode()
523 mode->vfront_porch = 2; in ipu_di_adjust_videomode()
524 mode->vback_porch -= diff; in ipu_di_adjust_videomode()
525 } else if (mode->vsync_len > diff) { in ipu_di_adjust_videomode()
526 mode->vfront_porch = 2; in ipu_di_adjust_videomode()
527 mode->vsync_len = mode->vsync_len - diff; in ipu_di_adjust_videomode()
568 di->id, sig->mode.hactive, sig->mode.vactive); in ipu_di_init_sync_panel()
573 sig->mode.pixelclock); in ipu_di_init_sync_panel()
592 if (sig->mode.flags & DISPLAY_FLAGS_INTERLACED) { in ipu_di_init_sync_panel()
612 if (sig->mode.flags & DISPLAY_FLAGS_HSYNC_HIGH) in ipu_di_init_sync_panel()
614 if (sig->mode.flags & DISPLAY_FLAGS_VSYNC_HIGH) in ipu_di_init_sync_panel()