Lines Matching refs:xres
101 __u32 xres; /* external screen resolution */ member
773 ext->xres, ext->yres, ext->width, ext->height, in set_ext_matrix()
777 m_translate(ext->m, ext->xres >> 1, ext->yres >> 1); in set_ext_matrix()
995 __u32 xres, __u32 yres, __u32 refresh, in add_scaling_score() argument
999 __u32 area = xres * yres; in add_scaling_score()
1004 int upscale = (ext_xres >= xres * 99 / 100 && ext_yres >= yres * 99 / 100); in add_scaling_score()
1032 static int omap4_hwc_set_best_hdmi_mode(omap4_hwc_device_t *hwc_dev, __u32 xres, __u32 yres, in omap4_hwc_set_best_hdmi_mode() argument
1050 xres * yres == 0) in omap4_hwc_set_best_hdmi_mode()
1056 ext->xres = d.dis.timings.x_res; in omap4_hwc_set_best_hdmi_mode()
1060 if (!ext->xres || !ext->yres) { in omap4_hwc_set_best_hdmi_mode()
1061 ext->xres = 640; in omap4_hwc_set_best_hdmi_mode()
1077 preferred_mode_xres = d.modedb[i].xres; in omap4_hwc_set_best_hdmi_mode()
1080 i, d.modedb[i].xres, d.modedb[i].yres); in omap4_hwc_set_best_hdmi_mode()
1093 __u32 mode_xres = d.modedb[i].xres; in omap4_hwc_set_best_hdmi_mode()
1116 get_max_dimensions(xres, yres, xpy, mode_xres, mode_yres, in omap4_hwc_set_best_hdmi_mode()
1122 !omap4_hwc_can_scale(xres, yres, ext_fb_xres, ext_fb_yres, in omap4_hwc_set_best_hdmi_mode()
1132 if (d.modedb[i].xres == preferred_mode_xres && in omap4_hwc_set_best_hdmi_mode()
1147 score = add_scaling_score(score, xres, yres, 60, ext_fb_xres, ext_fb_yres, in omap4_hwc_set_best_hdmi_mode()
1160 ext->xres = mode_xres; in omap4_hwc_set_best_hdmi_mode()
1182 d.modedb[best].xres, d.modedb[best].yres); in omap4_hwc_set_best_hdmi_mode()
1194 get_max_dimensions(xres, yres, xpy, d.dis.timings.x_res, d.dis.timings.y_res, in omap4_hwc_set_best_hdmi_mode()
1197 !omap4_hwc_can_scale(xres, yres, ext_fb_xres, ext_fb_yres, in omap4_hwc_set_best_hdmi_mode()
1204 ext->last_xres_used = xres; in omap4_hwc_set_best_hdmi_mode()
1416 __u32 xres = o->cfg.crop.w, yres = o->cfg.crop.h; in clone_external_layer() local
1418 swap(xres, yres); in clone_external_layer()
1428 if (xres != ext->last_xres_used || in clone_external_layer()
1432 ALOGD("set up HDMI for %d*%d\n", xres, yres); in clone_external_layer()
1433 if (omap4_hwc_set_best_hdmi_mode(hwc_dev, xres, yres, xpy)) { in clone_external_layer()
1453 __u32 xres = WIDTH(ext->mirror_region); in setup_mirroring() local
1456 swap(xres, yres); in setup_mirroring()
1457 if (omap4_hwc_set_best_hdmi_mode(hwc_dev, xres, yres, ext->lcd_xpy)) in setup_mirroring()
2328 __u32 xres = hwc_dev->fb_dev->base.width; in handle_hotplug() local
2330 if (omap4_hwc_set_best_hdmi_mode(hwc_dev, xres, yres, ext->lcd_xpy)) { in handle_hotplug()