Home
last modified time | relevance | path

Searched refs:max_width (Results 1 – 25 of 55) sorted by relevance

123

/drivers/media/usb/gspca/
Dw996Xcf.c399 max_width, max_height; in w9968cf_set_crop_window() local
402 max_width = 352; in w9968cf_set_crop_window()
405 max_width = 640; in w9968cf_set_crop_window()
433 fw = SC(sd->gspca_dev.width) / max_width; in w9968cf_set_crop_window()
436 cw = (fw >= fh) ? max_width : SC(sd->gspca_dev.width) / fh; in w9968cf_set_crop_window()
439 sd->sensor_width = max_width; in w9968cf_set_crop_window()
442 x = (max_width - cw) / 2; in w9968cf_set_crop_window()
/drivers/media/platform/omap3isp/
Dispresizer.c806 unsigned int max_width; in resizer_calc_ratios() local
850 max_width = MAX_4TAP_OUT_WIDTH_ES1; in resizer_calc_ratios()
855 max_width = MAX_4TAP_OUT_WIDTH_ES2; in resizer_calc_ratios()
859 max_width = MAX_4TAP_OUT_WIDTH_3630; in resizer_calc_ratios()
865 max_width = MAX_7TAP_OUT_WIDTH_ES1; in resizer_calc_ratios()
870 max_width = MAX_7TAP_OUT_WIDTH_ES2; in resizer_calc_ratios()
874 max_width = MAX_7TAP_OUT_WIDTH_3630; in resizer_calc_ratios()
878 max_width = min(((input->width - 7) * 256 + 255 - 16 - 32 * sph) / 64 in resizer_calc_ratios()
879 + 1, max_width); in resizer_calc_ratios()
890 max_width & ~(width_alignment - 1)); in resizer_calc_ratios()
[all …]
Dispccdc.c1918 unsigned int max_width; in ccdc_try_crop() local
1937 max_width = (sink->width - crop->left + 15) & ~15; in ccdc_try_crop()
1938 crop->width = clamp_t(u32, crop->width, CCDC_MIN_WIDTH, max_width) in ccdc_try_crop()
2047 fse->max_width = format.width; in ccdc_enum_frame_size()
/drivers/mmc/host/
Dsdhci-s3c.c444 u32 max_width; in sdhci_s3c_parse_dt() local
448 if (of_property_read_u32(node, "bus-width", &max_width)) in sdhci_s3c_parse_dt()
449 max_width = 1; in sdhci_s3c_parse_dt()
450 pdata->max_width = max_width; in sdhci_s3c_parse_dt()
606 pdata->cfg_gpio(pdev, pdata->max_width); in sdhci_s3c_probe()
645 switch (pdata->max_width) { in sdhci_s3c_probe()
/drivers/staging/imx-drm/
Dimx-fb.c43 dev->mode_config.max_width = 4096; in imx_drm_mode_config_init()
/drivers/gpu/drm/tilcdc/
Dtilcdc_crtc.c411 int max_width = 0; in tilcdc_crtc_max_width() local
414 max_width = 1024; in tilcdc_crtc_max_width()
416 max_width = 2048; in tilcdc_crtc_max_width()
418 return max_width; in tilcdc_crtc_max_width()
/drivers/media/platform/soc_camera/
Dsh_mobile_ceu_camera.c117 int max_width; member
1091 while ((mf.width > pcdev->max_width || in sh_mobile_ceu_get_formats()
1394 unsigned int max_width, max_height; in client_s_fmt() local
1423 max_width = min(cap.bounds.width, pcdev->max_width); in client_s_fmt()
1432 tmp_w < max_width && tmp_h < max_height) { in client_s_fmt()
1433 tmp_w = min(2 * tmp_w, max_width); in client_s_fmt()
1565 if (mf.width > pcdev->max_width || mf.height > pcdev->max_height) in sh_mobile_ceu_set_crop()
1876 v4l_bound_align_image(&pix->width, 2, pcdev->max_width, 2, in sh_mobile_ceu_try_fmt()
1912 mf.width = pcdev->max_width; in sh_mobile_ceu_try_fmt()
2112 pcdev->max_width = pcdev->pdata->max_width ? : 2560; in sh_mobile_ceu_probe()
/drivers/gpu/drm/exynos/
Dexynos_drm_connector.c252 unsigned int max_width, unsigned int max_height) in exynos_drm_connector_fill_modes() argument
260 width = max_width; in exynos_drm_connector_fill_modes()
Dexynos_drm_fb.c334 dev->mode_config.max_width = 4096; in exynos_drm_mode_config_init()
/drivers/gpu/drm/nouveau/
Dnouveau_display.c316 dev->mode_config.max_width = 2048; in nouveau_display_create()
320 dev->mode_config.max_width = 4096; in nouveau_display_create()
323 dev->mode_config.max_width = 8192; in nouveau_display_create()
/drivers/gpu/drm/shmobile/
Dshmob_drm_kms.c153 sdev->ddev->mode_config.max_width = 4095; in shmob_drm_modeset_init()
/drivers/media/platform/exynos4-is/
Dfimc-lite.h52 unsigned short max_width; member
/drivers/gpu/drm/vmwgfx/
Dvmwgfx_fb.c51 unsigned max_width; member
143 if ((var->xoffset + var->xres) > par->max_width || in vmw_fb_check_var()
444 par->max_width = fb_width; in vmw_fb_init()
Dvmwgfx_kms.h141 uint32_t max_width, uint32_t max_height);
Dvmwgfx_kms.c1460 dev->mode_config.max_width = 8192; in vmw_kms_init()
1927 uint32_t max_width, uint32_t max_height) in vmw_du_connector_fill_modes() argument
1969 if (bmode->hdisplay > max_width || in vmw_du_connector_fill_modes()
2045 rects[i].x + rects[i].w > mode_config->max_width || in vmw_kms_update_layout_ioctl()
/drivers/gpu/drm/ast/
Dast_main.c367 dev->mode_config.max_width = 1920; in ast_driver_load()
370 dev->mode_config.max_width = 1600; in ast_driver_load()
/drivers/scsi/
Dscsi_transport_spi.c870 int max_width = spi_max_width(starget); in spi_dv_device_internal() local
884 max_width = 0; in spi_dv_device_internal()
888 if (i->f->set_width && max_width) { in spi_dv_device_internal()
899 max_width = 0; in spi_dv_device_internal()
959 DV_SET(width, max_width); in spi_dv_device_internal()
/drivers/gpu/drm/
Ddrm_fb_helper.c1405 width = dev->mode_config.max_width; in drm_setup_crtcs()
1512 dev->mode_config.max_width, in drm_fb_helper_initial_config()
1549 u32 max_width, max_height, bpp_sel; in drm_fb_helper_hotplug_event() local
1562 max_width = fb_helper->fb->width; in drm_fb_helper_hotplug_event()
1566 count = drm_fb_helper_probe_connector_modes(fb_helper, max_width, in drm_fb_helper_hotplug_event()
Ddrm_crtc.c1322 card_res->max_width = dev->mode_config.max_width; in drm_mode_getresources()
1539 dev->mode_config.max_width, in drm_mode_getconnector()
2217 if ((config->min_width > r.width) || (r.width > config->max_width)) in drm_mode_addfb()
2387 if ((config->min_width > r->width) || (r->width > config->max_width)) { in drm_mode_addfb2()
2389 r->width, config->min_width, config->max_width); in drm_mode_addfb2()
/drivers/gpu/drm/udl/
Dudl_modeset.c421 dev->mode_config.max_width = 2048; in udl_modeset_init()
/drivers/gpu/host1x/drm/
Dfb.c345 drm->mode_config.max_width = 4096; in tegra_drm_fb_init()
/drivers/media/i2c/s5c73m3/
Ds5c73m3-core.c1232 fse->max_width = fse->min_width; in s5c73m3_enum_frame_size()
1255 fse->max_width = fse->min_width = mf->width; in s5c73m3_oif_enum_frame_size()
1276 fse->max_width = fse->min_width; in s5c73m3_oif_enum_frame_size()
/drivers/gpu/drm/radeon/
Dradeon_display.c1330 rdev->ddev->mode_config.max_width = 16384; in radeon_modeset_init()
1333 rdev->ddev->mode_config.max_width = 8192; in radeon_modeset_init()
1336 rdev->ddev->mode_config.max_width = 4096; in radeon_modeset_init()
/drivers/media/platform/davinci/
Dvpbe_display.c620 int max_width; in vpbe_try_format() local
645 max_width = vpbe_dev->current_timings.xres; in vpbe_try_format()
651 (pixfmt->width > max_width)) { in vpbe_try_format()
/drivers/media/pci/bt8xx/
Dbttv-driver.c2045 __s32 max_width; in limit_scaled_size_lock() local
2070 max_width = min(b->width, (__s32) MAX_HACTIVE); in limit_scaled_size_lock()
2089 max_width = c->max_scaled_width; in limit_scaled_size_lock()
2096 max_width = max_width & width_mask; in limit_scaled_size_lock()
2104 *width = clamp(*width, min_width, max_width); in limit_scaled_size_lock()
2122 *width > max_width || in limit_scaled_size_lock()

123