Home
last modified time | relevance | path

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

12

/linux-2.6.39/drivers/video/
Dpxafb.c82 static void set_ctrlr_state(struct pxafb_info *fbi, u_int state);
83 static void setup_base_frame(struct pxafb_info *fbi,
85 static int setup_frame_dma(struct pxafb_info *fbi, int dma, int pal,
91 lcd_readl(struct pxafb_info *fbi, unsigned int off) in lcd_readl() argument
93 return __raw_readl(fbi->mmio_base + off); in lcd_readl()
97 lcd_writel(struct pxafb_info *fbi, unsigned int off, unsigned long val) in lcd_writel() argument
99 __raw_writel(val, fbi->mmio_base + off); in lcd_writel()
102 static inline void pxafb_schedule_work(struct pxafb_info *fbi, u_int state) in pxafb_schedule_work() argument
117 if (fbi->task_state == C_ENABLE && state == C_REENABLE) in pxafb_schedule_work()
119 if (fbi->task_state == C_DISABLE && state == C_ENABLE) in pxafb_schedule_work()
[all …]
Dsa1100fb.c393 sa1100fb_get_machine_info(struct sa1100fb_info *fbi) in sa1100fb_get_machine_info() argument
420 fbi->rgb[RGB_16] = &h3600_rgb_16; in sa1100fb_get_machine_info()
453 static void set_ctrlr_state(struct sa1100fb_info *fbi, u_int state);
455 static inline void sa1100fb_schedule_work(struct sa1100fb_info *fbi, u_int state) in sa1100fb_schedule_work() argument
468 if (fbi->task_state == C_ENABLE && state == C_REENABLE) in sa1100fb_schedule_work()
470 if (fbi->task_state == C_DISABLE && state == C_ENABLE) in sa1100fb_schedule_work()
474 fbi->task_state = state; in sa1100fb_schedule_work()
475 schedule_work(&fbi->task); in sa1100fb_schedule_work()
505 struct sa1100fb_info *fbi = (struct sa1100fb_info *)info; in sa1100fb_setpalettereg() local
508 if (regno < fbi->palette_size) { in sa1100fb_setpalettereg()
[all …]
Dwm8505fb.c50 struct wm8505fb_info *fbi = to_wm8505fb_info(info); in wm8505fb_init_hw() local
56 writel(0, fbi->regbase + i); in wm8505fb_init_hw()
59 writel(fbi->fb.fix.smem_start, fbi->regbase + WMT_GOVR_FBADDR); in wm8505fb_init_hw()
60 writel(fbi->fb.fix.smem_start, fbi->regbase + WMT_GOVR_FBADDR1); in wm8505fb_init_hw()
63 writel(0x1c, fbi->regbase + WMT_GOVR_COLORSPACE); in wm8505fb_init_hw()
64 writel(1, fbi->regbase + WMT_GOVR_COLORSPACE1); in wm8505fb_init_hw()
67 writel(info->var.xres, fbi->regbase + WMT_GOVR_XRES); in wm8505fb_init_hw()
68 writel(info->var.xres_virtual, fbi->regbase + WMT_GOVR_XRES_VIRTUAL); in wm8505fb_init_hw()
71 writel(0xf, fbi->regbase + WMT_GOVR_FHI); in wm8505fb_init_hw()
72 writel(4, fbi->regbase + WMT_GOVR_DVO_SET); in wm8505fb_init_hw()
[all …]
Dvt8500lcdfb.c43 struct vt8500lcd_info *fbi = to_vt8500lcd_info(info); in vt8500lcd_set_par() local
48 if (!fbi) in vt8500lcd_set_par()
116 control0 = readl(fbi->regbase) & ~0xf; in vt8500lcd_set_par()
117 writel(0, fbi->regbase); in vt8500lcd_set_par()
118 while (readl(fbi->regbase + 0x38) & 0x10) in vt8500lcd_set_par()
123 | (info->var.right_margin & 0xff), fbi->regbase + 0x4); in vt8500lcd_set_par()
127 | (info->var.lower_margin & 0xff), fbi->regbase + 0x8); in vt8500lcd_set_par()
129 | ((info->var.xres - 1) & 0x400), fbi->regbase + 0x10); in vt8500lcd_set_par()
130 writel(0x80000000, fbi->regbase + 0x20); in vt8500lcd_set_par()
131 writel(control0 | (reg_bpp << 1) | 0x100, fbi->regbase); in vt8500lcd_set_par()
[all …]
Dimxfb.c242 struct imxfb_info *fbi = info->par; in imxfb_setpalettereg() local
246 if (regno < fbi->palette_size) { in imxfb_setpalettereg()
251 writel(val, fbi->regs + 0x800 + (regno << 2)); in imxfb_setpalettereg()
260 struct imxfb_info *fbi = info->par; in imxfb_setcolreg() local
270 if (fbi->cmap_inverse) { in imxfb_setcolreg()
311 static const struct imx_fb_videomode *imxfb_find_mode(struct imxfb_info *fbi) in imxfb_find_mode() argument
316 for (i = 0, m = &fbi->mode[0]; i < fbi->num_modes; i++, m++) { in imxfb_find_mode()
331 struct imxfb_info *fbi = info->par; in imxfb_check_var() local
343 imxfb_mode = imxfb_find_mode(fbi); in imxfb_check_var()
363 lcd_clk = clk_get_rate(fbi->clk); in imxfb_check_var()
[all …]
Dmx3fb.c240 struct fb_info *fbi; member
297 static void sdc_fb_init(struct mx3fb_info *fbi) in sdc_fb_init() argument
299 struct mx3fb_data *mx3fb = fbi->mx3fb; in sdc_fb_init()
308 static uint32_t sdc_fb_uninit(struct mx3fb_info *fbi) in sdc_fb_uninit() argument
310 struct mx3fb_data *mx3fb = fbi->mx3fb; in sdc_fb_uninit()
677 static int mx3fb_blank(int blank, struct fb_info *fbi);
678 static int mx3fb_map_video_memory(struct fb_info *fbi, unsigned int mem_len,
680 static int mx3fb_unmap_video_memory(struct fb_info *fbi);
687 static int mx3fb_set_fix(struct fb_info *fbi) in mx3fb_set_fix() argument
689 struct fb_fix_screeninfo *fix = &fbi->fix; in mx3fb_set_fix()
[all …]
Dep93xx-fb.c124 static inline unsigned int ep93xxfb_readl(struct ep93xx_fbi *fbi, in ep93xxfb_readl() argument
127 return __raw_readl(fbi->mmio_base + off); in ep93xxfb_readl()
130 static inline void ep93xxfb_writel(struct ep93xx_fbi *fbi, in ep93xxfb_writel() argument
133 __raw_writel(val, fbi->mmio_base + off); in ep93xxfb_writel()
139 static inline void ep93xxfb_out_locked(struct ep93xx_fbi *fbi, in ep93xxfb_out_locked() argument
146 ep93xxfb_writel(fbi, 0xaa, EP93XXFB_SWLOCK); in ep93xxfb_out_locked()
147 ep93xxfb_writel(fbi, val, reg); in ep93xxfb_out_locked()
152 struct ep93xx_fbi *fbi = info->par; in ep93xxfb_set_video_attribs() local
156 attribs |= fbi->mach_info->flags; in ep93xxfb_set_video_attribs()
157 ep93xxfb_out_locked(fbi, attribs, EP93XXFB_ATTRIBS); in ep93xxfb_set_video_attribs()
[all …]
Dnuc900fb.c52 struct nuc900fb_info *fbi = info->par; in nuc900fb_set_lcdaddr() local
53 void __iomem *regs = fbi->io; in nuc900fb_set_lcdaddr()
64 writel(fbi->regs.lcd_va_fbctrl, regs + REG_LCM_VA_FBCTRL); in nuc900fb_set_lcdaddr()
65 writel(fbi->regs.lcd_va_scale, regs + REG_LCM_VA_SCALE); in nuc900fb_set_lcdaddr()
71 static unsigned int nuc900fb_calc_pixclk(struct nuc900fb_info *fbi, in nuc900fb_calc_pixclk() argument
74 unsigned long clk = fbi->clk_rate; in nuc900fb_calc_pixclk()
83 dev_dbg(fbi->dev, "pixclk %ld, divisor is %lld\n", pixclk, div); in nuc900fb_calc_pixclk()
94 struct nuc900fb_info *fbi = info->par; in nuc900fb_check_var() local
95 struct nuc900fb_mach_info *mach_info = fbi->dev->platform_data; in nuc900fb_check_var()
101 dev_dbg(fbi->dev, "check_var(var=%p, info=%p)\n", var, info); in nuc900fb_check_var()
[all …]
Dpxa168fb.c165 static void set_mode(struct pxa168fb_info *fbi, struct fb_var_screeninfo *var, in set_mode() argument
168 struct fb_info *info = fbi->info; in set_mode()
197 struct pxa168fb_info *fbi = info->par; in pxa168fb_check_var() local
207 fbi->pix_fmt = pix_fmt; in pxa168fb_check_var()
243 static void set_clock_divider(struct pxa168fb_info *fbi, in set_clock_divider() argument
261 dev_err(fbi->dev, "Input refresh or pixclock is wrong.\n"); in set_clock_divider()
277 divider_int = clk_get_rate(fbi->clk) / needed_pixclk; in set_clock_divider()
281 dev_warn(fbi->dev, "Warning: clock source is too slow." in set_clock_divider()
290 writel(x, fbi->reg_base + LCD_CFG_SCLK_DIV); in set_clock_divider()
293 static void set_dma_control0(struct pxa168fb_info *fbi) in set_dma_control0() argument
[all …]
Dsm501fb.c174 struct fb_info *fbi; in sm501_alloc_mem() local
189 fbi = inf->fb[HEAD_CRT]; in sm501_alloc_mem()
198 if (fbi && ptr < smem_len) in sm501_alloc_mem()
209 fbi = inf->fb[HEAD_PANEL]; in sm501_alloc_mem()
210 if (fbi) { in sm501_alloc_mem()
211 par = fbi->par; in sm501_alloc_mem()
222 fbi = inf->fb[HEAD_CRT]; in sm501_alloc_mem()
223 ptr = fbi ? smem_len : 0; in sm501_alloc_mem()
225 fbi = inf->fb[HEAD_PANEL]; in sm501_alloc_mem()
226 if (fbi) { in sm501_alloc_mem()
[all …]
Ds3c2410fb.c55 static int is_s3c2412(struct s3c2410fb_info *fbi) in is_s3c2412() argument
57 return (fbi->drv_type == DRV_S3C2412); in is_s3c2412()
67 struct s3c2410fb_info *fbi = info->par; in s3c2410fb_set_lcdaddr() local
68 void __iomem *regs = fbi->io; in s3c2410fb_set_lcdaddr()
91 static unsigned int s3c2410fb_calc_pixclk(struct s3c2410fb_info *fbi, in s3c2410fb_calc_pixclk() argument
94 unsigned long clk = fbi->clk_rate; in s3c2410fb_calc_pixclk()
119 struct s3c2410fb_info *fbi = info->par; in s3c2410fb_check_var() local
120 struct s3c2410fb_mach_info *mach_info = fbi->dev->platform_data; in s3c2410fb_check_var()
166 fbi->regs.lcdcon5 = display->lcdcon5; in s3c2410fb_check_var()
168 fbi->regs.lcdcon1 = display->type; in s3c2410fb_check_var()
[all …]
Dbfin-lq035q1-fb.c208 static int bfin_lq035q1_calc_timing(struct bfin_lq035q1fb_info *fbi) in bfin_lq035q1_calc_timing() argument
218 switch (fbi->disp_info->ppi_mode) { in bfin_lq035q1_calc_timing()
220 fbi->lcd_bpp = 16; in bfin_lq035q1_calc_timing()
225 fbi->lcd_bpp = 16; in bfin_lq035q1_calc_timing()
230 fbi->lcd_bpp = 24; in bfin_lq035q1_calc_timing()
242 fbi->h_actpix = (LCD_X_RES * clocks_per_pix); /* active horizontal pixel */ in bfin_lq035q1_calc_timing()
243 fbi->h_period = (336 * clocks_per_pix); /* HS period */ in bfin_lq035q1_calc_timing()
244 fbi->h_pulse = (2 * clocks_per_pix); /* HS pulse width */ in bfin_lq035q1_calc_timing()
245 fbi->h_start = (7 * clocks_per_pix + cpld_pipeline_delay_cor); /* first valid pixel */ in bfin_lq035q1_calc_timing()
247 fbi->v_lines = (LCD_Y_RES + U_LINE); /* total vertical lines */ in bfin_lq035q1_calc_timing()
[all …]
Dau1100fb.c123 static int au1100fb_fb_blank(int blank_mode, struct fb_info *fbi) in au1100fb_fb_blank() argument
125 struct au1100fb_device *fbdev = to_au1100fb_device(fbi); in au1100fb_fb_blank()
127 print_dbg("fb_blank %d %p", blank_mode, fbi); in au1100fb_fb_blank()
266 …(unsigned regno, unsigned red, unsigned green, unsigned blue, unsigned transp, struct fb_info *fbi) in au1100fb_fb_setcolreg() argument
272 fbdev = to_au1100fb_device(fbi); in au1100fb_fb_setcolreg()
278 if (fbi->var.grayscale) { in au1100fb_fb_setcolreg()
284 if (fbi->fix.visual == FB_VISUAL_TRUECOLOR) { in au1100fb_fb_setcolreg()
289 palette = (u32*)fbi->pseudo_palette; in au1100fb_fb_setcolreg()
291 red >>= (16 - fbi->var.red.length); in au1100fb_fb_setcolreg()
292 green >>= (16 - fbi->var.green.length); in au1100fb_fb_setcolreg()
[all …]
/linux-2.6.39/drivers/video/mb862xx/
Dmb862xxfb.c110 struct fb_info *fbi) in mb862xxfb_check_var() argument
114 if (fbi->dev) in mb862xxfb_check_var()
115 dev_dbg(fbi->dev, "%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()
202 static int mb862xxfb_set_par(struct fb_info *fbi) in mb862xxfb_set_par() argument
204 struct mb862xxfb_par *par = fbi->par; in mb862xxfb_set_par()
209 mb862xxfb_init_accel(fbi, fbi->var.xres); in mb862xxfb_set_par()
220 sc = par->refclk / (1000000 / fbi->var.pixclock) - 1; in mb862xxfb_set_par()
[all …]
/linux-2.6.39/drivers/video/omap2/omapfb/
Domapfb-sysfs.c40 struct fb_info *fbi = dev_get_drvdata(dev); in show_rotate_type() local
41 struct omapfb_info *ofbi = FB2OFB(fbi); in show_rotate_type()
50 struct fb_info *fbi = dev_get_drvdata(dev); in store_rotate_type() local
51 struct omapfb_info *ofbi = FB2OFB(fbi); in store_rotate_type()
61 if (!lock_fb_info(fbi)) in store_rotate_type()
84 unlock_fb_info(fbi); in store_rotate_type()
93 struct fb_info *fbi = dev_get_drvdata(dev); in show_mirror() local
94 struct omapfb_info *ofbi = FB2OFB(fbi); in show_mirror()
103 struct fb_info *fbi = dev_get_drvdata(dev); in store_mirror() local
104 struct omapfb_info *ofbi = FB2OFB(fbi); in store_mirror()
[all …]
Domapfb-main.c57 static int omapfb_fb_init(struct omapfb2_device *fbdev, struct fb_info *fbi);
62 static void draw_pixel(struct fb_info *fbi, int x, int y, unsigned color) in draw_pixel() argument
64 struct fb_var_screeninfo *var = &fbi->var; in draw_pixel()
65 struct fb_fix_screeninfo *fix = &fbi->fix; in draw_pixel()
66 void __iomem *addr = fbi->screen_base; in draw_pixel()
97 static void fill_fb(struct fb_info *fbi) in fill_fb() argument
99 struct fb_var_screeninfo *var = &fbi->var; in fill_fb()
102 void __iomem *addr = fbi->screen_base; in fill_fb()
108 DBG("fill_fb %dx%d, line_len %d bytes\n", w, h, fbi->fix.line_length); in fill_fb()
113 draw_pixel(fbi, x, y, 0xffffff); in fill_fb()
[all …]
Domapfb-ioctl.c61 static int omapfb_setup_plane(struct fb_info *fbi, struct omapfb_plane_info *pi) in omapfb_setup_plane() argument
63 struct omapfb_info *ofbi = FB2OFB(fbi); in omapfb_setup_plane()
110 set_fb_fix(fbi); in omapfb_setup_plane()
116 r = omapfb_setup_overlay(fbi, ovl, pi->pos_x, pi->pos_y, in omapfb_setup_plane()
163 set_fb_fix(fbi); in omapfb_setup_plane()
183 static int omapfb_query_plane(struct fb_info *fbi, struct omapfb_plane_info *pi) in omapfb_query_plane() argument
185 struct omapfb_info *ofbi = FB2OFB(fbi); in omapfb_query_plane()
209 static int omapfb_setup_mem(struct fb_info *fbi, struct omapfb_mem_info *mi) in omapfb_setup_mem() argument
211 struct omapfb_info *ofbi = FB2OFB(fbi); in omapfb_setup_mem()
248 r = omapfb_realloc_fbmem(fbi, size, mi->type); in omapfb_setup_mem()
[all …]
/linux-2.6.39/drivers/staging/msm/
Dmdp_dma_tv.c46 struct fb_info *fbi; in mdp_dma3_on() local
59 fbi = mfd->fbi; in mdp_dma3_on()
63 bpp = fbi->var.bits_per_pixel / 8; in mdp_dma3_on()
64 buf = (uint8 *) fbi->fix.smem_start; in mdp_dma3_on()
65 buf += fbi->var.xoffset * bpp + in mdp_dma3_on()
66 fbi->var.yoffset * fbi->fix.line_length; in mdp_dma3_on()
115 struct fb_info *fbi = mfd->fbi; in mdp_dma3_update() local
124 bpp = fbi->var.bits_per_pixel / 8; in mdp_dma3_update()
125 buf = (uint8 *) fbi->fix.smem_start; in mdp_dma3_update()
126 buf += fbi->var.xoffset * bpp + in mdp_dma3_update()
[all …]
Dmdp4_overlay_mddi.c109 struct fb_info *fbi; in mdp4_overlay_update_lcd() local
111 fbi = mfd->fbi; in mdp4_overlay_update_lcd()
112 pipe->src_height = fbi->var.yres; in mdp4_overlay_update_lcd()
113 pipe->src_width = fbi->var.xres; in mdp4_overlay_update_lcd()
114 pipe->src_h = fbi->var.yres; in mdp4_overlay_update_lcd()
115 pipe->src_w = fbi->var.xres; in mdp4_overlay_update_lcd()
118 pipe->dst_h = fbi->var.yres; in mdp4_overlay_update_lcd()
119 pipe->dst_w = fbi->var.xres; in mdp4_overlay_update_lcd()
123 pipe->srcp0_ystride = fbi->var.xres_virtual * bpp; in mdp4_overlay_update_lcd()
128 struct fb_info *fbi; in mdp4_overlay_update_lcd() local
[all …]
Dmdp4_overlay_lcdc.c86 struct fb_info *fbi; in mdp_lcdc_on() local
100 fbi = mfd->fbi; in mdp_lcdc_on()
101 var = &fbi->var; in mdp_lcdc_on()
106 bpp = fbi->var.bits_per_pixel / 8; in mdp_lcdc_on()
107 buf = (uint8 *) fbi->fix.smem_start; in mdp_lcdc_on()
108 buf += fbi->var.xoffset * bpp + in mdp_lcdc_on()
109 fbi->var.yoffset * fbi->fix.line_length; in mdp_lcdc_on()
135 pipe->src_height = fbi->var.yres; in mdp_lcdc_on()
136 pipe->src_width = fbi->var.xres; in mdp_lcdc_on()
137 pipe->src_h = fbi->var.yres; in mdp_lcdc_on()
[all …]
Dmsm_fb_bl.c40 bl_lvl = mfd->fbi->bl_curve[bl_lvl]; in msm_fb_bl_update_status()
54 struct fb_info *fbi; in msm_fb_config_backlight() local
57 fbi = mfd->fbi; in msm_fb_config_backlight()
63 backlight_device_register(name, fbi->dev, mfd, in msm_fb_config_backlight()
66 fbi->bl_dev = pbd; in msm_fb_config_backlight()
67 fb_bl_default_curve(fbi, in msm_fb_config_backlight()
75 fbi->bl_dev = NULL; in msm_fb_config_backlight()
Dlcdc.c95 panel_pixclock_freq = mfd->fbi->var.pixclock; in lcdc_on()
115 clk_set_rate(mdp_lcdc_pclk_clk, mfd->fbi->var.pixclock); in lcdc_on()
116 clk_set_rate(mdp_lcdc_pad_pclk_clk, mfd->fbi->var.pixclock); in lcdc_on()
127 struct fb_info *fbi; in lcdc_probe() local
182 fbi = mfd->fbi; in lcdc_probe()
183 fbi->var.pixclock = mfd->panel_info.clk_rate; in lcdc_probe()
184 fbi->var.left_margin = mfd->panel_info.lcdc.h_back_porch; in lcdc_probe()
185 fbi->var.right_margin = mfd->panel_info.lcdc.h_front_porch; in lcdc_probe()
186 fbi->var.upper_margin = mfd->panel_info.lcdc.v_back_porch; in lcdc_probe()
187 fbi->var.lower_margin = mfd->panel_info.lcdc.v_front_porch; in lcdc_probe()
[all …]
Dmdp_dma_lcdc.c93 struct fb_info *fbi; in mdp_lcdc_on() local
109 fbi = mfd->fbi; in mdp_lcdc_on()
110 var = &fbi->var; in mdp_lcdc_on()
115 bpp = fbi->var.bits_per_pixel / 8; in mdp_lcdc_on()
116 buf = (uint8 *) fbi->fix.smem_start; in mdp_lcdc_on()
117 buf += fbi->var.xoffset * bpp + fbi->var.yoffset * fbi->fix.line_length; in mdp_lcdc_on()
167 MDP_OUTP(MDP_BASE + dma_base + 0x4, ((fbi->var.yres) << 16) | in mdp_lcdc_on()
168 (fbi->var.xres)); in mdp_lcdc_on()
170 MDP_OUTP(MDP_BASE + dma_base + 0xc, fbi->fix.line_length); in mdp_lcdc_on()
321 struct fb_info *fbi = mfd->fbi; in mdp_lcdc_update() local
[all …]
/linux-2.6.39/drivers/video/omap/
Domapfb_main.c216 static int ctrl_change_mode(struct fb_info *fbi) in ctrl_change_mode() argument
220 struct omapfb_plane_struct *plane = fbi->par; in ctrl_change_mode()
222 struct fb_var_screeninfo *var = &fbi->var; in ctrl_change_mode()
224 offset = var->yoffset * fbi->fix.line_length + in ctrl_change_mode()
354 static int omapfb_update_full_screen(struct fb_info *fbi);
356 static int omapfb_blank(int blank, struct fb_info *fbi) in omapfb_blank() argument
358 struct omapfb_plane_struct *plane = fbi->par; in omapfb_blank()
390 r = omapfb_update_full_screen(fbi); in omapfb_blank()
395 static void omapfb_sync(struct fb_info *fbi) in omapfb_sync() argument
397 struct omapfb_plane_struct *plane = fbi->par; in omapfb_sync()
[all …]
/linux-2.6.39/drivers/video/mbx/
Dmbxfb.c691 static void __devinit setup_memc(struct fb_info *fbi) in setup_memc() argument
718 tmp = readl(fbi->screen_base); in setup_memc()
722 static void enable_clocks(struct fb_info *fbi) in enable_clocks() argument
751 static void __devinit setup_graphics(struct fb_info *fbi) in setup_graphics() argument
756 gsctrl = GSCTRL_GAMMA_EN | Gsctrl_Width(fbi->var.xres) | in setup_graphics()
757 Gsctrl_Height(fbi->var.yres); in setup_graphics()
758 switch (fbi->var.bits_per_pixel) { in setup_graphics()
760 if (fbi->var.green.length == 5) in setup_graphics()
785 static void __devinit setup_display(struct fb_info *fbi) in setup_display() argument
790 if (fbi->var.sync & FB_SYNC_HOR_HIGH_ACT) in setup_display()
[all …]

12