/openbmc/qemu/hw/display/ |
H A D | edid-generate.c | 13 uint32_t yres; member 20 { .xres = 5120, .yres = 2160, .dta = 125 }, 21 { .xres = 4096, .yres = 2160, .dta = 101 }, 22 { .xres = 3840, .yres = 2160, .dta = 96 }, 23 { .xres = 2560, .yres = 1080, .dta = 89 }, 24 { .xres = 2048, .yres = 1152 }, 25 { .xres = 1920, .yres = 1080, .dta = 31 }, 28 { .xres = 3840, .yres = 2160, .dta = 97 }, 31 { .xres = 1920, .yres = 1200, .xtra3 = 10, .bit = 0 }, 32 { .xres = 1600, .yres = 1200, .xtra3 = 9, .bit = 2 }, [all …]
|
H A D | bcm2835_fb.c | 149 config->yres_virtual > config->yres; in fb_use_offsets() 200 s->config.yres, src_width); in fb_update_display() 204 s->config.xres, s->config.yres, in fb_update_display() 226 config->yres = MIN(config->yres, YRES_MAX); in bcm2835_fb_validate_config() 236 if (config->yres == 0) { in bcm2835_fb_validate_config() 237 config->yres = YRES_SMALL; in bcm2835_fb_validate_config() 243 config->yres_virtual = config->yres; in bcm2835_fb_validate_config() 251 config->yres_virtual - config->yres); in bcm2835_fb_validate_config() 262 qemu_console_resize(s->con, s->config.xres, s->config.yres); in bcm2835_fb_reconfigure() 275 newconf.yres = ldl_le_phys(&s->dma_as, value + 4); in bcm2835_fb_mbox_push() [all …]
|
/openbmc/linux/drivers/video/fbdev/via/ |
H A D | via_utility.c | 36 bool viafb_lcd_get_support_expand_state(u32 xres, u32 yres) in viafb_lcd_get_support_expand_state() argument 42 if ((xres < 640) && (yres < 480)) in viafb_lcd_get_support_expand_state() 47 if ((xres < 800) && (yres < 600)) in viafb_lcd_get_support_expand_state() 52 if ((xres < 1024) && (yres < 768)) in viafb_lcd_get_support_expand_state() 57 if ((xres < 1280) && (yres < 768)) in viafb_lcd_get_support_expand_state() 62 if ((xres < 1280) && (yres < 1024)) in viafb_lcd_get_support_expand_state() 67 if ((xres < 1400) && (yres < 1050)) in viafb_lcd_get_support_expand_state() 72 if ((xres < 1600) && (yres < 1200)) in viafb_lcd_get_support_expand_state() 77 if ((xres < 1366) && (yres < 768)) in viafb_lcd_get_support_expand_state() 82 if ((xres < 1024) && (yres < 600)) in viafb_lcd_get_support_expand_state() [all …]
|
/openbmc/linux/drivers/video/fbdev/core/ |
H A D | fbcvt.c | 37 u32 yres; member 80 den = 2 * (cvt->yres/cvt->interlace + 2 * cvt->v_margin); in fb_cvt_hperiod() 83 den = 2 * (cvt->yres/cvt->interlace + cvt->v_margin * 2 in fb_cvt_hperiod() 164 u32 vtotal = cvt->yres/cvt->interlace; in fb_cvt_vtotal() 191 u32 yres = cvt->yres; in fb_cvt_aspect_ratio() local 194 if (xres == (yres * 4)/3 && !((yres * 4) % 3)) in fb_cvt_aspect_ratio() 196 else if (xres == (yres * 16)/9 && !((yres * 16) % 9)) in fb_cvt_aspect_ratio() 198 else if (xres == (yres * 16)/10 && !((yres * 16) % 10)) in fb_cvt_aspect_ratio() 200 else if (xres == (yres * 5)/4 && !((yres * 5) % 4)) in fb_cvt_aspect_ratio() 202 else if (xres == (yres * 15)/9 && !((yres * 15) % 9)) in fb_cvt_aspect_ratio() [all …]
|
H A D | modedb.c | 24 ((v).xres == (x) && (v).yres == (y)) 554 mode->xres, mode->yres, bpp, mode->refresh); in fb_try_mode() 556 var->yres = mode->yres; in fb_try_mode() 558 var->yres_virtual = mode->yres; in fb_try_mode() 652 unsigned int xres = 0, yres = 0, bpp = default_bpp, refresh = 0; in fb_find_mode() local 685 yres = simple_strtol(&name[i+1], NULL, in fb_find_mode() 731 DPRINTK("CVT mode %dx%d@%dHz%s%s%s\n", xres, yres, in fb_find_mode() 739 cvt_mode.yres = yres; in fb_find_mode() 759 xres, yres); in fb_find_mode() 783 (res_specified && res_matches(db[i], xres, yres))) && in fb_find_mode() [all …]
|
H A D | fbmem.c | 395 image->dy = info->var.yres - image->height - image->dy; in fb_rotate_logo() 409 image->dy = info->var.yres - image->height - tmp; in fb_rotate_logo() 420 if (image->width > info->var.xres || image->height > info->var.yres) in fb_do_show_logo() 439 x < num && image->dy + image->height <= info->var.yres; in fb_do_show_logo() 503 int yres = info->var.yres; in fb_show_logo_line() local 506 xres = info->var.yres; in fb_show_logo_line() 507 yres = info->var.xres; in fb_show_logo_line() 513 image.dy = y ?: (yres - logo->height) / 2; in fb_show_logo_line() 560 unsigned int yres) in fb_prepare_extra_logos() argument 574 if (height > yres) { in fb_prepare_extra_logos() [all …]
|
/openbmc/linux/drivers/video/fbdev/i810/ |
H A D | i810_dvt.c | 211 inline void round_off_yres(u32 *xres, u32 *yres) in round_off_yres() argument 213 *yres = (*xres * 3) >> 2; in round_off_yres() 216 static int i810fb_find_best_mode(u32 xres, u32 yres, u32 pixclock) in i810fb_find_best_mode() argument 235 struct i810fb_par *par, u32 xres, u32 yres) in i810fb_encode_registers() argument 237 u32 i_best = i810fb_find_best_mode(xres, yres, par->regs.pixclock); in i810fb_encode_registers() 248 u32 total, xres, yres; in i810fb_fill_var_timings() local 252 yres = var->yres; in i810fb_fill_var_timings() 255 mode = i810fb_find_best_mode(xres, yres, pixclock); in i810fb_fill_var_timings() 274 (std_modes[mode].cr32 & 0x0F) << 8) - yres; in i810fb_fill_var_timings() 277 var->upper_margin = total - (yres + var->lower_margin + var->vsync_len); in i810fb_fill_var_timings()
|
H A D | i810_gtf.c | 113 void round_off_yres(u32 *xres, u32 *yres) { } in round_off_yres() argument 125 struct i810fb_par *par, u32 xres, u32 yres) in i810fb_encode_registers() argument 160 n = yres + var->lower_margin + var->vsync_len + var->upper_margin - 2; in i810fb_encode_registers() 165 n = yres + var->lower_margin; in i810fb_encode_registers() 169 par->regs.cr11 |= (u8) ((yres + var->lower_margin + in i810fb_encode_registers() 173 n = yres - 1; in i810fb_encode_registers() 178 blank_e = yres + var->lower_margin + var->vsync_len + in i810fb_encode_registers() 182 if (blank_s < yres) in i810fb_encode_registers() 183 blank_s = yres; in i810fb_encode_registers() 198 par->interlace = (1 << 7) | ((u8) (var->yres >> 4)); in i810fb_encode_registers()
|
/openbmc/u-boot/drivers/video/ |
H A D | fsl_diu_fb.c | 25 .yres = 480, 42 .yres = 600, 64 .yres = 768, 80 .yres = 1024, 96 .yres = 720, 112 .yres = 1080, 221 static struct diu_ad *allocate_fb(unsigned int xres, unsigned int yres, in allocate_fb() argument 224 unsigned long size = xres * yres * depth; in allocate_fb() 239 ad->aoi_size = cpu_to_le32((yres << 16) | xres); in allocate_fb() 240 ad->src_size_g_alpha = cpu_to_le32((yres << 12) | xres); in allocate_fb() [all …]
|
H A D | videomodes.c | 200 GET_OPTION ("y:", pPar->yres) in video_get_params() 234 int video_get_video_mode(unsigned int *xres, unsigned int *yres, in video_get_video_mode() argument 256 *yres = simple_strtoul(p, &p, 10); in video_get_video_mode() 257 if (!*yres) in video_get_video_mode() 297 unsigned int i, xres, yres, depth, refresh; in video_get_ctfb_res_modes() local 303 if (!video_get_video_mode(&xres, &yres, &depth, &refresh, options)) in video_get_ctfb_res_modes() 308 res_mode_init[i].yres == yres && in video_get_ctfb_res_modes() 317 xres, yres, depth, refresh, (*mode_ret)->xres, in video_get_ctfb_res_modes() 318 (*mode_ret)->yres, *depth_ret, (*mode_ret)->refresh); in video_get_ctfb_res_modes() 405 mode->yres = EDID_DETAILED_TIMING_VERTICAL_ACTIVE(*t); in video_edid_dtd_to_ctfb_res_modes() [all …]
|
H A D | mxc_ipuv3_fb.c | 42 var->yres = mode->yres; in fb_videomode_to_var() 44 var->yres_virtual = mode->yres; in fb_videomode_to_var() 185 fbi->var.yres, in setup_disp_channel2() 189 (fbi->fix.line_length * fbi->var.yres)); in setup_disp_channel2() 193 fbi->var.xres, fbi->var.yres, in setup_disp_channel2() 196 (fbi->fix.line_length * fbi->var.yres), in setup_disp_channel2() 264 fbi->var.xres, fbi->var.yres, in mxcfb_set_par() 301 if (var->yres_virtual < var->yres) in mxcfb_check_var() 302 var->yres_virtual = var->yres; in mxcfb_check_var() 382 vtotal = var->yres + var->lower_margin + var->vsync_len + in mxcfb_check_var() [all …]
|
H A D | fsl_dcu_fb.c | 91 .yres = 272, 110 .yres = 480, 126 .yres = 480, 142 .yres = 480, 158 .yres = 600, 249 DCU_CTRLDESCLN_1_HEIGHT(info.var.yres) | in layer_ctrldesc_init() 297 int fsl_dcu_init(unsigned int xres, unsigned int yres, in fsl_dcu_init() argument 304 info.var.xres * info.var.yres * (info.var.bits_per_pixel / 8); in fsl_dcu_init() 321 DCU_DISP_SIZE_DELTA_Y(info.var.yres) | in fsl_dcu_init() 409 info.var.yres = fsl_dcu_mode_db->yres; in video_hw_init()
|
H A D | sandbox_sdl.c | 28 ret = sandbox_sdl_init_display(plat->xres, plat->yres, plat->bpix); in sandbox_sdl_probe() 34 uc_priv->ysize = plat->yres; in sandbox_sdl_probe() 52 plat->yres = fdtdec_get_int(blob, node, "yres", LCD_MAX_HEIGHT); in sandbox_sdl_bind() 54 uc_plat->size = plat->xres * plat->yres * (1 << plat->bpix) / 8; in sandbox_sdl_bind()
|
/openbmc/linux/drivers/video/fbdev/omap/ |
H A D | lcd_dma.c | 60 int rotate, data_type, xres, yres; member 75 lcd_dma.yres = fb_yres; in omap_set_lcd_dma_b1() 171 bottom = PIXADDR(lcd_dma.xres - 1, lcd_dma.yres - 1); in set_b1_regs() 181 bottom = PIXADDR(0, lcd_dma.yres - 1); in set_b1_regs() 186 fn = lcd_dma.yres; in set_b1_regs() 190 top = PIXADDR(0, lcd_dma.yres - 1); in set_b1_regs() 193 fi = PIXSTEP(0, 0, 1, lcd_dma.yres - 1); in set_b1_regs() 195 top = PIXADDR(lcd_dma.xres - 1, lcd_dma.yres - 1); in set_b1_regs() 198 fi = PIXSTEP(1, 0, 0, lcd_dma.yres - 1); in set_b1_regs() 200 en = lcd_dma.yres; in set_b1_regs() [all …]
|
/openbmc/linux/drivers/staging/fbtft/ |
H A D | fb_ssd1306.c | 38 if (par->info->var.yres == 64) in init_display() 54 if (par->info->var.yres == 64) in init_display() 56 else if (par->info->var.yres == 48) in init_display() 88 if (par->info->var.yres == 64) in init_display() 91 else if (par->info->var.yres == 48) in init_display() 145 if (par->info->var.xres == 64 && par->info->var.yres == 48) in set_addr_win() 178 u32 yres = par->info->var.yres; in write_vmem() local 184 for (y = 0; y < yres / 8; y++) { in write_vmem() 195 ret = par->fbtftops.write(par, par->txbuf.buf, xres * yres / 8); in write_vmem()
|
H A D | fb_sh1106.c | 24 !par->info->var.yres || par->info->var.yres > HEIGHT || in init_display() 25 par->info->var.yres % 8) { in init_display() 44 write_reg(par, 0xA8, par->info->var.yres - 1); in init_display() 61 if (par->info->var.yres == 64) in init_display() 64 else if (par->info->var.yres == 48) in init_display()
|
/openbmc/linux/drivers/video/fbdev/ |
H A D | atafb.c | 582 int yres = var->yres; in tt_decode_var() local 588 if (bpp > 1 || xres > sttt_xres * 2 || yres > tt_yres * 2) in tt_decode_var() 592 yres = tt_yres * 2; in tt_decode_var() 595 if (bpp > 8 || xres > sttt_xres || yres > tt_yres) in tt_decode_var() 598 if (xres > sttt_xres / 2 || yres > tt_yres) in tt_decode_var() 602 yres = tt_yres; in tt_decode_var() 605 if (xres > sttt_xres || yres > tt_yres) in tt_decode_var() 607 if (xres > sttt_xres / 2 || yres > st_yres / 2) { in tt_decode_var() 610 yres = tt_yres; in tt_decode_var() 615 yres = st_yres / 2; in tt_decode_var() [all …]
|
H A D | ps3fb.c | 268 long xres, yres, left_margin, right_margin, upper_margin, lower_margin; in ps3fb_cmp_mode() local 272 if (var->xres > vmode->xres || var->yres > vmode->yres || in ps3fb_cmp_mode() 284 yres = max(var->yres, 1U); in ps3fb_cmp_mode() 299 dy = ((long)vmode->upper_margin + (long)vmode->yres + in ps3fb_cmp_mode() 301 (upper_margin + yres + lower_margin); in ps3fb_cmp_mode() 310 return (vmode->xres - xres) * (vmode->yres - yres); in ps3fb_cmp_mode() 345 var->upper_margin, var->yres, var->lower_margin); in ps3fb_find_mode() 352 vmode->yres, vmode->lower_margin, diff); in ps3fb_find_mode() 376 if (!var->yres) in ps3fb_find_mode() 377 var->yres = 1; in ps3fb_find_mode() [all …]
|
H A D | macmodes.c | 272 var->yres = mode->yres; in mac_vmode_to_var() 274 var->yres_virtual = mode->yres; in mac_vmode_to_var() 324 if (var->xres > mode->xres || var->yres > mode->yres) in mac_var_to_vmode() 326 if (var->xres_virtual > mode->xres || var->yres_virtual > mode->yres) in mac_var_to_vmode() 342 if (mode->xres != clk_mode->xres || mode->yres != clk_mode->yres) in mac_var_to_vmode()
|
H A D | fsl-diu-fb.c | 59 .yres = 768, 73 .yres = 240, 87 .yres = 480, 101 .yres = 480, 115 .yres = 480, 129 .yres = 480, 143 .yres = 480, 157 .yres = 480, 171 .yres = 600, 185 .yres = 480, [all …]
|
H A D | sa1100fb.c | 375 if (var->yres < MIN_YRES) in sa1100fb_check_var() 376 var->yres = MIN_YRES; in sa1100fb_check_var() 379 if (var->yres > fbi->inf->yres) in sa1100fb_check_var() 380 var->yres = fbi->inf->yres; in sa1100fb_check_var() 382 var->yres_virtual = max(var->yres_virtual, var->yres); in sa1100fb_check_var() 612 u_int half_screen_size, yres, pcd; in sa1100fb_activate_var() local 621 var->yres, var->vsync_len, in sa1100fb_activate_var() 637 if (var->yres < 1 || var->yres > 1024) in sa1100fb_activate_var() 639 fbi->fb.fix.id, var->yres); in sa1100fb_activate_var() 665 yres = var->yres; in sa1100fb_activate_var() [all …]
|
/openbmc/qemu/include/hw/display/ |
H A D | bcm2835_fb.h | 29 uint32_t xres, yres; member 79 uint32_t yres = MAX(config->yres, config->yres_virtual); in bcm2835_fb_get_size() local 80 return yres * bcm2835_fb_get_pitch(config); in bcm2835_fb_get_size()
|
/openbmc/linux/drivers/video/fbdev/aty/ |
H A D | radeon_monitor.c | 10 .yres = 480, 187 rinfo->panel_info.yres = BIOS_IN16(tmp + 27); in radeon_get_panel_info_BIOS() 189 rinfo->panel_info.xres, rinfo->panel_info.yres); in radeon_get_panel_info_BIOS() 217 (BIOS_IN16(tmp0+2) == rinfo->panel_info.yres)) { in radeon_get_panel_info_BIOS() 689 rinfo->panel_info.yres = var->yres; in radeon_var_to_panel_info() 716 var->yres = mode->yres; in radeon_videomode_to_var() 718 var->yres_virtual = mode->yres; in radeon_videomode_to_var() 783 var.yres >= rinfo->panel_info.yres) in radeon_check_modes() 802 var->yres = rinfo->panel_info.yres; in radeon_check_modes() 804 var->yres_virtual = rinfo->panel_info.yres; in radeon_check_modes() [all …]
|
/openbmc/u-boot/board/freescale/ls1021atwr/ |
H A D | dcu.c | 26 int platform_dcu_init(unsigned int xres, unsigned int yres, in platform_dcu_init() argument 40 printf("DCU: Switching to %s monitor @ %ux%u\n", name, xres, yres); in platform_dcu_init() 43 fsl_dcu_init(xres, yres, pixel_format); in platform_dcu_init()
|
/openbmc/u-boot/board/freescale/ls1021aiot/ |
H A D | dcu.c | 26 int platform_dcu_init(unsigned int xres, unsigned int yres, in platform_dcu_init() argument 40 printf("DCU: Switching to %s monitor @ %ux%u\n", name, xres, yres); in platform_dcu_init() 43 fsl_dcu_init(xres, yres, pixel_format); in platform_dcu_init()
|