Home
last modified time | relevance | path

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

12

/linux-6.6.21/drivers/video/fbdev/
Dsa1100fb.c219 static void set_ctrlr_state(struct sa1100fb_info *fbi, u_int state);
221 static inline void sa1100fb_schedule_work(struct sa1100fb_info *fbi, u_int state) in sa1100fb_schedule_work() argument
234 if (fbi->task_state == C_ENABLE && state == C_REENABLE) in sa1100fb_schedule_work()
236 if (fbi->task_state == C_DISABLE && state == C_ENABLE) in sa1100fb_schedule_work()
240 fbi->task_state = state; in sa1100fb_schedule_work()
241 schedule_work(&fbi->task); in sa1100fb_schedule_work()
271 struct sa1100fb_info *fbi = in sa1100fb_setpalettereg() local
275 if (regno < fbi->palette_size) { in sa1100fb_setpalettereg()
281 val |= palette_pbs(&fbi->fb.var); in sa1100fb_setpalettereg()
283 fbi->palette_cpu[regno] = val; in sa1100fb_setpalettereg()
[all …]
Dpxafb.c87 static void set_ctrlr_state(struct pxafb_info *fbi, u_int state);
88 static void setup_base_frame(struct pxafb_info *fbi,
90 static int setup_frame_dma(struct pxafb_info *fbi, int dma, int pal,
96 lcd_readl(struct pxafb_info *fbi, unsigned int off) in lcd_readl() argument
98 return __raw_readl(fbi->mmio_base + off); in lcd_readl()
102 lcd_writel(struct pxafb_info *fbi, unsigned int off, unsigned long val) in lcd_writel() argument
104 __raw_writel(val, fbi->mmio_base + off); in lcd_writel()
107 static inline void pxafb_schedule_work(struct pxafb_info *fbi, u_int state) in pxafb_schedule_work() argument
122 if (fbi->task_state == C_ENABLE && state == C_REENABLE) in pxafb_schedule_work()
124 if (fbi->task_state == C_DISABLE && state == C_ENABLE) in pxafb_schedule_work()
[all …]
Dwm8505fb.c45 struct wm8505fb_info *fbi = to_wm8505fb_info(info); in wm8505fb_init_hw() local
51 writel(0, fbi->regbase + i); in wm8505fb_init_hw()
54 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()
62 writel(0x31c, fbi->regbase + WMT_GOVR_COLORSPACE); in wm8505fb_init_hw()
63 writel(1, fbi->regbase + WMT_GOVR_COLORSPACE1); in wm8505fb_init_hw()
66 writel(info->var.xres, fbi->regbase + WMT_GOVR_XRES); in wm8505fb_init_hw()
67 writel(info->var.xres_virtual, fbi->regbase + WMT_GOVR_XRES_VIRTUAL); in wm8505fb_init_hw()
70 writel(0xf, fbi->regbase + WMT_GOVR_FHI); in wm8505fb_init_hw()
71 writel(4, fbi->regbase + WMT_GOVR_DVO_SET); in wm8505fb_init_hw()
[all …]
Dvt8500lcdfb.c41 struct vt8500lcd_info *fbi = to_vt8500lcd_info(info); in vt8500lcd_set_par() local
46 if (!fbi) in vt8500lcd_set_par()
112 control0 = readl(fbi->regbase) & ~0xf; in vt8500lcd_set_par()
113 writel(0, fbi->regbase); in vt8500lcd_set_par()
114 while (readl(fbi->regbase + 0x38) & 0x10) in vt8500lcd_set_par()
119 | (info->var.right_margin & 0xff), fbi->regbase + 0x4); in vt8500lcd_set_par()
123 | (info->var.lower_margin & 0xff), fbi->regbase + 0x8); in vt8500lcd_set_par()
125 | ((info->var.xres - 1) & 0x400), fbi->regbase + 0x10); in vt8500lcd_set_par()
126 writel(0x80000000, fbi->regbase + 0x20); in vt8500lcd_set_par()
127 writel(control0 | (reg_bpp << 1) | 0x100, fbi->regbase); in vt8500lcd_set_par()
[all …]
Dimxfb.c223 static inline int is_imx1_fb(struct imxfb_info *fbi) in is_imx1_fb() argument
225 return fbi->devtype == IMX1_FB; in is_imx1_fb()
281 struct imxfb_info *fbi = info->par; in imxfb_setpalettereg() local
285 if (regno < fbi->palette_size) { in imxfb_setpalettereg()
290 writel(val, fbi->regs + 0x800 + (regno << 2)); in imxfb_setpalettereg()
299 struct imxfb_info *fbi = info->par; in imxfb_setcolreg() local
309 if (fbi->cmap_inverse) { in imxfb_setcolreg()
350 static const struct imx_fb_videomode *imxfb_find_mode(struct imxfb_info *fbi) in imxfb_find_mode() argument
356 return &fbi->mode[0]; in imxfb_find_mode()
358 for (i = 0, m = &fbi->mode[0]; i < fbi->num_modes; i++, m++) { in imxfb_find_mode()
[all …]
Dpxa168fb.c162 static void set_mode(struct pxa168fb_info *fbi, struct fb_var_screeninfo *var, in set_mode() argument
165 struct fb_info *info = fbi->info; in set_mode()
194 struct pxa168fb_info *fbi = info->par; in pxa168fb_check_var() local
204 fbi->pix_fmt = pix_fmt; in pxa168fb_check_var()
240 static void set_clock_divider(struct pxa168fb_info *fbi, in set_clock_divider() argument
258 dev_err(fbi->dev, "Input refresh or pixclock is wrong.\n"); in set_clock_divider()
274 divider_int = clk_get_rate(fbi->clk) / needed_pixclk; in set_clock_divider()
278 dev_warn(fbi->dev, "Warning: clock source is too slow. " in set_clock_divider()
287 writel(x, fbi->reg_base + LCD_CFG_SCLK_DIV); in set_clock_divider()
290 static void set_dma_control0(struct pxa168fb_info *fbi) in set_dma_control0() argument
[all …]
Dep93xx-fb.c122 static inline unsigned int ep93xxfb_readl(struct ep93xx_fbi *fbi, in ep93xxfb_readl() argument
125 return __raw_readl(fbi->mmio_base + off); in ep93xxfb_readl()
128 static inline void ep93xxfb_writel(struct ep93xx_fbi *fbi, in ep93xxfb_writel() argument
131 __raw_writel(val, fbi->mmio_base + off); in ep93xxfb_writel()
137 static inline void ep93xxfb_out_locked(struct ep93xx_fbi *fbi, in ep93xxfb_out_locked() argument
144 ep93xxfb_writel(fbi, 0xaa, EP93XXFB_SWLOCK); in ep93xxfb_out_locked()
145 ep93xxfb_writel(fbi, val, reg); in ep93xxfb_out_locked()
150 struct ep93xx_fbi *fbi = info->par; in ep93xxfb_set_video_attribs() local
154 attribs |= fbi->mach_info->flags; in ep93xxfb_set_video_attribs()
155 ep93xxfb_out_locked(fbi, attribs, EP93XXFB_ATTRIBS); in ep93xxfb_set_video_attribs()
[all …]
Dsm501fb.c171 struct fb_info *fbi; in sm501_alloc_mem() local
186 fbi = inf->fb[HEAD_CRT]; in sm501_alloc_mem()
195 if (fbi && ptr < smem_len) in sm501_alloc_mem()
206 fbi = inf->fb[HEAD_PANEL]; in sm501_alloc_mem()
207 if (fbi) { in sm501_alloc_mem()
208 par = fbi->par; in sm501_alloc_mem()
219 fbi = inf->fb[HEAD_CRT]; in sm501_alloc_mem()
220 ptr = fbi ? smem_len : 0; in sm501_alloc_mem()
222 fbi = inf->fb[HEAD_PANEL]; in sm501_alloc_mem()
223 if (fbi) { in sm501_alloc_mem()
[all …]
Dau1200fb.c1002 static void au1200fb_update_fbinfo(struct fb_info *fbi) in au1200fb_update_fbinfo() argument
1008 if (fbi->var.bits_per_pixel <= 8) { in au1200fb_update_fbinfo()
1010 fbi->fix.visual = FB_VISUAL_PSEUDOCOLOR; in au1200fb_update_fbinfo()
1011 fbi->fix.line_length = fbi->var.xres_virtual / in au1200fb_update_fbinfo()
1012 (8/fbi->var.bits_per_pixel); in au1200fb_update_fbinfo()
1015 fbi->fix.visual = FB_VISUAL_TRUECOLOR; in au1200fb_update_fbinfo()
1016 fbi->fix.line_length = fbi->var.xres_virtual * (fbi->var.bits_per_pixel / 8); in au1200fb_update_fbinfo()
1020 fbi->fix.visual = FB_VISUAL_MONO10; 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()
[all …]
Dau1100fb.c106 static int au1100fb_fb_blank(int blank_mode, struct fb_info *fbi) in au1100fb_fb_blank() argument
108 struct au1100fb_device *fbdev = to_au1100fb_device(fbi); in au1100fb_fb_blank()
110 print_dbg("fb_blank %d %p", blank_mode, fbi); in au1100fb_fb_blank()
235 …(unsigned regno, unsigned red, unsigned green, unsigned blue, unsigned transp, struct fb_info *fbi) in au1100fb_fb_setcolreg() argument
241 fbdev = to_au1100fb_device(fbi); in au1100fb_fb_setcolreg()
247 if (fbi->var.grayscale) { in au1100fb_fb_setcolreg()
253 if (fbi->fix.visual == FB_VISUAL_TRUECOLOR) { 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()
[all …]
Dxilinxfb.c198 unsigned int blue, unsigned int transp, struct fb_info *fbi) in xilinx_fb_setcolreg() argument
200 u32 *palette = fbi->pseudo_palette; in xilinx_fb_setcolreg()
205 if (fbi->var.grayscale) { in xilinx_fb_setcolreg()
227 xilinx_fb_blank(int blank_mode, struct fb_info *fbi) in xilinx_fb_blank() argument
229 struct xilinxfb_drvdata *drvdata = to_xilinxfb_drvdata(fbi); in xilinx_fb_blank()
Ds3c-fb.c1083 struct fb_info *fbi = win->fbinfo; in s3c_fb_alloc_memory() local
1099 fbi->fix.smem_len = size; in s3c_fb_alloc_memory()
1104 fbi->screen_buffer = dma_alloc_wc(sfb->dev, size, &map_dma, GFP_KERNEL); in s3c_fb_alloc_memory()
1105 if (!fbi->screen_buffer) in s3c_fb_alloc_memory()
1109 (unsigned int)map_dma, fbi->screen_buffer); in s3c_fb_alloc_memory()
1111 memset(fbi->screen_buffer, 0x0, size); in s3c_fb_alloc_memory()
1112 fbi->fix.smem_start = map_dma; in s3c_fb_alloc_memory()
1126 struct fb_info *fbi = win->fbinfo; in s3c_fb_free_memory() local
1128 if (fbi->screen_buffer) in s3c_fb_free_memory()
1129 dma_free_wc(sfb->dev, PAGE_ALIGN(fbi->fix.smem_len), in s3c_fb_free_memory()
[all …]
Dda8xx-fb.c1209 struct fb_info *fbi) in da8xx_pan_display() argument
1213 struct da8xx_fb_par *par = fbi->par; in da8xx_pan_display()
1214 struct fb_fix_screeninfo *fix = &fbi->fix; in da8xx_pan_display()
1219 if (var->xoffset != fbi->var.xoffset || in da8xx_pan_display()
1220 var->yoffset != fbi->var.yoffset) { in da8xx_pan_display()
1221 memcpy(&new_var, &fbi->var, sizeof(new_var)); in da8xx_pan_display()
1224 if (fb_check_var(&new_var, fbi)) in da8xx_pan_display()
1227 memcpy(&fbi->var, &new_var, sizeof(new_var)); in da8xx_pan_display()
1231 new_var.xoffset * fbi->var.bits_per_pixel / 8; in da8xx_pan_display()
1232 end = start + fbi->var.yres * fix->line_length - 1; in da8xx_pan_display()
Dpxafb.h106 struct pxafb_info *fbi; member
/linux-6.6.21/drivers/video/fbdev/mmp/fb/
Dmmpfb.c275 struct mmpfb_info *fbi = info->par; in mmpfb_check_var() local
291 (var->bits_per_pixel >> 3) > fbi->fb_size) in mmpfb_check_var()
315 struct mmpfb_info *fbi = info->par; in mmpfb_setcolreg() local
322 fbi->pseudo_palette[regno] = val; in mmpfb_setcolreg()
336 struct mmpfb_info *fbi = info->par; in mmpfb_pan_display() local
341 * var->bits_per_pixel / 8 + fbi->fb_start_dma; in mmpfb_pan_display()
342 mmp_overlay_set_addr(fbi->overlay, &addr); in mmpfb_pan_display()
349 struct mmpfb_info *fbi = info->par; in var_update() local
359 fbi->pix_fmt = pix_fmt; in var_update()
364 dev_err(fbi->dev, "set par: no match mode, use best mode\n"); in var_update()
[all …]
/linux-6.6.21/drivers/video/fbdev/mb862xx/
Dmb862xxfbdrv.c111 struct fb_info *fbi) in mb862xxfb_check_var() argument
115 fb_dbg(fbi, "%s\n", __func__); in mb862xxfb_check_var()
144 if (d_pitch(&fbi->var) % GC_L0M_L0W_UNIT) { in mb862xxfb_check_var()
150 r = d_pitch(&fbi->var) % GC_L0M_L0W_UNIT; in mb862xxfb_check_var()
153 if (d_pitch(&fbi->var) % GC_L0M_L0W_UNIT) in mb862xxfb_check_var()
204 static int mb862xxfb_set_par(struct fb_info *fbi) in mb862xxfb_set_par() argument
206 struct mb862xxfb_par *par = fbi->par; in mb862xxfb_set_par()
211 mb862xxfb_init_accel(fbi, &mb862xxfb_ops, fbi->var.xres); in mb862xxfb_set_par()
222 sc = par->refclk / (1000000 / fbi->var.pixclock) - 1; in mb862xxfb_set_par()
230 reg = pack(d_pitch(&fbi->var) / GC_L0M_L0W_UNIT, in mb862xxfb_set_par()
[all …]
/linux-6.6.21/drivers/video/fbdev/omap2/omapfb/
Domapfb-sysfs.c30 struct fb_info *fbi = dev_get_drvdata(dev); in show_rotate_type() local
31 struct omapfb_info *ofbi = FB2OFB(fbi); in show_rotate_type()
40 struct fb_info *fbi = dev_get_drvdata(dev); in store_rotate_type() local
41 struct omapfb_info *ofbi = FB2OFB(fbi); in store_rotate_type()
53 lock_fb_info(fbi); in store_rotate_type()
75 unlock_fb_info(fbi); in store_rotate_type()
84 struct fb_info *fbi = dev_get_drvdata(dev); in show_mirror() local
85 struct omapfb_info *ofbi = FB2OFB(fbi); in show_mirror()
94 struct fb_info *fbi = dev_get_drvdata(dev); in store_mirror() local
95 struct omapfb_info *ofbi = FB2OFB(fbi); in store_mirror()
[all …]
Domapfb-main.c49 static int omapfb_fb_init(struct omapfb2_device *fbdev, struct fb_info *fbi);
54 static void draw_pixel(struct fb_info *fbi, int x, int y, unsigned color) in draw_pixel() argument
56 struct fb_var_screeninfo *var = &fbi->var; in draw_pixel()
57 struct fb_fix_screeninfo *fix = &fbi->fix; in draw_pixel()
58 void __iomem *addr = fbi->screen_base; in draw_pixel()
89 static void fill_fb(struct fb_info *fbi) in fill_fb() argument
91 struct fb_var_screeninfo *var = &fbi->var; in fill_fb()
94 void __iomem *addr = fbi->screen_base; in fill_fb()
100 DBG("fill_fb %dx%d, line_len %d bytes\n", w, h, fbi->fix.line_length); in fill_fb()
105 draw_pixel(fbi, x, y, 0xffffff); in fill_fb()
[all …]
Domapfb-ioctl.c51 static int omapfb_setup_plane(struct fb_info *fbi, struct omapfb_plane_info *pi) in omapfb_setup_plane() argument
53 struct omapfb_info *ofbi = FB2OFB(fbi); in omapfb_setup_plane()
100 set_fb_fix(fbi); in omapfb_setup_plane()
110 r = omapfb_setup_overlay(fbi, ovl, pi->pos_x, pi->pos_y, in omapfb_setup_plane()
156 set_fb_fix(fbi); in omapfb_setup_plane()
176 static int omapfb_query_plane(struct fb_info *fbi, struct omapfb_plane_info *pi) in omapfb_query_plane() argument
178 struct omapfb_info *ofbi = FB2OFB(fbi); in omapfb_query_plane()
202 static int omapfb_setup_mem(struct fb_info *fbi, struct omapfb_mem_info *mi) in omapfb_setup_mem() argument
204 struct omapfb_info *ofbi = FB2OFB(fbi); in omapfb_setup_mem()
206 struct omap_dss_device *display = fb2display(fbi); in omapfb_setup_mem()
[all …]
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-6.6.21/drivers/gpu/drm/omapdrm/
Domap_fbdev.c39 static struct drm_fb_helper *get_fb(struct fb_info *fbi);
45 struct fb_info *fbi = helper->info; in pan_worker() local
50 npages = fbi->fix.line_length >> PAGE_SHIFT; in pan_worker()
51 omap_gem_roll(bo, fbi->var.yoffset * npages); in pan_worker()
55 struct fb_info *fbi) in omap_fbdev_pan_display() argument
57 struct drm_fb_helper *helper = get_fb(fbi); in omap_fbdev_pan_display()
76 return drm_fb_helper_pan_display(var, fbi); in omap_fbdev_pan_display()
129 struct fb_info *fbi = NULL; in omap_fbdev_create() local
195 fbi = drm_fb_helper_alloc_info(helper); in omap_fbdev_create()
196 if (IS_ERR(fbi)) { in omap_fbdev_create()
[all …]
/linux-6.6.21/drivers/video/fbdev/omap/
Domapfb_main.c175 static int ctrl_change_mode(struct fb_info *fbi) in ctrl_change_mode() argument
179 struct omapfb_plane_struct *plane = fbi->par; in ctrl_change_mode()
181 struct fb_var_screeninfo *var = &fbi->var; in ctrl_change_mode()
183 offset = var->yoffset * fbi->fix.line_length + in ctrl_change_mode()
308 static int omapfb_update_full_screen(struct fb_info *fbi);
310 static int omapfb_blank(int blank, struct fb_info *fbi) in omapfb_blank() argument
312 struct omapfb_plane_struct *plane = fbi->par; in omapfb_blank()
346 r = omapfb_update_full_screen(fbi); in omapfb_blank()
351 static void omapfb_sync(struct fb_info *fbi) in omapfb_sync() argument
353 struct omapfb_plane_struct *plane = fbi->par; in omapfb_sync()
[all …]
Domapfb.h139 void *fbi);
167 int (*update_window) (struct fb_info *fbi,
/linux-6.6.21/drivers/gpu/drm/msm/
Dmsm_fbdev.c75 struct fb_info *fbi = NULL; in msm_fbdev_create() local
108 fbi = drm_fb_helper_alloc_info(helper); in msm_fbdev_create()
109 if (IS_ERR(fbi)) { in msm_fbdev_create()
111 ret = PTR_ERR(fbi); in msm_fbdev_create()
115 DBG("fbi=%p, dev=%p", fbi, dev); in msm_fbdev_create()
119 fbi->fbops = &msm_fb_ops; in msm_fbdev_create()
121 drm_fb_helper_fill_info(fbi, helper, sizes); in msm_fbdev_create()
123 fbi->screen_buffer = msm_gem_get_vaddr(bo); in msm_fbdev_create()
124 if (IS_ERR(fbi->screen_buffer)) { in msm_fbdev_create()
125 ret = PTR_ERR(fbi->screen_buffer); in msm_fbdev_create()
[all …]
/linux-6.6.21/drivers/gpu/drm/exynos/
Dexynos_drm_fbdev.c63 struct fb_info *fbi; in exynos_drm_fbdev_update() local
68 fbi = drm_fb_helper_alloc_info(helper); in exynos_drm_fbdev_update()
69 if (IS_ERR(fbi)) { in exynos_drm_fbdev_update()
72 return PTR_ERR(fbi); in exynos_drm_fbdev_update()
75 fbi->fbops = &exynos_drm_fb_ops; in exynos_drm_fbdev_update()
77 drm_fb_helper_fill_info(fbi, helper, sizes); in exynos_drm_fbdev_update()
79 offset = fbi->var.xoffset * fb->format->cpp[0]; in exynos_drm_fbdev_update()
80 offset += fbi->var.yoffset * fb->pitches[0]; in exynos_drm_fbdev_update()
82 fbi->flags |= FBINFO_VIRTFB; in exynos_drm_fbdev_update()
83 fbi->screen_buffer = exynos_gem->kvaddr + offset; in exynos_drm_fbdev_update()
[all …]

12