Searched refs:h_scale (Results 1 - 2 of 2) sorted by relevance

/linux-4.4.14/drivers/media/platform/davinci/
H A Dvpbe_display.c437 int h_scale; vpbe_disp_calculate_scale_factor() local
467 h_scale = vpbe_dev->current_timings.xres / pixfmt->width; vpbe_disp_calculate_scale_factor()
468 if (h_scale < 2) vpbe_disp_calculate_scale_factor()
469 h_scale = 1; vpbe_disp_calculate_scale_factor()
470 else if (h_scale >= 4) vpbe_disp_calculate_scale_factor()
471 h_scale = 4; vpbe_disp_calculate_scale_factor()
473 h_scale = 2; vpbe_disp_calculate_scale_factor()
474 cfg->xsize *= h_scale; vpbe_disp_calculate_scale_factor()
487 if (h_scale == 2) vpbe_disp_calculate_scale_factor()
489 else if (h_scale == 4) vpbe_disp_calculate_scale_factor()
/linux-4.4.14/drivers/media/i2c/
H A Dsaa717x.c1000 int prescale, h_scale, v_scale; saa717x_set_fmt() local
1024 h_scale = 1024 * SAA717X_NTSC_WIDTH / prescale / fmt->width; saa717x_set_fmt()
1034 saa717x_write(sd, 0x6C, (u8)(h_scale & 0xFF)); saa717x_set_fmt()
1035 saa717x_write(sd, 0x6D, (u8)((h_scale >> 8) & 0xFF)); saa717x_set_fmt()
1037 saa717x_write(sd, 0xAC, (u8)(h_scale & 0xFF)); saa717x_set_fmt()
1038 saa717x_write(sd, 0xAD, (u8)((h_scale >> 8) & 0xFF)); saa717x_set_fmt()

Completed in 209 milliseconds