| /OK3568_Linux_fs/kernel/drivers/video/fbdev/i810/ |
| H A D | i810_dvt.c | 194 void round_off_xres(u32 *xres) in round_off_xres() argument 196 if (*xres <= 640) in round_off_xres() 197 *xres = 640; in round_off_xres() 198 else if (*xres <= 800) in round_off_xres() 199 *xres = 800; in round_off_xres() 200 else if (*xres <= 1024) in round_off_xres() 201 *xres = 1024; in round_off_xres() 202 else if (*xres <= 1152) in round_off_xres() 203 *xres = 1152; in round_off_xres() 204 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 …]
|
| /OK3568_Linux_fs/kernel/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 …]
|
| /OK3568_Linux_fs/kernel/arch/arm/mach-omap1/ |
| H A D | lcd_dma.c | 57 int rotate, data_type, xres, yres; member 71 lcd_dma.xres = fb_xres; in omap_set_lcd_dma_b1() 155 vxres = lcd_dma.vxres ? lcd_dma.vxres : lcd_dma.xres; in set_b1_regs() 158 BUG_ON(vxres < lcd_dma.xres); in set_b1_regs() 168 bottom = PIXADDR(lcd_dma.xres - 1, lcd_dma.yres - 1); in set_b1_regs() 175 fi = PIXSTEP(lcd_dma.xres - 1, 0, 0, 1); in set_b1_regs() 177 top = PIXADDR(lcd_dma.xres - 1, 0); in set_b1_regs() 180 fi = PIXSTEP(0, 0, lcd_dma.xres - 1, 1); in set_b1_regs() 182 en = lcd_dma.xres; in set_b1_regs() 188 bottom = PIXADDR(lcd_dma.xres - 1, 0); in set_b1_regs() [all …]
|
| /OK3568_Linux_fs/u-boot/drivers/video/ |
| H A D | fsl_diu_fb.c | 25 .xres = 800, 42 .xres = 800, 64 .xres = 1024, 80 .xres = 1280, 96 .xres = 1280, 112 .xres = 1920, 222 static struct diu_ad *allocate_fb(unsigned int xres, unsigned int yres, in allocate_fb() argument 225 unsigned long size = xres * yres * depth; in allocate_fb() 240 ad->aoi_size = cpu_to_le32((yres << 16) | xres); in allocate_fb() 241 ad->src_size_g_alpha = cpu_to_le32((yres << 12) | xres); in allocate_fb() [all …]
|
| H A D | videomodes.c | 200 GET_OPTION ("x:", pPar->xres) in video_get_params() 235 int video_get_video_mode(unsigned int *xres, unsigned int *yres, in video_get_video_mode() argument 250 *xres = simple_strtoul(p, &p, 10); in video_get_video_mode() 251 if (!*xres) in video_get_video_mode() 298 unsigned int i, xres, yres, depth, refresh; in video_get_ctfb_res_modes() local 304 if (!video_get_video_mode(&xres, &yres, &depth, &refresh, options)) in video_get_ctfb_res_modes() 308 if (res_mode_init[i].xres == xres && in video_get_ctfb_res_modes() 318 xres, yres, depth, refresh, (*mode_ret)->xres, in video_get_ctfb_res_modes() 407 mode->xres = EDID_DETAILED_TIMING_HORIZONTAL_ACTIVE(*t); in video_edid_dtd_to_ctfb_res_modes() 410 h_total = mode->xres + EDID_DETAILED_TIMING_HORIZONTAL_BLANKING(*t); in video_edid_dtd_to_ctfb_res_modes()
|
| H A D | fsl_dcu_fb.c | 91 .xres = 480, 110 .xres = 640, 126 .xres = 640, 142 .xres = 800, 158 .xres = 1024, 251 DCU_CTRLDESCLN_1_WIDTH(info.var.xres)); in layer_ctrldesc_init() 298 int fsl_dcu_init(unsigned int xres, unsigned int yres, in fsl_dcu_init() argument 305 info.var.xres * info.var.yres * (info.var.bits_per_pixel / 8); in fsl_dcu_init() 323 DCU_DISP_SIZE_DELTA_X(info.var.xres / 16)); in fsl_dcu_init() 409 info.var.xres = fsl_dcu_mode_db->xres; in video_hw_init() [all …]
|
| H A D | mxsfb.c | 95 writel((mode->yres << LCDIF_TRANSFER_COUNT_V_COUNT_OFFSET) | mode->xres, in mxs_lcd_init() 107 mode->hsync_len + mode->xres), in mxs_lcd_init() 113 writel((0 << LCDIF_VDCTRL4_DOTCLK_DLY_SEL_OFFSET) | mode->xres, in mxs_lcd_init() 174 mode.xres, mode.yres, bpp); in video_hw_init() 176 panel.winSizeX = mode.xres; in video_hw_init() 178 panel.plnSizeX = mode.xres; in video_hw_init() 200 panel.memSize = mode.xres * mode.yres * panel.gdfBytesPP; in video_hw_init()
|
| /OK3568_Linux_fs/kernel/drivers/video/fbdev/core/ |
| H A D | modedb.c | 24 ((v).xres == (x) && (v).yres == (y)) 549 mode->xres, mode->yres, bpp, mode->refresh); in fb_try_mode() 550 var->xres = mode->xres; in fb_try_mode() 552 var->xres_virtual = mode->xres; in fb_try_mode() 644 unsigned int xres = 0, yres = 0, bpp = default_bpp, refresh = 0; in fb_find_mode() local 714 xres = simple_strtol(name, NULL, 10); in fb_find_mode() 722 DPRINTK("CVT mode %dx%d@%dHz%s%s%s\n", xres, yres, in fb_find_mode() 729 cvt_mode.xres = xres; in fb_find_mode() 750 xres, yres); in fb_find_mode() 774 (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 …]
|
| /OK3568_Linux_fs/kernel/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 | 248 if (src[(y * 8 + i) * par->info->var.xres + x]) in construct_line_bitmap() 258 static void iterate_diffusion_matrix(u32 xres, u32 yres, int x, in iterate_diffusion_matrix() argument 272 if (x + i < 0 || x + i >= xres || y + j >= yres) in iterate_diffusion_matrix() 274 write_pos = &convert_buf[(y + j) * xres + x + i]; in iterate_diffusion_matrix() 299 signed short *convert_buf = kmalloc_array(par->info->var.xres * in write_vmem() 306 for (x = 0; x < par->info->var.xres; ++x) in write_vmem() 308 u16 pixel = vmem16[y * par->info->var.xres + x]; in write_vmem() 318 convert_buf[y * par->info->var.xres + x] = in write_vmem() 323 for (x = 0; x < par->info->var.xres; ++x) in write_vmem() 326 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()
|
| /OK3568_Linux_fs/kernel/drivers/video/fbdev/ |
| H A D | atafb.c | 593 int xres = var->xres; in tt_decode_var() local 600 if (bpp > 1 || xres > sttt_xres * 2 || yres > tt_yres * 2) in tt_decode_var() 603 xres = sttt_xres * 2; in tt_decode_var() 607 if (bpp > 8 || xres > sttt_xres || yres > tt_yres) in tt_decode_var() 610 if (xres > sttt_xres / 2 || yres > tt_yres) in tt_decode_var() 613 xres = sttt_xres / 2; in tt_decode_var() 617 if (xres > sttt_xres || yres > tt_yres) in tt_decode_var() 619 if (xres > sttt_xres / 2 || yres > st_yres / 2) { in tt_decode_var() 621 xres = sttt_xres; in tt_decode_var() 626 xres = sttt_xres / 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() 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 | arcfb.c | 52 #define floorXres(a,xres) (a&(~(xres - 1))) argument 55 #define ceilXres(a,xres) (a|(xres - 1)) argument 93 .xres = 128, 262 linesize = par->info->var.xres/8; in arcfb_lcd_update_page() 452 unsigned int xres; in arcfb_write() local 456 xres = info->var.xres; in arcfb_write() 457 fbmemlength = (xres * info->var.yres)/8; in arcfb_write() 479 startpos = floorXres(bitppos, xres); in arcfb_write() 480 endpos = ceilXres((bitppos + (count*8)), xres); in arcfb_write() 483 x = startpos % xres; in arcfb_write() [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 | w100fb.c | 195 …memset_io(remapped_fbuf + (W100_FB_BASE-MEM_WINDOW_BASE), 0, (par->xres * par->yres * BITS_PER_PIX… in w100fb_clear_screen() 303 writel(par->xres, remapped_regs + mmDST_PITCH); in w100_init_graphic_engine() 305 writel(par->xres, remapped_regs + mmSRC_PITCH); in w100_init_graphic_engine() 309 writel((par->yres << 16) | par->xres, remapped_regs + mmSC_BOTTOM_RIGHT); in w100_init_graphic_engine() 447 if (modelist[i].xres >= *x && modelist[i].yres >= *y && in w100fb_get_mode() 448 modelist[i].xres < best_x && modelist[i].yres < best_y) { in w100fb_get_mode() 449 best_x = modelist[i].xres; in w100fb_get_mode() 452 } else if(modelist[i].xres >= *y && modelist[i].yres >= *x && in w100fb_get_mode() 453 modelist[i].xres < best_y && modelist[i].yres < best_x) { in w100fb_get_mode() 455 best_y = modelist[i].xres; in w100fb_get_mode() [all …]
|
| H A D | fsl-diu-fb.c | 58 .xres = 1024, 72 .xres = 320, 86 .xres = 640, 100 .xres = 640, 114 .xres = 640, 128 .xres = 640, 142 .xres = 640, 156 .xres = 800, 170 .xres = 800, 184 .xres = 854, [all …]
|
| 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() 223 fb->fb.var.xres = width; in goldfish_fb_probe()
|
| /OK3568_Linux_fs/kernel/drivers/gpu/drm/selftests/ |
| H A D | test-drm_cmdline_parser.c | 158 FAIL_ON(mode.xres != 720); in drm_cmdline_test_res() 226 FAIL_ON(mode.xres != 720); in drm_cmdline_test_res_vesa() 250 FAIL_ON(mode.xres != 720); in drm_cmdline_test_res_vesa_rblank() 274 FAIL_ON(mode.xres != 720); in drm_cmdline_test_res_rblank() 298 FAIL_ON(mode.xres != 720); in drm_cmdline_test_res_bpp() 334 FAIL_ON(mode.xres != 720); in drm_cmdline_test_res_refresh() 370 FAIL_ON(mode.xres != 720); in drm_cmdline_test_res_bpp_refresh() 396 FAIL_ON(mode.xres != 720); in drm_cmdline_test_res_bpp_refresh_interlaced() 422 FAIL_ON(mode.xres != 720); in drm_cmdline_test_res_bpp_refresh_margins() 448 FAIL_ON(mode.xres != 720); in drm_cmdline_test_res_bpp_refresh_force_off() [all …]
|
| /OK3568_Linux_fs/kernel/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() 690 rinfo->panel_info.xres = var->xres; in radeon_var_to_panel_info() 717 var->xres = mode->xres; in radeon_videomode_to_var() 719 var->xres_virtual = mode->xres; in radeon_videomode_to_var() 784 if (var.xres >= rinfo->panel_info.xres && in radeon_check_modes() 803 var->xres = rinfo->panel_info.xres; in radeon_check_modes() 805 var->xres_virtual = rinfo->panel_info.xres; in radeon_check_modes() [all …]
|
| /OK3568_Linux_fs/yocto/poky/meta/recipes-multimedia/libtiff/tiff/ |
| H A D | 0001-fix-the-FPE-in-tiffcrop-415-427-and-428.patch | 57 - x1 = (uint32_t) (crop->corners[i].X1 * scale * xres); 58 - x2 = (uint32_t) (crop->corners[i].X2 * scale * xres); 61 + x1 = _TIFFClampDoubleToUInt32(crop->corners[i].X1 * scale * xres); 62 + x2 = _TIFFClampDoubleToUInt32(crop->corners[i].X2 * scale * xres); 95 - lmargin = (uint32_t)(crop->margins[1] * scale * xres); 97 - rmargin = (uint32_t)(crop->margins[3] * scale * xres); 99 + lmargin = _TIFFClampDoubleToUInt32(crop->margins[1] * scale * xres); 101 + rmargin = _TIFFClampDoubleToUInt32(crop->margins[3] * scale * xres); 123 - width = (uint32_t)(crop->width * scale * image->xres); 124 + width = _TIFFClampDoubleToUInt32(crop->width * scale * image->xres);
|
| /OK3568_Linux_fs/kernel/arch/arm/mach-pxa/ |
| H A D | am200epd.c | 47 .xres = 1200, 61 .xres = 1088, 75 .xres = 832, 150 if ((info->var.xres != am200_fb_info.modes->xres) in am200_share_video_mem() 228 fw = am200_fb_info.modes->xres; in am200_presetup_fb() 250 am200_fb_info.modes->xres /= 2; in am200_presetup_fb()
|