/kernel/linux/linux-5.10/drivers/media/platform/vsp1/ |
H A D | vsp1_uds.c | 266 unsigned int hscale; in uds_configure_stream() local 275 hscale = uds_compute_ratio(input->width, output->width); in uds_configure_stream() 278 dev_dbg(uds->entity.vsp1->dev, "hscale %u vscale %u\n", hscale, vscale); in uds_configure_stream() 285 if (uds->scale_alpha && (hscale >= 8192 || vscale >= 8192)) in uds_configure_stream() 295 (uds_passband_width(hscale) in uds_configure_stream() 302 (hscale << VI6_UDS_SCALE_HFRAC_SHIFT) | in uds_configure_stream() 338 unsigned int hscale; in uds_max_width() local 344 hscale = output->width / input->width; in uds_max_width() 354 if (hscale < in uds_max_width() [all...] |
/kernel/linux/linux-6.6/drivers/media/platform/renesas/vsp1/ |
H A D | vsp1_uds.c | 268 unsigned int hscale; in uds_configure_stream() local 277 hscale = uds_compute_ratio(input->width, output->width); in uds_configure_stream() 280 dev_dbg(uds->entity.vsp1->dev, "hscale %u vscale %u\n", hscale, vscale); in uds_configure_stream() 287 if (uds->scale_alpha && (hscale >= 8192 || vscale >= 8192)) in uds_configure_stream() 297 (uds_passband_width(hscale) in uds_configure_stream() 304 (hscale << VI6_UDS_SCALE_HFRAC_SHIFT) | in uds_configure_stream() 340 unsigned int hscale; in uds_max_width() local 346 hscale = output->width / input->width; in uds_max_width() 356 if (hscale < in uds_max_width() [all...] |
/kernel/linux/linux-5.10/drivers/media/i2c/ |
H A D | tw9910.c | 224 u16 hscale; member 244 .hscale = 0x0100, 251 .hscale = 0x0100, 258 .hscale = 0x0200, 265 .hscale = 0x0200, 272 .hscale = 0x0400, 279 .hscale = 0x0400, 289 .hscale = 0x0100, 296 .hscale = 0x0100, 303 .hscale [all...] |
H A D | bt819.c | 65 int hscale; member 186 init[0x08 * 2 - 1] = timing->hscale >> 8; in bt819_init() 187 init[0x09 * 2 - 1] = timing->hscale & 0xff; in bt819_init() 277 bt819_write(decoder, 0x08, (timing->hscale >> 8) & 0xff); in bt819_s_std() 278 bt819_write(decoder, 0x09, timing->hscale & 0xff); in bt819_s_std()
|
/kernel/linux/linux-6.6/drivers/media/i2c/ |
H A D | tw9910.c | 224 u16 hscale; member 244 .hscale = 0x0100, 251 .hscale = 0x0100, 258 .hscale = 0x0200, 265 .hscale = 0x0200, 272 .hscale = 0x0400, 279 .hscale = 0x0400, 289 .hscale = 0x0100, 296 .hscale = 0x0100, 303 .hscale [all...] |
H A D | bt819.c | 65 int hscale; member 186 init[0x08 * 2 - 1] = timing->hscale >> 8; in bt819_init() 187 init[0x09 * 2 - 1] = timing->hscale & 0xff; in bt819_init() 277 bt819_write(decoder, 0x08, (timing->hscale >> 8) & 0xff); in bt819_s_std() 278 bt819_write(decoder, 0x09, timing->hscale & 0xff); in bt819_s_std()
|
/kernel/linux/linux-6.6/drivers/gpu/drm/i915/display/ |
H A D | skl_scaler.c | 425 int hscale, vscale, max_vscale, max_hscale; in intel_atomic_setup_scaler() local 463 hscale = drm_rect_calc_hscale(src, dst, 1, max_hscale); in intel_atomic_setup_scaler() 466 if (hscale < 0 || vscale < 0) { in intel_atomic_setup_scaler() 720 int hscale, vscale; in skl_pfit_enable() local 736 hscale = drm_rect_calc_hscale(&src, dst, 0, INT_MAX); in skl_pfit_enable() 739 uv_rgb_hphase = skl_scaler_calc_phase(1, hscale, false); in skl_pfit_enable() 779 int hscale, vscale; in skl_program_plane_scaler() local 782 hscale = drm_rect_calc_hscale(&plane_state->uapi.src, in skl_program_plane_scaler() 792 y_hphase = skl_scaler_calc_phase(1, hscale, false); in skl_program_plane_scaler() 796 uv_rgb_hphase = skl_scaler_calc_phase(2, hscale, tru in skl_program_plane_scaler() [all...] |
H A D | dvo_ns2501.c | 221 u16 hscale; /* horizontal scaling factor, b8/b9 */ member 248 .hscale = 40960, 268 .hscale = 51248, 287 .hscale = 65535, 635 ns2501_writeb(dvo, NS2501_REGB8, conf->hscale & 0xff); in ns2501_mode_set() 636 ns2501_writeb(dvo, NS2501_REGB9, conf->hscale >> 8); in ns2501_mode_set()
|
/kernel/linux/linux-5.10/drivers/gpu/drm/ |
H A D | drm_rect.c | 175 int hscale = drm_calc_scale(src_w, dst_w); in drm_rect_calc_hscale() local 177 if (hscale < 0 || dst_w == 0) in drm_rect_calc_hscale() 178 return hscale; in drm_rect_calc_hscale() 180 if (hscale < min_hscale || hscale > max_hscale) in drm_rect_calc_hscale() 183 return hscale; in drm_rect_calc_hscale()
|
/kernel/linux/linux-6.6/drivers/gpu/drm/ |
H A D | drm_rect.c | 175 int hscale = drm_calc_scale(src_w, dst_w); in drm_rect_calc_hscale() local 177 if (hscale < 0 || dst_w == 0) in drm_rect_calc_hscale() 178 return hscale; in drm_rect_calc_hscale() 180 if (hscale < min_hscale || hscale > max_hscale) in drm_rect_calc_hscale() 183 return hscale; in drm_rect_calc_hscale()
|
/kernel/linux/linux-5.10/drivers/gpu/drm/sun4i/ |
H A D | sun8i_ui_scaler.c | 150 u32 hscale, u32 vscale, u32 hphase, u32 vphase) in sun8i_ui_scaler_setup() 163 hscale <<= SUN8I_UI_SCALER_SCALE_FRAC - 16; in sun8i_ui_scaler_setup() 174 SUN8I_SCALER_GSU_HSTEP(base), hscale); in sun8i_ui_scaler_setup() 181 offset = sun8i_ui_scaler_coef_index(hscale) * in sun8i_ui_scaler_setup() 148 sun8i_ui_scaler_setup(struct sun8i_mixer *mixer, int layer, u32 src_w, u32 src_h, u32 dst_w, u32 dst_h, u32 hscale, u32 vscale, u32 hphase, u32 vphase) sun8i_ui_scaler_setup() argument
|
H A D | sun8i_ui_scaler.h | 41 u32 hscale, u32 vscale, u32 hphase, u32 vphase);
|
H A D | sun8i_vi_layer.c | 140 u32 hscale, vscale, fps; in sun8i_vi_layer_update_coord() local 171 hscale = (src_w << 16) / dst_w; in sun8i_vi_layer_update_coord() 175 dst_h, hscale, vscale, hphase, vphase, in sun8i_vi_layer_update_coord()
|
H A D | sun8i_ui_layer.c | 144 u32 hscale, vscale; in sun8i_ui_layer_update_coord() local 148 hscale = state->src_w / state->crtc_w; in sun8i_ui_layer_update_coord() 152 dst_h, hscale, vscale, hphase, vphase); in sun8i_ui_layer_update_coord()
|
/kernel/linux/linux-6.6/drivers/gpu/drm/sun4i/ |
H A D | sun8i_ui_scaler.c | 150 u32 hscale, u32 vscale, u32 hphase, u32 vphase) in sun8i_ui_scaler_setup() 163 hscale <<= SUN8I_UI_SCALER_SCALE_FRAC - 16; in sun8i_ui_scaler_setup() 174 SUN8I_SCALER_GSU_HSTEP(base), hscale); in sun8i_ui_scaler_setup() 181 offset = sun8i_ui_scaler_coef_index(hscale) * in sun8i_ui_scaler_setup() 148 sun8i_ui_scaler_setup(struct sun8i_mixer *mixer, int layer, u32 src_w, u32 src_h, u32 dst_w, u32 dst_h, u32 hscale, u32 vscale, u32 hphase, u32 vphase) sun8i_ui_scaler_setup() argument
|
H A D | sun8i_ui_scaler.h | 41 u32 hscale, u32 vscale, u32 hphase, u32 vphase);
|
H A D | sun8i_ui_layer.c | 136 u32 hscale, vscale; in sun8i_ui_layer_update_coord() local 140 hscale = state->src_w / state->crtc_w; in sun8i_ui_layer_update_coord() 144 dst_h, hscale, vscale, hphase, vphase); in sun8i_ui_layer_update_coord()
|
/kernel/linux/linux-5.10/drivers/media/pci/cx25821/ |
H A D | cx25821-medusa-video.c | 411 u32 hscale = 0x0; in medusa_set_resolution() local 432 hscale = 0x13E34B; in medusa_set_resolution() 437 hscale = 0x10A273; in medusa_set_resolution() 442 hscale = 0x3115B2; in medusa_set_resolution() 447 hscale = 0x378D84; in medusa_set_resolution() 452 hscale = 0x0; in medusa_set_resolution() 460 HSCALE_CTRL + (0x200 * decoder), hscale); in medusa_set_resolution()
|
/kernel/linux/linux-6.6/drivers/media/pci/cx25821/ |
H A D | cx25821-medusa-video.c | 411 u32 hscale = 0x0; in medusa_set_resolution() local 432 hscale = 0x13E34B; in medusa_set_resolution() 437 hscale = 0x10A273; in medusa_set_resolution() 442 hscale = 0x3115B2; in medusa_set_resolution() 447 hscale = 0x378D84; in medusa_set_resolution() 452 hscale = 0x0; in medusa_set_resolution() 460 HSCALE_CTRL + (0x200 * decoder), hscale); in medusa_set_resolution()
|
/kernel/linux/linux-5.10/drivers/gpu/drm/i915/display/ |
H A D | dvo_ns2501.c | 221 u16 hscale; /* horizontal scaling factor, b8/b9 */ member 248 .hscale = 40960, 268 .hscale = 51248, 287 .hscale = 65535, 635 ns2501_writeb(dvo, NS2501_REGB8, conf->hscale & 0xff); in ns2501_mode_set() 636 ns2501_writeb(dvo, NS2501_REGB9, conf->hscale >> 8); in ns2501_mode_set()
|
H A D | intel_sprite.c | 431 int hscale, vscale; in skl_program_scaler() local 433 hscale = drm_rect_calc_hscale(&plane_state->uapi.src, in skl_program_scaler() 443 y_hphase = skl_scaler_calc_phase(1, hscale, false); in skl_program_scaler() 447 uv_rgb_hphase = skl_scaler_calc_phase(2, hscale, true); in skl_program_scaler() 454 uv_rgb_hphase = skl_scaler_calc_phase(1, hscale, false); in skl_program_scaler() 1568 unsigned int hscale, pixel_rate; in g4x_sprite_min_cdclk() local 1581 hscale = drm_rect_calc_hscale(&plane_state->uapi.src, in g4x_sprite_min_cdclk() 1584 hscale = max(hscale, 0x10000u); in g4x_sprite_min_cdclk() 1587 decimate = ilog2(hscale >> 1 in g4x_sprite_min_cdclk() [all...] |
/kernel/linux/linux-5.10/drivers/media/pci/tw68/ |
H A D | tw68-video.c | 255 int hactive, hdelay, hscale; in tw68_set_scale() local 281 hscale = (hactive * 256) / (width); in tw68_set_scale() 292 pr_debug("%s: hactive=%d, hdelay=%d, hscale=%d; vactive=%d, vdelay=%d, vscale=%d\n", in tw68_set_scale() 294 hactive, hdelay, hscale, vactive, vdelay, vscale); in tw68_set_scale() 308 comb = ((vscale & 0xf00) >> 4) | ((hscale & 0xf00) >> 8); in tw68_set_scale() 310 __func__, comb, vscale, hscale); in tw68_set_scale() 313 tw_writeb(TW68_HSCALE_LO, hscale); in tw68_set_scale()
|
/kernel/linux/linux-6.6/drivers/media/pci/tw68/ |
H A D | tw68-video.c | 255 int hactive, hdelay, hscale; in tw68_set_scale() local 281 hscale = (hactive * 256) / (width); in tw68_set_scale() 292 pr_debug("%s: hactive=%d, hdelay=%d, hscale=%d; vactive=%d, vdelay=%d, vscale=%d\n", in tw68_set_scale() 294 hactive, hdelay, hscale, vactive, vdelay, vscale); in tw68_set_scale() 308 comb = ((vscale & 0xf00) >> 4) | ((hscale & 0xf00) >> 8); in tw68_set_scale() 310 __func__, comb, vscale, hscale); in tw68_set_scale() 313 tw_writeb(TW68_HSCALE_LO, hscale); in tw68_set_scale()
|
/kernel/linux/linux-5.10/drivers/media/usb/em28xx/ |
H A D | em28xx-video.c | 354 return em28xx_scaler_set(dev, v4l2->hscale, v4l2->vscale); in em28xx_resolution_set() 1387 unsigned int *hscale, unsigned int *vscale) in size_to_scale() 1392 *hscale = (((unsigned long)maxw) << 12) / width - 4096L; in size_to_scale() 1393 if (*hscale > EM28XX_HVSCALE_MAX) in size_to_scale() 1394 *hscale = EM28XX_HVSCALE_MAX; in size_to_scale() 1402 unsigned int hscale, unsigned int vscale, in scale_to_size() 1408 *width = (((unsigned long)maxw) << 12) / (hscale + 4096L); in scale_to_size() 1464 unsigned int hscale, vscale; in vidioc_try_fmt_vid_cap() local 1499 size_to_scale(dev, width, height, &hscale, &vscale); in vidioc_try_fmt_vid_cap() 1500 scale_to_size(dev, hscale, vscal in vidioc_try_fmt_vid_cap() 1385 size_to_scale(struct em28xx *dev, unsigned int width, unsigned int height, unsigned int *hscale, unsigned int *vscale) size_to_scale() argument 1401 scale_to_size(struct em28xx *dev, unsigned int hscale, unsigned int vscale, unsigned int *width, unsigned int *height) scale_to_size() argument [all...] |
/kernel/linux/linux-6.6/drivers/media/usb/em28xx/ |
H A D | em28xx-video.c | 344 return em28xx_scaler_set(dev, v4l2->hscale, v4l2->vscale); in em28xx_resolution_set() 1377 unsigned int *hscale, unsigned int *vscale) in size_to_scale() 1382 *hscale = (((unsigned long)maxw) << 12) / width - 4096L; in size_to_scale() 1383 if (*hscale > EM28XX_HVSCALE_MAX) in size_to_scale() 1384 *hscale = EM28XX_HVSCALE_MAX; in size_to_scale() 1392 unsigned int hscale, unsigned int vscale, in scale_to_size() 1398 *width = (((unsigned long)maxw) << 12) / (hscale + 4096L); in scale_to_size() 1454 unsigned int hscale, vscale; in vidioc_try_fmt_vid_cap() local 1489 size_to_scale(dev, width, height, &hscale, &vscale); in vidioc_try_fmt_vid_cap() 1490 scale_to_size(dev, hscale, vscal in vidioc_try_fmt_vid_cap() 1375 size_to_scale(struct em28xx *dev, unsigned int width, unsigned int height, unsigned int *hscale, unsigned int *vscale) size_to_scale() argument 1391 scale_to_size(struct em28xx *dev, unsigned int hscale, unsigned int vscale, unsigned int *width, unsigned int *height) scale_to_size() argument [all...] |