Home
last modified time | relevance | path

Searched refs:xres (Results 1 – 25 of 336) sorted by relevance

12345678910>>...14

/kernel/linux/linux-5.10/drivers/video/fbdev/i810/
Di810_dvt.c194 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 …]
Di810_gtf.c112 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 …]
Di810_main.h18 extern void round_off_xres (u32 *xres);
19 extern void round_off_yres (u32 *xres, u32 *yres);
23 struct i810fb_par *par, u32 xres, u32 yres);
/kernel/linux/linux-5.10/drivers/video/fbdev/via/
Dvia_utility.c36 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 …]
/kernel/linux/linux-5.10/arch/arm/mach-omap1/
Dlcd_dma.c57 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 …]
/kernel/linux/linux-5.10/drivers/staging/fbtft/
Dfb_sh1106.c23 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()
Dfb_agm1264k-fl.c248 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 …]
Dfb_ssd1306.c145 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()
/kernel/linux/linux-5.10/drivers/video/fbdev/core/
Dfbcvt.c36 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 …]
Dmodedb.c24 ((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()
649 unsigned int xres = 0, yres = 0, bpp = default_bpp, refresh = 0; in fb_find_mode() local
719 xres = simple_strtol(name, NULL, 10); in fb_find_mode()
727 DPRINTK("CVT mode %dx%d@%dHz%s%s%s\n", xres, yres, in fb_find_mode()
734 cvt_mode.xres = xres; in fb_find_mode()
755 xres, yres); in fb_find_mode()
779 (res_specified && res_matches(db[i], xres, yres))) && in fb_find_mode()
[all …]
Dfbmon.c381 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 …]
/kernel/linux/linux-5.10/drivers/video/fbdev/
Datafb.c593 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 …]
Darcfb.c52 #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 …]
Dps3fb.c268 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 …]
Dmacmodes.c271 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()
Dgoldfishfb.c92 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()
Dw100fb.c195 …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 …]
Dfsl-diu-fb.c58 .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 …]
D68328fb.c151 if (!var->xres) in mc68x328fb_check_var()
152 var->xres = 1; in mc68x328fb_check_var()
155 if (var->xres > var->xres_virtual) in mc68x328fb_check_var()
156 var->xres_virtual = var->xres; in mc68x328fb_check_var()
172 if (var->xres_virtual < var->xoffset + var->xres) in mc68x328fb_check_var()
173 var->xres_virtual = var->xoffset + var->xres; in mc68x328fb_check_var()
375 if (var->xoffset + info->var.xres > info->var.xres_virtual || in mc68x328fb_pan_display()
429 mc68x328fb_default.xres = LXMAX; in mc68x328fb_init()
431 mc68x328fb_default.xres_virtual = mc68x328fb_default.xres; in mc68x328fb_init()
Dau1100fb.h76 u32 xres; /* Maximum horizontal resolution */ member
275 .xres = 800,
288 .xres = 240,
299 .xres = 320,
326 .xres = 320,
348 .xres = 640,
360 .xres = 640,
Dpvr2fb.c159 .xres = 640,
382 par->hsync_total = var->left_margin + var->xres + var->right_margin + in pvr2fb_set_par()
415 par->borderstop_h = par->diwstart_h + var->xres + in pvr2fb_set_par()
422 if (info->var.xres < 640) in pvr2fb_set_par()
442 if (var->xres < 320) in pvr2fb_check_var()
443 var->xres = 320; in pvr2fb_check_var()
446 if (var->xres_virtual < var->xres) in pvr2fb_check_var()
447 var->xres_virtual = var->xres; in pvr2fb_check_var()
464 if (var->xoffset > var->xres_virtual - var->xres || in pvr2fb_check_var()
490 (par->diwstart_h + var->xres); in pvr2fb_check_var()
[all …]
/kernel/linux/linux-5.10/drivers/gpu/drm/selftests/
Dtest-drm_cmdline_parser.c158 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 …]
/kernel/linux/linux-5.10/drivers/video/fbdev/aty/
Dradeon_monitor.c9 .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 …]
/kernel/linux/linux-5.10/arch/arm/mach-pxa/
Dam200epd.c47 .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()
/kernel/linux/linux-5.10/arch/arm/mach-sa1100/
Dlart.c36 .xres = 320, .yres = 240,
52 .xres = 320, .yres = 240,
65 .xres = 640, .yres = 480,
81 .xres = 640, .yres = 480,

12345678910>>...14