Home
last modified time | relevance | path

Searched refs:hscale (Results 1 – 25 of 28) sorted by relevance

12

/drivers/media/platform/renesas/vsp1/
A Dvsp1_uds.c270 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()
336 unsigned int hscale; in uds_max_width() local
340 hscale = output->width / input->width; in uds_max_width()
350 if (hscale <= 2) in uds_max_width()
352 else if (hscale <= 4) in uds_max_width()
[all …]
/drivers/media/i2c/
A Dtw9910.c239 .hscale = 0x0100,
246 .hscale = 0x0100,
253 .hscale = 0x0200,
260 .hscale = 0x0200,
267 .hscale = 0x0400,
274 .hscale = 0x0400,
284 .hscale = 0x0100,
291 .hscale = 0x0100,
298 .hscale = 0x0200,
305 .hscale = 0x0200,
[all …]
A Dbt819.c65 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()
A Dmt9m114.c1240 unsigned int hscale; in mt9m114_pa_set_fmt() local
1247 hscale = DIV_ROUND_CLOSEST(crop->width, fmt->format.width ? : 1); in mt9m114_pa_set_fmt()
1249 format->width = crop->width / clamp(hscale, 1U, 2U); in mt9m114_pa_set_fmt()
/drivers/gpu/drm/i915/display/
A Dskl_scaler.c371 int hscale = 0; in intel_atomic_setup_scaler() local
437 hscale = drm_rect_calc_hscale(src, dst, 1, max_hscale); in intel_atomic_setup_scaler()
440 if (hscale < 0 || vscale < 0) { in intel_atomic_setup_scaler()
477 if (hscale < 0 || vscale < 0) { in intel_atomic_setup_scaler()
488 scaler_state->scalers[*scaler_id].hscale = hscale; in intel_atomic_setup_scaler()
738 int hscale, vscale; in skl_pfit_enable() local
754 hscale = drm_rect_calc_hscale(&src, dst, 0, INT_MAX); in skl_pfit_enable()
757 uv_rgb_hphase = skl_scaler_calc_phase(1, hscale, false); in skl_pfit_enable()
800 int hscale, vscale; in skl_program_plane_scaler() local
803 hscale = drm_rect_calc_hscale(&plane_state->uapi.src, in skl_program_plane_scaler()
[all …]
A Ddvo_ns2501.c221 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()
A Dintel_pfit.c114 int hscale, vscale, max_scale = 0x12000; /* 1.125 */ in intel_pch_pfit_check_scaling() local
119 hscale = drm_rect_calc_hscale(&src, dst, 0, max_scale); in intel_pch_pfit_check_scaling()
120 if (hscale < 0) { in intel_pch_pfit_check_scaling()
126 return hscale; in intel_pch_pfit_check_scaling()
A Dintel_sprite.c925 unsigned int hscale, pixel_rate; in g4x_sprite_min_cdclk() local
938 hscale = drm_rect_calc_hscale(&plane_state->uapi.src, in g4x_sprite_min_cdclk()
941 hscale = max(hscale, 0x10000u); in g4x_sprite_min_cdclk()
944 decimate = ilog2(hscale >> 16); in g4x_sprite_min_cdclk()
945 hscale >>= decimate; in g4x_sprite_min_cdclk()
963 return DIV_ROUND_UP_ULL(mul_u32_u32(pixel_rate, 10 * hscale), in g4x_sprite_min_cdclk()
A Dintel_plane.c1004 int hscale, vscale; in intel_plane_check_clipping() local
1014 hscale = drm_rect_calc_hscale(src, dst, min_scale, max_scale); in intel_plane_check_clipping()
1016 if (hscale < 0 || vscale < 0) { in intel_plane_check_clipping()
/drivers/gpu/drm/sun4i/
A Dsun8i_ui_scaler.c150 u32 hscale, u32 vscale, u32 hphase, u32 vphase) in sun8i_ui_scaler_setup() argument
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()
A Dsun8i_vi_scaler.c930 u32 hscale, u32 vscale, u32 hphase, u32 vphase, in sun8i_vi_scaler_setup() argument
941 hscale <<= SUN8I_VI_SCALER_SCALE_FRAC - 16; in sun8i_vi_scaler_setup()
978 SUN8I_SCALER_VSU_YHSTEP(base), hscale); in sun8i_vi_scaler_setup()
991 hscale / format->hsub); in sun8i_vi_scaler_setup()
1000 hscale, vscale, format); in sun8i_vi_scaler_setup()
A Dsun8i_ui_layer.c90 u32 hscale, vscale; in sun8i_ui_layer_update_coord() local
94 hscale = state->src_w / state->crtc_w; in sun8i_ui_layer_update_coord()
99 dst_w, dst_h, hscale, vscale, in sun8i_ui_layer_update_coord()
105 dst_w, dst_h, hscale, vscale, in sun8i_ui_layer_update_coord()
A Dsun8i_ui_scaler.h41 u32 hscale, u32 vscale, u32 hphase, u32 vphase);
A Dsun8i_vi_layer.c124 u32 hscale, vscale, fps; in sun8i_vi_layer_update_coord() local
155 hscale = (src_w << 16) / dst_w; in sun8i_vi_layer_update_coord()
159 dst_h, hscale, vscale, hphase, vphase, in sun8i_vi_layer_update_coord()
A Dsun8i_vi_scaler.h75 u32 hscale, u32 vscale, u32 hphase, u32 vphase,
/drivers/gpu/drm/
A Ddrm_rect.c174 int hscale = drm_calc_scale(src_w, dst_w); in drm_rect_calc_hscale() local
176 if (hscale < 0 || dst_w == 0) in drm_rect_calc_hscale()
177 return hscale; in drm_rect_calc_hscale()
179 if (hscale < min_hscale || hscale > max_hscale) in drm_rect_calc_hscale()
182 return hscale; in drm_rect_calc_hscale()
/drivers/media/pci/cx25821/
A Dcx25821-medusa-video.c411 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()
/drivers/media/pci/tw68/
A Dtw68-video.c255 int hactive, hdelay, hscale; in tw68_set_scale() local
281 hscale = (hactive * 256) / (width); 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()
/drivers/media/usb/em28xx/
A Dem28xx-video.c344 return em28xx_scaler_set(dev, v4l2->hscale, v4l2->vscale); in em28xx_resolution_set()
1375 unsigned int *hscale, unsigned int *vscale) in size_to_scale() argument
1380 *hscale = (((unsigned long)maxw) << 12) / width - 4096L; in size_to_scale()
1381 if (*hscale > EM28XX_HVSCALE_MAX) in size_to_scale()
1382 *hscale = EM28XX_HVSCALE_MAX; in size_to_scale()
1390 unsigned int hscale, unsigned int vscale, in scale_to_size() argument
1452 unsigned int hscale, vscale; in vidioc_try_fmt_vid_cap() local
1487 size_to_scale(dev, width, height, &hscale, &vscale); in vidioc_try_fmt_vid_cap()
1488 scale_to_size(dev, hscale, vscale, &width, &height); in vidioc_try_fmt_vid_cap()
1521 &v4l2->hscale, &v4l2->vscale); in em28xx_set_video_format()
[all …]
A Dem28xx.h583 unsigned int hscale; /* horizontal scale factor (see datasheet) */ member
/drivers/gpu/drm/radeon/
A Dradeon_legacy_crtc.c57 bool hscale = true, vscale = true; in radeon_legacy_rmx_mode_set() local
115 hscale = false; in radeon_legacy_rmx_mode_set()
124 hscale = false; in radeon_legacy_rmx_mode_set()
132 if (!hscale) in radeon_legacy_rmx_mode_set()
/drivers/media/pci/bt8xx/
A Dbttv-risc.c257 geo->hscale = ((totalwidth*4096UL)/xsf-4096); in bttv_calc_geo_old()
310 geo->hscale = (c_width * 4096U + (width >> 1)) / width - 4096; in bttv_calc_geo()
347 btwrite(geo->hscale >> 8, BT848_E_HSCALE_HI+off); in bttv_apply_geo()
348 btwrite(geo->hscale & 0xff, BT848_E_HSCALE_LO+off); in bttv_apply_geo()
A Dbttvp.h139 u16 width,hscale,hdelay; member
/drivers/media/platform/rockchip/rkvdec/
A Drkvdec-vp9.c653 u32 hscale, vscale; in config_registers() local
655 hscale = (refw << 14) / dst->vp9.width; in config_registers()
657 writel_relaxed(RKVDEC_VP9_REF_HOR_SCALE(hscale) | in config_registers()
/drivers/media/platform/chips-media/coda/
A Dcoda-common.c660 int hscale = 0; in coda_try_fmt_vid_cap() local
680 hscale = coda_jpeg_scale(q_data_src->width, f->fmt.pix.width); in coda_try_fmt_vid_cap()
683 f->fmt.pix.width = q_data_src->width >> hscale; in coda_try_fmt_vid_cap()
714 f->fmt.pix.bytesperline = round_up(f->fmt.pix.width, 16 >> hscale); in coda_try_fmt_vid_cap()
860 int hscale = 0; in coda_s_fmt_vid_cap() local
868 hscale = coda_jpeg_scale(q_data_src->width, f->fmt.pix.width); in coda_s_fmt_vid_cap()
878 r.width = q_data_src->width >> hscale; in coda_s_fmt_vid_cap()

Completed in 76 milliseconds

12