Home
last modified time | relevance | path

Searched refs:vscale (Results 1 - 25 of 44) sorted by relevance

12

/kernel/linux/linux-5.10/drivers/media/i2c/
H A Dtw9910.c225 u16 vscale; member
245 .vscale = 0x0100,
252 .vscale = 0x0100,
259 .vscale = 0x0200,
266 .vscale = 0x0200,
273 .vscale = 0x0400,
280 .vscale = 0x0400,
290 .vscale = 0x0100,
297 .vscale = 0x0100,
304 .vscale
[all...]
/kernel/linux/linux-6.6/drivers/media/i2c/
H A Dtw9910.c225 u16 vscale; member
245 .vscale = 0x0100,
252 .vscale = 0x0100,
259 .vscale = 0x0200,
266 .vscale = 0x0200,
273 .vscale = 0x0400,
280 .vscale = 0x0400,
290 .vscale = 0x0100,
297 .vscale = 0x0100,
304 .vscale
[all...]
/kernel/linux/linux-6.6/drivers/gpu/drm/i915/display/
H A Dskl_scaler.c425 int hscale, vscale, max_vscale, max_hscale; in intel_atomic_setup_scaler() local
464 vscale = drm_rect_calc_vscale(src, dst, 1, max_vscale); 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
737 vscale = drm_rect_calc_vscale(&src, dst, 0, INT_MAX); in skl_pfit_enable()
740 uv_rgb_vphase = skl_scaler_calc_phase(1, vscale, false); in skl_pfit_enable()
779 int hscale, vscale; in skl_program_plane_scaler() local
785 vscale = drm_rect_calc_vscale(&plane_state->uapi.src, in skl_program_plane_scaler()
793 y_vphase = skl_scaler_calc_phase(1, vscale, false); in skl_program_plane_scaler()
797 uv_rgb_vphase = skl_scaler_calc_phase(2, vscale, fals in skl_program_plane_scaler()
[all...]
H A Ddvo_ns2501.c222 u16 vscale; /* vertical scaling factor, 10/11 */ member
249 .vscale = 40960
269 .vscale = 51232
288 .vscale = 65535
637 ns2501_writeb(dvo, NS2501_REG10, conf->vscale & 0xff); in ns2501_mode_set()
638 ns2501_writeb(dvo, NS2501_REG11, conf->vscale >> 8); in ns2501_mode_set()
/kernel/linux/linux-5.10/drivers/gpu/drm/
H A Ddrm_rect.c210 int vscale = drm_calc_scale(src_h, dst_h); in drm_rect_calc_vscale() local
212 if (vscale < 0 || dst_h == 0) in drm_rect_calc_vscale()
213 return vscale; in drm_rect_calc_vscale()
215 if (vscale < min_vscale || vscale > max_vscale) in drm_rect_calc_vscale()
218 return vscale; in drm_rect_calc_vscale()
/kernel/linux/linux-6.6/drivers/gpu/drm/
H A Ddrm_rect.c210 int vscale = drm_calc_scale(src_h, dst_h); in drm_rect_calc_vscale() local
212 if (vscale < 0 || dst_h == 0) in drm_rect_calc_vscale()
213 return vscale; in drm_rect_calc_vscale()
215 if (vscale < min_vscale || vscale > max_vscale) in drm_rect_calc_vscale()
218 return vscale; in drm_rect_calc_vscale()
/kernel/linux/linux-5.10/drivers/media/platform/vsp1/
H A Dvsp1_uds.c267 unsigned int vscale; in uds_configure_stream() local
276 vscale = uds_compute_ratio(input->height, output->height); 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()
297 (uds_passband_width(vscale) in uds_configure_stream()
303 (vscale << VI6_UDS_SCALE_VFRAC_SHIFT)); in uds_configure_stream()
/kernel/linux/linux-6.6/drivers/media/platform/renesas/vsp1/
H A Dvsp1_uds.c269 unsigned int vscale; in uds_configure_stream() local
278 vscale = uds_compute_ratio(input->height, output->height); 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()
299 (uds_passband_width(vscale) in uds_configure_stream()
305 (vscale << VI6_UDS_SCALE_VFRAC_SHIFT)); in uds_configure_stream()
/kernel/linux/linux-5.10/drivers/media/pci/cx25821/
H A Dcx25821-medusa-video.c412 u32 vscale = 0x0; in medusa_set_resolution() local
433 vscale = 0x0; in medusa_set_resolution()
438 vscale = 0x0; in medusa_set_resolution()
443 vscale = 0x1E00; in medusa_set_resolution()
448 vscale = 0x1E00; in medusa_set_resolution()
453 vscale = 0x0; in medusa_set_resolution()
462 VSCALE_CTRL + (0x200 * decoder), vscale); in medusa_set_resolution()
/kernel/linux/linux-6.6/drivers/media/pci/cx25821/
H A Dcx25821-medusa-video.c412 u32 vscale = 0x0; in medusa_set_resolution() local
433 vscale = 0x0; in medusa_set_resolution()
438 vscale = 0x0; in medusa_set_resolution()
443 vscale = 0x1E00; in medusa_set_resolution()
448 vscale = 0x1E00; in medusa_set_resolution()
453 vscale = 0x0; in medusa_set_resolution()
462 VSCALE_CTRL + (0x200 * decoder), vscale); in medusa_set_resolution()
/kernel/linux/linux-5.10/drivers/gpu/drm/sun4i/
H A Dsun8i_ui_scaler.c150 u32 hscale, u32 vscale, u32 hphase, u32 vphase) in sun8i_ui_scaler_setup()
164 vscale <<= SUN8I_UI_SCALER_SCALE_FRAC - 16; in sun8i_ui_scaler_setup()
176 SUN8I_SCALER_GSU_VSTEP(base), vscale); 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 Dsun8i_ui_scaler.h41 u32 hscale, u32 vscale, u32 hphase, u32 vphase);
H A Dsun8i_vi_layer.c140 u32 hscale, vscale, fps; in sun8i_vi_layer_update_coord() local
172 vscale = (src_h << 16) / dst_h; in sun8i_vi_layer_update_coord()
175 dst_h, hscale, vscale, hphase, vphase, in sun8i_vi_layer_update_coord()
H A Dsun8i_ui_layer.c144 u32 hscale, vscale; in sun8i_ui_layer_update_coord() local
149 vscale = state->src_h / state->crtc_h; in sun8i_ui_layer_update_coord()
152 dst_h, hscale, vscale, hphase, vphase); in sun8i_ui_layer_update_coord()
H A Dsun8i_vi_scaler.h75 u32 hscale, u32 vscale, u32 hphase, u32 vphase,
/kernel/linux/linux-6.6/drivers/gpu/drm/sun4i/
H A Dsun8i_ui_scaler.c150 u32 hscale, u32 vscale, u32 hphase, u32 vphase) in sun8i_ui_scaler_setup()
164 vscale <<= SUN8I_UI_SCALER_SCALE_FRAC - 16; in sun8i_ui_scaler_setup()
176 SUN8I_SCALER_GSU_VSTEP(base), vscale); 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 Dsun8i_ui_scaler.h41 u32 hscale, u32 vscale, u32 hphase, u32 vphase);
H A Dsun8i_ui_layer.c136 u32 hscale, vscale; in sun8i_ui_layer_update_coord() local
141 vscale = state->src_h / state->crtc_h; 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/gpu/drm/i915/display/
H A Ddvo_ns2501.c222 u16 vscale; /* vertical scaling factor, 10/11 */ member
249 .vscale = 40960
269 .vscale = 51232
288 .vscale = 65535
637 ns2501_writeb(dvo, NS2501_REG10, conf->vscale & 0xff); in ns2501_mode_set()
638 ns2501_writeb(dvo, NS2501_REG11, conf->vscale >> 8); in ns2501_mode_set()
/kernel/linux/linux-5.10/drivers/media/pci/tw68/
H A Dtw68-video.c256 int vactive, vdelay, vscale; in tw68_set_scale() local
285 vscale = (vactive * 256) / height; 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()
312 tw_writeb(TW68_VSCALE_LO, vscale); in tw68_set_scale()
/kernel/linux/linux-6.6/drivers/media/pci/tw68/
H A Dtw68-video.c256 int vactive, vdelay, vscale; in tw68_set_scale() local
285 vscale = (vactive * 256) / height; 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()
312 tw_writeb(TW68_VSCALE_LO, vscale); in tw68_set_scale()
/kernel/linux/linux-5.10/drivers/media/usb/em28xx/
H A Dem28xx-video.c354 return em28xx_scaler_set(dev, v4l2->hscale, v4l2->vscale); in em28xx_resolution_set()
1387 unsigned int *hscale, unsigned int *vscale) in size_to_scale()
1396 *vscale = (((unsigned long)maxh) << 12) / height - 4096L; in size_to_scale()
1397 if (*vscale > EM28XX_HVSCALE_MAX) in size_to_scale()
1398 *vscale = EM28XX_HVSCALE_MAX; in size_to_scale()
1402 unsigned int hscale, unsigned int vscale, in scale_to_size()
1409 *height = (((unsigned long)maxh) << 12) / (vscale + 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, vscale, 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 Dem28xx-video.c344 return em28xx_scaler_set(dev, v4l2->hscale, v4l2->vscale); in em28xx_resolution_set()
1377 unsigned int *hscale, unsigned int *vscale) in size_to_scale()
1386 *vscale = (((unsigned long)maxh) << 12) / height - 4096L; in size_to_scale()
1387 if (*vscale > EM28XX_HVSCALE_MAX) in size_to_scale()
1388 *vscale = EM28XX_HVSCALE_MAX; in size_to_scale()
1392 unsigned int hscale, unsigned int vscale, in scale_to_size()
1399 *height = (((unsigned long)maxh) << 12) / (vscale + 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, vscale, 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...]
/kernel/linux/linux-5.10/drivers/media/pci/bt8xx/
H A Dbttv-risc.c351 geo->vscale = (0x10000UL-sr) & 0x1fff; in bttv_calc_geo_old()
354 geo->vscale |= interleaved ? (BT848_VSCALE_INT<<8) : 0; in bttv_calc_geo_old()
407 geo->vscale = (0x10000UL - sr) & 0x1fff; in bttv_calc_geo()
408 geo->vscale |= both_fields ? (BT848_VSCALE_INT << 8) : 0; in bttv_calc_geo()
438 btaor((geo->vscale>>8), 0xe0, BT848_E_VSCALE_HI+off); in bttv_apply_geo()
439 btwrite(geo->vscale & 0xff, BT848_E_VSCALE_LO+off); in bttv_apply_geo()
/kernel/linux/linux-6.6/drivers/media/pci/bt8xx/
H A Dbttv-risc.c262 geo->vscale = (0x10000UL-sr) & 0x1fff; in bttv_calc_geo_old()
265 geo->vscale |= interleaved ? (BT848_VSCALE_INT<<8) : 0; in bttv_calc_geo_old()
318 geo->vscale = (0x10000UL - sr) & 0x1fff; in bttv_calc_geo()
319 geo->vscale |= both_fields ? (BT848_VSCALE_INT << 8) : 0; in bttv_calc_geo()
349 btaor((geo->vscale>>8), 0xe0, BT848_E_VSCALE_HI+off); in bttv_apply_geo()
350 btwrite(geo->vscale & 0xff, BT848_E_VSCALE_LO+off); in bttv_apply_geo()

Completed in 24 milliseconds

12