fbdev 375 arch/sh/boards/mach-ecovec24/setup.c .fbdev = &lcdc_device.dev, fbdev 1211 arch/sh/boards/mach-ecovec24/setup.c gpio_backlight_data.fbdev = NULL; fbdev 205 arch/sh/boards/mach-kfr2r09/setup.c .fbdev = &kfr2r09_sh_lcdc_device.dev, fbdev 74 drivers/auxdisplay/ht16k33.c struct ht16k33_fbdev fbdev; fbdev 118 drivers/auxdisplay/ht16k33.c struct ht16k33_fbdev *fbdev = &priv->fbdev; fbdev 120 drivers/auxdisplay/ht16k33.c schedule_delayed_work(&fbdev->work, fbdev 121 drivers/auxdisplay/ht16k33.c msecs_to_jiffies(HZ / fbdev->refresh_rate)); fbdev 129 drivers/auxdisplay/ht16k33.c struct ht16k33_fbdev *fbdev = fbdev 132 drivers/auxdisplay/ht16k33.c container_of(fbdev, struct ht16k33_priv, fbdev); fbdev 137 drivers/auxdisplay/ht16k33.c p1 = fbdev->cache; fbdev 138 drivers/auxdisplay/ht16k33.c p2 = fbdev->buffer; fbdev 152 drivers/auxdisplay/ht16k33.c p1 = fbdev->cache + HT16K33_FB_SIZE - 1; fbdev 153 drivers/auxdisplay/ht16k33.c p2 = fbdev->buffer + HT16K33_FB_SIZE - 1; fbdev 162 drivers/auxdisplay/ht16k33.c p1 = fbdev->cache + first; fbdev 163 drivers/auxdisplay/ht16k33.c p2 = fbdev->buffer + first; fbdev 226 drivers/auxdisplay/ht16k33.c struct page *pages = virt_to_page(priv->fbdev.buffer); fbdev 397 drivers/auxdisplay/ht16k33.c struct ht16k33_fbdev *fbdev; fbdev 416 drivers/auxdisplay/ht16k33.c fbdev = &priv->fbdev; fbdev 424 drivers/auxdisplay/ht16k33.c fbdev->buffer = (unsigned char *) get_zeroed_page(GFP_KERNEL); fbdev 425 drivers/auxdisplay/ht16k33.c if (!fbdev->buffer) fbdev 428 drivers/auxdisplay/ht16k33.c fbdev->cache = devm_kmalloc(&client->dev, HT16K33_FB_SIZE, GFP_KERNEL); fbdev 429 drivers/auxdisplay/ht16k33.c if (!fbdev->cache) { fbdev 434 drivers/auxdisplay/ht16k33.c fbdev->info = framebuffer_alloc(0, &client->dev); fbdev 435 drivers/auxdisplay/ht16k33.c if (!fbdev->info) { fbdev 441 drivers/auxdisplay/ht16k33.c &fbdev->refresh_rate); fbdev 446 drivers/auxdisplay/ht16k33.c fb_bl_default_curve(fbdev->info, 0, MIN_BRIGHTNESS, MAX_BRIGHTNESS); fbdev 448 drivers/auxdisplay/ht16k33.c INIT_DELAYED_WORK(&fbdev->work, ht16k33_fb_update); fbdev 449 drivers/auxdisplay/ht16k33.c fbdev->info->fbops = &ht16k33_fb_ops; fbdev 450 drivers/auxdisplay/ht16k33.c fbdev->info->screen_base = (char __iomem *) fbdev->buffer; fbdev 451 drivers/auxdisplay/ht16k33.c fbdev->info->screen_size = HT16K33_FB_SIZE; fbdev 452 drivers/auxdisplay/ht16k33.c fbdev->info->fix = ht16k33_fb_fix; fbdev 453 drivers/auxdisplay/ht16k33.c fbdev->info->var = ht16k33_fb_var; fbdev 454 drivers/auxdisplay/ht16k33.c fbdev->info->pseudo_palette = NULL; fbdev 455 drivers/auxdisplay/ht16k33.c fbdev->info->flags = FBINFO_FLAG_DEFAULT; fbdev 456 drivers/auxdisplay/ht16k33.c fbdev->info->par = priv; fbdev 458 drivers/auxdisplay/ht16k33.c err = register_framebuffer(fbdev->info); fbdev 498 drivers/auxdisplay/ht16k33.c unregister_framebuffer(fbdev->info); fbdev 500 drivers/auxdisplay/ht16k33.c framebuffer_release(fbdev->info); fbdev 502 drivers/auxdisplay/ht16k33.c free_page((unsigned long) fbdev->buffer); fbdev 510 drivers/auxdisplay/ht16k33.c struct ht16k33_fbdev *fbdev = &priv->fbdev; fbdev 512 drivers/auxdisplay/ht16k33.c cancel_delayed_work_sync(&fbdev->work); fbdev 513 drivers/auxdisplay/ht16k33.c unregister_framebuffer(fbdev->info); fbdev 514 drivers/auxdisplay/ht16k33.c framebuffer_release(fbdev->info); fbdev 515 drivers/auxdisplay/ht16k33.c free_page((unsigned long) fbdev->buffer); fbdev 58 drivers/gpu/drm/armada/armada_drm.h struct drm_fb_helper *fbdev; fbdev 128 drivers/gpu/drm/armada/armada_fbdev.c priv->fbdev = fbh; fbdev 154 drivers/gpu/drm/armada/armada_fbdev.c priv->fbdev = NULL; fbdev 161 drivers/gpu/drm/armada/armada_fbdev.c struct drm_fb_helper *fbh = priv->fbdev; fbdev 171 drivers/gpu/drm/armada/armada_fbdev.c priv->fbdev = NULL; fbdev 15 drivers/gpu/drm/aspeed/aspeed_gfx.h struct drm_fbdev_cma *fbdev; fbdev 377 drivers/gpu/drm/drm_fb_helper.c fb_set_suspend(helper->fbdev, 0); fbdev 387 drivers/gpu/drm/drm_fb_helper.c void *src = fb_helper->fbdev->screen_buffer + offset; fbdev 532 drivers/gpu/drm/drm_fb_helper.c fb_helper->fbdev = info; fbdev 555 drivers/gpu/drm/drm_fb_helper.c if (fb_helper && fb_helper->fbdev) fbdev 556 drivers/gpu/drm/drm_fb_helper.c unregister_framebuffer(fb_helper->fbdev); fbdev 582 drivers/gpu/drm/drm_fb_helper.c info = fb_helper->fbdev; fbdev 588 drivers/gpu/drm/drm_fb_helper.c fb_helper->fbdev = NULL; fbdev 613 drivers/gpu/drm/drm_fb_helper.c if (fb_helper && fb_helper->fbdev) fbdev 614 drivers/gpu/drm/drm_fb_helper.c unlink_framebuffer(fb_helper->fbdev); fbdev 699 drivers/gpu/drm/drm_fb_helper.c struct fb_info *info = fb_helper->fbdev; fbdev 870 drivers/gpu/drm/drm_fb_helper.c if (fb_helper && fb_helper->fbdev) fbdev 871 drivers/gpu/drm/drm_fb_helper.c fb_set_suspend(fb_helper->fbdev, suspend); fbdev 894 drivers/gpu/drm/drm_fb_helper.c if (!fb_helper || !fb_helper->fbdev) fbdev 901 drivers/gpu/drm/drm_fb_helper.c if (fb_helper->fbdev->state != FBINFO_STATE_RUNNING) fbdev 907 drivers/gpu/drm/drm_fb_helper.c if (fb_helper->fbdev->state == FBINFO_STATE_RUNNING) fbdev 916 drivers/gpu/drm/drm_fb_helper.c fb_set_suspend(fb_helper->fbdev, suspend); fbdev 1739 drivers/gpu/drm/drm_fb_helper.c struct fb_info *info = fb_helper->fbdev; fbdev 1823 drivers/gpu/drm/drm_fb_helper.c info = fb_helper->fbdev; fbdev 1958 drivers/gpu/drm/drm_fb_helper.c drm_fb_helper_set_par(fb_helper->fbdev); fbdev 2049 drivers/gpu/drm/drm_fb_helper.c if (fb_helper->fbdev && fb_helper->fbdev->dev) fbdev 2052 drivers/gpu/drm/drm_fb_helper.c if (fb_helper->fbdev && fb_helper->fbdev->fbdefio) { fbdev 2053 drivers/gpu/drm/drm_fb_helper.c fb_deferred_io_cleanup(fb_helper->fbdev); fbdev 2054 drivers/gpu/drm/drm_fb_helper.c kfree(fb_helper->fbdev->fbdefio); fbdev 2055 drivers/gpu/drm/drm_fb_helper.c fbops = fb_helper->fbdev->fbops; fbdev 2118 drivers/gpu/drm/drm_fb_helper.c struct fb_info *fbi = fb_helper->fbdev; fbdev 2282 drivers/gpu/drm/drm_fb_helper.c if (fb_helper->fbdev) fbdev 2333 drivers/gpu/drm/drm_fb_helper.c fb_helper->fbdev = NULL; fbdev 187 drivers/gpu/drm/exynos/exynos_drm_fbdev.c struct exynos_drm_fbdev *fbdev; fbdev 195 drivers/gpu/drm/exynos/exynos_drm_fbdev.c fbdev = kzalloc(sizeof(*fbdev), GFP_KERNEL); fbdev 196 drivers/gpu/drm/exynos/exynos_drm_fbdev.c if (!fbdev) fbdev 199 drivers/gpu/drm/exynos/exynos_drm_fbdev.c private->fb_helper = helper = &fbdev->drm_fb_helper; fbdev 232 drivers/gpu/drm/exynos/exynos_drm_fbdev.c kfree(fbdev); fbdev 261 drivers/gpu/drm/exynos/exynos_drm_fbdev.c struct exynos_drm_fbdev *fbdev; fbdev 266 drivers/gpu/drm/exynos/exynos_drm_fbdev.c fbdev = to_exynos_fbdev(private->fb_helper); fbdev 269 drivers/gpu/drm/exynos/exynos_drm_fbdev.c kfree(fbdev); fbdev 229 drivers/gpu/drm/gma500/accel_2d.c struct psb_fbdev *fbdev = info->par; fbdev 230 drivers/gpu/drm/gma500/accel_2d.c struct psb_framebuffer *psbfb = &fbdev->pfb; fbdev 232 drivers/gpu/drm/gma500/accel_2d.c struct drm_framebuffer *fb = fbdev->psb_fb_helper.fb; fbdev 312 drivers/gpu/drm/gma500/accel_2d.c struct psb_fbdev *fbdev = info->par; fbdev 313 drivers/gpu/drm/gma500/accel_2d.c struct psb_framebuffer *psbfb = &fbdev->pfb; fbdev 43 drivers/gpu/drm/gma500/framebuffer.c struct psb_fbdev *fbdev = info->par; fbdev 44 drivers/gpu/drm/gma500/framebuffer.c struct drm_framebuffer *fb = fbdev->psb_fb_helper.fb; fbdev 80 drivers/gpu/drm/gma500/framebuffer.c struct psb_fbdev *fbdev = info->par; fbdev 81 drivers/gpu/drm/gma500/framebuffer.c struct psb_framebuffer *psbfb = &fbdev->pfb; fbdev 148 drivers/gpu/drm/gma500/framebuffer.c struct psb_fbdev *fbdev = info->par; fbdev 149 drivers/gpu/drm/gma500/framebuffer.c struct psb_framebuffer *psbfb = &fbdev->pfb; fbdev 303 drivers/gpu/drm/gma500/framebuffer.c static int psbfb_create(struct psb_fbdev *fbdev, fbdev 306 drivers/gpu/drm/gma500/framebuffer.c struct drm_device *dev = fbdev->psb_fb_helper.dev; fbdev 310 drivers/gpu/drm/gma500/framebuffer.c struct psb_framebuffer *psbfb = &fbdev->pfb; fbdev 375 drivers/gpu/drm/gma500/framebuffer.c info = drm_fb_helper_alloc_fbi(&fbdev->psb_fb_helper); fbdev 388 drivers/gpu/drm/gma500/framebuffer.c psbfb->fbdev = info; fbdev 390 drivers/gpu/drm/gma500/framebuffer.c fbdev->psb_fb_helper.fb = fb; fbdev 414 drivers/gpu/drm/gma500/framebuffer.c drm_fb_helper_fill_info(info, &fbdev->psb_fb_helper, sizes); fbdev 491 drivers/gpu/drm/gma500/framebuffer.c static int psb_fbdev_destroy(struct drm_device *dev, struct psb_fbdev *fbdev) fbdev 493 drivers/gpu/drm/gma500/framebuffer.c struct psb_framebuffer *psbfb = &fbdev->pfb; fbdev 495 drivers/gpu/drm/gma500/framebuffer.c drm_fb_helper_unregister_fbi(&fbdev->psb_fb_helper); fbdev 497 drivers/gpu/drm/gma500/framebuffer.c drm_fb_helper_fini(&fbdev->psb_fb_helper); fbdev 508 drivers/gpu/drm/gma500/framebuffer.c struct psb_fbdev *fbdev; fbdev 512 drivers/gpu/drm/gma500/framebuffer.c fbdev = kzalloc(sizeof(struct psb_fbdev), GFP_KERNEL); fbdev 513 drivers/gpu/drm/gma500/framebuffer.c if (!fbdev) { fbdev 518 drivers/gpu/drm/gma500/framebuffer.c dev_priv->fbdev = fbdev; fbdev 520 drivers/gpu/drm/gma500/framebuffer.c drm_fb_helper_prepare(dev, &fbdev->psb_fb_helper, &psb_fb_helper_funcs); fbdev 522 drivers/gpu/drm/gma500/framebuffer.c ret = drm_fb_helper_init(dev, &fbdev->psb_fb_helper, fbdev 527 drivers/gpu/drm/gma500/framebuffer.c ret = drm_fb_helper_single_add_all_connectors(&fbdev->psb_fb_helper); fbdev 534 drivers/gpu/drm/gma500/framebuffer.c ret = drm_fb_helper_initial_config(&fbdev->psb_fb_helper, 32); fbdev 541 drivers/gpu/drm/gma500/framebuffer.c drm_fb_helper_fini(&fbdev->psb_fb_helper); fbdev 543 drivers/gpu/drm/gma500/framebuffer.c kfree(fbdev); fbdev 551 drivers/gpu/drm/gma500/framebuffer.c if (!dev_priv->fbdev) fbdev 554 drivers/gpu/drm/gma500/framebuffer.c psb_fbdev_destroy(dev, dev_priv->fbdev); fbdev 555 drivers/gpu/drm/gma500/framebuffer.c kfree(dev_priv->fbdev); fbdev 556 drivers/gpu/drm/gma500/framebuffer.c dev_priv->fbdev = NULL; fbdev 19 drivers/gpu/drm/gma500/framebuffer.h struct fb_info *fbdev; fbdev 575 drivers/gpu/drm/gma500/psb_drv.h void *fbdev; fbdev 47 drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_drv.h struct hibmc_fbdev *fbdev; fbdev 118 drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_fbdev.c priv->fbdev->size = size; fbdev 123 drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_fbdev.c drm_fb_helper_fill_info(info, &priv->fbdev->helper, sizes); fbdev 142 drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_fbdev.c static void hibmc_fbdev_destroy(struct hibmc_fbdev *fbdev) fbdev 144 drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_fbdev.c struct hibmc_framebuffer *gfb = fbdev->fb; fbdev 145 drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_fbdev.c struct drm_fb_helper *fbh = &fbdev->helper; fbdev 172 drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_fbdev.c priv->fbdev = hifbdev; fbdev 195 drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_fbdev.c var = &hifbdev->helper.fbdev->var; fbdev 196 drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_fbdev.c fix = &hifbdev->helper.fbdev->fix; fbdev 235 drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_fbdev.c if (!priv->fbdev) fbdev 238 drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_fbdev.c hibmc_fbdev_destroy(priv->fbdev); fbdev 239 drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_fbdev.c priv->fbdev = NULL; fbdev 568 drivers/gpu/drm/i915/display/intel_dp_mst.c if (dev_priv->fbdev) fbdev 569 drivers/gpu/drm/i915/display/intel_dp_mst.c drm_fb_helper_add_one_connector(&dev_priv->fbdev->helper, fbdev 583 drivers/gpu/drm/i915/display/intel_dp_mst.c if (dev_priv->fbdev) fbdev 584 drivers/gpu/drm/i915/display/intel_dp_mst.c drm_fb_helper_remove_one_connector(&dev_priv->fbdev->helper, fbdev 467 drivers/gpu/drm/i915/display/intel_fbdev.c dev_priv->fbdev = ifbdev; fbdev 487 drivers/gpu/drm/i915/display/intel_fbdev.c struct intel_fbdev *ifbdev = to_i915(dev)->fbdev; fbdev 507 drivers/gpu/drm/i915/display/intel_fbdev.c struct intel_fbdev *ifbdev = dev_priv->fbdev; fbdev 521 drivers/gpu/drm/i915/display/intel_fbdev.c struct intel_fbdev *ifbdev = fetch_and_zero(&dev_priv->fbdev); fbdev 552 drivers/gpu/drm/i915/display/intel_fbdev.c struct intel_fbdev *ifbdev = dev_priv->fbdev; fbdev 558 drivers/gpu/drm/i915/display/intel_fbdev.c info = ifbdev->helper.fbdev; fbdev 604 drivers/gpu/drm/i915/display/intel_fbdev.c struct intel_fbdev *ifbdev = to_i915(dev)->fbdev; fbdev 623 drivers/gpu/drm/i915/display/intel_fbdev.c struct intel_fbdev *ifbdev = to_i915(dev)->fbdev; fbdev 1522 drivers/gpu/drm/i915/i915_debugfs.c if (dev_priv->fbdev && dev_priv->fbdev->helper.fb) { fbdev 1523 drivers/gpu/drm/i915/i915_debugfs.c fbdev_fb = to_intel_framebuffer(dev_priv->fbdev->helper.fb); fbdev 1518 drivers/gpu/drm/i915/i915_drv.h struct intel_fbdev *fbdev; fbdev 141 drivers/gpu/drm/msm/msm_debugfs.c if (priv->fbdev) { fbdev 143 drivers/gpu/drm/msm/msm_debugfs.c fbdev_fb = priv->fbdev->fb; fbdev 65 drivers/gpu/drm/msm/msm_drv.c static bool fbdev = true; fbdev 66 drivers/gpu/drm/msm/msm_drv.c MODULE_PARM_DESC(fbdev, "Enable fbdev compat layer"); fbdev 67 drivers/gpu/drm/msm/msm_drv.c module_param(fbdev, bool, 0600); fbdev 254 drivers/gpu/drm/msm/msm_drv.c if (fbdev && priv->fbdev) fbdev 546 drivers/gpu/drm/msm/msm_drv.c if (kms && fbdev) fbdev 547 drivers/gpu/drm/msm/msm_drv.c priv->fbdev = msm_fbdev_init(ddev); fbdev 168 drivers/gpu/drm/msm/msm_drv.h struct drm_fb_helper *fbdev; fbdev 47 drivers/gpu/drm/msm/msm_fbdev.c struct msm_fbdev *fbdev = to_msm_fbdev(helper); fbdev 48 drivers/gpu/drm/msm/msm_fbdev.c struct drm_gem_object *bo = msm_framebuffer_bo(fbdev->fb, 0); fbdev 63 drivers/gpu/drm/msm/msm_fbdev.c struct msm_fbdev *fbdev = to_msm_fbdev(helper); fbdev 112 drivers/gpu/drm/msm/msm_fbdev.c fbdev->fb = fb; fbdev 131 drivers/gpu/drm/msm/msm_fbdev.c DBG("allocated %dx%d fb", fbdev->fb->width, fbdev->fb->height); fbdev 151 drivers/gpu/drm/msm/msm_fbdev.c struct msm_fbdev *fbdev = NULL; fbdev 155 drivers/gpu/drm/msm/msm_fbdev.c fbdev = kzalloc(sizeof(*fbdev), GFP_KERNEL); fbdev 156 drivers/gpu/drm/msm/msm_fbdev.c if (!fbdev) fbdev 159 drivers/gpu/drm/msm/msm_fbdev.c helper = &fbdev->base; fbdev 180 drivers/gpu/drm/msm/msm_fbdev.c priv->fbdev = helper; fbdev 187 drivers/gpu/drm/msm/msm_fbdev.c kfree(fbdev); fbdev 194 drivers/gpu/drm/msm/msm_fbdev.c struct drm_fb_helper *helper = priv->fbdev; fbdev 195 drivers/gpu/drm/msm/msm_fbdev.c struct msm_fbdev *fbdev; fbdev 203 drivers/gpu/drm/msm/msm_fbdev.c fbdev = to_msm_fbdev(priv->fbdev); fbdev 206 drivers/gpu/drm/msm/msm_fbdev.c if (fbdev->fb) { fbdev 208 drivers/gpu/drm/msm/msm_fbdev.c msm_framebuffer_bo(fbdev->fb, 0); fbdev 210 drivers/gpu/drm/msm/msm_fbdev.c drm_framebuffer_remove(fbdev->fb); fbdev 213 drivers/gpu/drm/msm/msm_fbdev.c kfree(fbdev); fbdev 215 drivers/gpu/drm/msm/msm_fbdev.c priv->fbdev = NULL; fbdev 231 drivers/gpu/drm/nouveau/nouveau_fbcon.c if (drm->fbcon && drm->fbcon->helper.fbdev) { fbdev 232 drivers/gpu/drm/nouveau/nouveau_fbcon.c drm->fbcon->saved_flags = drm->fbcon->helper.fbdev->flags; fbdev 233 drivers/gpu/drm/nouveau/nouveau_fbcon.c drm->fbcon->helper.fbdev->flags |= FBINFO_HWACCEL_DISABLED; fbdev 241 drivers/gpu/drm/nouveau/nouveau_fbcon.c if (drm->fbcon && drm->fbcon->helper.fbdev) { fbdev 242 drivers/gpu/drm/nouveau/nouveau_fbcon.c drm->fbcon->helper.fbdev->flags = drm->fbcon->saved_flags; fbdev 253 drivers/gpu/drm/nouveau/nouveau_fbcon.c if (fbcon->helper.fbdev) fbdev 254 drivers/gpu/drm/nouveau/nouveau_fbcon.c fbcon->helper.fbdev->flags |= FBINFO_HWACCEL_DISABLED; fbdev 272 drivers/gpu/drm/nouveau/nouveau_fbcon.c struct fb_info *info = fbcon->helper.fbdev; fbdev 290 drivers/gpu/drm/nouveau/nouveau_fbcon.c struct fb_info *info = fbcon->helper.fbdev; fbdev 587 drivers/gpu/drm/nouveau/nouveau_fbcon.c if (fbcon->helper.fbdev) fbdev 588 drivers/gpu/drm/nouveau/nouveau_fbcon.c fbcon->helper.fbdev->pixmap.buf_align = 4; fbdev 53 drivers/gpu/drm/omapdrm/omap_debugfs.c omap_framebuffer_describe(priv->fbdev->fb, m); fbdev 57 drivers/gpu/drm/omapdrm/omap_debugfs.c if (fb == priv->fbdev->fb) fbdev 59 drivers/gpu/drm/omapdrm/omap_drv.h struct drm_fb_helper *fbdev; fbdev 39 drivers/gpu/drm/omapdrm/omap_fbdev.c struct omap_fbdev *fbdev = container_of(work, struct omap_fbdev, work); fbdev 40 drivers/gpu/drm/omapdrm/omap_fbdev.c struct fb_info *fbi = fbdev->base.fbdev; fbdev 45 drivers/gpu/drm/omapdrm/omap_fbdev.c omap_gem_roll(fbdev->bo, fbi->var.yoffset * npages); fbdev 52 drivers/gpu/drm/omapdrm/omap_fbdev.c struct omap_fbdev *fbdev = to_omap_fbdev(helper); fbdev 57 drivers/gpu/drm/omapdrm/omap_fbdev.c if (!fbdev->ywrap_enabled) fbdev 61 drivers/gpu/drm/omapdrm/omap_fbdev.c pan_worker(&fbdev->work); fbdev 64 drivers/gpu/drm/omapdrm/omap_fbdev.c queue_work(priv->wq, &fbdev->work); fbdev 93 drivers/gpu/drm/omapdrm/omap_fbdev.c struct omap_fbdev *fbdev = to_omap_fbdev(helper); fbdev 119 drivers/gpu/drm/omapdrm/omap_fbdev.c fbdev->ywrap_enabled = priv->has_dmm && ywrap_enabled; fbdev 120 drivers/gpu/drm/omapdrm/omap_fbdev.c if (fbdev->ywrap_enabled) { fbdev 130 drivers/gpu/drm/omapdrm/omap_fbdev.c fbdev->bo = omap_gem_new(dev, gsize, OMAP_BO_SCANOUT | OMAP_BO_WC); fbdev 131 drivers/gpu/drm/omapdrm/omap_fbdev.c if (!fbdev->bo) { fbdev 137 drivers/gpu/drm/omapdrm/omap_fbdev.c fb = omap_framebuffer_init(dev, &mode_cmd, &fbdev->bo); fbdev 143 drivers/gpu/drm/omapdrm/omap_fbdev.c drm_gem_object_put_unlocked(fbdev->bo); fbdev 156 drivers/gpu/drm/omapdrm/omap_fbdev.c ret = omap_gem_pin(fbdev->bo, &dma_addr); fbdev 172 drivers/gpu/drm/omapdrm/omap_fbdev.c fbdev->fb = fb; fbdev 181 drivers/gpu/drm/omapdrm/omap_fbdev.c fbi->screen_buffer = omap_gem_vaddr(fbdev->bo); fbdev 182 drivers/gpu/drm/omapdrm/omap_fbdev.c fbi->screen_size = fbdev->bo->size; fbdev 184 drivers/gpu/drm/omapdrm/omap_fbdev.c fbi->fix.smem_len = fbdev->bo->size; fbdev 189 drivers/gpu/drm/omapdrm/omap_fbdev.c if (fbdev->ywrap_enabled) { fbdev 197 drivers/gpu/drm/omapdrm/omap_fbdev.c DBG("allocated %dx%d fb", fbdev->fb->width, fbdev->fb->height); fbdev 228 drivers/gpu/drm/omapdrm/omap_fbdev.c struct omap_fbdev *fbdev = NULL; fbdev 235 drivers/gpu/drm/omapdrm/omap_fbdev.c fbdev = kzalloc(sizeof(*fbdev), GFP_KERNEL); fbdev 236 drivers/gpu/drm/omapdrm/omap_fbdev.c if (!fbdev) fbdev 239 drivers/gpu/drm/omapdrm/omap_fbdev.c INIT_WORK(&fbdev->work, pan_worker); fbdev 241 drivers/gpu/drm/omapdrm/omap_fbdev.c helper = &fbdev->base; fbdev 257 drivers/gpu/drm/omapdrm/omap_fbdev.c priv->fbdev = helper; fbdev 264 drivers/gpu/drm/omapdrm/omap_fbdev.c kfree(fbdev); fbdev 272 drivers/gpu/drm/omapdrm/omap_fbdev.c struct drm_fb_helper *helper = priv->fbdev; fbdev 273 drivers/gpu/drm/omapdrm/omap_fbdev.c struct omap_fbdev *fbdev; fbdev 284 drivers/gpu/drm/omapdrm/omap_fbdev.c fbdev = to_omap_fbdev(helper); fbdev 287 drivers/gpu/drm/omapdrm/omap_fbdev.c if (fbdev->bo) fbdev 288 drivers/gpu/drm/omapdrm/omap_fbdev.c omap_gem_unpin(fbdev->bo); fbdev 291 drivers/gpu/drm/omapdrm/omap_fbdev.c if (fbdev->fb) fbdev 292 drivers/gpu/drm/omapdrm/omap_fbdev.c drm_framebuffer_remove(fbdev->fb); fbdev 294 drivers/gpu/drm/omapdrm/omap_fbdev.c kfree(fbdev); fbdev 296 drivers/gpu/drm/omapdrm/omap_fbdev.c priv->fbdev = NULL; fbdev 140 drivers/gpu/drm/tegra/drm.c goto fbdev; fbdev 212 drivers/gpu/drm/tegra/drm.c fbdev: fbdev 53 drivers/gpu/drm/tegra/drm.h struct tegra_fbdev *fbdev; fbdev 207 drivers/gpu/drm/tegra/fb.c struct tegra_fbdev *fbdev = to_tegra_fbdev(helper); fbdev 242 drivers/gpu/drm/tegra/fb.c fbdev->fb = tegra_fb_alloc(drm, &cmd, &bo, 1); fbdev 243 drivers/gpu/drm/tegra/fb.c if (IS_ERR(fbdev->fb)) { fbdev 244 drivers/gpu/drm/tegra/fb.c err = PTR_ERR(fbdev->fb); fbdev 248 drivers/gpu/drm/tegra/fb.c return PTR_ERR(fbdev->fb); fbdev 251 drivers/gpu/drm/tegra/fb.c fb = fbdev->fb; fbdev 253 drivers/gpu/drm/tegra/fb.c helper->fbdev = info; fbdev 291 drivers/gpu/drm/tegra/fb.c struct tegra_fbdev *fbdev; fbdev 293 drivers/gpu/drm/tegra/fb.c fbdev = kzalloc(sizeof(*fbdev), GFP_KERNEL); fbdev 294 drivers/gpu/drm/tegra/fb.c if (!fbdev) { fbdev 299 drivers/gpu/drm/tegra/fb.c drm_fb_helper_prepare(drm, &fbdev->base, &tegra_fb_helper_funcs); fbdev 301 drivers/gpu/drm/tegra/fb.c return fbdev; fbdev 304 drivers/gpu/drm/tegra/fb.c static void tegra_fbdev_free(struct tegra_fbdev *fbdev) fbdev 306 drivers/gpu/drm/tegra/fb.c kfree(fbdev); fbdev 309 drivers/gpu/drm/tegra/fb.c static int tegra_fbdev_init(struct tegra_fbdev *fbdev, fbdev 314 drivers/gpu/drm/tegra/fb.c struct drm_device *drm = fbdev->base.dev; fbdev 317 drivers/gpu/drm/tegra/fb.c err = drm_fb_helper_init(drm, &fbdev->base, max_connectors); fbdev 324 drivers/gpu/drm/tegra/fb.c err = drm_fb_helper_single_add_all_connectors(&fbdev->base); fbdev 330 drivers/gpu/drm/tegra/fb.c err = drm_fb_helper_initial_config(&fbdev->base, preferred_bpp); fbdev 340 drivers/gpu/drm/tegra/fb.c drm_fb_helper_fini(&fbdev->base); fbdev 344 drivers/gpu/drm/tegra/fb.c static void tegra_fbdev_exit(struct tegra_fbdev *fbdev) fbdev 346 drivers/gpu/drm/tegra/fb.c drm_fb_helper_unregister_fbi(&fbdev->base); fbdev 348 drivers/gpu/drm/tegra/fb.c if (fbdev->fb) { fbdev 349 drivers/gpu/drm/tegra/fb.c struct tegra_bo *bo = tegra_fb_get_plane(fbdev->fb, 0); fbdev 357 drivers/gpu/drm/tegra/fb.c drm_framebuffer_remove(fbdev->fb); fbdev 360 drivers/gpu/drm/tegra/fb.c drm_fb_helper_fini(&fbdev->base); fbdev 361 drivers/gpu/drm/tegra/fb.c tegra_fbdev_free(fbdev); fbdev 370 drivers/gpu/drm/tegra/fb.c tegra->fbdev = tegra_fbdev_create(drm); fbdev 371 drivers/gpu/drm/tegra/fb.c if (IS_ERR(tegra->fbdev)) fbdev 372 drivers/gpu/drm/tegra/fb.c return PTR_ERR(tegra->fbdev); fbdev 383 drivers/gpu/drm/tegra/fb.c tegra_fbdev_free(tegra->fbdev); fbdev 393 drivers/gpu/drm/tegra/fb.c err = tegra_fbdev_init(tegra->fbdev, 32, drm->mode_config.num_crtc, fbdev 407 drivers/gpu/drm/tegra/fb.c tegra_fbdev_exit(tegra->fbdev); fbdev 68 drivers/gpu/drm/udl/udl_drv.h struct udl_fbdev *fbdev; fbdev 445 drivers/gpu/drm/udl/udl_fb.c udl->fbdev = ufbdev; fbdev 476 drivers/gpu/drm/udl/udl_fb.c if (!udl->fbdev) fbdev 479 drivers/gpu/drm/udl/udl_fb.c udl_fbdev_destroy(dev, udl->fbdev); fbdev 480 drivers/gpu/drm/udl/udl_fb.c kfree(udl->fbdev); fbdev 481 drivers/gpu/drm/udl/udl_fb.c udl->fbdev = NULL; fbdev 488 drivers/gpu/drm/udl/udl_fb.c if (!udl->fbdev) fbdev 491 drivers/gpu/drm/udl/udl_fb.c ufbdev = udl->fbdev; fbdev 130 drivers/gpu/drm/vboxvideo/vbox_fb.c if (vbox->fb_helper.fbdev && vbox->fb_helper.fbdev->fbdefio) fbdev 131 drivers/gpu/drm/vboxvideo/vbox_fb.c fb_deferred_io_cleanup(vbox->fb_helper.fbdev); fbdev 34 drivers/staging/fieldbus/anybuss/hms-profinet.c struct fieldbus_dev fbdev; fbdev 41 drivers/staging/fieldbus/anybuss/hms-profinet.c profi_read_area(struct fieldbus_dev *fbdev, char __user *buf, size_t size, fbdev 44 drivers/staging/fieldbus/anybuss/hms-profinet.c struct profi_priv *priv = container_of(fbdev, struct profi_priv, fbdev); fbdev 50 drivers/staging/fieldbus/anybuss/hms-profinet.c profi_write_area(struct fieldbus_dev *fbdev, const char __user *buf, fbdev 53 drivers/staging/fieldbus/anybuss/hms-profinet.c struct profi_priv *priv = container_of(fbdev, struct profi_priv, fbdev); fbdev 58 drivers/staging/fieldbus/anybuss/hms-profinet.c static int profi_id_get(struct fieldbus_dev *fbdev, char *buf, fbdev 61 drivers/staging/fieldbus/anybuss/hms-profinet.c struct profi_priv *priv = container_of(fbdev, struct profi_priv, fbdev); fbdev 75 drivers/staging/fieldbus/anybuss/hms-profinet.c static bool profi_enable_get(struct fieldbus_dev *fbdev) fbdev 77 drivers/staging/fieldbus/anybuss/hms-profinet.c struct profi_priv *priv = container_of(fbdev, struct profi_priv, fbdev); fbdev 134 drivers/staging/fieldbus/anybuss/hms-profinet.c static int profi_simple_enable(struct fieldbus_dev *fbdev, bool enable) fbdev 137 drivers/staging/fieldbus/anybuss/hms-profinet.c struct profi_priv *priv = container_of(fbdev, struct profi_priv, fbdev); fbdev 153 drivers/staging/fieldbus/anybuss/hms-profinet.c fieldbus_dev_area_updated(&priv->fbdev); fbdev 160 drivers/staging/fieldbus/anybuss/hms-profinet.c fieldbus_dev_online_changed(&priv->fbdev, online); fbdev 176 drivers/staging/fieldbus/anybuss/hms-profinet.c priv->fbdev.read_area_sz = PROFI_DPRAM_SIZE; fbdev 177 drivers/staging/fieldbus/anybuss/hms-profinet.c priv->fbdev.write_area_sz = PROFI_DPRAM_SIZE; fbdev 178 drivers/staging/fieldbus/anybuss/hms-profinet.c priv->fbdev.card_name = "HMS Profinet IRT (Anybus-S)"; fbdev 179 drivers/staging/fieldbus/anybuss/hms-profinet.c priv->fbdev.fieldbus_type = FIELDBUS_DEV_TYPE_PROFINET; fbdev 180 drivers/staging/fieldbus/anybuss/hms-profinet.c priv->fbdev.read_area = profi_read_area; fbdev 181 drivers/staging/fieldbus/anybuss/hms-profinet.c priv->fbdev.write_area = profi_write_area; fbdev 182 drivers/staging/fieldbus/anybuss/hms-profinet.c priv->fbdev.fieldbus_id_get = profi_id_get; fbdev 183 drivers/staging/fieldbus/anybuss/hms-profinet.c priv->fbdev.enable_get = profi_enable_get; fbdev 184 drivers/staging/fieldbus/anybuss/hms-profinet.c priv->fbdev.simple_enable_set = profi_simple_enable; fbdev 185 drivers/staging/fieldbus/anybuss/hms-profinet.c priv->fbdev.parent = dev; fbdev 186 drivers/staging/fieldbus/anybuss/hms-profinet.c err = fieldbus_dev_register(&priv->fbdev); fbdev 190 drivers/staging/fieldbus/anybuss/hms-profinet.c dev_name(priv->fbdev.dev)); fbdev 200 drivers/staging/fieldbus/anybuss/hms-profinet.c fieldbus_dev_unregister(&priv->fbdev); fbdev 168 drivers/staging/fieldbus/dev_core.c struct fieldbus_dev *fbdev; fbdev 175 drivers/staging/fieldbus/dev_core.c struct fieldbus_dev *fbdev = container_of(inode->i_cdev, fbdev 182 drivers/staging/fieldbus/dev_core.c of->fbdev = fbdev; fbdev 199 drivers/staging/fieldbus/dev_core.c struct fieldbus_dev *fbdev = of->fbdev; fbdev 201 drivers/staging/fieldbus/dev_core.c of->dc_event = fbdev->dc_event; fbdev 202 drivers/staging/fieldbus/dev_core.c return fbdev->read_area(fbdev, buf, size, offset); fbdev 209 drivers/staging/fieldbus/dev_core.c struct fieldbus_dev *fbdev = of->fbdev; fbdev 211 drivers/staging/fieldbus/dev_core.c return fbdev->write_area(fbdev, buf, size, offset); fbdev 217 drivers/staging/fieldbus/dev_core.c struct fieldbus_dev *fbdev = of->fbdev; fbdev 220 drivers/staging/fieldbus/dev_core.c poll_wait(filp, &fbdev->dc_wq, wait); fbdev 222 drivers/staging/fieldbus/dev_core.c if (fbdev->dc_event != of->dc_event) fbdev 41 drivers/staging/fieldbus/fieldbus_dev.h ssize_t (*read_area)(struct fieldbus_dev *fbdev, char __user *buf, fbdev 43 drivers/staging/fieldbus/fieldbus_dev.h ssize_t (*write_area)(struct fieldbus_dev *fbdev, fbdev 49 drivers/staging/fieldbus/fieldbus_dev.h bool (*enable_get)(struct fieldbus_dev *fbdev); fbdev 50 drivers/staging/fieldbus/fieldbus_dev.h int (*fieldbus_id_get)(struct fieldbus_dev *fbdev, char *buf, fbdev 52 drivers/staging/fieldbus/fieldbus_dev.h int (*simple_enable_set)(struct fieldbus_dev *fbdev, bool enable); fbdev 110 drivers/video/backlight/bd6107.c return bd->pdata->fbdev == NULL || bd->pdata->fbdev == info->dev; fbdev 23 drivers/video/backlight/gpio_backlight.c struct device *fbdev; fbdev 49 drivers/video/backlight/gpio_backlight.c return gbl->fbdev == NULL || gbl->fbdev == info->dev; fbdev 123 drivers/video/backlight/gpio_backlight.c gbl->fbdev = pdata->fbdev; fbdev 75 drivers/video/backlight/lv5207lp.c return lv->pdata->fbdev == NULL || lv->pdata->fbdev == info->dev; fbdev 108 drivers/video/fbdev/au1100fb.c struct au1100fb_device *fbdev = to_au1100fb_device(fbi); fbdev 116 drivers/video/fbdev/au1100fb.c fbdev->regs->lcd_control |= LCD_CONTROL_GO; fbdev 124 drivers/video/fbdev/au1100fb.c fbdev->regs->lcd_control &= ~LCD_CONTROL_GO; fbdev 138 drivers/video/fbdev/au1100fb.c int au1100fb_setmode(struct au1100fb_device *fbdev) fbdev 140 drivers/video/fbdev/au1100fb.c struct fb_info *info = &fbdev->info; fbdev 144 drivers/video/fbdev/au1100fb.c if (!fbdev) fbdev 148 drivers/video/fbdev/au1100fb.c if (panel_is_active(fbdev->panel) || panel_is_color(fbdev->panel)) { fbdev 172 drivers/video/fbdev/au1100fb.c index = (fbdev->panel->control_base & LCD_CONTROL_SBPPF_MASK) >> LCD_CONTROL_SBPPF_BIT; fbdev 188 drivers/video/fbdev/au1100fb.c info->var.rotate = ((fbdev->panel->control_base&LCD_CONTROL_SM_MASK) \ fbdev 192 drivers/video/fbdev/au1100fb.c fbdev->regs->lcd_control = fbdev->panel->control_base; fbdev 193 drivers/video/fbdev/au1100fb.c fbdev->regs->lcd_horztiming = fbdev->panel->horztiming; fbdev 194 drivers/video/fbdev/au1100fb.c fbdev->regs->lcd_verttiming = fbdev->panel->verttiming; fbdev 195 drivers/video/fbdev/au1100fb.c fbdev->regs->lcd_clkcontrol = fbdev->panel->clkcontrol_base; fbdev 196 drivers/video/fbdev/au1100fb.c fbdev->regs->lcd_intenable = 0; fbdev 197 drivers/video/fbdev/au1100fb.c fbdev->regs->lcd_intstatus = 0; fbdev 198 drivers/video/fbdev/au1100fb.c fbdev->regs->lcd_dmaaddr0 = LCD_DMA_SA_N(fbdev->fb_phys); fbdev 200 drivers/video/fbdev/au1100fb.c if (panel_is_dual(fbdev->panel)) { fbdev 204 drivers/video/fbdev/au1100fb.c fbdev->regs->lcd_dmaaddr1 = LCD_DMA_SA_N(fbdev->fb_phys + fbdev 208 drivers/video/fbdev/au1100fb.c fbdev->regs->lcd_dmaaddr1 = LCD_DMA_SA_N(fbdev->fb_phys); fbdev 219 drivers/video/fbdev/au1100fb.c fbdev->regs->lcd_words = LCD_WRD_WRDS_N(words); fbdev 221 drivers/video/fbdev/au1100fb.c fbdev->regs->lcd_pwmdiv = 0; fbdev 222 drivers/video/fbdev/au1100fb.c fbdev->regs->lcd_pwmhi = 0; fbdev 225 drivers/video/fbdev/au1100fb.c fbdev->regs->lcd_control |= LCD_CONTROL_GO; fbdev 237 drivers/video/fbdev/au1100fb.c struct au1100fb_device *fbdev; fbdev 241 drivers/video/fbdev/au1100fb.c fbdev = to_au1100fb_device(fbi); fbdev 242 drivers/video/fbdev/au1100fb.c palette = fbdev->regs->lcd_pallettebase; fbdev 269 drivers/video/fbdev/au1100fb.c } else if (panel_is_active(fbdev->panel)) { fbdev 274 drivers/video/fbdev/au1100fb.c } else if (panel_is_color(fbdev->panel)) { fbdev 276 drivers/video/fbdev/au1100fb.c value = (((panel_swap_rgb(fbdev->panel) ? blue : red) >> 12) & 0x000F) | fbdev 278 drivers/video/fbdev/au1100fb.c (((panel_swap_rgb(fbdev->panel) ? red : blue) >> 4) & 0x0F00); fbdev 296 drivers/video/fbdev/au1100fb.c struct au1100fb_device *fbdev; fbdev 299 drivers/video/fbdev/au1100fb.c fbdev = to_au1100fb_device(fbi); fbdev 303 drivers/video/fbdev/au1100fb.c if (!var || !fbdev) { fbdev 320 drivers/video/fbdev/au1100fb.c dmaaddr = fbdev->regs->lcd_dmaaddr0; fbdev 324 drivers/video/fbdev/au1100fb.c fbdev->regs->lcd_dmaaddr0 = LCD_DMA_SA_N(dmaaddr); fbdev 326 drivers/video/fbdev/au1100fb.c if (panel_is_dual(fbdev->panel)) { fbdev 327 drivers/video/fbdev/au1100fb.c dmaaddr = fbdev->regs->lcd_dmaaddr1; fbdev 329 drivers/video/fbdev/au1100fb.c fbdev->regs->lcd_dmaaddr0 = LCD_DMA_SA_N(dmaaddr); fbdev 343 drivers/video/fbdev/au1100fb.c struct au1100fb_device *fbdev = to_au1100fb_device(fbi); fbdev 347 drivers/video/fbdev/au1100fb.c return dma_mmap_coherent(fbdev->dev, vma, fbdev->fb_mem, fbdev->fb_phys, fbdev 348 drivers/video/fbdev/au1100fb.c fbdev->fb_len); fbdev 366 drivers/video/fbdev/au1100fb.c static int au1100fb_setup(struct au1100fb_device *fbdev) fbdev 389 drivers/video/fbdev/au1100fb.c fbdev->panel = &known_lcd_panels[i]; fbdev 390 drivers/video/fbdev/au1100fb.c fbdev->panel_idx = i; fbdev 404 drivers/video/fbdev/au1100fb.c print_info("Panel=%s", fbdev->panel->name); fbdev 411 drivers/video/fbdev/au1100fb.c struct au1100fb_device *fbdev; fbdev 416 drivers/video/fbdev/au1100fb.c fbdev = devm_kzalloc(&dev->dev, sizeof(*fbdev), GFP_KERNEL); fbdev 417 drivers/video/fbdev/au1100fb.c if (!fbdev) fbdev 420 drivers/video/fbdev/au1100fb.c if (au1100fb_setup(fbdev)) fbdev 423 drivers/video/fbdev/au1100fb.c platform_set_drvdata(dev, (void *)fbdev); fbdev 424 drivers/video/fbdev/au1100fb.c fbdev->dev = &dev->dev; fbdev 445 drivers/video/fbdev/au1100fb.c fbdev->regs = (struct au1100fb_regs*)KSEG1ADDR(au1100fb_fix.mmio_start); fbdev 447 drivers/video/fbdev/au1100fb.c print_dbg("Register memory map at %p", fbdev->regs); fbdev 448 drivers/video/fbdev/au1100fb.c print_dbg("phys=0x%08x, size=%d", fbdev->regs_phys, fbdev->regs_len); fbdev 452 drivers/video/fbdev/au1100fb.c fbdev->lcdclk = c; fbdev 458 drivers/video/fbdev/au1100fb.c fbdev->fb_len = fbdev->panel->xres * fbdev->panel->yres * fbdev 459 drivers/video/fbdev/au1100fb.c (fbdev->panel->bpp >> 3) * AU1100FB_NBR_VIDEO_BUFFERS; fbdev 461 drivers/video/fbdev/au1100fb.c fbdev->fb_mem = dmam_alloc_coherent(&dev->dev, fbdev 462 drivers/video/fbdev/au1100fb.c PAGE_ALIGN(fbdev->fb_len), fbdev 463 drivers/video/fbdev/au1100fb.c &fbdev->fb_phys, GFP_KERNEL); fbdev 464 drivers/video/fbdev/au1100fb.c if (!fbdev->fb_mem) { fbdev 466 drivers/video/fbdev/au1100fb.c fbdev->fb_len / 1024); fbdev 470 drivers/video/fbdev/au1100fb.c au1100fb_fix.smem_start = fbdev->fb_phys; fbdev 471 drivers/video/fbdev/au1100fb.c au1100fb_fix.smem_len = fbdev->fb_len; fbdev 473 drivers/video/fbdev/au1100fb.c print_dbg("Framebuffer memory map at %p", fbdev->fb_mem); fbdev 474 drivers/video/fbdev/au1100fb.c print_dbg("phys=0x%08x, size=%dK", fbdev->fb_phys, fbdev->fb_len / 1024); fbdev 477 drivers/video/fbdev/au1100fb.c au1100fb_var.bits_per_pixel = fbdev->panel->bpp; fbdev 478 drivers/video/fbdev/au1100fb.c au1100fb_var.xres = fbdev->panel->xres; fbdev 480 drivers/video/fbdev/au1100fb.c au1100fb_var.yres = fbdev->panel->yres; fbdev 483 drivers/video/fbdev/au1100fb.c fbdev->info.screen_base = fbdev->fb_mem; fbdev 484 drivers/video/fbdev/au1100fb.c fbdev->info.fbops = &au1100fb_ops; fbdev 485 drivers/video/fbdev/au1100fb.c fbdev->info.fix = au1100fb_fix; fbdev 487 drivers/video/fbdev/au1100fb.c fbdev->info.pseudo_palette = fbdev 489 drivers/video/fbdev/au1100fb.c if (!fbdev->info.pseudo_palette) fbdev 492 drivers/video/fbdev/au1100fb.c if (fb_alloc_cmap(&fbdev->info.cmap, AU1100_LCD_NBR_PALETTE_ENTRIES, 0) < 0) { fbdev 498 drivers/video/fbdev/au1100fb.c fbdev->info.var = au1100fb_var; fbdev 501 drivers/video/fbdev/au1100fb.c au1100fb_setmode(fbdev); fbdev 504 drivers/video/fbdev/au1100fb.c if (register_framebuffer(&fbdev->info) < 0) { fbdev 512 drivers/video/fbdev/au1100fb.c if (fbdev->lcdclk) { fbdev 513 drivers/video/fbdev/au1100fb.c clk_disable_unprepare(fbdev->lcdclk); fbdev 514 drivers/video/fbdev/au1100fb.c clk_put(fbdev->lcdclk); fbdev 516 drivers/video/fbdev/au1100fb.c if (fbdev->info.cmap.len != 0) { fbdev 517 drivers/video/fbdev/au1100fb.c fb_dealloc_cmap(&fbdev->info.cmap); fbdev 525 drivers/video/fbdev/au1100fb.c struct au1100fb_device *fbdev = NULL; fbdev 530 drivers/video/fbdev/au1100fb.c fbdev = platform_get_drvdata(dev); fbdev 533 drivers/video/fbdev/au1100fb.c au1100fb_fb_blank(VESA_POWERDOWN, &fbdev->info); fbdev 535 drivers/video/fbdev/au1100fb.c fbdev->regs->lcd_control &= ~LCD_CONTROL_GO; fbdev 538 drivers/video/fbdev/au1100fb.c unregister_framebuffer(&fbdev->info); fbdev 540 drivers/video/fbdev/au1100fb.c fb_dealloc_cmap(&fbdev->info.cmap); fbdev 542 drivers/video/fbdev/au1100fb.c if (fbdev->lcdclk) { fbdev 543 drivers/video/fbdev/au1100fb.c clk_disable_unprepare(fbdev->lcdclk); fbdev 544 drivers/video/fbdev/au1100fb.c clk_put(fbdev->lcdclk); fbdev 555 drivers/video/fbdev/au1100fb.c struct au1100fb_device *fbdev = platform_get_drvdata(dev); fbdev 557 drivers/video/fbdev/au1100fb.c if (!fbdev) fbdev 561 drivers/video/fbdev/au1100fb.c au1100fb_fb_blank(VESA_POWERDOWN, &fbdev->info); fbdev 563 drivers/video/fbdev/au1100fb.c if (fbdev->lcdclk) fbdev 564 drivers/video/fbdev/au1100fb.c clk_disable(fbdev->lcdclk); fbdev 566 drivers/video/fbdev/au1100fb.c memcpy(&fbregs, fbdev->regs, sizeof(struct au1100fb_regs)); fbdev 573 drivers/video/fbdev/au1100fb.c struct au1100fb_device *fbdev = platform_get_drvdata(dev); fbdev 575 drivers/video/fbdev/au1100fb.c if (!fbdev) fbdev 578 drivers/video/fbdev/au1100fb.c memcpy(fbdev->regs, &fbregs, sizeof(struct au1100fb_regs)); fbdev 580 drivers/video/fbdev/au1100fb.c if (fbdev->lcdclk) fbdev 581 drivers/video/fbdev/au1100fb.c clk_enable(fbdev->lcdclk); fbdev 584 drivers/video/fbdev/au1100fb.c au1100fb_fb_blank(VESA_NO_BLANKING, &fbdev->info); fbdev 702 drivers/video/fbdev/au1200fb.c static int au1200_setlocation (struct au1200fb_device *fbdev, int plane, fbdev 764 drivers/video/fbdev/au1200fb.c lcd->window[plane].winbuf1 = fbdev->fb_phys; fbdev 852 drivers/video/fbdev/au1200fb.c au1200_setlocation(fbdev, 0, win->w[0].xpos, win->w[0].ypos); fbdev 853 drivers/video/fbdev/au1200fb.c au1200_setlocation(fbdev, 1, win->w[1].xpos, win->w[1].ypos); fbdev 854 drivers/video/fbdev/au1200fb.c au1200_setlocation(fbdev, 2, win->w[2].xpos, win->w[2].ypos); fbdev 855 drivers/video/fbdev/au1200fb.c au1200_setlocation(fbdev, 3, win->w[3].xpos, win->w[3].ypos); fbdev 937 drivers/video/fbdev/au1200fb.c static void au1200_setmode(struct au1200fb_device *fbdev) fbdev 939 drivers/video/fbdev/au1200fb.c int plane = fbdev->plane; fbdev 946 drivers/video/fbdev/au1200fb.c au1200_setlocation(fbdev, plane, win->w[plane].xpos, win->w[plane].ypos); fbdev 951 drivers/video/fbdev/au1200fb.c | LCD_WINCTRL2_BX_N(fbdev->fb_info->fix.line_length) fbdev 1039 drivers/video/fbdev/au1200fb.c struct au1200fb_device *fbdev = fbi->par; fbdev 1043 drivers/video/fbdev/au1200fb.c plane = fbdev->plane; fbdev 1060 drivers/video/fbdev/au1200fb.c if (fbdev->fb_len < screen_size) fbdev 1131 drivers/video/fbdev/au1200fb.c struct au1200fb_device *fbdev = fbi->par; fbdev 1134 drivers/video/fbdev/au1200fb.c au1200_setmode(fbdev); fbdev 1200 drivers/video/fbdev/au1200fb.c struct au1200fb_device *fbdev = fbi->par; fbdev 1211 drivers/video/fbdev/au1200fb.c au1200_setpanel(panel, fbdev->pd); fbdev 1217 drivers/video/fbdev/au1200fb.c au1200_setpanel(NULL, fbdev->pd); fbdev 1234 drivers/video/fbdev/au1200fb.c struct au1200fb_device *fbdev = info->par; fbdev 1236 drivers/video/fbdev/au1200fb.c return dma_mmap_attrs(fbdev->dev, vma, fbdev->fb_mem, fbdev->fb_phys, fbdev 1237 drivers/video/fbdev/au1200fb.c fbdev->fb_len, 0); fbdev 1417 drivers/video/fbdev/au1200fb.c struct au1200fb_device *fbdev = info->par; fbdev 1462 drivers/video/fbdev/au1200fb.c au1200_setpanel(newpanel, fbdev->pd); fbdev 1517 drivers/video/fbdev/au1200fb.c static int au1200fb_init_fbinfo(struct au1200fb_device *fbdev) fbdev 1519 drivers/video/fbdev/au1200fb.c struct fb_info *fbi = fbdev->fb_info; fbdev 1524 drivers/video/fbdev/au1200fb.c bpp = winbpp(win->w[fbdev->plane].mode_winctrl1); fbdev 1559 drivers/video/fbdev/au1200fb.c fbi->fix.smem_start = fbdev->fb_phys; fbdev 1560 drivers/video/fbdev/au1200fb.c fbi->fix.smem_len = fbdev->fb_len; fbdev 1568 drivers/video/fbdev/au1200fb.c fbi->screen_base = (char __iomem *) fbdev->fb_mem; fbdev 1646 drivers/video/fbdev/au1200fb.c struct au1200fb_device *fbdev; fbdev 1683 drivers/video/fbdev/au1200fb.c fbdev = fbi->par; fbdev 1684 drivers/video/fbdev/au1200fb.c fbdev->fb_info = fbi; fbdev 1685 drivers/video/fbdev/au1200fb.c fbdev->pd = pd; fbdev 1686 drivers/video/fbdev/au1200fb.c fbdev->dev = &dev->dev; fbdev 1688 drivers/video/fbdev/au1200fb.c fbdev->plane = plane; fbdev 1691 drivers/video/fbdev/au1200fb.c fbdev->fb_len = (win->w[plane].xres * win->w[plane].yres * bpp) / 8; fbdev 1693 drivers/video/fbdev/au1200fb.c fbdev->fb_mem = dmam_alloc_attrs(&dev->dev, fbdev 1694 drivers/video/fbdev/au1200fb.c PAGE_ALIGN(fbdev->fb_len), fbdev 1695 drivers/video/fbdev/au1200fb.c &fbdev->fb_phys, GFP_KERNEL, 0); fbdev 1696 drivers/video/fbdev/au1200fb.c if (!fbdev->fb_mem) { fbdev 1698 drivers/video/fbdev/au1200fb.c fbdev->fb_len / 1024); fbdev 1703 drivers/video/fbdev/au1200fb.c print_dbg("Framebuffer memory map at %p", fbdev->fb_mem); fbdev 1704 drivers/video/fbdev/au1200fb.c print_dbg("phys=0x%08x, size=%dK", fbdev->fb_phys, fbdev->fb_len / 1024); fbdev 1707 drivers/video/fbdev/au1200fb.c ret = au1200fb_init_fbinfo(fbdev); fbdev 87 drivers/video/fbdev/ocfb.c static inline u32 ocfb_readreg(struct ocfb_dev *fbdev, loff_t offset) fbdev 89 drivers/video/fbdev/ocfb.c if (fbdev->little_endian) fbdev 90 drivers/video/fbdev/ocfb.c return ioread32(fbdev->regs + offset); fbdev 92 drivers/video/fbdev/ocfb.c return ioread32be(fbdev->regs + offset); fbdev 95 drivers/video/fbdev/ocfb.c static void ocfb_writereg(struct ocfb_dev *fbdev, loff_t offset, u32 data) fbdev 97 drivers/video/fbdev/ocfb.c if (fbdev->little_endian) fbdev 98 drivers/video/fbdev/ocfb.c iowrite32(data, fbdev->regs + offset); fbdev 100 drivers/video/fbdev/ocfb.c iowrite32be(data, fbdev->regs + offset); fbdev 103 drivers/video/fbdev/ocfb.c static int ocfb_setupfb(struct ocfb_dev *fbdev) fbdev 106 drivers/video/fbdev/ocfb.c struct fb_var_screeninfo *var = &fbdev->info.var; fbdev 107 drivers/video/fbdev/ocfb.c struct device *dev = fbdev->info.device; fbdev 112 drivers/video/fbdev/ocfb.c ocfb_writereg(fbdev, OCFB_CTRL, 0); fbdev 115 drivers/video/fbdev/ocfb.c fbdev->little_endian = 0; fbdev 116 drivers/video/fbdev/ocfb.c ocfb_writereg(fbdev, OCFB_VBARA, fbdev->fb_phys); fbdev 119 drivers/video/fbdev/ocfb.c if (ocfb_readreg(fbdev, OCFB_VBARA) != fbdev->fb_phys) { fbdev 120 drivers/video/fbdev/ocfb.c fbdev->little_endian = 1; fbdev 121 drivers/video/fbdev/ocfb.c ocfb_writereg(fbdev, OCFB_VBARA, fbdev->fb_phys); fbdev 125 drivers/video/fbdev/ocfb.c ocfb_writereg(fbdev, OCFB_HTIM, (var->hsync_len - 1) << 24 | fbdev 129 drivers/video/fbdev/ocfb.c ocfb_writereg(fbdev, OCFB_VTIM, (var->vsync_len - 1) << 24 | fbdev 139 drivers/video/fbdev/ocfb.c ocfb_writereg(fbdev, OCFB_HVLEN, (hlen - 1) << 16 | (vlen - 1)); fbdev 169 drivers/video/fbdev/ocfb.c ocfb_writereg(fbdev, OCFB_CTRL, (OCFB_CTRL_VEN | bpp_config)); fbdev 178 drivers/video/fbdev/ocfb.c struct ocfb_dev *fbdev = (struct ocfb_dev *)info->par; fbdev 199 drivers/video/fbdev/ocfb.c ocfb_writereg(fbdev, OCFB_PALETTE + regno, color); fbdev 211 drivers/video/fbdev/ocfb.c static int ocfb_init_fix(struct ocfb_dev *fbdev) fbdev 213 drivers/video/fbdev/ocfb.c struct fb_var_screeninfo *var = &fbdev->info.var; fbdev 214 drivers/video/fbdev/ocfb.c struct fb_fix_screeninfo *fix = &fbdev->info.fix; fbdev 230 drivers/video/fbdev/ocfb.c static int ocfb_init_var(struct ocfb_dev *fbdev) fbdev 232 drivers/video/fbdev/ocfb.c struct fb_var_screeninfo *var = &fbdev->info.var; fbdev 299 drivers/video/fbdev/ocfb.c struct ocfb_dev *fbdev; fbdev 303 drivers/video/fbdev/ocfb.c fbdev = devm_kzalloc(&pdev->dev, sizeof(*fbdev), GFP_KERNEL); fbdev 304 drivers/video/fbdev/ocfb.c if (!fbdev) fbdev 307 drivers/video/fbdev/ocfb.c platform_set_drvdata(pdev, fbdev); fbdev 309 drivers/video/fbdev/ocfb.c fbdev->info.fbops = &ocfb_ops; fbdev 310 drivers/video/fbdev/ocfb.c fbdev->info.device = &pdev->dev; fbdev 311 drivers/video/fbdev/ocfb.c fbdev->info.par = fbdev; fbdev 314 drivers/video/fbdev/ocfb.c if (!fb_find_mode(&fbdev->info.var, &fbdev->info, mode_option, fbdev 319 drivers/video/fbdev/ocfb.c ocfb_init_var(fbdev); fbdev 320 drivers/video/fbdev/ocfb.c ocfb_init_fix(fbdev); fbdev 328 drivers/video/fbdev/ocfb.c fbdev->regs = devm_ioremap_resource(&pdev->dev, res); fbdev 329 drivers/video/fbdev/ocfb.c if (IS_ERR(fbdev->regs)) fbdev 330 drivers/video/fbdev/ocfb.c return PTR_ERR(fbdev->regs); fbdev 333 drivers/video/fbdev/ocfb.c fbsize = fbdev->info.fix.smem_len; fbdev 334 drivers/video/fbdev/ocfb.c fbdev->fb_virt = dma_alloc_coherent(&pdev->dev, PAGE_ALIGN(fbsize), fbdev 335 drivers/video/fbdev/ocfb.c &fbdev->fb_phys, GFP_KERNEL); fbdev 336 drivers/video/fbdev/ocfb.c if (!fbdev->fb_virt) { fbdev 341 drivers/video/fbdev/ocfb.c fbdev->info.fix.smem_start = fbdev->fb_phys; fbdev 342 drivers/video/fbdev/ocfb.c fbdev->info.screen_base = fbdev->fb_virt; fbdev 343 drivers/video/fbdev/ocfb.c fbdev->info.pseudo_palette = fbdev->pseudo_palette; fbdev 346 drivers/video/fbdev/ocfb.c memset_io(fbdev->fb_virt, 0, fbsize); fbdev 349 drivers/video/fbdev/ocfb.c ocfb_setupfb(fbdev); fbdev 351 drivers/video/fbdev/ocfb.c if (fbdev->little_endian) fbdev 352 drivers/video/fbdev/ocfb.c fbdev->info.flags |= FBINFO_FOREIGN_ENDIAN; fbdev 355 drivers/video/fbdev/ocfb.c ret = fb_alloc_cmap(&fbdev->info.cmap, PALETTE_SIZE, 0); fbdev 362 drivers/video/fbdev/ocfb.c ret = register_framebuffer(&fbdev->info); fbdev 371 drivers/video/fbdev/ocfb.c fb_dealloc_cmap(&fbdev->info.cmap); fbdev 374 drivers/video/fbdev/ocfb.c dma_free_coherent(&pdev->dev, PAGE_ALIGN(fbsize), fbdev->fb_virt, fbdev 375 drivers/video/fbdev/ocfb.c fbdev->fb_phys); fbdev 382 drivers/video/fbdev/ocfb.c struct ocfb_dev *fbdev = platform_get_drvdata(pdev); fbdev 384 drivers/video/fbdev/ocfb.c unregister_framebuffer(&fbdev->info); fbdev 385 drivers/video/fbdev/ocfb.c fb_dealloc_cmap(&fbdev->info.cmap); fbdev 386 drivers/video/fbdev/ocfb.c dma_free_coherent(&pdev->dev, PAGE_ALIGN(fbdev->info.fix.smem_len), fbdev 387 drivers/video/fbdev/ocfb.c fbdev->fb_virt, fbdev->fb_phys); fbdev 390 drivers/video/fbdev/ocfb.c ocfb_writereg(fbdev, OCFB_CTRL, 0); fbdev 118 drivers/video/fbdev/omap/hwa742.c struct omapfb_device *fbdev; fbdev 174 drivers/video/fbdev/omap/hwa742.c dev_dbg(hwa742.fbdev->dev, "hwa742: enabled pixel doubling\n"); fbdev 179 drivers/video/fbdev/omap/hwa742.c dev_dbg(hwa742.fbdev->dev, "hwa742: disabled pixel doubling\n"); fbdev 339 drivers/video/fbdev/omap/hwa742.c int scr_width = hwa742.fbdev->panel->x_res; fbdev 340 drivers/video/fbdev/omap/hwa742.c int scr_height = hwa742.fbdev->panel->y_res; fbdev 343 drivers/video/fbdev/omap/hwa742.c dev_dbg(hwa742.fbdev->dev, "x %d y %d w %d h %d scr_width %d " fbdev 488 drivers/video/fbdev/omap/hwa742.c dev_dbg(hwa742.fbdev->dev, "invalid update mode\n"); fbdev 495 drivers/video/fbdev/omap/hwa742.c dev_dbg(hwa742.fbdev->dev, "invalid window flag\n"); fbdev 562 drivers/video/fbdev/omap/hwa742.c dev_dbg(hwa742.fbdev->dev, "update_mode %d\n", hwa742.update_mode); fbdev 564 drivers/video/fbdev/omap/hwa742.c omapfb_notify_clients(hwa742.fbdev, OMAPFB_EVENT_READY); fbdev 577 drivers/video/fbdev/omap/hwa742.c dev_info(hwa742.fbdev->dev, "HWA742: setting update mode to %s\n", fbdev 583 drivers/video/fbdev/omap/hwa742.c omapfb_notify_clients(hwa742.fbdev, OMAPFB_EVENT_DISABLED); fbdev 599 drivers/video/fbdev/omap/hwa742.c omapfb_notify_clients(hwa742.fbdev, OMAPFB_EVENT_READY); fbdev 636 drivers/video/fbdev/omap/hwa742.c dev_dbg(hwa742.fbdev->dev, "HWA742 systim %lu ps extif_clk_period %u ps" fbdev 657 drivers/video/fbdev/omap/hwa742.c dev_dbg(hwa742.fbdev->dev, "[reg]cson %d csoff %d reon %d reoff %d\n", fbdev 659 drivers/video/fbdev/omap/hwa742.c dev_dbg(hwa742.fbdev->dev, "[reg]weon %d weoff %d recyc %d wecyc %d\n", fbdev 662 drivers/video/fbdev/omap/hwa742.c dev_dbg(hwa742.fbdev->dev, "[reg]rdaccess %d cspulse %d\n", fbdev 683 drivers/video/fbdev/omap/hwa742.c dev_dbg(hwa742.fbdev->dev, "HWA742 systim %lu ps extif_clk_period %u ps" fbdev 708 drivers/video/fbdev/omap/hwa742.c dev_dbg(hwa742.fbdev->dev, "[lut]cson %d csoff %d reon %d reoff %d\n", fbdev 710 drivers/video/fbdev/omap/hwa742.c dev_dbg(hwa742.fbdev->dev, "[lut]weon %d weoff %d recyc %d wecyc %d\n", fbdev 713 drivers/video/fbdev/omap/hwa742.c dev_dbg(hwa742.fbdev->dev, "[lut]rdaccess %d cspulse %d\n", fbdev 745 drivers/video/fbdev/omap/hwa742.c dev_err(hwa742.fbdev->dev, "can't setup timings\n"); fbdev 767 drivers/video/fbdev/omap/hwa742.c dev_dbg(hwa742.fbdev->dev, fbdev 770 drivers/video/fbdev/omap/hwa742.c dev_dbg(hwa742.fbdev->dev, "sys_clk %ld pix_clk %ld\n", fbdev 809 drivers/video/fbdev/omap/hwa742.c dev_dbg(hwa742.fbdev->dev, "max_tx_rate %ld HZ\n", fbdev 874 drivers/video/fbdev/omap/hwa742.c dev_dbg(hwa742.fbdev->dev, fbdev 877 drivers/video/fbdev/omap/hwa742.c dev_dbg(hwa742.fbdev->dev, fbdev 921 drivers/video/fbdev/omap/hwa742.c static int hwa742_init(struct omapfb_device *fbdev, int ext_mode, fbdev 931 drivers/video/fbdev/omap/hwa742.c BUG_ON(!fbdev->ext_if || !fbdev->int_ctrl); fbdev 933 drivers/video/fbdev/omap/hwa742.c hwa742.fbdev = fbdev; fbdev 934 drivers/video/fbdev/omap/hwa742.c hwa742.extif = fbdev->ext_if; fbdev 935 drivers/video/fbdev/omap/hwa742.c hwa742.int_ctrl = fbdev->int_ctrl; fbdev 937 drivers/video/fbdev/omap/hwa742.c omapfb_conf = dev_get_platdata(fbdev->dev); fbdev 943 drivers/video/fbdev/omap/hwa742.c if ((r = hwa742.int_ctrl->init(fbdev, 1, req_vram)) < 0) fbdev 946 drivers/video/fbdev/omap/hwa742.c if ((r = hwa742.extif->init(fbdev)) < 0) fbdev 962 drivers/video/fbdev/omap/hwa742.c dev_err(fbdev->dev, "HWA742: invalid revision %02x\n", rev); fbdev 969 drivers/video/fbdev/omap/hwa742.c dev_err(fbdev->dev, fbdev 976 drivers/video/fbdev/omap/hwa742.c dev_err(hwa742.fbdev->dev, fbdev 988 drivers/video/fbdev/omap/hwa742.c hwa742.auto_update_window.width = fbdev->panel->x_res; fbdev 989 drivers/video/fbdev/omap/hwa742.c hwa742.auto_update_window.height = fbdev->panel->y_res; fbdev 997 drivers/video/fbdev/omap/hwa742.c hwa742.fbdev = fbdev; fbdev 1007 drivers/video/fbdev/omap/hwa742.c dev_info(fbdev->dev, ": Epson HWA742 LCD controller rev %d " fbdev 18 drivers/video/fbdev/omap/lcd_inn1610.c struct omapfb_device *fbdev) fbdev 45 drivers/video/fbdev/omap/lcd_mipid.c struct omapfb_device *fbdev; fbdev 286 drivers/video/fbdev/omap/lcd_mipid.c omapfb_write_first_pixel(md->fbdev, test_values[i]); fbdev 460 drivers/video/fbdev/omap/lcd_mipid.c struct omapfb_device *fbdev) fbdev 464 drivers/video/fbdev/omap/lcd_mipid.c md->fbdev = fbdev; fbdev 59 drivers/video/fbdev/omap/lcdc.c struct omapfb_device *fbdev; fbdev 133 drivers/video/fbdev/omap/lcdc.c dev_err(lcdc.fbdev->dev, "timeout waiting for FRAME DONE\n"); fbdev 144 drivers/video/fbdev/omap/lcdc.c dev_err(lcdc.fbdev->dev, fbdev 153 drivers/video/fbdev/omap/lcdc.c dev_err(lcdc.fbdev->dev, fbdev 171 drivers/video/fbdev/omap/lcdc.c struct omapfb_plane_struct *plane = lcdc.fbdev->fb_info[0]->par; fbdev 172 drivers/video/fbdev/omap/lcdc.c struct fb_var_screeninfo *var = &lcdc.fbdev->fb_info[0]->var; fbdev 204 drivers/video/fbdev/omap/lcdc.c dev_dbg(lcdc.fbdev->dev, fbdev 283 drivers/video/fbdev/omap/lcdc.c struct fb_var_screeninfo *var = &lcdc.fbdev->fb_info[0]->var; fbdev 284 drivers/video/fbdev/omap/lcdc.c struct lcd_panel *panel = lcdc.fbdev->panel; fbdev 297 drivers/video/fbdev/omap/lcdc.c dev_dbg(lcdc.fbdev->dev, fbdev 345 drivers/video/fbdev/omap/lcdc.c dev_dbg(lcdc.fbdev->dev, "invalid color mode %d\n", color_mode); fbdev 367 drivers/video/fbdev/omap/lcdc.c dev_dbg(lcdc.fbdev->dev, fbdev 402 drivers/video/fbdev/omap/lcdc.c dev_err(lcdc.fbdev->dev, "timeout waiting for FRAME DONE\n"); fbdev 451 drivers/video/fbdev/omap/lcdc.c dev_warn(lcdc.fbdev->dev, "pixclock %d kHz too low.\n", fbdev 459 drivers/video/fbdev/omap/lcdc.c struct lcd_panel *panel = lcdc.fbdev->panel; fbdev 500 drivers/video/fbdev/omap/lcdc.c dev_warn(lcdc.fbdev->dev, fbdev 602 drivers/video/fbdev/omap/lcdc.c lcdc.palette_virt = dma_alloc_wc(lcdc.fbdev->dev, MAX_PALETTE_SIZE, fbdev 605 drivers/video/fbdev/omap/lcdc.c dev_err(lcdc.fbdev->dev, "failed to alloc palette memory\n"); fbdev 615 drivers/video/fbdev/omap/lcdc.c dma_free_wc(lcdc.fbdev->dev, MAX_PALETTE_SIZE, lcdc.palette_virt, fbdev 623 drivers/video/fbdev/omap/lcdc.c struct lcd_panel *panel = lcdc.fbdev->panel; fbdev 632 drivers/video/fbdev/omap/lcdc.c lcdc.vram_virt = dma_alloc_wc(lcdc.fbdev->dev, lcdc.vram_size, fbdev 635 drivers/video/fbdev/omap/lcdc.c dev_err(lcdc.fbdev->dev, "unable to allocate FB DMA memory\n"); fbdev 650 drivers/video/fbdev/omap/lcdc.c dma_free_wc(lcdc.fbdev->dev, lcdc.vram_size, lcdc.vram_virt, fbdev 657 drivers/video/fbdev/omap/lcdc.c dev_err(lcdc.fbdev->dev, "no memory regions defined\n"); fbdev 662 drivers/video/fbdev/omap/lcdc.c dev_err(lcdc.fbdev->dev, "only one plane is supported\n"); fbdev 669 drivers/video/fbdev/omap/lcdc.c static int omap_lcdc_init(struct omapfb_device *fbdev, int ext_mode, fbdev 679 drivers/video/fbdev/omap/lcdc.c lcdc.fbdev = fbdev; fbdev 688 drivers/video/fbdev/omap/lcdc.c lcdc.lcd_ck = clk_get(fbdev->dev, "lcd_ck"); fbdev 690 drivers/video/fbdev/omap/lcdc.c dev_err(fbdev->dev, "unable to access LCD clock\n"); fbdev 695 drivers/video/fbdev/omap/lcdc.c tc_ck = clk_get(fbdev->dev, "tc_ck"); fbdev 697 drivers/video/fbdev/omap/lcdc.c dev_err(fbdev->dev, "unable to access TC clock\n"); fbdev 711 drivers/video/fbdev/omap/lcdc.c dev_err(fbdev->dev, "failed to adjust LCD rate\n"); fbdev 716 drivers/video/fbdev/omap/lcdc.c r = request_irq(OMAP_LCDC_IRQ, lcdc_irq_handler, 0, MODULE_NAME, fbdev); fbdev 718 drivers/video/fbdev/omap/lcdc.c dev_err(fbdev->dev, "unable to get IRQ\n"); fbdev 724 drivers/video/fbdev/omap/lcdc.c dev_err(fbdev->dev, "unable to get LCD DMA\n"); fbdev 747 drivers/video/fbdev/omap/lcdc.c free_irq(OMAP_LCDC_IRQ, lcdc.fbdev); fbdev 762 drivers/video/fbdev/omap/lcdc.c free_irq(OMAP_LCDC_IRQ, lcdc.fbdev); fbdev 79 drivers/video/fbdev/omap/omapfb.h struct omapfb_device *fbdev); fbdev 111 drivers/video/fbdev/omap/omapfb.h int (*init) (struct omapfb_device *fbdev); fbdev 145 drivers/video/fbdev/omap/omapfb.h int (*init) (struct omapfb_device *fbdev, fbdev 192 drivers/video/fbdev/omap/omapfb.h struct omapfb_device *fbdev; fbdev 221 drivers/video/fbdev/omap/omapfb.h extern void omapfb_write_first_pixel(struct omapfb_device *fbdev, u16 pixval); fbdev 222 drivers/video/fbdev/omap/omapfb.h extern void omapfb_notify_clients(struct omapfb_device *fbdev, fbdev 108 drivers/video/fbdev/omap/omapfb_main.c static void omapfb_rqueue_lock(struct omapfb_device *fbdev) fbdev 110 drivers/video/fbdev/omap/omapfb_main.c mutex_lock(&fbdev->rqueue_mutex); fbdev 113 drivers/video/fbdev/omap/omapfb_main.c static void omapfb_rqueue_unlock(struct omapfb_device *fbdev) fbdev 115 drivers/video/fbdev/omap/omapfb_main.c mutex_unlock(&fbdev->rqueue_mutex); fbdev 129 drivers/video/fbdev/omap/omapfb_main.c static int ctrl_init(struct omapfb_device *fbdev) fbdev 137 drivers/video/fbdev/omap/omapfb_main.c fbdev->mem_desc.region[i].size = fbdev 139 drivers/video/fbdev/omap/omapfb_main.c fbdev->mem_desc.region_cnt = i; fbdev 142 drivers/video/fbdev/omap/omapfb_main.c if (!fbdev->mem_desc.region_cnt) { fbdev 143 drivers/video/fbdev/omap/omapfb_main.c struct lcd_panel *panel = fbdev->panel; fbdev 151 drivers/video/fbdev/omap/omapfb_main.c fbdev->mem_desc.region_cnt = 1; fbdev 152 drivers/video/fbdev/omap/omapfb_main.c fbdev->mem_desc.region[0].size = PAGE_ALIGN(def_size); fbdev 154 drivers/video/fbdev/omap/omapfb_main.c r = fbdev->ctrl->init(fbdev, 0, &fbdev->mem_desc); fbdev 156 drivers/video/fbdev/omap/omapfb_main.c dev_err(fbdev->dev, "controller initialization failed (%d)\n", fbdev 162 drivers/video/fbdev/omap/omapfb_main.c for (i = 0; i < fbdev->mem_desc.region_cnt; i++) { fbdev 163 drivers/video/fbdev/omap/omapfb_main.c dev_dbg(fbdev->dev, "region%d phys %08x virt %p size=%lu\n", fbdev 165 drivers/video/fbdev/omap/omapfb_main.c fbdev->mem_desc.region[i].paddr, fbdev 166 drivers/video/fbdev/omap/omapfb_main.c fbdev->mem_desc.region[i].vaddr, fbdev 167 drivers/video/fbdev/omap/omapfb_main.c fbdev->mem_desc.region[i].size); fbdev 173 drivers/video/fbdev/omap/omapfb_main.c static void ctrl_cleanup(struct omapfb_device *fbdev) fbdev 175 drivers/video/fbdev/omap/omapfb_main.c fbdev->ctrl->cleanup(); fbdev 184 drivers/video/fbdev/omap/omapfb_main.c struct omapfb_device *fbdev = plane->fbdev; fbdev 190 drivers/video/fbdev/omap/omapfb_main.c if (fbdev->ctrl->sync) fbdev 191 drivers/video/fbdev/omap/omapfb_main.c fbdev->ctrl->sync(); fbdev 192 drivers/video/fbdev/omap/omapfb_main.c r = fbdev->ctrl->setup_plane(plane->idx, plane->info.channel_out, fbdev 199 drivers/video/fbdev/omap/omapfb_main.c if (fbdev->ctrl->set_rotate != NULL) { fbdev 200 drivers/video/fbdev/omap/omapfb_main.c r = fbdev->ctrl->set_rotate(var->rotate); fbdev 205 drivers/video/fbdev/omap/omapfb_main.c if (fbdev->ctrl->set_scale != NULL) fbdev 206 drivers/video/fbdev/omap/omapfb_main.c r = fbdev->ctrl->set_scale(plane->idx, fbdev 243 drivers/video/fbdev/omap/omapfb_main.c struct omapfb_device *fbdev = plane->fbdev; fbdev 257 drivers/video/fbdev/omap/omapfb_main.c if (fbdev->ctrl->setcolreg) fbdev 258 drivers/video/fbdev/omap/omapfb_main.c r = fbdev->ctrl->setcolreg(regno, red, green, blue, fbdev 317 drivers/video/fbdev/omap/omapfb_main.c struct omapfb_device *fbdev = plane->fbdev; fbdev 321 drivers/video/fbdev/omap/omapfb_main.c omapfb_rqueue_lock(fbdev); fbdev 324 drivers/video/fbdev/omap/omapfb_main.c if (fbdev->state == OMAPFB_SUSPENDED) { fbdev 325 drivers/video/fbdev/omap/omapfb_main.c if (fbdev->ctrl->resume) fbdev 326 drivers/video/fbdev/omap/omapfb_main.c fbdev->ctrl->resume(); fbdev 327 drivers/video/fbdev/omap/omapfb_main.c if (fbdev->panel->enable) fbdev 328 drivers/video/fbdev/omap/omapfb_main.c fbdev->panel->enable(fbdev->panel); fbdev 329 drivers/video/fbdev/omap/omapfb_main.c fbdev->state = OMAPFB_ACTIVE; fbdev 330 drivers/video/fbdev/omap/omapfb_main.c if (fbdev->ctrl->get_update_mode() == fbdev 336 drivers/video/fbdev/omap/omapfb_main.c if (fbdev->state == OMAPFB_ACTIVE) { fbdev 337 drivers/video/fbdev/omap/omapfb_main.c if (fbdev->panel->disable) fbdev 338 drivers/video/fbdev/omap/omapfb_main.c fbdev->panel->disable(fbdev->panel); fbdev 339 drivers/video/fbdev/omap/omapfb_main.c if (fbdev->ctrl->suspend) fbdev 340 drivers/video/fbdev/omap/omapfb_main.c fbdev->ctrl->suspend(); fbdev 341 drivers/video/fbdev/omap/omapfb_main.c fbdev->state = OMAPFB_SUSPENDED; fbdev 347 drivers/video/fbdev/omap/omapfb_main.c omapfb_rqueue_unlock(fbdev); fbdev 358 drivers/video/fbdev/omap/omapfb_main.c struct omapfb_device *fbdev = plane->fbdev; fbdev 360 drivers/video/fbdev/omap/omapfb_main.c omapfb_rqueue_lock(fbdev); fbdev 361 drivers/video/fbdev/omap/omapfb_main.c if (fbdev->ctrl->sync) fbdev 362 drivers/video/fbdev/omap/omapfb_main.c fbdev->ctrl->sync(); fbdev 363 drivers/video/fbdev/omap/omapfb_main.c omapfb_rqueue_unlock(fbdev); fbdev 378 drivers/video/fbdev/omap/omapfb_main.c rg = &plane->fbdev->mem_desc.region[plane->idx]; fbdev 452 drivers/video/fbdev/omap/omapfb_main.c if (plane->fbdev->panel->bpp == 12) fbdev 475 drivers/video/fbdev/omap/omapfb_main.c struct omapfb_device *fbdev = plane->fbdev; fbdev 476 drivers/video/fbdev/omap/omapfb_main.c struct lcd_panel *panel = fbdev->panel; fbdev 525 drivers/video/fbdev/omap/omapfb_main.c max_frame_size = fbdev->mem_desc.region[plane->idx].size; fbdev 595 drivers/video/fbdev/omap/omapfb_main.c struct omapfb_device *fbdev = plane->fbdev; fbdev 598 drivers/video/fbdev/omap/omapfb_main.c omapfb_rqueue_lock(fbdev); fbdev 601 drivers/video/fbdev/omap/omapfb_main.c struct fb_var_screeninfo *new_var = &fbdev->new_var; fbdev 613 drivers/video/fbdev/omap/omapfb_main.c omapfb_rqueue_unlock(fbdev); fbdev 622 drivers/video/fbdev/omap/omapfb_main.c struct omapfb_device *fbdev = plane->fbdev; fbdev 625 drivers/video/fbdev/omap/omapfb_main.c omapfb_rqueue_lock(fbdev); fbdev 633 drivers/video/fbdev/omap/omapfb_main.c omapfb_rqueue_unlock(fbdev); fbdev 645 drivers/video/fbdev/omap/omapfb_main.c struct omapfb_device *fbdev = plane->fbdev; fbdev 648 drivers/video/fbdev/omap/omapfb_main.c omapfb_rqueue_lock(fbdev); fbdev 649 drivers/video/fbdev/omap/omapfb_main.c if (fbdev->ctrl->sync != NULL) fbdev 650 drivers/video/fbdev/omap/omapfb_main.c fbdev->ctrl->sync(); fbdev 652 drivers/video/fbdev/omap/omapfb_main.c omapfb_rqueue_unlock(fbdev); fbdev 664 drivers/video/fbdev/omap/omapfb_main.c struct omapfb_device *fbdev = plane->fbdev; fbdev 667 drivers/video/fbdev/omap/omapfb_main.c omapfb_rqueue_lock(fbdev); fbdev 670 drivers/video/fbdev/omap/omapfb_main.c omapfb_rqueue_unlock(fbdev); fbdev 682 drivers/video/fbdev/omap/omapfb_main.c struct omapfb_device *fbdev = plane->fbdev; fbdev 688 drivers/video/fbdev/omap/omapfb_main.c xres = fbdev->panel->x_res; fbdev 689 drivers/video/fbdev/omap/omapfb_main.c yres = fbdev->panel->y_res; fbdev 693 drivers/video/fbdev/omap/omapfb_main.c xres = fbdev->panel->y_res; fbdev 694 drivers/video/fbdev/omap/omapfb_main.c yres = fbdev->panel->x_res; fbdev 704 drivers/video/fbdev/omap/omapfb_main.c if (!fbdev->ctrl->update_window || fbdev 705 drivers/video/fbdev/omap/omapfb_main.c fbdev->ctrl->get_update_mode() != OMAPFB_MANUAL_UPDATE) fbdev 719 drivers/video/fbdev/omap/omapfb_main.c return fbdev->ctrl->update_window(fbi, win, callback, callback_data); fbdev 729 drivers/video/fbdev/omap/omapfb_main.c omapfb_rqueue_lock(plane->fbdev); fbdev 731 drivers/video/fbdev/omap/omapfb_main.c omapfb_rqueue_unlock(plane->fbdev); fbdev 739 drivers/video/fbdev/omap/omapfb_main.c struct omapfb_device *fbdev = plane->fbdev; fbdev 743 drivers/video/fbdev/omap/omapfb_main.c if (!fbdev->ctrl->update_window || fbdev 744 drivers/video/fbdev/omap/omapfb_main.c fbdev->ctrl->get_update_mode() != OMAPFB_MANUAL_UPDATE) fbdev 757 drivers/video/fbdev/omap/omapfb_main.c omapfb_rqueue_lock(fbdev); fbdev 758 drivers/video/fbdev/omap/omapfb_main.c r = fbdev->ctrl->update_window(fbi, &win, NULL, NULL); fbdev 759 drivers/video/fbdev/omap/omapfb_main.c omapfb_rqueue_unlock(fbdev); fbdev 767 drivers/video/fbdev/omap/omapfb_main.c struct omapfb_device *fbdev = plane->fbdev; fbdev 768 drivers/video/fbdev/omap/omapfb_main.c struct lcd_panel *panel = fbdev->panel; fbdev 776 drivers/video/fbdev/omap/omapfb_main.c omapfb_rqueue_lock(fbdev); fbdev 777 drivers/video/fbdev/omap/omapfb_main.c if (pi->enabled && !fbdev->mem_desc.region[plane->idx].size) { fbdev 794 drivers/video/fbdev/omap/omapfb_main.c r = fbdev->ctrl->enable_plane(plane->idx, pi->enabled); fbdev 800 drivers/video/fbdev/omap/omapfb_main.c omapfb_rqueue_unlock(fbdev); fbdev 815 drivers/video/fbdev/omap/omapfb_main.c struct omapfb_device *fbdev = plane->fbdev; fbdev 816 drivers/video/fbdev/omap/omapfb_main.c struct omapfb_mem_region *rg = &fbdev->mem_desc.region[plane->idx]; fbdev 820 drivers/video/fbdev/omap/omapfb_main.c if (fbdev->ctrl->setup_mem == NULL) fbdev 826 drivers/video/fbdev/omap/omapfb_main.c omapfb_rqueue_lock(fbdev); fbdev 832 drivers/video/fbdev/omap/omapfb_main.c struct fb_var_screeninfo *new_var = &fbdev->new_var; fbdev 854 drivers/video/fbdev/omap/omapfb_main.c if (fbdev->ctrl->sync) fbdev 855 drivers/video/fbdev/omap/omapfb_main.c fbdev->ctrl->sync(); fbdev 856 drivers/video/fbdev/omap/omapfb_main.c r = fbdev->ctrl->setup_mem(plane->idx, size, mi->type, &paddr); fbdev 883 drivers/video/fbdev/omap/omapfb_main.c omapfb_rqueue_unlock(fbdev); fbdev 891 drivers/video/fbdev/omap/omapfb_main.c struct omapfb_device *fbdev = plane->fbdev; fbdev 894 drivers/video/fbdev/omap/omapfb_main.c rg = &fbdev->mem_desc.region[plane->idx]; fbdev 902 drivers/video/fbdev/omap/omapfb_main.c static int omapfb_set_color_key(struct omapfb_device *fbdev, fbdev 907 drivers/video/fbdev/omap/omapfb_main.c if (!fbdev->ctrl->set_color_key) fbdev 910 drivers/video/fbdev/omap/omapfb_main.c omapfb_rqueue_lock(fbdev); fbdev 911 drivers/video/fbdev/omap/omapfb_main.c r = fbdev->ctrl->set_color_key(ck); fbdev 912 drivers/video/fbdev/omap/omapfb_main.c omapfb_rqueue_unlock(fbdev); fbdev 917 drivers/video/fbdev/omap/omapfb_main.c static int omapfb_get_color_key(struct omapfb_device *fbdev, fbdev 922 drivers/video/fbdev/omap/omapfb_main.c if (!fbdev->ctrl->get_color_key) fbdev 925 drivers/video/fbdev/omap/omapfb_main.c omapfb_rqueue_lock(fbdev); fbdev 926 drivers/video/fbdev/omap/omapfb_main.c r = fbdev->ctrl->get_color_key(ck); fbdev 927 drivers/video/fbdev/omap/omapfb_main.c omapfb_rqueue_unlock(fbdev); fbdev 981 drivers/video/fbdev/omap/omapfb_main.c void omapfb_notify_clients(struct omapfb_device *fbdev, unsigned long event) fbdev 991 drivers/video/fbdev/omap/omapfb_main.c fbdev->fb_info[i]); fbdev 995 drivers/video/fbdev/omap/omapfb_main.c static int omapfb_set_update_mode(struct omapfb_device *fbdev, fbdev 1000 drivers/video/fbdev/omap/omapfb_main.c omapfb_rqueue_lock(fbdev); fbdev 1001 drivers/video/fbdev/omap/omapfb_main.c r = fbdev->ctrl->set_update_mode(mode); fbdev 1002 drivers/video/fbdev/omap/omapfb_main.c omapfb_rqueue_unlock(fbdev); fbdev 1007 drivers/video/fbdev/omap/omapfb_main.c static enum omapfb_update_mode omapfb_get_update_mode(struct omapfb_device *fbdev) fbdev 1011 drivers/video/fbdev/omap/omapfb_main.c omapfb_rqueue_lock(fbdev); fbdev 1012 drivers/video/fbdev/omap/omapfb_main.c r = fbdev->ctrl->get_update_mode(); fbdev 1013 drivers/video/fbdev/omap/omapfb_main.c omapfb_rqueue_unlock(fbdev); fbdev 1018 drivers/video/fbdev/omap/omapfb_main.c static void omapfb_get_caps(struct omapfb_device *fbdev, int plane, fbdev 1022 drivers/video/fbdev/omap/omapfb_main.c fbdev->ctrl->get_caps(plane, caps); fbdev 1023 drivers/video/fbdev/omap/omapfb_main.c if (fbdev->panel->get_caps) fbdev 1024 drivers/video/fbdev/omap/omapfb_main.c caps->ctrl |= fbdev->panel->get_caps(fbdev->panel); fbdev 1028 drivers/video/fbdev/omap/omapfb_main.c void omapfb_write_first_pixel(struct omapfb_device *fbdev, u16 pixval) fbdev 1030 drivers/video/fbdev/omap/omapfb_main.c omapfb_rqueue_lock(fbdev); fbdev 1031 drivers/video/fbdev/omap/omapfb_main.c *(u16 *)fbdev->mem_desc.region[0].vaddr = pixval; fbdev 1032 drivers/video/fbdev/omap/omapfb_main.c if (fbdev->ctrl->get_update_mode() == OMAPFB_MANUAL_UPDATE) { fbdev 1040 drivers/video/fbdev/omap/omapfb_main.c fbdev->ctrl->update_window(fbdev->fb_info[0], &win, NULL, NULL); fbdev 1042 drivers/video/fbdev/omap/omapfb_main.c omapfb_rqueue_unlock(fbdev); fbdev 1054 drivers/video/fbdev/omap/omapfb_main.c struct omapfb_device *fbdev = plane->fbdev; fbdev 1086 drivers/video/fbdev/omap/omapfb_main.c r = omapfb_set_update_mode(fbdev, p.update_mode); fbdev 1089 drivers/video/fbdev/omap/omapfb_main.c p.update_mode = omapfb_get_update_mode(fbdev); fbdev 1148 drivers/video/fbdev/omap/omapfb_main.c r = omapfb_set_color_key(fbdev, &p.color_key); fbdev 1151 drivers/video/fbdev/omap/omapfb_main.c if ((r = omapfb_get_color_key(fbdev, &p.color_key)) < 0) fbdev 1158 drivers/video/fbdev/omap/omapfb_main.c omapfb_get_caps(fbdev, plane->idx, &p.caps); fbdev 1170 drivers/video/fbdev/omap/omapfb_main.c if (!fbdev->panel->run_test) { fbdev 1174 drivers/video/fbdev/omap/omapfb_main.c r = fbdev->panel->run_test(fbdev->panel, test_num); fbdev 1185 drivers/video/fbdev/omap/omapfb_main.c if (!fbdev->ctrl->run_test) { fbdev 1189 drivers/video/fbdev/omap/omapfb_main.c r = fbdev->ctrl->run_test(test_num); fbdev 1202 drivers/video/fbdev/omap/omapfb_main.c struct omapfb_device *fbdev = plane->fbdev; fbdev 1205 drivers/video/fbdev/omap/omapfb_main.c omapfb_rqueue_lock(fbdev); fbdev 1206 drivers/video/fbdev/omap/omapfb_main.c r = fbdev->ctrl->mmap(info, vma); fbdev 1207 drivers/video/fbdev/omap/omapfb_main.c omapfb_rqueue_unlock(fbdev); fbdev 1241 drivers/video/fbdev/omap/omapfb_main.c struct omapfb_device *fbdev = dev_get_drvdata(dev); fbdev 1249 drivers/video/fbdev/omap/omapfb_main.c omapfb_get_caps(fbdev, plane, &caps); fbdev 1261 drivers/video/fbdev/omap/omapfb_main.c struct omapfb_device *fbdev = dev_get_drvdata(dev); fbdev 1270 drivers/video/fbdev/omap/omapfb_main.c omapfb_get_caps(fbdev, plane, &caps); fbdev 1308 drivers/video/fbdev/omap/omapfb_main.c struct omapfb_device *fbdev = dev_get_drvdata(dev); fbdev 1310 drivers/video/fbdev/omap/omapfb_main.c return snprintf(buf, PAGE_SIZE, "%s\n", fbdev->panel->name); fbdev 1317 drivers/video/fbdev/omap/omapfb_main.c struct omapfb_device *fbdev = dev_get_drvdata(dev); fbdev 1320 drivers/video/fbdev/omap/omapfb_main.c if (fbdev->panel->get_bklight_level) { fbdev 1322 drivers/video/fbdev/omap/omapfb_main.c fbdev->panel->get_bklight_level(fbdev->panel)); fbdev 1332 drivers/video/fbdev/omap/omapfb_main.c struct omapfb_device *fbdev = dev_get_drvdata(dev); fbdev 1335 drivers/video/fbdev/omap/omapfb_main.c if (fbdev->panel->set_bklight_level) { fbdev 1339 drivers/video/fbdev/omap/omapfb_main.c r = fbdev->panel->set_bklight_level(fbdev->panel, fbdev 1351 drivers/video/fbdev/omap/omapfb_main.c struct omapfb_device *fbdev = dev_get_drvdata(dev); fbdev 1354 drivers/video/fbdev/omap/omapfb_main.c if (fbdev->panel->get_bklight_level) { fbdev 1356 drivers/video/fbdev/omap/omapfb_main.c fbdev->panel->get_bklight_max(fbdev->panel)); fbdev 1384 drivers/video/fbdev/omap/omapfb_main.c struct omapfb_device *fbdev = dev_get_drvdata(dev); fbdev 1386 drivers/video/fbdev/omap/omapfb_main.c return snprintf(buf, PAGE_SIZE, "%s\n", fbdev->ctrl->name); fbdev 1402 drivers/video/fbdev/omap/omapfb_main.c static int omapfb_register_sysfs(struct omapfb_device *fbdev) fbdev 1406 drivers/video/fbdev/omap/omapfb_main.c if ((r = device_create_file(fbdev->dev, &dev_attr_caps_num))) fbdev 1409 drivers/video/fbdev/omap/omapfb_main.c if ((r = device_create_file(fbdev->dev, &dev_attr_caps_text))) fbdev 1412 drivers/video/fbdev/omap/omapfb_main.c if ((r = sysfs_create_group(&fbdev->dev->kobj, &panel_attr_grp))) fbdev 1415 drivers/video/fbdev/omap/omapfb_main.c if ((r = sysfs_create_group(&fbdev->dev->kobj, &ctrl_attr_grp))) fbdev 1420 drivers/video/fbdev/omap/omapfb_main.c sysfs_remove_group(&fbdev->dev->kobj, &panel_attr_grp); fbdev 1422 drivers/video/fbdev/omap/omapfb_main.c device_remove_file(fbdev->dev, &dev_attr_caps_text); fbdev 1424 drivers/video/fbdev/omap/omapfb_main.c device_remove_file(fbdev->dev, &dev_attr_caps_num); fbdev 1426 drivers/video/fbdev/omap/omapfb_main.c dev_err(fbdev->dev, "unable to register sysfs interface\n"); fbdev 1430 drivers/video/fbdev/omap/omapfb_main.c static void omapfb_unregister_sysfs(struct omapfb_device *fbdev) fbdev 1432 drivers/video/fbdev/omap/omapfb_main.c sysfs_remove_group(&fbdev->dev->kobj, &ctrl_attr_grp); fbdev 1433 drivers/video/fbdev/omap/omapfb_main.c sysfs_remove_group(&fbdev->dev->kobj, &panel_attr_grp); fbdev 1434 drivers/video/fbdev/omap/omapfb_main.c device_remove_file(fbdev->dev, &dev_attr_caps_num); fbdev 1435 drivers/video/fbdev/omap/omapfb_main.c device_remove_file(fbdev->dev, &dev_attr_caps_text); fbdev 1446 drivers/video/fbdev/omap/omapfb_main.c static int fbinfo_init(struct omapfb_device *fbdev, struct fb_info *info) fbdev 1457 drivers/video/fbdev/omap/omapfb_main.c info->pseudo_palette = fbdev->pseudo_palette; fbdev 1465 drivers/video/fbdev/omap/omapfb_main.c var->bits_per_pixel = fbdev->panel->bpp; fbdev 1472 drivers/video/fbdev/omap/omapfb_main.c dev_err(fbdev->dev, "unable to allocate color map memory\n"); fbdev 1478 drivers/video/fbdev/omap/omapfb_main.c static void fbinfo_cleanup(struct omapfb_device *fbdev, struct fb_info *fbi) fbdev 1483 drivers/video/fbdev/omap/omapfb_main.c static void planes_cleanup(struct omapfb_device *fbdev) fbdev 1487 drivers/video/fbdev/omap/omapfb_main.c for (i = 0; i < fbdev->mem_desc.region_cnt; i++) { fbdev 1488 drivers/video/fbdev/omap/omapfb_main.c if (fbdev->fb_info[i] == NULL) fbdev 1490 drivers/video/fbdev/omap/omapfb_main.c fbinfo_cleanup(fbdev, fbdev->fb_info[i]); fbdev 1491 drivers/video/fbdev/omap/omapfb_main.c framebuffer_release(fbdev->fb_info[i]); fbdev 1495 drivers/video/fbdev/omap/omapfb_main.c static int planes_init(struct omapfb_device *fbdev) fbdev 1501 drivers/video/fbdev/omap/omapfb_main.c for (i = 0; i < fbdev->mem_desc.region_cnt; i++) { fbdev 1504 drivers/video/fbdev/omap/omapfb_main.c fbdev->dev); fbdev 1506 drivers/video/fbdev/omap/omapfb_main.c planes_cleanup(fbdev); fbdev 1511 drivers/video/fbdev/omap/omapfb_main.c plane->fbdev = fbdev; fbdev 1513 drivers/video/fbdev/omap/omapfb_main.c fbdev->fb_info[i] = fbi; fbdev 1515 drivers/video/fbdev/omap/omapfb_main.c if ((r = fbinfo_init(fbdev, fbi)) < 0) { fbdev 1517 drivers/video/fbdev/omap/omapfb_main.c planes_cleanup(fbdev); fbdev 1530 drivers/video/fbdev/omap/omapfb_main.c static void omapfb_free_resources(struct omapfb_device *fbdev, int state) fbdev 1536 drivers/video/fbdev/omap/omapfb_main.c for (i = 0; i < fbdev->mem_desc.region_cnt; i++) fbdev 1537 drivers/video/fbdev/omap/omapfb_main.c unregister_framebuffer(fbdev->fb_info[i]); fbdev 1540 drivers/video/fbdev/omap/omapfb_main.c omapfb_unregister_sysfs(fbdev); fbdev 1543 drivers/video/fbdev/omap/omapfb_main.c if (fbdev->panel->disable) fbdev 1544 drivers/video/fbdev/omap/omapfb_main.c fbdev->panel->disable(fbdev->panel); fbdev 1547 drivers/video/fbdev/omap/omapfb_main.c omapfb_set_update_mode(fbdev, OMAPFB_UPDATE_DISABLED); fbdev 1550 drivers/video/fbdev/omap/omapfb_main.c planes_cleanup(fbdev); fbdev 1553 drivers/video/fbdev/omap/omapfb_main.c ctrl_cleanup(fbdev); fbdev 1556 drivers/video/fbdev/omap/omapfb_main.c if (fbdev->panel->cleanup) fbdev 1557 drivers/video/fbdev/omap/omapfb_main.c fbdev->panel->cleanup(fbdev->panel); fbdev 1560 drivers/video/fbdev/omap/omapfb_main.c dev_set_drvdata(fbdev->dev, NULL); fbdev 1561 drivers/video/fbdev/omap/omapfb_main.c kfree(fbdev); fbdev 1570 drivers/video/fbdev/omap/omapfb_main.c static int omapfb_find_ctrl(struct omapfb_device *fbdev) fbdev 1576 drivers/video/fbdev/omap/omapfb_main.c conf = dev_get_platdata(fbdev->dev); fbdev 1578 drivers/video/fbdev/omap/omapfb_main.c fbdev->ctrl = NULL; fbdev 1584 drivers/video/fbdev/omap/omapfb_main.c fbdev->ctrl = fbdev->int_ctrl; fbdev 1589 drivers/video/fbdev/omap/omapfb_main.c dev_dbg(fbdev->dev, "ctrl %s\n", ctrls[i]->name); fbdev 1591 drivers/video/fbdev/omap/omapfb_main.c fbdev->ctrl = ctrls[i]; fbdev 1596 drivers/video/fbdev/omap/omapfb_main.c if (fbdev->ctrl == NULL) { fbdev 1597 drivers/video/fbdev/omap/omapfb_main.c dev_dbg(fbdev->dev, "ctrl %s not supported\n", name); fbdev 1620 drivers/video/fbdev/omap/omapfb_main.c struct omapfb_device *fbdev = NULL; fbdev 1641 drivers/video/fbdev/omap/omapfb_main.c fbdev = kzalloc(sizeof(*fbdev), GFP_KERNEL); fbdev 1642 drivers/video/fbdev/omap/omapfb_main.c if (fbdev == NULL) { fbdev 1650 drivers/video/fbdev/omap/omapfb_main.c fbdev->dev = &pdev->dev; fbdev 1651 drivers/video/fbdev/omap/omapfb_main.c fbdev->panel = panel; fbdev 1652 drivers/video/fbdev/omap/omapfb_main.c fbdev->dssdev = &omapdss_device; fbdev 1653 drivers/video/fbdev/omap/omapfb_main.c platform_set_drvdata(pdev, fbdev); fbdev 1655 drivers/video/fbdev/omap/omapfb_main.c mutex_init(&fbdev->rqueue_mutex); fbdev 1657 drivers/video/fbdev/omap/omapfb_main.c fbdev->int_ctrl = &omap1_int_ctrl; fbdev 1659 drivers/video/fbdev/omap/omapfb_main.c fbdev->ext_if = &omap1_ext_if; fbdev 1661 drivers/video/fbdev/omap/omapfb_main.c if (omapfb_find_ctrl(fbdev) < 0) { fbdev 1662 drivers/video/fbdev/omap/omapfb_main.c dev_err(fbdev->dev, fbdev 1668 drivers/video/fbdev/omap/omapfb_main.c if (fbdev->panel->init) { fbdev 1669 drivers/video/fbdev/omap/omapfb_main.c r = fbdev->panel->init(fbdev->panel, fbdev); fbdev 1674 drivers/video/fbdev/omap/omapfb_main.c pr_info("omapfb: configured for panel %s\n", fbdev->panel->name); fbdev 1676 drivers/video/fbdev/omap/omapfb_main.c def_vxres = def_vxres ? def_vxres : fbdev->panel->x_res; fbdev 1677 drivers/video/fbdev/omap/omapfb_main.c def_vyres = def_vyres ? def_vyres : fbdev->panel->y_res; fbdev 1681 drivers/video/fbdev/omap/omapfb_main.c r = ctrl_init(fbdev); fbdev 1684 drivers/video/fbdev/omap/omapfb_main.c if (fbdev->ctrl->mmap != NULL) fbdev 1688 drivers/video/fbdev/omap/omapfb_main.c r = planes_init(fbdev); fbdev 1698 drivers/video/fbdev/omap/omapfb_main.c r = ctrl_change_mode(fbdev->fb_info[0]); fbdev 1700 drivers/video/fbdev/omap/omapfb_main.c dev_err(fbdev->dev, "mode setting failed\n"); fbdev 1705 drivers/video/fbdev/omap/omapfb_main.c r = fbdev->ctrl->enable_plane(OMAPFB_PLANE_GFX, 1); fbdev 1709 drivers/video/fbdev/omap/omapfb_main.c omapfb_set_update_mode(fbdev, manual_update ? fbdev 1713 drivers/video/fbdev/omap/omapfb_main.c if (fbdev->panel->enable) { fbdev 1714 drivers/video/fbdev/omap/omapfb_main.c r = fbdev->panel->enable(fbdev->panel); fbdev 1720 drivers/video/fbdev/omap/omapfb_main.c r = omapfb_register_sysfs(fbdev); fbdev 1726 drivers/video/fbdev/omap/omapfb_main.c for (i = 0; i < fbdev->mem_desc.region_cnt; i++) { fbdev 1727 drivers/video/fbdev/omap/omapfb_main.c r = register_framebuffer(fbdev->fb_info[i]); fbdev 1729 drivers/video/fbdev/omap/omapfb_main.c dev_err(fbdev->dev, fbdev 1733 drivers/video/fbdev/omap/omapfb_main.c vram += fbdev->mem_desc.region[i].size; fbdev 1736 drivers/video/fbdev/omap/omapfb_main.c fbdev->state = OMAPFB_ACTIVE; fbdev 1738 drivers/video/fbdev/omap/omapfb_main.c panel = fbdev->panel; fbdev 1743 drivers/video/fbdev/omap/omapfb_main.c omapfb_dev = fbdev; fbdev 1746 drivers/video/fbdev/omap/omapfb_main.c vram, fbdev->mem_desc.region_cnt); fbdev 1754 drivers/video/fbdev/omap/omapfb_main.c omapfb_free_resources(fbdev, init_state); fbdev 1791 drivers/video/fbdev/omap/omapfb_main.c struct omapfb_device *fbdev = platform_get_drvdata(pdev); fbdev 1792 drivers/video/fbdev/omap/omapfb_main.c enum omapfb_state saved_state = fbdev->state; fbdev 1796 drivers/video/fbdev/omap/omapfb_main.c fbdev->state = OMAPFB_DISABLED; fbdev 1797 drivers/video/fbdev/omap/omapfb_main.c omapfb_free_resources(fbdev, saved_state); fbdev 1800 drivers/video/fbdev/omap/omapfb_main.c fbdev->dssdev = NULL; fbdev 1808 drivers/video/fbdev/omap/omapfb_main.c struct omapfb_device *fbdev = platform_get_drvdata(pdev); fbdev 1810 drivers/video/fbdev/omap/omapfb_main.c if (fbdev != NULL) fbdev 1811 drivers/video/fbdev/omap/omapfb_main.c omapfb_blank(FB_BLANK_POWERDOWN, fbdev->fb_info[0]); fbdev 1818 drivers/video/fbdev/omap/omapfb_main.c struct omapfb_device *fbdev = platform_get_drvdata(pdev); fbdev 1820 drivers/video/fbdev/omap/omapfb_main.c if (fbdev != NULL) fbdev 1821 drivers/video/fbdev/omap/omapfb_main.c omapfb_blank(FB_BLANK_UNBLANK, fbdev->fb_info[0]); fbdev 67 drivers/video/fbdev/omap/sossi.c struct omapfb_device *fbdev; fbdev 213 drivers/video/fbdev/omap/sossi.c dev_dbg(sossi.fbdev->dev, "Using TW0 = %d, TW1 = %d, div = %d\n", fbdev 402 drivers/video/fbdev/omap/sossi.c dev_dbg(sossi.fbdev->dev, fbdev 429 drivers/video/fbdev/omap/sossi.c dev_dbg(sossi.fbdev->dev, "tearsync %d line %d\n", enable, line); fbdev 558 drivers/video/fbdev/omap/sossi.c static int sossi_init(struct omapfb_device *fbdev) fbdev 567 drivers/video/fbdev/omap/sossi.c dev_err(fbdev->dev, "can't ioremap SoSSI\n"); fbdev 571 drivers/video/fbdev/omap/sossi.c sossi.fbdev = fbdev; fbdev 574 drivers/video/fbdev/omap/sossi.c dpll1out_ck = clk_get(fbdev->dev, "ck_dpll1out"); fbdev 576 drivers/video/fbdev/omap/sossi.c dev_err(fbdev->dev, "can't get DPLL1OUT clock\n"); fbdev 587 drivers/video/fbdev/omap/sossi.c fck = clk_get(fbdev->dev, "ck_sossi"); fbdev 589 drivers/video/fbdev/omap/sossi.c dev_err(fbdev->dev, "can't get SoSSI functional clock\n"); fbdev 619 drivers/video/fbdev/omap/sossi.c dev_err(fbdev->dev, fbdev 626 drivers/video/fbdev/omap/sossi.c dev_err(fbdev->dev, "can't get LCDC IRQ\n"); fbdev 633 drivers/video/fbdev/omap/sossi.c dev_info(fbdev->dev, "SoSSI version %d.%d initialized\n", fbdev 643 drivers/video/fbdev/omap/sossi.c "sossi_match", sossi.fbdev->dev)) < 0) { fbdev 644 drivers/video/fbdev/omap/sossi.c dev_err(sossi.fbdev->dev, "can't get SoSSI match IRQ\n"); fbdev 38 drivers/video/fbdev/omap2/omapfb/omapfb-ioctl.c struct omapfb2_device *fbdev = ofbi->fbdev; fbdev 45 drivers/video/fbdev/omap2/omapfb/omapfb-ioctl.c if (mem_idx >= fbdev->num_fbs) fbdev 48 drivers/video/fbdev/omap2/omapfb/omapfb-ioctl.c return &fbdev->regions[mem_idx]; fbdev 54 drivers/video/fbdev/omap2/omapfb/omapfb-ioctl.c struct omapfb2_device *fbdev = ofbi->fbdev; fbdev 171 drivers/video/fbdev/omap2/omapfb/omapfb-ioctl.c dev_err(fbdev->dev, "setup_plane failed\n"); fbdev 205 drivers/video/fbdev/omap2/omapfb/omapfb-ioctl.c struct omapfb2_device *fbdev = ofbi->fbdev; fbdev 232 drivers/video/fbdev/omap2/omapfb/omapfb-ioctl.c for (i = 0; i < fbdev->num_fbs; i++) { fbdev 233 drivers/video/fbdev/omap2/omapfb/omapfb-ioctl.c struct omapfb_info *ofbi2 = FB2OFB(fbdev->fbs[i]); fbdev 251 drivers/video/fbdev/omap2/omapfb/omapfb-ioctl.c dev_err(fbdev->dev, "realloc fbmem failed\n"); fbdev 303 drivers/video/fbdev/omap2/omapfb/omapfb-ioctl.c struct omapfb2_device *fbdev = ofbi->fbdev; fbdev 313 drivers/video/fbdev/omap2/omapfb/omapfb-ioctl.c omapfb_lock(fbdev); fbdev 315 drivers/video/fbdev/omap2/omapfb/omapfb-ioctl.c d = get_display_data(fbdev, display); fbdev 318 drivers/video/fbdev/omap2/omapfb/omapfb-ioctl.c omapfb_unlock(fbdev); fbdev 326 drivers/video/fbdev/omap2/omapfb/omapfb-ioctl.c omapfb_start_auto_update(fbdev, display); fbdev 328 drivers/video/fbdev/omap2/omapfb/omapfb-ioctl.c omapfb_stop_auto_update(fbdev, display); fbdev 336 drivers/video/fbdev/omap2/omapfb/omapfb-ioctl.c omapfb_unlock(fbdev); fbdev 346 drivers/video/fbdev/omap2/omapfb/omapfb-ioctl.c struct omapfb2_device *fbdev = ofbi->fbdev; fbdev 352 drivers/video/fbdev/omap2/omapfb/omapfb-ioctl.c omapfb_lock(fbdev); fbdev 354 drivers/video/fbdev/omap2/omapfb/omapfb-ioctl.c d = get_display_data(fbdev, display); fbdev 358 drivers/video/fbdev/omap2/omapfb/omapfb-ioctl.c omapfb_unlock(fbdev); fbdev 419 drivers/video/fbdev/omap2/omapfb/omapfb-ioctl.c struct omapfb2_device *fbdev = ofbi->fbdev; fbdev 424 drivers/video/fbdev/omap2/omapfb/omapfb-ioctl.c omapfb_lock(fbdev); fbdev 440 drivers/video/fbdev/omap2/omapfb/omapfb-ioctl.c omapfb_unlock(fbdev); fbdev 449 drivers/video/fbdev/omap2/omapfb/omapfb-ioctl.c struct omapfb2_device *fbdev = ofbi->fbdev; fbdev 454 drivers/video/fbdev/omap2/omapfb/omapfb-ioctl.c omapfb_lock(fbdev); fbdev 470 drivers/video/fbdev/omap2/omapfb/omapfb-ioctl.c omapfb_unlock(fbdev); fbdev 513 drivers/video/fbdev/omap2/omapfb/omapfb-ioctl.c static int omapfb_get_ovl_colormode(struct omapfb2_device *fbdev, fbdev 523 drivers/video/fbdev/omap2/omapfb/omapfb-ioctl.c if (ovl_idx >= fbdev->num_overlays) fbdev 525 drivers/video/fbdev/omap2/omapfb/omapfb-ioctl.c ovl = fbdev->overlays[ovl_idx]; fbdev 578 drivers/video/fbdev/omap2/omapfb/omapfb-ioctl.c struct omapfb2_device *fbdev = ofbi->fbdev; fbdev 712 drivers/video/fbdev/omap2/omapfb/omapfb-ioctl.c r = omapfb_get_ovl_colormode(fbdev, &p.ovl_colormode); fbdev 909 drivers/video/fbdev/omap2/omapfb/omapfb-ioctl.c dev_err(fbdev->dev, "Unknown ioctl 0x%x\n", cmd); fbdev 49 drivers/video/fbdev/omap2/omapfb/omapfb-main.c static int omapfb_fb_init(struct omapfb2_device *fbdev, struct fb_info *fbi); fbdev 50 drivers/video/fbdev/omap2/omapfb/omapfb-main.c static int omapfb_get_recommended_bpp(struct omapfb2_device *fbdev, fbdev 1220 drivers/video/fbdev/omap2/omapfb/omapfb-main.c struct omapfb2_device *fbdev = ofbi->fbdev; fbdev 1228 drivers/video/fbdev/omap2/omapfb/omapfb-main.c omapfb_lock(fbdev); fbdev 1230 drivers/video/fbdev/omap2/omapfb/omapfb-main.c d = get_display_data(fbdev, display); fbdev 1242 drivers/video/fbdev/omap2/omapfb/omapfb-main.c omapfb_start_auto_update(fbdev, display); fbdev 1256 drivers/video/fbdev/omap2/omapfb/omapfb-main.c omapfb_stop_auto_update(fbdev, display); fbdev 1267 drivers/video/fbdev/omap2/omapfb/omapfb-main.c omapfb_unlock(fbdev); fbdev 1304 drivers/video/fbdev/omap2/omapfb/omapfb-main.c struct omapfb2_device *fbdev = ofbi->fbdev; fbdev 1324 drivers/video/fbdev/omap2/omapfb/omapfb-main.c dma_free_attrs(fbdev->dev, rg->size, rg->token, rg->dma_handle, fbdev 1341 drivers/video/fbdev/omap2/omapfb/omapfb-main.c static int omapfb_free_all_fbmem(struct omapfb2_device *fbdev) fbdev 1347 drivers/video/fbdev/omap2/omapfb/omapfb-main.c for (i = 0; i < fbdev->num_fbs; i++) { fbdev 1348 drivers/video/fbdev/omap2/omapfb/omapfb-main.c struct fb_info *fbi = fbdev->fbs[i]; fbdev 1360 drivers/video/fbdev/omap2/omapfb/omapfb-main.c struct omapfb2_device *fbdev = ofbi->fbdev; fbdev 1386 drivers/video/fbdev/omap2/omapfb/omapfb-main.c token = dma_alloc_attrs(fbdev->dev, size, &dma_handle, fbdev 1390 drivers/video/fbdev/omap2/omapfb/omapfb-main.c dev_err(fbdev->dev, "failed to allocate framebuffer\n"); fbdev 1400 drivers/video/fbdev/omap2/omapfb/omapfb-main.c dma_free_attrs(fbdev->dev, size, token, dma_handle, fbdev 1402 drivers/video/fbdev/omap2/omapfb/omapfb-main.c dev_err(fbdev->dev, "vrfb create ctx failed\n"); fbdev 1424 drivers/video/fbdev/omap2/omapfb/omapfb-main.c struct omapfb2_device *fbdev = ofbi->fbdev; fbdev 1433 drivers/video/fbdev/omap2/omapfb/omapfb-main.c switch (omapfb_get_recommended_bpp(fbdev, display)) { fbdev 1526 drivers/video/fbdev/omap2/omapfb/omapfb-main.c static int omapfb_allocate_all_fbs(struct omapfb2_device *fbdev) fbdev 1537 drivers/video/fbdev/omap2/omapfb/omapfb-main.c dev_err(fbdev->dev, "failed to parse vram parameter\n"); fbdev 1543 drivers/video/fbdev/omap2/omapfb/omapfb-main.c for (i = 0; i < fbdev->num_fbs; i++) { fbdev 1547 drivers/video/fbdev/omap2/omapfb/omapfb-main.c r = omapfb_alloc_fbmem_display(fbdev->fbs[i], fbdev 1555 drivers/video/fbdev/omap2/omapfb/omapfb-main.c for (i = 0; i < fbdev->num_fbs; i++) { fbdev 1556 drivers/video/fbdev/omap2/omapfb/omapfb-main.c struct omapfb_info *ofbi = FB2OFB(fbdev->fbs[i]); fbdev 1587 drivers/video/fbdev/omap2/omapfb/omapfb-main.c struct omapfb2_device *fbdev = ofbi->fbdev; fbdev 1626 drivers/video/fbdev/omap2/omapfb/omapfb-main.c r = omapfb_fb_init(fbdev, fbi); fbdev 1665 drivers/video/fbdev/omap2/omapfb/omapfb-main.c struct omapfb2_device *fbdev; fbdev 1672 drivers/video/fbdev/omap2/omapfb/omapfb-main.c fbdev = d->fbdev; fbdev 1686 drivers/video/fbdev/omap2/omapfb/omapfb-main.c queue_delayed_work(fbdev->auto_update_wq, fbdev 1690 drivers/video/fbdev/omap2/omapfb/omapfb-main.c void omapfb_start_auto_update(struct omapfb2_device *fbdev, fbdev 1695 drivers/video/fbdev/omap2/omapfb/omapfb-main.c if (fbdev->auto_update_wq == NULL) { fbdev 1701 drivers/video/fbdev/omap2/omapfb/omapfb-main.c dev_err(fbdev->dev, "Failed to create workqueue for " fbdev 1706 drivers/video/fbdev/omap2/omapfb/omapfb-main.c fbdev->auto_update_wq = wq; fbdev 1709 drivers/video/fbdev/omap2/omapfb/omapfb-main.c d = get_display_data(fbdev, display); fbdev 1718 drivers/video/fbdev/omap2/omapfb/omapfb-main.c void omapfb_stop_auto_update(struct omapfb2_device *fbdev, fbdev 1723 drivers/video/fbdev/omap2/omapfb/omapfb-main.c d = get_display_data(fbdev, display); fbdev 1731 drivers/video/fbdev/omap2/omapfb/omapfb-main.c static int omapfb_fb_init(struct omapfb2_device *fbdev, struct fb_info *fbi) fbdev 1740 drivers/video/fbdev/omap2/omapfb/omapfb-main.c fbi->pseudo_palette = fbdev->pseudo_palette; fbdev 1771 drivers/video/fbdev/omap2/omapfb/omapfb-main.c switch (omapfb_get_recommended_bpp(fbdev, display)) { fbdev 1779 drivers/video/fbdev/omap2/omapfb/omapfb-main.c dev_err(fbdev->dev, "illegal display " fbdev 1805 drivers/video/fbdev/omap2/omapfb/omapfb-main.c dev_err(fbdev->dev, "unable to allocate color map memory\n"); fbdev 1811 drivers/video/fbdev/omap2/omapfb/omapfb-main.c static void fbinfo_cleanup(struct omapfb2_device *fbdev, struct fb_info *fbi) fbdev 1817 drivers/video/fbdev/omap2/omapfb/omapfb-main.c static void omapfb_free_resources(struct omapfb2_device *fbdev) fbdev 1823 drivers/video/fbdev/omap2/omapfb/omapfb-main.c if (fbdev == NULL) fbdev 1826 drivers/video/fbdev/omap2/omapfb/omapfb-main.c for (i = 0; i < fbdev->num_overlays; i++) { fbdev 1827 drivers/video/fbdev/omap2/omapfb/omapfb-main.c struct omap_overlay *ovl = fbdev->overlays[i]; fbdev 1835 drivers/video/fbdev/omap2/omapfb/omapfb-main.c for (i = 0; i < fbdev->num_fbs; i++) fbdev 1836 drivers/video/fbdev/omap2/omapfb/omapfb-main.c unregister_framebuffer(fbdev->fbs[i]); fbdev 1839 drivers/video/fbdev/omap2/omapfb/omapfb-main.c omapfb_free_all_fbmem(fbdev); fbdev 1841 drivers/video/fbdev/omap2/omapfb/omapfb-main.c for (i = 0; i < fbdev->num_fbs; i++) { fbdev 1842 drivers/video/fbdev/omap2/omapfb/omapfb-main.c fbinfo_cleanup(fbdev, fbdev->fbs[i]); fbdev 1843 drivers/video/fbdev/omap2/omapfb/omapfb-main.c framebuffer_release(fbdev->fbs[i]); fbdev 1846 drivers/video/fbdev/omap2/omapfb/omapfb-main.c for (i = 0; i < fbdev->num_displays; i++) { fbdev 1847 drivers/video/fbdev/omap2/omapfb/omapfb-main.c struct omap_dss_device *dssdev = fbdev->displays[i].dssdev; fbdev 1849 drivers/video/fbdev/omap2/omapfb/omapfb-main.c if (fbdev->displays[i].auto_update_work_enabled) fbdev 1850 drivers/video/fbdev/omap2/omapfb/omapfb-main.c omapfb_stop_auto_update(fbdev, dssdev); fbdev 1860 drivers/video/fbdev/omap2/omapfb/omapfb-main.c if (fbdev->auto_update_wq != NULL) { fbdev 1861 drivers/video/fbdev/omap2/omapfb/omapfb-main.c flush_workqueue(fbdev->auto_update_wq); fbdev 1862 drivers/video/fbdev/omap2/omapfb/omapfb-main.c destroy_workqueue(fbdev->auto_update_wq); fbdev 1863 drivers/video/fbdev/omap2/omapfb/omapfb-main.c fbdev->auto_update_wq = NULL; fbdev 1866 drivers/video/fbdev/omap2/omapfb/omapfb-main.c dev_set_drvdata(fbdev->dev, NULL); fbdev 1869 drivers/video/fbdev/omap2/omapfb/omapfb-main.c static int omapfb_create_framebuffers(struct omapfb2_device *fbdev) fbdev 1873 drivers/video/fbdev/omap2/omapfb/omapfb-main.c fbdev->num_fbs = 0; fbdev 1883 drivers/video/fbdev/omap2/omapfb/omapfb-main.c fbdev->dev); fbdev 1889 drivers/video/fbdev/omap2/omapfb/omapfb-main.c fbdev->fbs[i] = fbi; fbdev 1892 drivers/video/fbdev/omap2/omapfb/omapfb-main.c ofbi->fbdev = fbdev; fbdev 1895 drivers/video/fbdev/omap2/omapfb/omapfb-main.c ofbi->region = &fbdev->regions[i]; fbdev 1904 drivers/video/fbdev/omap2/omapfb/omapfb-main.c fbdev->num_fbs++; fbdev 1910 drivers/video/fbdev/omap2/omapfb/omapfb-main.c for (i = 0; i < min(fbdev->num_fbs, fbdev->num_overlays); i++) { fbdev 1911 drivers/video/fbdev/omap2/omapfb/omapfb-main.c struct omapfb_info *ofbi = FB2OFB(fbdev->fbs[i]); fbdev 1913 drivers/video/fbdev/omap2/omapfb/omapfb-main.c ofbi->overlays[0] = fbdev->overlays[i]; fbdev 1918 drivers/video/fbdev/omap2/omapfb/omapfb-main.c r = omapfb_allocate_all_fbs(fbdev); fbdev 1920 drivers/video/fbdev/omap2/omapfb/omapfb-main.c dev_err(fbdev->dev, "failed to allocate fbmem\n"); fbdev 1927 drivers/video/fbdev/omap2/omapfb/omapfb-main.c for (i = 0; i < fbdev->num_fbs; i++) { fbdev 1928 drivers/video/fbdev/omap2/omapfb/omapfb-main.c struct fb_info *fbi = fbdev->fbs[i]; fbdev 1932 drivers/video/fbdev/omap2/omapfb/omapfb-main.c r = omapfb_fb_init(fbdev, fbi); fbdev 1936 drivers/video/fbdev/omap2/omapfb/omapfb-main.c dev_err(fbdev->dev, "failed to setup fb_info\n"); fbdev 1941 drivers/video/fbdev/omap2/omapfb/omapfb-main.c for (i = 0; i < fbdev->num_fbs; i++) { fbdev 1942 drivers/video/fbdev/omap2/omapfb/omapfb-main.c struct fb_info *fbi = fbdev->fbs[i]; fbdev 1953 drivers/video/fbdev/omap2/omapfb/omapfb-main.c for (i = 0; i < fbdev->num_fbs; i++) { fbdev 1954 drivers/video/fbdev/omap2/omapfb/omapfb-main.c r = register_framebuffer(fbdev->fbs[i]); fbdev 1956 drivers/video/fbdev/omap2/omapfb/omapfb-main.c dev_err(fbdev->dev, fbdev 1964 drivers/video/fbdev/omap2/omapfb/omapfb-main.c for (i = 0; i < fbdev->num_fbs; i++) { fbdev 1965 drivers/video/fbdev/omap2/omapfb/omapfb-main.c struct fb_info *fbi = fbdev->fbs[i]; fbdev 1973 drivers/video/fbdev/omap2/omapfb/omapfb-main.c dev_err(fbdev->dev, "failed to change mode\n"); fbdev 1979 drivers/video/fbdev/omap2/omapfb/omapfb-main.c if (fbdev->num_fbs > 0) { fbdev 1980 drivers/video/fbdev/omap2/omapfb/omapfb-main.c struct omapfb_info *ofbi = FB2OFB(fbdev->fbs[0]); fbdev 1990 drivers/video/fbdev/omap2/omapfb/omapfb-main.c dev_err(fbdev->dev, fbdev 2103 drivers/video/fbdev/omap2/omapfb/omapfb-main.c static int omapfb_set_def_mode(struct omapfb2_device *fbdev, fbdev 2115 drivers/video/fbdev/omap2/omapfb/omapfb-main.c d = get_display_data(fbdev, display); fbdev 2139 drivers/video/fbdev/omap2/omapfb/omapfb-main.c static int omapfb_get_recommended_bpp(struct omapfb2_device *fbdev, fbdev 2146 drivers/video/fbdev/omap2/omapfb/omapfb-main.c d = get_display_data(fbdev, dssdev); fbdev 2154 drivers/video/fbdev/omap2/omapfb/omapfb-main.c static int omapfb_parse_def_modes(struct omapfb2_device *fbdev) fbdev 2180 drivers/video/fbdev/omap2/omapfb/omapfb-main.c for (i = 0; i < fbdev->num_displays; ++i) { fbdev 2181 drivers/video/fbdev/omap2/omapfb/omapfb-main.c if (strcmp(fbdev->displays[i].dssdev->name, fbdev 2183 drivers/video/fbdev/omap2/omapfb/omapfb-main.c display = fbdev->displays[i].dssdev; fbdev 2193 drivers/video/fbdev/omap2/omapfb/omapfb-main.c r = omapfb_set_def_mode(fbdev, display, mode_str); fbdev 2307 drivers/video/fbdev/omap2/omapfb/omapfb-main.c static int omapfb_init_display(struct omapfb2_device *fbdev, fbdev 2316 drivers/video/fbdev/omap2/omapfb/omapfb-main.c dev_warn(fbdev->dev, "Failed to enable display '%s'\n", fbdev 2321 drivers/video/fbdev/omap2/omapfb/omapfb-main.c d = get_display_data(fbdev, dssdev); fbdev 2323 drivers/video/fbdev/omap2/omapfb/omapfb-main.c d->fbdev = fbdev; fbdev 2329 drivers/video/fbdev/omap2/omapfb/omapfb-main.c omapfb_start_auto_update(fbdev, dssdev); fbdev 2338 drivers/video/fbdev/omap2/omapfb/omapfb-main.c dev_err(fbdev->dev, "Failed to set TE\n"); fbdev 2346 drivers/video/fbdev/omap2/omapfb/omapfb-main.c dev_err(fbdev->dev, fbdev 2357 drivers/video/fbdev/omap2/omapfb/omapfb-main.c static int omapfb_init_connections(struct omapfb2_device *fbdev, fbdev 2365 drivers/video/fbdev/omap2/omapfb/omapfb-main.c dev_err(fbdev->dev, "failed to connect default display\n"); fbdev 2369 drivers/video/fbdev/omap2/omapfb/omapfb-main.c for (i = 0; i < fbdev->num_displays; ++i) { fbdev 2370 drivers/video/fbdev/omap2/omapfb/omapfb-main.c struct omap_dss_device *dssdev = fbdev->displays[i].dssdev; fbdev 2385 drivers/video/fbdev/omap2/omapfb/omapfb-main.c dev_err(fbdev->dev, "no ovl manager for the default display\n"); fbdev 2389 drivers/video/fbdev/omap2/omapfb/omapfb-main.c for (i = 0; i < fbdev->num_overlays; i++) { fbdev 2390 drivers/video/fbdev/omap2/omapfb/omapfb-main.c struct omap_overlay *ovl = fbdev->overlays[i]; fbdev 2397 drivers/video/fbdev/omap2/omapfb/omapfb-main.c dev_warn(fbdev->dev, fbdev 2406 drivers/video/fbdev/omap2/omapfb/omapfb-main.c omapfb_find_default_display(struct omapfb2_device *fbdev) fbdev 2419 drivers/video/fbdev/omap2/omapfb/omapfb-main.c for (i = 0; i < fbdev->num_displays; ++i) { fbdev 2422 drivers/video/fbdev/omap2/omapfb/omapfb-main.c dssdev = fbdev->displays[i].dssdev; fbdev 2436 drivers/video/fbdev/omap2/omapfb/omapfb-main.c for (i = 0; i < fbdev->num_displays; ++i) { fbdev 2440 drivers/video/fbdev/omap2/omapfb/omapfb-main.c dssdev = fbdev->displays[i].dssdev; fbdev 2451 drivers/video/fbdev/omap2/omapfb/omapfb-main.c return fbdev->displays[0].dssdev; fbdev 2456 drivers/video/fbdev/omap2/omapfb/omapfb-main.c struct omapfb2_device *fbdev = NULL; fbdev 2473 drivers/video/fbdev/omap2/omapfb/omapfb-main.c fbdev = devm_kzalloc(&pdev->dev, sizeof(struct omapfb2_device), fbdev 2475 drivers/video/fbdev/omap2/omapfb/omapfb-main.c if (fbdev == NULL) { fbdev 2490 drivers/video/fbdev/omap2/omapfb/omapfb-main.c mutex_init(&fbdev->mtx); fbdev 2492 drivers/video/fbdev/omap2/omapfb/omapfb-main.c fbdev->dev = &pdev->dev; fbdev 2493 drivers/video/fbdev/omap2/omapfb/omapfb-main.c platform_set_drvdata(pdev, fbdev); fbdev 2495 drivers/video/fbdev/omap2/omapfb/omapfb-main.c fbdev->num_displays = 0; fbdev 2509 drivers/video/fbdev/omap2/omapfb/omapfb-main.c d = &fbdev->displays[fbdev->num_displays++]; fbdev 2517 drivers/video/fbdev/omap2/omapfb/omapfb-main.c if (fbdev->num_displays == 0) { fbdev 2523 drivers/video/fbdev/omap2/omapfb/omapfb-main.c fbdev->num_overlays = omap_dss_get_num_overlays(); fbdev 2524 drivers/video/fbdev/omap2/omapfb/omapfb-main.c for (i = 0; i < fbdev->num_overlays; i++) fbdev 2525 drivers/video/fbdev/omap2/omapfb/omapfb-main.c fbdev->overlays[i] = omap_dss_get_overlay(i); fbdev 2527 drivers/video/fbdev/omap2/omapfb/omapfb-main.c fbdev->num_managers = omap_dss_get_num_overlay_managers(); fbdev 2528 drivers/video/fbdev/omap2/omapfb/omapfb-main.c for (i = 0; i < fbdev->num_managers; i++) fbdev 2529 drivers/video/fbdev/omap2/omapfb/omapfb-main.c fbdev->managers[i] = omap_dss_get_overlay_manager(i); fbdev 2531 drivers/video/fbdev/omap2/omapfb/omapfb-main.c def_display = omapfb_find_default_display(fbdev); fbdev 2533 drivers/video/fbdev/omap2/omapfb/omapfb-main.c dev_err(fbdev->dev, "failed to find default display\n"); fbdev 2538 drivers/video/fbdev/omap2/omapfb/omapfb-main.c r = omapfb_init_connections(fbdev, def_display); fbdev 2540 drivers/video/fbdev/omap2/omapfb/omapfb-main.c dev_err(fbdev->dev, "failed to init overlay connections\n"); fbdev 2545 drivers/video/fbdev/omap2/omapfb/omapfb-main.c if (omapfb_parse_def_modes(fbdev)) fbdev 2557 drivers/video/fbdev/omap2/omapfb/omapfb-main.c r = omapfb_create_framebuffers(fbdev); fbdev 2561 drivers/video/fbdev/omap2/omapfb/omapfb-main.c for (i = 0; i < fbdev->num_managers; i++) { fbdev 2563 drivers/video/fbdev/omap2/omapfb/omapfb-main.c mgr = fbdev->managers[i]; fbdev 2566 drivers/video/fbdev/omap2/omapfb/omapfb-main.c dev_warn(fbdev->dev, "failed to apply dispc config\n"); fbdev 2572 drivers/video/fbdev/omap2/omapfb/omapfb-main.c r = omapfb_init_display(fbdev, def_display); fbdev 2574 drivers/video/fbdev/omap2/omapfb/omapfb-main.c dev_err(fbdev->dev, fbdev 2582 drivers/video/fbdev/omap2/omapfb/omapfb-main.c r = omapfb_create_sysfs(fbdev); fbdev 2584 drivers/video/fbdev/omap2/omapfb/omapfb-main.c dev_err(fbdev->dev, "failed to create sysfs entries\n"); fbdev 2593 drivers/video/fbdev/omap2/omapfb/omapfb-main.c dev_info(fbdev->dev, "using display '%s' mode %dx%d\n", fbdev 2600 drivers/video/fbdev/omap2/omapfb/omapfb-main.c omapfb_free_resources(fbdev); fbdev 2609 drivers/video/fbdev/omap2/omapfb/omapfb-main.c struct omapfb2_device *fbdev = platform_get_drvdata(pdev); fbdev 2613 drivers/video/fbdev/omap2/omapfb/omapfb-main.c omapfb_remove_sysfs(fbdev); fbdev 2615 drivers/video/fbdev/omap2/omapfb/omapfb-main.c omapfb_free_resources(fbdev); fbdev 135 drivers/video/fbdev/omap2/omapfb/omapfb-sysfs.c struct omapfb2_device *fbdev = ofbi->fbdev; fbdev 140 drivers/video/fbdev/omap2/omapfb/omapfb-sysfs.c omapfb_lock(fbdev); fbdev 146 drivers/video/fbdev/omap2/omapfb/omapfb-sysfs.c for (ovlnum = 0; ovlnum < fbdev->num_overlays; ++ovlnum) fbdev 147 drivers/video/fbdev/omap2/omapfb/omapfb-sysfs.c if (ovl == fbdev->overlays[ovlnum]) fbdev 156 drivers/video/fbdev/omap2/omapfb/omapfb-sysfs.c omapfb_unlock(fbdev); fbdev 162 drivers/video/fbdev/omap2/omapfb/omapfb-sysfs.c static struct omapfb_info *get_overlay_fb(struct omapfb2_device *fbdev, fbdev 167 drivers/video/fbdev/omap2/omapfb/omapfb-sysfs.c for (i = 0; i < fbdev->num_fbs; i++) { fbdev 168 drivers/video/fbdev/omap2/omapfb/omapfb-sysfs.c struct omapfb_info *ofbi = FB2OFB(fbdev->fbs[i]); fbdev 184 drivers/video/fbdev/omap2/omapfb/omapfb-sysfs.c struct omapfb2_device *fbdev = ofbi->fbdev; fbdev 198 drivers/video/fbdev/omap2/omapfb/omapfb-sysfs.c omapfb_lock(fbdev); fbdev 212 drivers/video/fbdev/omap2/omapfb/omapfb-sysfs.c if (ovlnum > fbdev->num_overlays) { fbdev 219 drivers/video/fbdev/omap2/omapfb/omapfb-sysfs.c if (ovls[i] == fbdev->overlays[ovlnum]) { fbdev 226 drivers/video/fbdev/omap2/omapfb/omapfb-sysfs.c ovls[num_ovls++] = fbdev->overlays[ovlnum]; fbdev 233 drivers/video/fbdev/omap2/omapfb/omapfb-sysfs.c struct omapfb_info *ofbi2 = get_overlay_fb(fbdev, ovls[i]); fbdev 235 drivers/video/fbdev/omap2/omapfb/omapfb-sysfs.c dev_err(fbdev->dev, "overlay already in use\n"); fbdev 314 drivers/video/fbdev/omap2/omapfb/omapfb-sysfs.c omapfb_unlock(fbdev); fbdev 426 drivers/video/fbdev/omap2/omapfb/omapfb-sysfs.c struct omapfb2_device *fbdev = ofbi->fbdev; fbdev 454 drivers/video/fbdev/omap2/omapfb/omapfb-sysfs.c for (i = 0; i < fbdev->num_fbs; i++) { fbdev 455 drivers/video/fbdev/omap2/omapfb/omapfb-sysfs.c struct omapfb_info *ofbi2 = FB2OFB(fbdev->fbs[i]); fbdev 553 drivers/video/fbdev/omap2/omapfb/omapfb-sysfs.c int omapfb_create_sysfs(struct omapfb2_device *fbdev) fbdev 559 drivers/video/fbdev/omap2/omapfb/omapfb-sysfs.c for (i = 0; i < fbdev->num_fbs; i++) { fbdev 562 drivers/video/fbdev/omap2/omapfb/omapfb-sysfs.c r = device_create_file(fbdev->fbs[i]->dev, fbdev 566 drivers/video/fbdev/omap2/omapfb/omapfb-sysfs.c dev_err(fbdev->dev, "failed to create sysfs " fbdev 576 drivers/video/fbdev/omap2/omapfb/omapfb-sysfs.c void omapfb_remove_sysfs(struct omapfb2_device *fbdev) fbdev 581 drivers/video/fbdev/omap2/omapfb/omapfb-sysfs.c for (i = 0; i < fbdev->num_fbs; i++) { fbdev 583 drivers/video/fbdev/omap2/omapfb/omapfb-sysfs.c device_remove_file(fbdev->fbs[i]->dev, fbdev 63 drivers/video/fbdev/omap2/omapfb/omapfb.h struct omapfb2_device *fbdev; fbdev 70 drivers/video/fbdev/omap2/omapfb/omapfb.h struct omapfb2_device *fbdev; fbdev 115 drivers/video/fbdev/omap2/omapfb/omapfb.h int omapfb_create_sysfs(struct omapfb2_device *fbdev); fbdev 116 drivers/video/fbdev/omap2/omapfb/omapfb.h void omapfb_remove_sysfs(struct omapfb2_device *fbdev); fbdev 126 drivers/video/fbdev/omap2/omapfb/omapfb.h void omapfb_start_auto_update(struct omapfb2_device *fbdev, fbdev 128 drivers/video/fbdev/omap2/omapfb/omapfb.h void omapfb_stop_auto_update(struct omapfb2_device *fbdev, fbdev 150 drivers/video/fbdev/omap2/omapfb/omapfb.h struct omapfb2_device *fbdev, struct omap_dss_device *dssdev) fbdev 154 drivers/video/fbdev/omap2/omapfb/omapfb.h for (i = 0; i < fbdev->num_displays; ++i) fbdev 155 drivers/video/fbdev/omap2/omapfb/omapfb.h if (fbdev->displays[i].dssdev == dssdev) fbdev 156 drivers/video/fbdev/omap2/omapfb/omapfb.h return &fbdev->displays[i]; fbdev 163 drivers/video/fbdev/omap2/omapfb/omapfb.h static inline void omapfb_lock(struct omapfb2_device *fbdev) fbdev 165 drivers/video/fbdev/omap2/omapfb/omapfb.h mutex_lock(&fbdev->mtx); fbdev 168 drivers/video/fbdev/omap2/omapfb/omapfb.h static inline void omapfb_unlock(struct omapfb2_device *fbdev) fbdev 170 drivers/video/fbdev/omap2/omapfb/omapfb.h mutex_unlock(&fbdev->mtx); fbdev 1425 drivers/video/fbdev/udlfb.c static ssize_t metrics_bytes_rendered_show(struct device *fbdev, fbdev 1427 drivers/video/fbdev/udlfb.c struct fb_info *fb_info = dev_get_drvdata(fbdev); fbdev 1433 drivers/video/fbdev/udlfb.c static ssize_t metrics_bytes_identical_show(struct device *fbdev, fbdev 1435 drivers/video/fbdev/udlfb.c struct fb_info *fb_info = dev_get_drvdata(fbdev); fbdev 1441 drivers/video/fbdev/udlfb.c static ssize_t metrics_bytes_sent_show(struct device *fbdev, fbdev 1443 drivers/video/fbdev/udlfb.c struct fb_info *fb_info = dev_get_drvdata(fbdev); fbdev 1449 drivers/video/fbdev/udlfb.c static ssize_t metrics_cpu_kcycles_used_show(struct device *fbdev, fbdev 1451 drivers/video/fbdev/udlfb.c struct fb_info *fb_info = dev_get_drvdata(fbdev); fbdev 1461 drivers/video/fbdev/udlfb.c struct device *fbdev = container_of(kobj, struct device, kobj); fbdev 1462 drivers/video/fbdev/udlfb.c struct fb_info *fb_info = dev_get_drvdata(fbdev); fbdev 1483 drivers/video/fbdev/udlfb.c struct device *fbdev = container_of(kobj, struct device, kobj); fbdev 1484 drivers/video/fbdev/udlfb.c struct fb_info *fb_info = dev_get_drvdata(fbdev); fbdev 1506 drivers/video/fbdev/udlfb.c static ssize_t metrics_reset_store(struct device *fbdev, fbdev 1510 drivers/video/fbdev/udlfb.c struct fb_info *fb_info = dev_get_drvdata(fbdev); fbdev 132 include/drm/drm_fb_helper.h struct fb_info *fbdev; fbdev 11 include/linux/platform_data/bd6107.h struct device *fbdev; fbdev 11 include/linux/platform_data/gpio_backlight.h struct device *fbdev; fbdev 11 include/linux/platform_data/lv5207lp.h struct device *fbdev;