/Linux-v4.19/drivers/gpu/drm/ |
D | drm_rect.c | 163 int hscale = drm_calc_scale(src_w, dst_w); in drm_rect_calc_hscale() local 165 if (hscale < 0 || dst_w == 0) in drm_rect_calc_hscale() 166 return hscale; in drm_rect_calc_hscale() 168 if (hscale < min_hscale || hscale > max_hscale) in drm_rect_calc_hscale() 171 return hscale; in drm_rect_calc_hscale() 239 int hscale = drm_calc_scale(src_w, dst_w); in drm_rect_calc_hscale_relaxed() local 241 if (hscale < 0 || dst_w == 0) in drm_rect_calc_hscale_relaxed() 242 return hscale; in drm_rect_calc_hscale_relaxed() 244 if (hscale < min_hscale) { in drm_rect_calc_hscale_relaxed() 252 if (hscale > max_hscale) { in drm_rect_calc_hscale_relaxed() [all …]
|
D | drm_atomic_helper.c | 732 int hscale, vscale; in drm_atomic_helper_check_plane_state() local 758 hscale = drm_rect_calc_hscale(src, dst, min_scale, max_scale); in drm_atomic_helper_check_plane_state() 760 if (hscale < 0 || vscale < 0) { in drm_atomic_helper_check_plane_state()
|
/Linux-v4.19/drivers/media/platform/vsp1/ |
D | vsp1_uds.c | 265 unsigned int hscale; in uds_configure_stream() local 274 hscale = uds_compute_ratio(input->width, output->width); in uds_configure_stream() 277 dev_dbg(uds->entity.vsp1->dev, "hscale %u vscale %u\n", hscale, vscale); in uds_configure_stream() 284 if (uds->scale_alpha && (hscale >= 8192 || vscale >= 8192)) in uds_configure_stream() 294 (uds_passband_width(hscale) in uds_configure_stream() 301 (hscale << VI6_UDS_SCALE_HFRAC_SHIFT) | in uds_configure_stream() 337 unsigned int hscale; in uds_max_width() local 343 hscale = output->width / input->width; in uds_max_width() 345 if (hscale <= 2) in uds_max_width() 347 else if (hscale <= 4) in uds_max_width() [all …]
|
/Linux-v4.19/drivers/gpu/drm/sun4i/ |
D | sun8i_ui_scaler.c | 135 u32 hscale, u32 vscale, u32 hphase, u32 vphase) in sun8i_ui_scaler_setup() argument 146 hscale <<= SUN8I_UI_SCALER_SCALE_FRAC - 16; in sun8i_ui_scaler_setup() 159 SUN8I_SCALER_GSU_HSTEP(vi_cnt, layer), hscale); in sun8i_ui_scaler_setup() 166 offset = sun8i_ui_scaler_coef_index(hscale) * in sun8i_ui_scaler_setup()
|
D | sun8i_vi_scaler.c | 915 u32 hscale, u32 vscale, u32 hphase, u32 vphase, in sun8i_vi_scaler_setup() argument 923 hscale <<= SUN8I_VI_SCALER_SCALE_FRAC - 16; in sun8i_vi_scaler_setup() 948 SUN8I_SCALER_VSU_YHSTEP(layer), hscale); in sun8i_vi_scaler_setup() 961 hscale / format->hsub); in sun8i_vi_scaler_setup() 970 hscale, vscale, format); in sun8i_vi_scaler_setup()
|
D | sun8i_ui_layer.c | 139 u32 hscale, vscale; in sun8i_ui_layer_update_coord() local 143 hscale = state->src_w / state->crtc_w; in sun8i_ui_layer_update_coord() 147 dst_h, hscale, vscale, hphase, vphase); in sun8i_ui_layer_update_coord()
|
D | sun8i_ui_scaler.h | 47 u32 hscale, u32 vscale, u32 hphase, u32 vphase);
|
D | sun8i_vi_layer.c | 131 u32 hscale, vscale; in sun8i_vi_layer_update_coord() local 135 hscale = state->src_w / state->crtc_w; in sun8i_vi_layer_update_coord() 139 dst_h, hscale, vscale, hphase, vphase, in sun8i_vi_layer_update_coord()
|
D | sun8i_vi_scaler.h | 55 u32 hscale, u32 vscale, u32 hphase, u32 vphase,
|
/Linux-v4.19/drivers/media/i2c/soc_camera/ |
D | tw9910.c | 225 u16 hscale; member 243 .hscale = 0x0100, 250 .hscale = 0x0100, 257 .hscale = 0x0200, 264 .hscale = 0x0200, 271 .hscale = 0x0400, 278 .hscale = 0x0400, 288 .hscale = 0x0100, 295 .hscale = 0x0100, 302 .hscale = 0x0200, [all …]
|
/Linux-v4.19/drivers/media/i2c/ |
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 = 0x0200, [all …]
|
D | bt819.c | 74 int hscale; member 195 init[0x08 * 2 - 1] = timing->hscale >> 8; in bt819_init() 196 init[0x09 * 2 - 1] = timing->hscale & 0xff; in bt819_init() 286 bt819_write(decoder, 0x08, (timing->hscale >> 8) & 0xff); in bt819_s_std() 287 bt819_write(decoder, 0x09, timing->hscale & 0xff); in bt819_s_std()
|
/Linux-v4.19/drivers/gpu/drm/i915/ |
D | dvo_ns2501.c | 220 u16 hscale; /* horizontal scaling factor, b8/b9 */ member 247 .hscale = 40960, 267 .hscale = 51248, 286 .hscale = 65535, 634 ns2501_writeb(dvo, NS2501_REGB8, conf->hscale & 0xff); in ns2501_mode_set() 635 ns2501_writeb(dvo, NS2501_REGB9, conf->hscale >> 8); in ns2501_mode_set()
|
/Linux-v4.19/drivers/media/pci/cx25821/ |
D | cx25821-medusa-video.c | 421 u32 hscale = 0x0; in medusa_set_resolution() local 442 hscale = 0x13E34B; in medusa_set_resolution() 447 hscale = 0x10A273; in medusa_set_resolution() 452 hscale = 0x3115B2; in medusa_set_resolution() 457 hscale = 0x378D84; in medusa_set_resolution() 462 hscale = 0x0; in medusa_set_resolution() 470 HSCALE_CTRL + (0x200 * decoder), hscale); in medusa_set_resolution()
|
/Linux-v4.19/Documentation/media/uapi/v4l/ |
D | selection-api-examples.rst | 73 double hscale, vscale; 83 hscale = (double)compose.r.width / crop.r.width;
|
D | crop.rst | 270 double hscale, vscale; 305 hscale = format.fmt.pix.width / (double) crop.c.width; 310 aspect = aspect * hscale / vscale;
|
/Linux-v4.19/drivers/media/pci/tw68/ |
D | tw68-video.c | 274 int hactive, hdelay, hscale; in tw68_set_scale() local 300 hscale = (hactive * 256) / (width); in tw68_set_scale() 313 hactive, hdelay, hscale, vactive, vdelay, vscale); in tw68_set_scale() 327 comb = ((vscale & 0xf00) >> 4) | ((hscale & 0xf00) >> 8); in tw68_set_scale() 329 __func__, comb, vscale, hscale); in tw68_set_scale() 332 tw_writeb(TW68_HSCALE_LO, hscale); in tw68_set_scale()
|
/Linux-v4.19/drivers/media/usb/em28xx/ |
D | em28xx-video.c | 361 return em28xx_scaler_set(dev, v4l2->hscale, v4l2->vscale); in em28xx_resolution_set() 1392 unsigned int *hscale, unsigned int *vscale) in size_to_scale() argument 1397 *hscale = (((unsigned long)maxw) << 12) / width - 4096L; in size_to_scale() 1398 if (*hscale > EM28XX_HVSCALE_MAX) in size_to_scale() 1399 *hscale = EM28XX_HVSCALE_MAX; in size_to_scale() 1407 unsigned int hscale, unsigned int vscale, in scale_to_size() argument 1413 *width = (((unsigned long)maxw) << 12) / (hscale + 4096L); in scale_to_size() 1469 unsigned int hscale, vscale; in vidioc_try_fmt_vid_cap() local 1504 size_to_scale(dev, width, height, &hscale, &vscale); in vidioc_try_fmt_vid_cap() 1505 scale_to_size(dev, hscale, vscale, &width, &height); in vidioc_try_fmt_vid_cap() [all …]
|
D | em28xx.h | 586 unsigned int hscale; /* horizontal scale factor (see datasheet) */ member
|
/Linux-v4.19/drivers/gpu/drm/radeon/ |
D | radeon_legacy_crtc.c | 54 bool hscale = true, vscale = true; in radeon_legacy_rmx_mode_set() local 112 hscale = false; in radeon_legacy_rmx_mode_set() 121 hscale = false; in radeon_legacy_rmx_mode_set() 129 if (!hscale) in radeon_legacy_rmx_mode_set()
|
/Linux-v4.19/drivers/media/pci/bt8xx/ |
D | bttv-risc.c | 358 geo->hscale = ((totalwidth*4096UL)/xsf-4096); in bttv_calc_geo_old() 411 geo->hscale = (c_width * 4096U + (width >> 1)) / width - 4096; in bttv_calc_geo() 448 btwrite(geo->hscale >> 8, BT848_E_HSCALE_HI+off); in bttv_apply_geo() 449 btwrite(geo->hscale & 0xff, BT848_E_HSCALE_LO+off); in bttv_apply_geo()
|
D | bttvp.h | 153 u16 width,hscale,hdelay; member
|
/Linux-v4.19/drivers/gpu/drm/msm/disp/dpu1/ |
D | dpu_plane.c | 1089 int hscale = 1, vscale = 1; in dpu_plane_sspp_atomic_check() local 1124 hscale = drm_rect_calc_hscale(&src, &dst, 1, max_upscale); in dpu_plane_sspp_atomic_check() 1126 hscale = drm_rect_calc_hscale(&dst, &src, 1, max_downscale); in dpu_plane_sspp_atomic_check() 1178 } else if (hscale < 0 || vscale < 0) { in dpu_plane_sspp_atomic_check()
|