/linux-2.6.39/drivers/video/ |
D | amba-clcd.c | 31 #define to_clcd(info) container_of(info, struct clcd_fb, fb) 49 static inline void clcdfb_set_start(struct clcd_fb *fb) in clcdfb_set_start() argument 51 unsigned long ustart = fb->fb.fix.smem_start; in clcdfb_set_start() 54 ustart += fb->fb.var.yoffset * fb->fb.fix.line_length; in clcdfb_set_start() 55 lstart = ustart + fb->fb.var.yres * fb->fb.fix.line_length / 2; in clcdfb_set_start() 57 writel(ustart, fb->regs + CLCD_UBAS); in clcdfb_set_start() 58 writel(lstart, fb->regs + CLCD_LBAS); in clcdfb_set_start() 61 static void clcdfb_disable(struct clcd_fb *fb) in clcdfb_disable() argument 65 if (fb->board->disable) in clcdfb_disable() 66 fb->board->disable(fb); in clcdfb_disable() [all …]
|
D | stifb.c | 152 #define READ_BYTE(fb,reg) gsc_readb((fb)->info.fix.mmio_start + (reg)) argument 153 #define READ_WORD(fb,reg) gsc_readl((fb)->info.fix.mmio_start + (reg)) argument 159 # define WRITE_BYTE(value,fb,reg) gsc_writeb((value),(fb)->info.fix.mmio_start + (reg)) argument 160 # define WRITE_WORD(value,fb,reg) gsc_writel((value),(fb)->info.fix.mmio_start + (reg)) argument 165 # define WRITE_BYTE(value,fb,reg) do { if (debug_on) \ argument 167 __func__, reg, value, READ_BYTE(fb,reg)); \ 168 gsc_writeb((value),(fb)->info.fix.mmio_start + (reg)); } while (0) 169 # define WRITE_WORD(value,fb,reg) do { if (debug_on) \ argument 171 __func__, reg, value, READ_WORD(fb,reg)); \ 172 gsc_writel((value),(fb)->info.fix.mmio_start + (reg)); } while (0) [all …]
|
D | wm8505fb.c | 40 struct wm8505fb_info, fb) 42 struct fb_info fb; member 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() 188 switch (fbi->fb.fix.visual) { in wm8505fb_setcolreg() 193 val = chan_to_field(red, &fbi->fb.var.red); in wm8505fb_setcolreg() 194 val |= chan_to_field(green, &fbi->fb.var.green); in wm8505fb_setcolreg() 195 val |= chan_to_field(blue, &fbi->fb.var.blue); in wm8505fb_setcolreg() 265 strcpy(fbi->fb.fix.id, DRIVER_NAME); in wm8505fb_probe() 267 fbi->fb.fix.type = FB_TYPE_PACKED_PIXELS; in wm8505fb_probe() [all …]
|
D | vt8500lcdfb.c | 39 struct vt8500lcd_info, fb) 156 switch (fbi->fb.fix.visual) { in vt8500lcd_setcolreg() 159 u32 *pal = fbi->fb.pseudo_palette; in vt8500lcd_setcolreg() 161 val = chan_to_field(red, &fbi->fb.var.red); in vt8500lcd_setcolreg() 162 val |= chan_to_field(green, &fbi->fb.var.green); in vt8500lcd_setcolreg() 163 val |= chan_to_field(blue, &fbi->fb.var.blue); in vt8500lcd_setcolreg() 288 strcpy(fbi->fb.fix.id, "VT8500 LCD"); in vt8500lcd_probe() 290 fbi->fb.fix.type = FB_TYPE_PACKED_PIXELS; in vt8500lcd_probe() 291 fbi->fb.fix.xpanstep = 0; in vt8500lcd_probe() 292 fbi->fb.fix.ypanstep = 1; in vt8500lcd_probe() [all …]
|
D | sa1100fb.c | 514 val |= palette_pbs(&fbi->fb.var); in sa1100fb_setpalettereg() 546 if (fbi->fb.var.grayscale) in sa1100fb_setcolreg() 550 switch (fbi->fb.fix.visual) { in sa1100fb_setcolreg() 557 u32 *pal = fbi->fb.pseudo_palette; in sa1100fb_setcolreg() 559 val = chan_to_field(red, &fbi->fb.var.red); in sa1100fb_setcolreg() 560 val |= chan_to_field(green, &fbi->fb.var.green); in sa1100fb_setcolreg() 561 val |= chan_to_field(blue, &fbi->fb.var.blue); in sa1100fb_setcolreg() 689 fbi->fb.fix.visual = FB_VISUAL_TRUECOLOR; in sa1100fb_set_par() 691 fbi->fb.fix.visual = FB_VISUAL_PSEUDOCOLOR; in sa1100fb_set_par() 698 fbi->fb.fix.visual = FB_VISUAL_STATIC_PSEUDOCOLOR; in sa1100fb_set_par() [all …]
|
D | cyber2000fb.c | 63 struct fb_info fb; member 166 if (!(cfb->fb.var.accel_flags & FB_ACCELF_TEXT)) { in cyber2000fb_fillrect() 176 if (cfb->fb.var.bits_per_pixel > 8) in cyber2000fb_fillrect() 177 col = ((u32 *)cfb->fb.pseudo_palette)[col]; in cyber2000fb_fillrect() 180 dst = rect->dx + rect->dy * cfb->fb.var.xres_virtual; in cyber2000fb_fillrect() 181 if (cfb->fb.var.bits_per_pixel == 24) { in cyber2000fb_fillrect() 199 if (!(cfb->fb.var.accel_flags & FB_ACCELF_TEXT)) { in cyber2000fb_copyarea() 208 src = region->sx + region->sy * cfb->fb.var.xres_virtual; in cyber2000fb_copyarea() 209 dst = region->dx + region->dy * cfb->fb.var.xres_virtual; in cyber2000fb_copyarea() 218 src += (region->height - 1) * cfb->fb.var.xres_virtual; in cyber2000fb_copyarea() [all …]
|
D | jz4740_fb.c | 118 struct fb_info *fb; member 244 unsigned blue, unsigned transp, struct fb_info *fb) in jzfb_setcolreg() argument 251 color = jzfb_convert_color_to_hw(red, &fb->var.red); in jzfb_setcolreg() 252 color |= jzfb_convert_color_to_hw(green, &fb->var.green); in jzfb_setcolreg() 253 color |= jzfb_convert_color_to_hw(blue, &fb->var.blue); in jzfb_setcolreg() 254 color |= jzfb_convert_color_to_hw(transp, &fb->var.transp); in jzfb_setcolreg() 256 ((uint32_t *)(fb->pseudo_palette))[regno] = color; in jzfb_setcolreg() 288 static int jzfb_check_var(struct fb_var_screeninfo *var, struct fb_info *fb) in jzfb_check_var() argument 290 struct jzfb *jzfb = fb->par; in jzfb_check_var() 626 struct fb_info *fb; in jzfb_probe() local [all …]
|
D | pxafb.c | 146 if (fbi->fb.var.grayscale) { in pxafb_setpalettereg() 205 if (fbi->fb.var.grayscale) in pxafb_setcolreg() 209 switch (fbi->fb.fix.visual) { in pxafb_setcolreg() 216 u32 *pal = fbi->fb.pseudo_palette; in pxafb_setcolreg() 218 val = chan_to_field(red, &fbi->fb.var.red); in pxafb_setcolreg() 219 val |= chan_to_field(green, &fbi->fb.var.green); in pxafb_setcolreg() 220 val |= chan_to_field(blue, &fbi->fb.var.blue); in pxafb_setcolreg() 433 var->yres_virtual = fbi->fb.fix.smem_len / line_length; in pxafb_adjust_timing() 500 fbi->fb.fix.visual = FB_VISUAL_TRUECOLOR; in pxafb_set_par() 502 fbi->fb.fix.visual = FB_VISUAL_PSEUDOCOLOR; in pxafb_set_par() [all …]
|
D | sm501fb.c | 86 struct fb_info *fb[2]; /* fb info for both heads */ member 189 fbi = inf->fb[HEAD_CRT]; in sm501_alloc_mem() 209 fbi = inf->fb[HEAD_PANEL]; in sm501_alloc_mem() 222 fbi = inf->fb[HEAD_CRT]; in sm501_alloc_mem() 225 fbi = inf->fb[HEAD_PANEL]; in sm501_alloc_mem() 1622 sm501_init_cursor(info->fb[HEAD_CRT], SM501_DC_CRT_HWC_ADDR); in sm501fb_start() 1623 sm501_init_cursor(info->fb[HEAD_PANEL], SM501_DC_PANEL_HWC_ADDR); in sm501fb_start() 1667 static int sm501fb_init_fb(struct fb_info *fb, in sm501fb_init_fb() argument 1672 struct sm501fb_par *par = fb->par; in sm501fb_init_fb() 1716 strlcpy(fb->fix.id, fbname, sizeof(fb->fix.id)); in sm501fb_init_fb() [all …]
|
D | Makefile | 9 obj-$(CONFIG_FB) += fb.o 10 fb-y := fbmem.o fbmon.o fbcmap.o fbsysfs.o \ 12 fb-objs := $(fb-y) 90 obj-$(CONFIG_FB_EP93XX) += ep93xx-fb.o 98 obj-$(CONFIG_FB_68328) += 68328fb.o 111 obj-$(CONFIG_FB_PMAG_AA) += pmag-aa-fb.o 112 obj-$(CONFIG_FB_PMAG_BA) += pmag-ba-fb.o 113 obj-$(CONFIG_FB_PMAGB_B) += pmagb-b-fb.o 120 obj-$(CONFIG_FB_S3C) += s3c-fb.o 122 obj-$(CONFIG_FB_FSL_DIU) += fsl-diu-fb.o [all …]
|
/linux-2.6.39/arch/arm/mach-netx/ |
D | fb.c | 35 void netx_clcd_enable(struct clcd_fb *fb) in netx_clcd_enable() argument 39 int netx_clcd_setup(struct clcd_fb *fb) in netx_clcd_setup() argument 43 fb->panel = netx_panel; in netx_clcd_setup() 45 fb->fb.screen_base = dma_alloc_writecombine(&fb->dev->dev, 1024*1024, in netx_clcd_setup() 47 if (!fb->fb.screen_base) { in netx_clcd_setup() 52 fb->fb.fix.smem_start = dma; in netx_clcd_setup() 53 fb->fb.fix.smem_len = 1024*1024; in netx_clcd_setup() 58 int netx_clcd_mmap(struct clcd_fb *fb, struct vm_area_struct *vma) in netx_clcd_mmap() argument 60 return dma_mmap_writecombine(&fb->dev->dev, vma, in netx_clcd_mmap() 61 fb->fb.screen_base, in netx_clcd_mmap() [all …]
|
D | nxeb500hmi.c | 61 static inline int nxeb500hmi_check(struct clcd_fb *fb, struct fb_var_screeninfo *var) in nxeb500hmi_check() argument 66 return clcdfb_check(fb, var); in nxeb500hmi_check() 69 static int nxeb500hmi_clcd_setup(struct clcd_fb *fb) in nxeb500hmi_clcd_setup() argument 73 fb->fb.var.green.length = 5; in nxeb500hmi_clcd_setup() 74 fb->fb.var.green.msb_right = 0; in nxeb500hmi_clcd_setup() 90 return netx_clcd_setup(fb); in nxeb500hmi_clcd_setup()
|
D | nxdb500.c | 61 static inline int nxdb500_check(struct clcd_fb *fb, struct fb_var_screeninfo *var) in nxdb500_check() argument 66 return clcdfb_check(fb, var); in nxdb500_check() 69 static int nxdb500_clcd_setup(struct clcd_fb *fb) in nxdb500_clcd_setup() argument 73 fb->fb.var.green.length = 5; in nxdb500_clcd_setup() 74 fb->fb.var.green.msb_right = 0; in nxdb500_clcd_setup() 87 return netx_clcd_setup(fb); in nxdb500_clcd_setup()
|
D | fb.h | 20 void netx_clcd_enable(struct clcd_fb *fb); 21 int netx_clcd_setup(struct clcd_fb *fb); 22 int netx_clcd_mmap(struct clcd_fb *fb, struct vm_area_struct *vma); 23 void netx_clcd_remove(struct clcd_fb *fb);
|
/linux-2.6.39/drivers/staging/sm7xx/ |
D | smtcfb.c | 62 struct fb_info fb; member 139 sfb->fb.var.bits_per_pixel, ppar_info->hz); in sm712_set_timing() 144 VGAMode[j].bpp == sfb->fb.var.bits_per_pixel && in sm712_set_timing() 219 (ppar_info->width * sfb->fb.var.bits_per_pixel) / 64; in sm712_set_timing() 220 switch (sfb->fb.var.bits_per_pixel) { in sm712_set_timing() 389 switch (sfb->fb.fix.visual) { in smtc_setcolreg() 396 if (sfb->fb.var.bits_per_pixel == 16) { in smtc_setcolreg() 397 u32 *pal = sfb->fb.pseudo_palette; in smtc_setcolreg() 398 val = chan_to_field(red, &sfb->fb.var.red); in smtc_setcolreg() 400 &sfb->fb.var.green); in smtc_setcolreg() [all …]
|
/linux-2.6.39/arch/arm/plat-versatile/ |
D | clcd.c | 153 int versatile_clcd_setup_dma(struct clcd_fb *fb, unsigned long framesize) in versatile_clcd_setup_dma() argument 157 fb->fb.screen_base = dma_alloc_writecombine(&fb->dev->dev, framesize, in versatile_clcd_setup_dma() 159 if (!fb->fb.screen_base) { in versatile_clcd_setup_dma() 164 fb->fb.fix.smem_start = dma; in versatile_clcd_setup_dma() 165 fb->fb.fix.smem_len = framesize; in versatile_clcd_setup_dma() 170 int versatile_clcd_mmap_dma(struct clcd_fb *fb, struct vm_area_struct *vma) in versatile_clcd_mmap_dma() argument 172 return dma_mmap_writecombine(&fb->dev->dev, vma, in versatile_clcd_mmap_dma() 173 fb->fb.screen_base, in versatile_clcd_mmap_dma() 174 fb->fb.fix.smem_start, in versatile_clcd_mmap_dma() 175 fb->fb.fix.smem_len); in versatile_clcd_mmap_dma() [all …]
|
/linux-2.6.39/arch/arm/mach-lpc32xx/ |
D | phy3250.c | 78 static int lpc32xx_clcd_setup(struct clcd_fb *fb) in lpc32xx_clcd_setup() argument 82 fb->fb.screen_base = dma_alloc_writecombine(&fb->dev->dev, in lpc32xx_clcd_setup() 84 if (!fb->fb.screen_base) { in lpc32xx_clcd_setup() 89 fb->fb.fix.smem_start = dma; in lpc32xx_clcd_setup() 90 fb->fb.fix.smem_len = PANEL_SIZE; in lpc32xx_clcd_setup() 91 fb->panel = &conn_lcd_panel; in lpc32xx_clcd_setup() 110 static int lpc32xx_clcd_mmap(struct clcd_fb *fb, struct vm_area_struct *vma) in lpc32xx_clcd_mmap() argument 112 return dma_mmap_writecombine(&fb->dev->dev, vma, in lpc32xx_clcd_mmap() 113 fb->fb.screen_base, fb->fb.fix.smem_start, in lpc32xx_clcd_mmap() 114 fb->fb.fix.smem_len); in lpc32xx_clcd_mmap() [all …]
|
/linux-2.6.39/include/linux/amba/ |
D | clcd.h | 136 int (*check)(struct clcd_fb *fb, struct fb_var_screeninfo *var); 142 void (*decode)(struct clcd_fb *fb, struct clcd_regs *regs); 175 struct fb_info fb; member 189 static inline void clcdfb_decode(struct clcd_fb *fb, struct clcd_regs *regs) in clcdfb_decode() argument 191 struct fb_var_screeninfo *var = &fb->fb.var; in clcdfb_decode() 204 if (fb->panel->cntl & CNTL_LCDDUAL) in clcdfb_decode() 212 val = fb->panel->tim2; in clcdfb_decode() 217 if (fb->panel->cntl & CNTL_LCDTFT) /* TFT */ in clcdfb_decode() 221 else if (fb->panel->cntl & CNTL_LCDMONO8) /* STN monochrome, 8bit */ in clcdfb_decode() 228 regs->tim3 = fb->panel->tim3; in clcdfb_decode() [all …]
|
/linux-2.6.39/drivers/staging/gma500/ |
D | psb_fb.c | 44 static void psb_user_framebuffer_destroy(struct drm_framebuffer *fb); 45 static int psb_user_framebuffer_create_handle(struct drm_framebuffer *fb, 69 struct drm_framebuffer *fb = fbdev->psb_fb_helper.fb; in psbfb_setcolreg() local 72 if (!fb) in psbfb_setcolreg() 89 switch (fb->bits_per_pixel) { in psbfb_setcolreg() 105 struct drm_framebuffer *fb = 0; in psbfb_kms_off() local 106 struct psb_framebuffer *psbfb = to_psb_fb(fb); in psbfb_kms_off() 110 list_for_each_entry(fb, &dev->mode_config.fb_list, head) { in psbfb_kms_off() 138 struct drm_framebuffer *fb = 0; in psbfb_kms_on() local 139 struct psb_framebuffer *psbfb = to_psb_fb(fb); in psbfb_kms_on() [all …]
|
/linux-2.6.39/drivers/gpu/drm/vmwgfx/ |
D | vmwgfx_ldu.c | 45 struct vmw_framebuffer *fb; member 97 struct drm_framebuffer *fb = NULL; in vmw_ldu_commit_list() local 115 fb = entry->base.crtc.fb; in vmw_ldu_commit_list() 117 vmw_kms_write_svga(dev_priv, w, h, fb->pitch, in vmw_ldu_commit_list() 118 fb->bits_per_pixel, fb->depth); in vmw_ldu_commit_list() 125 fb = entry->base.crtc.fb; in vmw_ldu_commit_list() 127 vmw_kms_write_svga(dev_priv, fb->width, fb->height, fb->pitch, in vmw_ldu_commit_list() 128 fb->bits_per_pixel, fb->depth); in vmw_ldu_commit_list() 167 BUG_ON(!ld->fb); in vmw_ldu_del_active() 168 if (ld->fb->unpin) in vmw_ldu_del_active() [all …]
|
/linux-2.6.39/arch/arm/mach-integrator/ |
D | impd1.c | 223 static void impd1fb_clcd_disable(struct clcd_fb *fb) in impd1fb_clcd_disable() argument 225 impd1_tweak_control(fb->dev->dev.parent, IMPD1_CTRL_DISP_MASK, 0); in impd1fb_clcd_disable() 231 static void impd1fb_clcd_enable(struct clcd_fb *fb) in impd1fb_clcd_enable() argument 233 impd1_tweak_control(fb->dev->dev.parent, IMPD1_CTRL_DISP_MASK, in impd1fb_clcd_enable() 234 fb->panel->connector | IMPD1_CTRL_DISP_ENABLE); in impd1fb_clcd_enable() 237 static int impd1fb_clcd_setup(struct clcd_fb *fb) in impd1fb_clcd_setup() argument 239 unsigned long framebase = fb->dev->res.start + 0x01000000; in impd1fb_clcd_setup() 243 fb->panel = &PANELTYPE; in impd1fb_clcd_setup() 250 fb->fb.screen_base = ioremap(framebase, framesize); in impd1fb_clcd_setup() 251 if (!fb->fb.screen_base) { in impd1fb_clcd_setup() [all …]
|
/linux-2.6.39/drivers/gpu/drm/nouveau/ |
D | nouveau_display.c | 40 struct nouveau_framebuffer *fb = nouveau_framebuffer(drm_fb); in nouveau_user_framebuffer_destroy() local 42 if (fb->nvbo) in nouveau_user_framebuffer_destroy() 43 drm_gem_object_unreference_unlocked(fb->nvbo->gem); in nouveau_user_framebuffer_destroy() 46 kfree(fb); in nouveau_user_framebuffer_destroy() 54 struct nouveau_framebuffer *fb = nouveau_framebuffer(drm_fb); in nouveau_user_framebuffer_create_handle() local 56 return drm_gem_handle_create(file_priv, fb->nvbo->gem, handle); in nouveau_user_framebuffer_create_handle() 71 struct drm_framebuffer *fb = &nv_fb->base; in nouveau_framebuffer_init() local 74 ret = drm_framebuffer_init(dev, fb, &nouveau_framebuffer_funcs); in nouveau_framebuffer_init() 79 drm_helper_mode_fill_fb_struct(fb, mode_cmd); in nouveau_framebuffer_init() 93 switch (fb->depth) { in nouveau_framebuffer_init() [all …]
|
/linux-2.6.39/drivers/media/video/ |
D | vino.c | 665 static void vino_free_buffer_with_count(struct vino_framebuffer *fb, in vino_free_buffer_with_count() argument 673 ClearPageReserved(virt_to_page((void *)fb->desc_table.virtual[i])); in vino_free_buffer_with_count() 675 fb->desc_table.dma_cpu[VINO_PAGE_RATIO * i], in vino_free_buffer_with_count() 677 free_page(fb->desc_table.virtual[i]); in vino_free_buffer_with_count() 681 VINO_PAGE_RATIO * (fb->desc_table.page_count + 4) * in vino_free_buffer_with_count() 682 sizeof(dma_addr_t), (void *)fb->desc_table.dma_cpu, in vino_free_buffer_with_count() 683 fb->desc_table.dma); in vino_free_buffer_with_count() 684 kfree(fb->desc_table.virtual); in vino_free_buffer_with_count() 686 memset(fb, 0, sizeof(struct vino_framebuffer)); in vino_free_buffer_with_count() 689 static void vino_free_buffer(struct vino_framebuffer *fb) in vino_free_buffer() argument [all …]
|
/linux-2.6.39/drivers/staging/msm/ |
D | logo.c | 27 #define fb_width(fb) ((fb)->var.xres) argument 28 #define fb_height(fb) ((fb)->var.yres) argument 29 #define fb_size(fb) ((fb)->var.xres * (fb)->var.yres * 2) argument
|
/linux-2.6.39/lib/reed_solomon/ |
D | encode_rs.c | 27 uint16_t fb; variable 36 fb = index_of[((((uint16_t) data[i])^invmsk) & msk) ^ par[0]]; 38 if (fb != nn) { 40 par[j] ^= alpha_to[rs_modnn(rs, fb + 46 if (fb != nn) { 48 fb + genpoly[0])];
|