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

/linux-4.1.27/drivers/media/platform/davinci/
H A Dvpbe_display.c436 int h_scale; vpbe_disp_calculate_scale_factor() local
466 h_scale = vpbe_dev->current_timings.xres / pixfmt->width; vpbe_disp_calculate_scale_factor()
467 if (h_scale < 2) vpbe_disp_calculate_scale_factor()
468 h_scale = 1; vpbe_disp_calculate_scale_factor()
469 else if (h_scale >= 4) vpbe_disp_calculate_scale_factor()
470 h_scale = 4; vpbe_disp_calculate_scale_factor()
472 h_scale = 2; vpbe_disp_calculate_scale_factor()
473 cfg->xsize *= h_scale; vpbe_disp_calculate_scale_factor()
486 if (h_scale == 2) vpbe_disp_calculate_scale_factor()
488 else if (h_scale == 4) vpbe_disp_calculate_scale_factor()
/linux-4.1.27/drivers/media/i2c/
H A Dsaa717x.c997 int prescale, h_scale, v_scale; saa717x_s_mbus_fmt() local
1018 h_scale = 1024 * SAA717X_NTSC_WIDTH / prescale / fmt->width; saa717x_s_mbus_fmt()
1028 saa717x_write(sd, 0x6C, (u8)(h_scale & 0xFF)); saa717x_s_mbus_fmt()
1029 saa717x_write(sd, 0x6D, (u8)((h_scale >> 8) & 0xFF)); saa717x_s_mbus_fmt()
1031 saa717x_write(sd, 0xAC, (u8)(h_scale & 0xFF)); saa717x_s_mbus_fmt()
1032 saa717x_write(sd, 0xAD, (u8)((h_scale >> 8) & 0xFF)); saa717x_s_mbus_fmt()

Completed in 154 milliseconds