Home
last modified time | relevance | path

Searched refs:fbi (Results 1 – 25 of 32) sorted by relevance

12

/linux/drivers/video/fbdev/
A Dsa1100fb.c472 sa1100fb_set_visual(fbi, fbi->fb.fix.visual); in sa1100fb_set_par()
568 return dma_mmap_wc(fbi->dev, vma, fbi->map_cpu, fbi->map_dma, in sa1100fb_mmap()
691 fbi->dbar1 = fbi->palette_dma; in sa1100fb_activate_var()
798 writel_relaxed(fbi->dbar1, fbi->base + DBAR1); in sa1100fb_enable_controller()
988 pcd = get_pcd(fbi, fbi->fb.var.pixclock); in sa1100fb_freq_transition()
1037 fbi->map_cpu = dma_alloc_wc(fbi->dev, fbi->map_size, &fbi->map_dma, in sa1100fb_map_video_memory()
1042 fbi->screen_dma = fbi->map_dma + PAGE_SIZE; in sa1100fb_map_video_memory()
1049 fbi->fb.fix.smem_start = fbi->screen_dma; in sa1100fb_map_video_memory()
1095 fbi->fb.pseudo_palette = fbi->pseudo_palette; in sa1100fb_init_fbinfo()
1190 sa1100fb_check_var(&fbi->fb.var, &fbi->fb); in sa1100fb_probe()
[all …]
A Dpxafb.c898 ofb->fbi = fbi; in init_pxafb_overlay()
1059 if (!fbi || (fbi->state != C_ENABLE)) in pxafb_get_hsync_time()
1180 lcd_writel(fbi, LCCR1, fbi->reg_lccr1); in pxafb_smart_flush()
1181 lcd_writel(fbi, LCCR2, fbi->reg_lccr2); in pxafb_smart_flush()
1182 lcd_writel(fbi, LCCR3, fbi->reg_lccr3); in pxafb_smart_flush()
1346 fbi->reg_lccr3 = fbi->lccr3 | in setup_parallel_timing()
1380 fbi->reg_lccr0 = fbi->lccr0 | in pxafb_activate_var()
1426 fbi->lcd_power(on, &fbi->fb.var); in __pxafb_lcd_power()
1723 fbi->fb.screen_base = fbi->video_mem; in pxafb_init_video_memory()
2313 fbi->dma_buff = dma_alloc_coherent(fbi->dev, fbi->dma_buff_size, in pxafb_probe()
[all …]
A Dwm8505fb.c54 writel(fbi->fb.fix.smem_start, fbi->regbase + WMT_GOVR_FBADDR); in wm8505fb_init_hw()
55 writel(fbi->fb.fix.smem_start, fbi->regbase + WMT_GOVR_FBADDR1); in wm8505fb_init_hw()
114 if (!fbi) in wm8505fb_set_par()
145 writel(fbi->contrast<<16 | fbi->contrast<<8 | fbi->contrast, in wm8505fb_set_par()
170 fbi->contrast = tmp; in contrast_store()
277 if (!fbi) in wm8505fb_probe()
296 fbi->fb.node = -1; in wm8505fb_probe()
298 addr = fbi; in wm8505fb_probe()
345 fbi->contrast = 0x10; in wm8505fb_probe()
371 fbi->fb.fix.id, fbi->fb.fix.smem_start, in wm8505fb_probe()
[all …]
A Dvt8500lcdfb.c46 if (!fbi) in vt8500lcd_set_par()
281 fbi = NULL; in vt8500lcd_probe()
285 if (!fbi) in vt8500lcd_probe()
309 fbi->fb.node = -1; in vt8500lcd_probe()
311 addr = fbi; in vt8500lcd_probe()
408 writel(fbi->fb.fix.smem_start >> 22, fbi->regbase + 0x1c); in vt8500lcd_probe()
409 writel((fbi->palette_phys & 0xfffffe00) | 1, fbi->regbase + 0x18); in vt8500lcd_probe()
423 writel(readl(fbi->regbase) | 1, fbi->regbase); in vt8500lcd_probe()
431 free_irq(irq, fbi); in vt8500lcd_probe()
434 fbi->palette_cpu, fbi->palette_phys); in vt8500lcd_probe()
[all …]
A Dimxfb.c339 for (i = 0, m = &fbi->mode[0]; i < fbi->num_modes; i++, m++) { in imxfb_find_mode()
429 fbi->pcr = pcr; in imxfb_check_var()
495 writel(fbi->map_dma, fbi->regs + LCDC_SSA); in imxfb_enable_controller()
642 writel(fbi->pcr, fbi->regs + LCDC_PCR); in imxfb_activate_var()
643 if (fbi->pwmr) in imxfb_activate_var()
644 writel(fbi->pwmr, fbi->regs + LCDC_PWMR); in imxfb_activate_var()
645 writel(fbi->lscr1, fbi->regs + LCDC_LSCR1); in imxfb_activate_var()
649 writel(fbi->dmacr, fbi->regs + LCDC_DMACR); in imxfb_activate_var()
652 writel(fbi->lauscr, fbi->regs + LCDC_LAUSCR); in imxfb_activate_var()
779 if (fbi->pwmr && fbi->enabled) { in imxfb_lcd_set_contrast()
[all …]
A Dmx3fb.c849 fbi->var.xres, fbi->var.yres, in __set_par()
1115 blank, fbi->screen_base, fbi->fix.smem_len); in mx3fb_blank()
1355 (uint32_t) fbi->fix.smem_start, fbi->screen_base, fbi->fix.smem_len); in mx3fb_map_video_memory()
1357 fbi->screen_size = fbi->fix.smem_len; in mx3fb_map_video_memory()
1378 dma_free_wc(fbi->device, fbi->fix.smem_len, fbi->screen_base, in mx3fb_unmap_video_memory()
1404 if (!fbi) in mx3fb_init_fbinfo()
1451 if (!fbi) in init_fb_chan()
1470 if (!fb_find_mode(&fbi->var, fbi, fb_mode, mode, in init_fb_chan()
1479 fbi->var.yres_virtual = fbi->var.yres * 2; in init_fb_chan()
1481 mx3fb->fbi = fbi; in init_fb_chan()
[all …]
A Dpxa168fb.c204 fbi->pix_fmt = pix_fmt; in pxa168fb_check_var()
320 x |= ((fbi->pix_fmt & 1) ^ (fbi->panel_rbswap)) << 12; in set_dma_control0()
436 set_dma_control0(fbi); in pxa168fb_set_par()
632 fbi = info->par; in pxa168fb_probe()
633 fbi->info = info; in pxa168fb_probe()
634 fbi->clk = clk; in pxa168fb_probe()
637 fbi->is_blanked = 0; in pxa168fb_probe()
638 fbi->active = mi->active; in pxa168fb_probe()
663 if (fbi->reg_base == NULL) { in pxa168fb_probe()
777 if (!fbi) in pxa168fb_remove()
[all …]
A Dep93xx-fb.c328 if (fbi->mach_info->blank) in ep93xxfb_blank()
332 clk_disable(fbi->clk); in ep93xxfb_blank()
334 clk_enable(fbi->clk); in ep93xxfb_blank()
376 ep93xxfb_writel(fbi, in ep93xxfb_setcolreg()
465 struct ep93xx_fbi *fbi; in ep93xxfb_probe() local
479 fbi = info->par; in ep93xxfb_probe()
505 fbi->res = res; in ep93xxfb_probe()
508 if (!fbi->mmio_base) { in ep93xxfb_probe()
544 if (IS_ERR(fbi->clk)) { in ep93xxfb_probe()
545 err = PTR_ERR(fbi->clk); in ep93xxfb_probe()
[all …]
A Dsm501fb.c207 if (fbi) { in sm501_alloc_mem()
208 par = fbi->par; in sm501_alloc_mem()
223 if (fbi) { in sm501_alloc_mem()
224 par = fbi->par; in sm501_alloc_mem()
1495 par = fbi->par; in sm501_init_cursor()
1876 if (!fbi) in sm501fb_probe_one()
1879 par = fbi->par; in sm501fb_probe_one()
1896 if (!fbi) in sm501_free_init_fb()
1908 if (!fbi) in sm501fb_start_one()
2079 if (!fbi) in sm501fb_suspend_fb()
[all …]
A Ds3c2410fb.c69 void __iomem *regs = fbi->io; in s3c2410fb_set_lcdaddr()
371 void __iomem *regs = fbi->io; in s3c2410fb_activate_var()
460 if (!fbi->palette_ready) { in schedule_palette_update()
461 fbi->palette_ready = 1; in schedule_palette_update()
486 void __iomem *regs = fbi->io; in s3c2410fb_setcolreg()
543 writel(fbi->regs.lcdcon1, fbi->io + S3C2410_LCDCON1); in s3c2410fb_lcd_enable()
689 void __iomem *regs = fbi->io; in s3c2410fb_init_registers()
693 if (is_s3c2412(fbi)) { in s3c2410fb_init_registers()
728 void __iomem *regs = fbi->io; in s3c2410fb_write_palette()
730 fbi->palette_ready = 0; in s3c2410fb_write_palette()
[all …]
A Dau1200fb.c1011 fbi->fix.line_length = fbi->var.xres_virtual / in au1200fb_update_fbinfo()
1016 fbi->fix.line_length = fbi->var.xres_virtual * (fbi->var.bits_per_pixel / 8); in au1200fb_update_fbinfo()
1021 fbi->fix.line_length = fbi->var.xres_virtual / 8; in au1200fb_update_fbinfo()
1024 fbi->screen_size = fbi->fix.line_length * fbi->var.yres_virtual; in au1200fb_update_fbinfo()
1037 struct fb_info *fbi) in au1200fb_fb_check_var() argument
1536 fbi, in au1200fb_init_fbinfo()
1558 strncpy(fbi->fix.id, "AU1200", sizeof(fbi->fix.id)); in au1200fb_init_fbinfo()
1677 if (!fbi) { in au1200fb_drv_probe()
1683 fbdev = fbi->par; in au1200fb_drv_probe()
1724 fb_set_cmap(&fbi->cmap, fbi); in au1200fb_drv_probe()
[all …]
A Dau1100fb.c241 fbdev = to_au1100fb_device(fbi); in au1100fb_fb_setcolreg()
247 if (fbi->var.grayscale) { in au1100fb_fb_setcolreg()
258 palette = (u32*)fbi->pseudo_palette; in au1100fb_fb_setcolreg()
260 red >>= (16 - fbi->var.red.length); in au1100fb_fb_setcolreg()
261 green >>= (16 - fbi->var.green.length); in au1100fb_fb_setcolreg()
262 blue >>= (16 - fbi->var.blue.length); in au1100fb_fb_setcolreg()
265 (green << fbi->var.green.offset)| in au1100fb_fb_setcolreg()
266 (blue << fbi->var.blue.offset); in au1100fb_fb_setcolreg()
299 fbdev = to_au1100fb_device(fbi); in au1100fb_fb_pan_display()
307 if (var->xoffset - fbi->var.xoffset) { in au1100fb_fb_pan_display()
[all …]
A Dtmiofb.c409 struct tmiofb_par *par = fbi->par; in tmiofb_sync()
414 ret = tmiofb_acc_wait(fbi, 0); in tmiofb_sync()
439 if (fbi->state != FBINFO_STATE_RUNNING || in tmiofb_fillrect()
441 cfb_fillrect(fbi, rect); in tmiofb_fillrect()
459 if (fbi->state != FBINFO_STATE_RUNNING || in tmiofb_copyarea()
461 cfb_copyarea(fbi, area); in tmiofb_copyarea()
485 struct tmiofb_par *par = fbi->par; in tmiofb_vblank()
486 struct fb_videomode *mode = fbi->mode; in tmiofb_vblank()
512 tmiofb_vblank(fbi, &vblank); in tmiofb_ioctl()
520 tmiofb_sync(fbi); in tmiofb_ioctl()
[all …]
/linux/drivers/video/fbdev/mmp/fb/
A Dmmpfb.c411 fbmode_to_mmpmode(&mode, &fbi->mode, fbi->output_fmt); in mmpfb_set_par()
555 fbi = info->par; in mmpfb_probe()
558 fbi->fb_info = info; in mmpfb_probe()
568 if (!fbi->path) { in mmpfb_probe()
574 dev_info(fbi->dev, "path %s get\n", fbi->path->name); in mmpfb_probe()
577 fbi->overlay = mmp_path_get_overlay(fbi->path, mi->overlay_id); in mmpfb_probe()
578 if (!fbi->overlay) { in mmpfb_probe()
613 dev_info(fbi->dev, "fb %dk allocated\n", fbi->fb_size/1024); in mmpfb_probe()
634 if (fbi->fb_start) { in mmpfb_probe()
645 dma_free_coherent(&pdev->dev, PAGE_ALIGN(fbi->fb_size), fbi->fb_start, in mmpfb_probe()
[all …]
/linux/drivers/video/fbdev/mb862xx/
A Dmb862xxfbdrv.c239 reg = pack(fbi->var.yres - 1, fbi->var.xres); in mb862xxfb_set_par()
253 reg = pack(fbi->var.xres - 1, fbi->var.xres - 1); in mb862xxfb_set_par()
255 reg = pack((fbi->var.yres - 1), vsp(&fbi->var)); in mb862xxfb_set_par()
455 fbi->var.xres_virtual = fbi->var.xres; in mb862xxfb_init_fbinfo()
456 fbi->var.yres_virtual = fbi->var.yres; in mb862xxfb_init_fbinfo()
472 fbi->var.right_margin = hsp - fbi->var.xres; in mb862xxfb_init_fbinfo()
475 fbi->var.lower_margin = vsp - fbi->var.yres; in mb862xxfb_init_fbinfo()
510 if ((fbi->fbops->fb_check_var)(&fbi->var, fbi)) in mb862xxfb_init_fbinfo()
513 fbi->fix.visual = fbi->var.bits_per_pixel == 8 ? in mb862xxfb_init_fbinfo()
515 fbi->fix.line_length = (fbi->var.xres_virtual * in mb862xxfb_init_fbinfo()
[all …]
/linux/drivers/video/fbdev/omap2/omapfb/
A Domapfb-sysfs.c52 lock_fb_info(fbi); in store_rotate_type()
74 unlock_fb_info(fbi); in store_rotate_type()
103 lock_fb_info(fbi); in store_mirror()
113 memcpy(&fbi->var, &new_var, sizeof(fbi->var)); in store_mirror()
115 set_fb_fix(fbi); in store_mirror()
125 unlock_fb_info(fbi); in store_mirror()
139 lock_fb_info(fbi); in show_overlays()
197 lock_fb_info(fbi); in store_overlays()
328 lock_fb_info(fbi); in show_overlays_rotate()
356 lock_fb_info(fbi); in store_overlays_rotate()
[all …]
A Domapfb-main.c938 fill_fb(fbi); in omapfb_apply_changes()
1024 set_fb_fix(fbi); in omapfb_set_par()
1332 memset(&fbi->var, 0, sizeof(fbi->var)); in clear_fb_info()
1333 memset(&fbi->fix, 0, sizeof(fbi->fix)); in clear_fb_info()
1334 strlcpy(fbi->fix.id, MODULE_NAME, sizeof(fbi->fix.id)); in clear_fb_info()
1638 memcpy(&fbi->var, &new_var, sizeof(fbi->var)); in omapfb_realloc_fbmem()
1794 set_fb_fix(fbi); in omapfb_fb_init()
1880 if (!fbi) in omapfb_create_framebuffers()
2023 fbi = NULL; in omapfb_mode_to_timings()
2027 fbi = kzalloc(sizeof(*fbi), GFP_KERNEL); in omapfb_mode_to_timings()
[all …]
A Domapfb-ioctl.c53 struct omapfb_info *ofbi = FB2OFB(fbi); in omapfb_setup_plane()
100 set_fb_fix(fbi); in omapfb_setup_plane()
156 set_fb_fix(fbi); in omapfb_setup_plane()
178 struct omapfb_info *ofbi = FB2OFB(fbi); in omapfb_query_plane()
204 struct omapfb_info *ofbi = FB2OFB(fbi); in omapfb_setup_mem()
264 struct omapfb_info *ofbi = FB2OFB(fbi); in omapfb_query_mem()
302 struct omapfb_info *ofbi = FB2OFB(fbi); in omapfb_set_update_mode()
345 struct omapfb_info *ofbi = FB2OFB(fbi); in omapfb_get_update_mode()
418 struct omapfb_info *ofbi = FB2OFB(fbi); in omapfb_set_color_key()
448 struct omapfb_info *ofbi = FB2OFB(fbi); in omapfb_get_color_key()
[all …]
A Domapfb.h110 void set_fb_fix(struct fb_info *fbi);
111 int check_fb_var(struct fb_info *fbi, struct fb_var_screeninfo *var);
112 int omapfb_realloc_fbmem(struct fb_info *fbi, unsigned long size, int type);
113 int omapfb_apply_changes(struct fb_info *fbi, int init);
118 int omapfb_ioctl(struct fb_info *fbi, unsigned int cmd, unsigned long arg);
123 int omapfb_setup_overlay(struct fb_info *fbi, struct omap_overlay *ovl,
130 int omapfb_get_update_mode(struct fb_info *fbi, enum omapfb_update_mode *mode);
131 int omapfb_set_update_mode(struct fb_info *fbi, enum omapfb_update_mode mode);
134 static inline struct omap_dss_device *fb2display(struct fb_info *fbi) in fb2display() argument
136 struct omapfb_info *ofbi = FB2OFB(fbi); in fb2display()
/linux/drivers/gpu/drm/omapdrm/
A Domap_fbdev.c49 struct fb_info *fbi) in omap_fbdev_pan_display() argument
98 struct fb_info *fbi = NULL; in omap_fbdev_create() local
164 if (IS_ERR(fbi)) { in omap_fbdev_create()
166 ret = PTR_ERR(fbi); in omap_fbdev_create()
170 DBG("fbi=%p, dev=%p", fbi, dev); in omap_fbdev_create()
175 fbi->fbops = &omap_fb_ops; in omap_fbdev_create()
183 fbi->fix.smem_start = dma_addr; in omap_fbdev_create()
192 fbi->fix.ywrapstep = 1; in omap_fbdev_create()
196 DBG("par=%p, %dx%d", fbi->par, fbi->var.xres, fbi->var.yres); in omap_fbdev_create()
217 if (!fbi || strcmp(fbi->fix.id, MODULE_NAME)) { in get_fb()
[all …]
/linux/drivers/video/fbdev/omap/
A Domapfb_main.c606 ctrl_change_mode(fbi); in omapfb_pan_display()
647 r = set_fb_var(fbi, var); in omapfb_check_var()
664 set_fb_fix(fbi, 0); in omapfb_set_par()
665 r = ctrl_change_mode(fbi); in omapfb_set_par()
863 memcpy(&fbi->var, new_var, sizeof(fbi->var)); in omapfb_setup_mem()
864 set_fb_fix(fbi, 0); in omapfb_setup_mem()
873 fbi->fix.smem_len = 0; in omapfb_setup_mem()
1074 omapfb_sync(fbi); in omapfb_ioctl()
1493 struct fb_info *fbi; in planes_init() local
1501 if (fbi == NULL) { in planes_init()
[all …]
/linux/drivers/gpu/drm/msm/
A Dmsm_fbdev.c62 struct fb_info *fbi = NULL; in msm_fbdev_create() local
98 if (IS_ERR(fbi)) { in msm_fbdev_create()
100 ret = PTR_ERR(fbi); in msm_fbdev_create()
104 DBG("fbi=%p, dev=%p", fbi, dev); in msm_fbdev_create()
109 fbi->fbops = &msm_fb_ops; in msm_fbdev_create()
116 if (IS_ERR(fbi->screen_base)) { in msm_fbdev_create()
117 ret = PTR_ERR(fbi->screen_base); in msm_fbdev_create()
120 fbi->screen_size = bo->size; in msm_fbdev_create()
121 fbi->fix.smem_start = paddr; in msm_fbdev_create()
122 fbi->fix.smem_len = bo->size; in msm_fbdev_create()
[all …]
/linux/drivers/gpu/drm/rockchip/
A Drockchip_drm_fbdev.c49 struct fb_info *fbi; in rockchip_drm_fbdev_create() local
69 fbi = drm_fb_helper_alloc_fbi(helper); in rockchip_drm_fbdev_create()
70 if (IS_ERR(fbi)) { in rockchip_drm_fbdev_create()
72 ret = PTR_ERR(fbi); in rockchip_drm_fbdev_create()
85 fbi->fbops = &rockchip_drm_fbdev_ops; in rockchip_drm_fbdev_create()
88 drm_fb_helper_fill_info(fbi, helper, sizes); in rockchip_drm_fbdev_create()
90 offset = fbi->var.xoffset * bytes_per_pixel; in rockchip_drm_fbdev_create()
91 offset += fbi->var.yoffset * fb->pitches[0]; in rockchip_drm_fbdev_create()
94 fbi->screen_base = rk_obj->kvaddr + offset; in rockchip_drm_fbdev_create()
95 fbi->screen_size = rk_obj->base.size; in rockchip_drm_fbdev_create()
[all …]
/linux/drivers/gpu/drm/exynos/
A Dexynos_drm_fbdev.c76 struct fb_info *fbi; in exynos_drm_fbdev_update() local
81 fbi = drm_fb_helper_alloc_fbi(helper); in exynos_drm_fbdev_update()
82 if (IS_ERR(fbi)) { in exynos_drm_fbdev_update()
85 return PTR_ERR(fbi); in exynos_drm_fbdev_update()
88 fbi->fbops = &exynos_drm_fb_ops; in exynos_drm_fbdev_update()
90 drm_fb_helper_fill_info(fbi, helper, sizes); in exynos_drm_fbdev_update()
92 offset = fbi->var.xoffset * fb->format->cpp[0]; in exynos_drm_fbdev_update()
93 offset += fbi->var.yoffset * fb->pitches[0]; in exynos_drm_fbdev_update()
95 fbi->screen_buffer = exynos_gem->kvaddr + offset; in exynos_drm_fbdev_update()
96 fbi->screen_size = size; in exynos_drm_fbdev_update()
[all …]
/linux/drivers/gpu/drm/
A Ddrm_fb_helper.c2052 if (fbi) { in drm_fbdev_cleanup()
2053 if (fbi->fbdefio) in drm_fbdev_cleanup()
2054 fb_deferred_io_cleanup(fbi); in drm_fbdev_cleanup()
2323 struct fb_info *fbi; in drm_fb_helper_generic_probe() local
2343 if (IS_ERR(fbi)) in drm_fb_helper_generic_probe()
2344 return PTR_ERR(fbi); in drm_fb_helper_generic_probe()
2348 fbi->fix.smem_len = fbi->screen_size; in drm_fb_helper_generic_probe()
2353 fbi->screen_buffer = vzalloc(fbi->screen_size); in drm_fb_helper_generic_probe()
2354 if (!fbi->screen_buffer) in drm_fb_helper_generic_probe()
2359 fb_deferred_io_init(fbi); in drm_fb_helper_generic_probe()
[all …]

Completed in 74 milliseconds

12