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()
332 .offset_count = sig->mode.vsync_len + in ipu_di_sync_config_noninterlaced()
333 sig->mode.vback_porch, in ipu_di_sync_config_noninterlaced()
335 .repeat_count = sig->mode.vactive, in ipu_di_sync_config_noninterlaced()
345 .cnt_down = sig->mode.hsync_len * 2, in ipu_di_sync_config_noninterlaced()
349 .offset_count = sig->mode.hsync_len + in ipu_di_sync_config_noninterlaced()
350 sig->mode.hback_porch, in ipu_di_sync_config_noninterlaced()
352 .repeat_count = sig->mode.hactive, in ipu_di_sync_config_noninterlaced()
362 .cnt_down = sig->mode.vsync_len * 2, in ipu_di_sync_config_noninterlaced()
371 .cnt_down = sig->mode.hsync_len * 2, in ipu_di_sync_config_noninterlaced()
380 .cnt_down = sig->mode.vsync_len * 2, in ipu_di_sync_config_noninterlaced()
428 clk_set_rate(clk, sig->mode.pixelclock); in ipu_di_config_clock()
431 div = DIV_ROUND_CLOSEST(in_rate, sig->mode.pixelclock); in ipu_di_config_clock()
448 div = DIV_ROUND_CLOSEST(clkrate, sig->mode.pixelclock); in ipu_di_config_clock()
452 error = rate / (sig->mode.pixelclock / 1000); in ipu_di_config_clock()
469 clk_set_rate(clk, sig->mode.pixelclock); in ipu_di_config_clock()
472 div = DIV_ROUND_CLOSEST(in_rate, sig->mode.pixelclock); in ipu_di_config_clock()
499 sig->mode.pixelclock, in ipu_di_config_clock()
510 int ipu_di_adjust_videomode(struct ipu_di *di, struct videomode *mode) in ipu_di_adjust_videomode() argument
514 if (mode->vfront_porch >= 2) in ipu_di_adjust_videomode()
517 diff = 2 - mode->vfront_porch; in ipu_di_adjust_videomode()
519 if (mode->vback_porch >= diff) { in ipu_di_adjust_videomode()
520 mode->vfront_porch = 2; in ipu_di_adjust_videomode()
521 mode->vback_porch -= diff; in ipu_di_adjust_videomode()
522 } else if (mode->vsync_len > diff) { in ipu_di_adjust_videomode()
523 mode->vfront_porch = 2; in ipu_di_adjust_videomode()
524 mode->vsync_len = mode->vsync_len - diff; in ipu_di_adjust_videomode()
565 di->id, sig->mode.hactive, sig->mode.vactive); in ipu_di_init_sync_panel()
570 sig->mode.pixelclock); in ipu_di_init_sync_panel()
589 if (sig->mode.flags & DISPLAY_FLAGS_INTERLACED) { in ipu_di_init_sync_panel()
609 if (sig->mode.flags & DISPLAY_FLAGS_HSYNC_HIGH) in ipu_di_init_sync_panel()
611 if (sig->mode.flags & DISPLAY_FLAGS_VSYNC_HIGH) in ipu_di_init_sync_panel()