/openbmc/linux/drivers/video/fbdev/i810/ |
H A D | i810_dvt.c | 195 void round_off_xres(u32 *xres) in round_off_xres() argument 197 if (*xres <= 640) in round_off_xres() 198 *xres = 640; in round_off_xres() 199 else if (*xres <= 800) in round_off_xres() 200 *xres = 800; in round_off_xres() 201 else if (*xres <= 1024) in round_off_xres() 202 *xres = 1024; in round_off_xres() 203 else if (*xres <= 1152) in round_off_xres() 204 *xres = 1152; in round_off_xres() 205 else if (*xres <= 1280) in round_off_xres() [all …]
|
H A D | i810_gtf.c | 112 void round_off_xres(u32 *xres) { } in round_off_xres() argument 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 133 n = ((xres + var->right_margin + var->hsync_len + in i810fb_encode_registers() 139 par->regs.cr01 = (u8) ((xres >> 3) - 1); in i810fb_encode_registers() 142 blank_e = (xres + var->right_margin + var->hsync_len + in i810fb_encode_registers() 146 if (blank_s < (xres >> 3)) in i810fb_encode_registers() 147 blank_s = xres >> 3; in i810fb_encode_registers() 154 par->regs.cr04 = (u8) ((xres + var->right_margin) >> 3); in i810fb_encode_registers() 155 par->regs.cr05 |= (u8) (((xres + var->right_margin + in i810fb_encode_registers() [all …]
|
/openbmc/qemu/hw/display/ |
H A D | edid-generate.c | 12 uint32_t xres; 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 | 148 return config->xres_virtual > config->xres || in fb_use_offsets() 162 if (s->lock || !s->config.xres) { in fb_update_display() 172 dest_width = s->config.xres; in fb_update_display() 204 s->config.xres, s->config.yres, in fb_update_display() 209 dpy_gfx_update(s->con, 0, first, s->config.xres, in fb_update_display() 224 config->xres = MIN(config->xres, XRES_MAX); in bcm2835_fb_validate_config() 233 if (config->xres == 0) { in bcm2835_fb_validate_config() 234 config->xres = XRES_SMALL; in bcm2835_fb_validate_config() 240 config->xres_virtual = config->xres; in bcm2835_fb_validate_config() 249 config->xres_virtual - config->xres); in bcm2835_fb_validate_config() [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/omap/ |
H A D | lcd_dma.c | 60 int rotate, data_type, xres, yres; member 74 lcd_dma.xres = fb_xres; in omap_set_lcd_dma_b1() 158 vxres = lcd_dma.vxres ? lcd_dma.vxres : lcd_dma.xres; in set_b1_regs() 161 BUG_ON(vxres < lcd_dma.xres); in set_b1_regs() 171 bottom = PIXADDR(lcd_dma.xres - 1, lcd_dma.yres - 1); in set_b1_regs() 178 fi = PIXSTEP(lcd_dma.xres - 1, 0, 0, 1); in set_b1_regs() 180 top = PIXADDR(lcd_dma.xres - 1, 0); in set_b1_regs() 183 fi = PIXSTEP(0, 0, lcd_dma.xres - 1, 1); in set_b1_regs() 185 en = lcd_dma.xres; in set_b1_regs() 191 bottom = PIXADDR(lcd_dma.xres - 1, 0); in set_b1_regs() [all …]
|
/openbmc/u-boot/drivers/video/ |
H A D | fsl_diu_fb.c | 24 .xres = 800, 41 .xres = 800, 63 .xres = 1024, 79 .xres = 1280, 95 .xres = 1280, 111 .xres = 1920, 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 | 199 GET_OPTION ("x:", pPar->xres) in video_get_params() 234 int video_get_video_mode(unsigned int *xres, unsigned int *yres, in video_get_video_mode() argument 249 *xres = simple_strtoul(p, &p, 10); in video_get_video_mode() 250 if (!*xres) 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() 307 if (res_mode_init[i].xres == xres && in video_get_ctfb_res_modes() 317 xres, yres, depth, refresh, (*mode_ret)->xres, in video_get_ctfb_res_modes() 404 mode->xres = EDID_DETAILED_TIMING_HORIZONTAL_ACTIVE(*t); in video_edid_dtd_to_ctfb_res_modes() 407 h_total = mode->xres + EDID_DETAILED_TIMING_HORIZONTAL_BLANKING(*t); in video_edid_dtd_to_ctfb_res_modes()
|
H A D | mxsfb.c | 94 writel((mode->yres << LCDIF_TRANSFER_COUNT_V_COUNT_OFFSET) | mode->xres, in mxs_lcd_init() 106 mode->hsync_len + mode->xres), in mxs_lcd_init() 112 writel((0 << LCDIF_VDCTRL4_DOTCLK_DLY_SEL_OFFSET) | mode->xres, in mxs_lcd_init() 173 mode.xres, mode.yres, bpp); in video_hw_init() 175 panel.winSizeX = mode.xres; in video_hw_init() 177 panel.plnSizeX = mode.xres; in video_hw_init() 199 panel.memSize = mode.xres * mode.yres * panel.gdfBytesPP; in video_hw_init()
|
H A D | fsl_dcu_fb.c | 90 .xres = 480, 109 .xres = 640, 125 .xres = 640, 141 .xres = 800, 157 .xres = 1024, 250 DCU_CTRLDESCLN_1_WIDTH(info.var.xres)); 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() 322 DCU_DISP_SIZE_DELTA_X(info.var.xres / 16)); in fsl_dcu_init() 408 info.var.xres = fsl_dcu_mode_db->xres; in video_hw_init() [all …]
|
H A D | sandbox_sdl.c | 28 ret = sandbox_sdl_init_display(plat->xres, plat->yres, plat->bpix); in sandbox_sdl_probe() 33 uc_priv->xsize = plat->xres; in sandbox_sdl_probe() 51 plat->xres = fdtdec_get_int(blob, node, "xres", LCD_MAX_WIDTH); in sandbox_sdl_bind() 54 uc_plat->size = plat->xres * plat->yres * (1 << plat->bpix) / 8; in sandbox_sdl_bind()
|
/openbmc/linux/drivers/staging/fbtft/ |
H A D | fb_sh1106.c | 23 if (!par->info->var.xres || par->info->var.xres > WIDTH || in init_display() 114 u32 xres = par->info->var.xres; in write_vmem() local 119 page_start = offset / (8 * 2 * xres); in write_vmem() 120 page_end = DIV_ROUND_UP(offset + len, 8 * 2 * xres); in write_vmem() 126 memset(buf, 0, xres); in write_vmem() 127 for (x = 0; x < xres; x++) in write_vmem() 129 if (vmem16[(page * 8 + i) * xres + x]) in write_vmem() 133 ret = fbtft_write_buf_dc(par, buf, xres, 1); in write_vmem()
|
H A D | fb_agm1264k-fl.c | 235 if (src[(y * 8 + i) * par->info->var.xres + x]) in construct_line_bitmap() 245 static void iterate_diffusion_matrix(u32 xres, u32 yres, int x, in iterate_diffusion_matrix() argument 259 if (x + i < 0 || x + i >= xres || y + j >= yres) in iterate_diffusion_matrix() 261 write_pos = &convert_buf[(y + j) * xres + x + i]; in iterate_diffusion_matrix() 286 signed short *convert_buf = kmalloc_array(par->info->var.xres * in write_vmem() 293 for (x = 0; x < par->info->var.xres; ++x) in write_vmem() 295 u16 pixel = vmem16[y * par->info->var.xres + x]; in write_vmem() 305 convert_buf[y * par->info->var.xres + x] = in write_vmem() 310 for (x = 0; x < par->info->var.xres; ++x) in write_vmem() 313 convert_buf[y * par->info->var.xres + x]; in write_vmem() [all …]
|
H A D | fb_ssd1306.c | 145 if (par->info->var.xres == 64 && par->info->var.yres == 48) in set_addr_win() 177 u32 xres = par->info->var.xres; in write_vmem() local 183 for (x = 0; x < xres; x++) { in write_vmem() 187 if (vmem16[(y * 8 + i) * xres + x]) in write_vmem() 195 ret = par->fbtftops.write(par, par->txbuf.buf, xres * yres / 8); in write_vmem()
|
/openbmc/linux/drivers/video/fbdev/core/ |
H A D | modedb.c | 24 ((v).xres == (x) && (v).yres == (y)) 554 mode->xres, mode->yres, bpp, mode->refresh); in fb_try_mode() 555 var->xres = mode->xres; in fb_try_mode() 557 var->xres_virtual = mode->xres; in fb_try_mode() 652 unsigned int xres = 0, yres = 0, bpp = default_bpp, refresh = 0; in fb_find_mode() local 722 xres = simple_strtol(name, NULL, 10); in fb_find_mode() 731 DPRINTK("CVT mode %dx%d@%dHz%s%s%s\n", xres, yres, in fb_find_mode() 738 cvt_mode.xres = xres; 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 | fbcvt.c | 36 u32 xres; member 190 u32 xres = cvt->xres; 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() 225 pixcount = (cvt->xres * (cvt->yres/cvt->interlace))/1000000; in fb_cvt_print_name() 226 pixcount_mod = (cvt->xres * (cvt->yres/cvt->interlace)) % 1000000; in fb_cvt_print_name() 230 cvt->xres, cvt->yres, cvt->refresh); in fb_cvt_print_name() [all …]
|
H A D | fbmon.c | 381 static void calc_mode_timings(int xres, int yres, int refresh, in calc_mode_timings() argument 389 var->xres = xres; in calc_mode_timings() 393 mode->xres = xres; in calc_mode_timings() 512 int xres, yres = 0, refresh, ratio; in get_std_timing() local 514 xres = (block[0] + 31) * 8; in get_std_timing() 515 if (xres <= 256) in get_std_timing() 523 yres = xres; in get_std_timing() 525 yres = (xres * 10)/16; in get_std_timing() 528 yres = (xres * 3)/4; in get_std_timing() 531 yres = (xres * 4)/5; in get_std_timing() [all …]
|
/openbmc/linux/drivers/video/fbdev/ |
H A D | atafb.c | 581 int xres = var->xres; in tt_decode_var() local 588 if (bpp > 1 || xres > sttt_xres * 2 || yres > tt_yres * 2) in tt_decode_var() 591 xres = sttt_xres * 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() 601 xres = sttt_xres / 2; 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() 609 xres = sttt_xres; in tt_decode_var() 614 xres = sttt_xres / 2; in tt_decode_var() [all …]
|
H A D | arcfb.c | 53 #define floorXres(a,xres) (a&(~(xres - 1))) argument 56 #define ceilXres(a,xres) (a|(xres - 1)) argument 94 .xres = 128, 263 linesize = par->info->var.xres/8; in arcfb_lcd_update_page() 453 unsigned int xres; in arcfb_write() local 460 xres = info->var.xres; in arcfb_write() 461 fbmemlength = (xres * info->var.yres)/8; in arcfb_write() 483 startpos = floorXres(bitppos, xres); in arcfb_write() 484 endpos = ceilXres((bitppos + (count*8)), xres); in arcfb_write() 487 x = startpos % xres; in arcfb_write() [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() 283 xres = max(var->xres, 1U); in ps3fb_cmp_mode() 293 dx = ((long)vmode->left_margin + (long)vmode->xres + in ps3fb_cmp_mode() 295 (left_margin + xres + right_margin); in ps3fb_cmp_mode() 310 return (vmode->xres - xres) * (vmode->yres - yres); in ps3fb_cmp_mode() 344 var->left_margin, var->xres, var->right_margin, in ps3fb_find_mode() 350 __func__, id, vmode->left_margin, vmode->xres, in ps3fb_find_mode() 371 *ddr_line_length = vmode->xres * BPP; in ps3fb_find_mode() 374 if (!var->xres) in ps3fb_find_mode() [all …]
|
H A D | macmodes.c | 271 var->xres = mode->xres; in mac_vmode_to_var() 273 var->xres_virtual = mode->xres; 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 | goldfishfb.c | 92 if ((var->xres != info->var.yres) || in goldfish_fb_check_var() 93 (var->yres != info->var.xres) || in goldfish_fb_check_var() 95 (var->yres_virtual > info->var.xres * 2) || in goldfish_fb_check_var() 96 (var->yres_virtual < info->var.xres)) { in goldfish_fb_check_var() 100 if ((var->xres != info->var.xres) || in goldfish_fb_check_var() 102 (var->xres_virtual != info->var.xres) || in goldfish_fb_check_var() 121 info->fix.line_length = info->var.xres * 2; in goldfish_fb_set_par() 138 writel(fb->fb.fix.smem_start + fb->fb.var.xres * 2 * var->yoffset, in goldfish_fb_pan_display() 220 fb->fb.var.xres = width; in goldfish_fb_probe()
|
/openbmc/qemu/include/hw/display/ |
H A D | bcm2835_fb.h | 29 uint32_t xres, yres; member 69 uint32_t xres = MAX(config->xres, config->xres_virtual); in bcm2835_fb_get_pitch() local 70 return xres * (config->bpp >> 3); in bcm2835_fb_get_pitch()
|
/openbmc/linux/drivers/video/fbdev/aty/ |
H A D | radeon_monitor.c | 9 .xres = 640, 186 rinfo->panel_info.xres = BIOS_IN16(tmp + 25); in radeon_get_panel_info_BIOS() 189 rinfo->panel_info.xres, rinfo->panel_info.yres); in radeon_get_panel_info_BIOS() 216 if ((BIOS_IN16(tmp0) == rinfo->panel_info.xres) && in radeon_get_panel_info_BIOS() 688 rinfo->panel_info.xres = var->xres; in radeon_var_to_panel_info() 715 var->xres = mode->xres; in radeon_videomode_to_var() 717 var->xres_virtual = mode->xres; in radeon_videomode_to_var() 782 if (var.xres >= rinfo->panel_info.xres && in radeon_check_modes() 801 var->xres = rinfo->panel_info.xres; in radeon_check_modes() 803 var->xres_virtual = rinfo->panel_info.xres; 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()
|