Home
last modified time | relevance | path

Searched refs:fbdev (Results 1 – 25 of 95) sorted by relevance

1234

/Linux-v5.4/drivers/video/fbdev/
Dau1100fb.c108 struct au1100fb_device *fbdev = to_au1100fb_device(fbi); in au1100fb_fb_blank() local
116 fbdev->regs->lcd_control |= LCD_CONTROL_GO; in au1100fb_fb_blank()
124 fbdev->regs->lcd_control &= ~LCD_CONTROL_GO; in au1100fb_fb_blank()
138 int au1100fb_setmode(struct au1100fb_device *fbdev) in au1100fb_setmode() argument
140 struct fb_info *info = &fbdev->info; in au1100fb_setmode()
144 if (!fbdev) in au1100fb_setmode()
148 if (panel_is_active(fbdev->panel) || panel_is_color(fbdev->panel)) { in au1100fb_setmode()
172 index = (fbdev->panel->control_base & LCD_CONTROL_SBPPF_MASK) >> LCD_CONTROL_SBPPF_BIT; in au1100fb_setmode()
188 info->var.rotate = ((fbdev->panel->control_base&LCD_CONTROL_SM_MASK) \ in au1100fb_setmode()
192 fbdev->regs->lcd_control = fbdev->panel->control_base; in au1100fb_setmode()
[all …]
Docfb.c87 static inline u32 ocfb_readreg(struct ocfb_dev *fbdev, loff_t offset) in ocfb_readreg() argument
89 if (fbdev->little_endian) in ocfb_readreg()
90 return ioread32(fbdev->regs + offset); in ocfb_readreg()
92 return ioread32be(fbdev->regs + offset); in ocfb_readreg()
95 static void ocfb_writereg(struct ocfb_dev *fbdev, loff_t offset, u32 data) in ocfb_writereg() argument
97 if (fbdev->little_endian) in ocfb_writereg()
98 iowrite32(data, fbdev->regs + offset); in ocfb_writereg()
100 iowrite32be(data, fbdev->regs + offset); in ocfb_writereg()
103 static int ocfb_setupfb(struct ocfb_dev *fbdev) in ocfb_setupfb() argument
106 struct fb_var_screeninfo *var = &fbdev->info.var; in ocfb_setupfb()
[all …]
Dau1200fb.c702 static int au1200_setlocation (struct au1200fb_device *fbdev, int plane, in au1200_setlocation() argument
764 lcd->window[plane].winbuf1 = fbdev->fb_phys; in au1200_setlocation()
852 au1200_setlocation(fbdev, 0, win->w[0].xpos, win->w[0].ypos); in au1200_setpanel()
853 au1200_setlocation(fbdev, 1, win->w[1].xpos, win->w[1].ypos); in au1200_setpanel()
854 au1200_setlocation(fbdev, 2, win->w[2].xpos, win->w[2].ypos); in au1200_setpanel()
855 au1200_setlocation(fbdev, 3, win->w[3].xpos, win->w[3].ypos); in au1200_setpanel()
937 static void au1200_setmode(struct au1200fb_device *fbdev) in au1200_setmode() argument
939 int plane = fbdev->plane; in au1200_setmode()
946 au1200_setlocation(fbdev, plane, win->w[plane].xpos, win->w[plane].ypos); in au1200_setmode()
951 | LCD_WINCTRL2_BX_N(fbdev->fb_info->fix.line_length) in au1200_setmode()
[all …]
/Linux-v5.4/drivers/video/fbdev/omap/
Domapfb_main.c108 static void omapfb_rqueue_lock(struct omapfb_device *fbdev) in omapfb_rqueue_lock() argument
110 mutex_lock(&fbdev->rqueue_mutex); in omapfb_rqueue_lock()
113 static void omapfb_rqueue_unlock(struct omapfb_device *fbdev) in omapfb_rqueue_unlock() argument
115 mutex_unlock(&fbdev->rqueue_mutex); in omapfb_rqueue_unlock()
129 static int ctrl_init(struct omapfb_device *fbdev) in ctrl_init() argument
137 fbdev->mem_desc.region[i].size = in ctrl_init()
139 fbdev->mem_desc.region_cnt = i; in ctrl_init()
142 if (!fbdev->mem_desc.region_cnt) { in ctrl_init()
143 struct lcd_panel *panel = fbdev->panel; in ctrl_init()
151 fbdev->mem_desc.region_cnt = 1; in ctrl_init()
[all …]
Dlcdc.c59 struct omapfb_device *fbdev; member
133 dev_err(lcdc.fbdev->dev, "timeout waiting for FRAME DONE\n"); in disable_controller()
144 dev_err(lcdc.fbdev->dev, in reset_controller()
153 dev_err(lcdc.fbdev->dev, in reset_controller()
171 struct omapfb_plane_struct *plane = lcdc.fbdev->fb_info[0]->par; in setup_lcd_dma()
172 struct fb_var_screeninfo *var = &lcdc.fbdev->fb_info[0]->var; in setup_lcd_dma()
204 dev_dbg(lcdc.fbdev->dev, in setup_lcd_dma()
283 struct fb_var_screeninfo *var = &lcdc.fbdev->fb_info[0]->var; in omap_lcdc_setup_plane()
284 struct lcd_panel *panel = lcdc.fbdev->panel; in omap_lcdc_setup_plane()
297 dev_dbg(lcdc.fbdev->dev, in omap_lcdc_setup_plane()
[all …]
Dhwa742.c118 struct omapfb_device *fbdev; member
174 dev_dbg(hwa742.fbdev->dev, "hwa742: enabled pixel doubling\n"); in set_format_regs()
179 dev_dbg(hwa742.fbdev->dev, "hwa742: disabled pixel doubling\n"); in set_format_regs()
339 int scr_width = hwa742.fbdev->panel->x_res; in send_frame_handler()
340 int scr_height = hwa742.fbdev->panel->y_res; in send_frame_handler()
343 dev_dbg(hwa742.fbdev->dev, "x %d y %d w %d h %d scr_width %d " in send_frame_handler()
488 dev_dbg(hwa742.fbdev->dev, "invalid update mode\n"); in hwa742_update_window_async()
495 dev_dbg(hwa742.fbdev->dev, "invalid window flag\n"); in hwa742_update_window_async()
562 dev_dbg(hwa742.fbdev->dev, "update_mode %d\n", hwa742.update_mode); in hwa742_bind_client()
564 omapfb_notify_clients(hwa742.fbdev, OMAPFB_EVENT_READY); in hwa742_bind_client()
[all …]
Dsossi.c67 struct omapfb_device *fbdev; member
213 dev_dbg(sossi.fbdev->dev, "Using TW0 = %d, TW1 = %d, div = %d\n", in _set_timing()
402 dev_dbg(sossi.fbdev->dev, in sossi_setup_tearsync()
429 dev_dbg(sossi.fbdev->dev, "tearsync %d line %d\n", enable, line); in sossi_enable_tearsync()
558 static int sossi_init(struct omapfb_device *fbdev) in sossi_init() argument
567 dev_err(fbdev->dev, "can't ioremap SoSSI\n"); in sossi_init()
571 sossi.fbdev = fbdev; in sossi_init()
574 dpll1out_ck = clk_get(fbdev->dev, "ck_dpll1out"); in sossi_init()
576 dev_err(fbdev->dev, "can't get DPLL1OUT clock\n"); in sossi_init()
587 fck = clk_get(fbdev->dev, "ck_sossi"); in sossi_init()
[all …]
Domapfb.h79 struct omapfb_device *fbdev);
111 int (*init) (struct omapfb_device *fbdev);
145 int (*init) (struct omapfb_device *fbdev,
192 struct omapfb_device *fbdev; member
221 extern void omapfb_write_first_pixel(struct omapfb_device *fbdev, u16 pixval);
222 extern void omapfb_notify_clients(struct omapfb_device *fbdev,
/Linux-v5.4/drivers/gpu/drm/omapdrm/
Domap_fbdev.c39 struct omap_fbdev *fbdev = container_of(work, struct omap_fbdev, work); in pan_worker() local
40 struct fb_info *fbi = fbdev->base.fbdev; in pan_worker()
45 omap_gem_roll(fbdev->bo, fbi->var.yoffset * npages); in pan_worker()
52 struct omap_fbdev *fbdev = to_omap_fbdev(helper); in omap_fbdev_pan_display() local
57 if (!fbdev->ywrap_enabled) in omap_fbdev_pan_display()
61 pan_worker(&fbdev->work); in omap_fbdev_pan_display()
64 queue_work(priv->wq, &fbdev->work); in omap_fbdev_pan_display()
93 struct omap_fbdev *fbdev = to_omap_fbdev(helper); in omap_fbdev_create() local
119 fbdev->ywrap_enabled = priv->has_dmm && ywrap_enabled; in omap_fbdev_create()
120 if (fbdev->ywrap_enabled) { in omap_fbdev_create()
[all …]
/Linux-v5.4/drivers/staging/fieldbus/anybuss/
Dhms-profinet.c34 struct fieldbus_dev fbdev; member
41 profi_read_area(struct fieldbus_dev *fbdev, char __user *buf, size_t size, in profi_read_area() argument
44 struct profi_priv *priv = container_of(fbdev, struct profi_priv, fbdev); in profi_read_area()
50 profi_write_area(struct fieldbus_dev *fbdev, const char __user *buf, in profi_write_area() argument
53 struct profi_priv *priv = container_of(fbdev, struct profi_priv, fbdev); in profi_write_area()
58 static int profi_id_get(struct fieldbus_dev *fbdev, char *buf, in profi_id_get() argument
61 struct profi_priv *priv = container_of(fbdev, struct profi_priv, fbdev); in profi_id_get()
75 static bool profi_enable_get(struct fieldbus_dev *fbdev) in profi_enable_get() argument
77 struct profi_priv *priv = container_of(fbdev, struct profi_priv, fbdev); in profi_enable_get()
134 static int profi_simple_enable(struct fieldbus_dev *fbdev, bool enable) in profi_simple_enable() argument
[all …]
/Linux-v5.4/drivers/auxdisplay/
Dht16k33.c74 struct ht16k33_fbdev fbdev; member
118 struct ht16k33_fbdev *fbdev = &priv->fbdev; in ht16k33_fb_queue() local
120 schedule_delayed_work(&fbdev->work, in ht16k33_fb_queue()
121 msecs_to_jiffies(HZ / fbdev->refresh_rate)); in ht16k33_fb_queue()
129 struct ht16k33_fbdev *fbdev = in ht16k33_fb_update() local
132 container_of(fbdev, struct ht16k33_priv, fbdev); in ht16k33_fb_update()
137 p1 = fbdev->cache; in ht16k33_fb_update()
138 p2 = fbdev->buffer; in ht16k33_fb_update()
152 p1 = fbdev->cache + HT16K33_FB_SIZE - 1; in ht16k33_fb_update()
153 p2 = fbdev->buffer + HT16K33_FB_SIZE - 1; in ht16k33_fb_update()
[all …]
/Linux-v5.4/drivers/gpu/drm/tegra/
Dfb.c207 struct tegra_fbdev *fbdev = to_tegra_fbdev(helper); in tegra_fbdev_probe() local
242 fbdev->fb = tegra_fb_alloc(drm, &cmd, &bo, 1); in tegra_fbdev_probe()
243 if (IS_ERR(fbdev->fb)) { in tegra_fbdev_probe()
244 err = PTR_ERR(fbdev->fb); in tegra_fbdev_probe()
248 return PTR_ERR(fbdev->fb); in tegra_fbdev_probe()
251 fb = fbdev->fb; in tegra_fbdev_probe()
253 helper->fbdev = info; in tegra_fbdev_probe()
291 struct tegra_fbdev *fbdev; in tegra_fbdev_create() local
293 fbdev = kzalloc(sizeof(*fbdev), GFP_KERNEL); in tegra_fbdev_create()
294 if (!fbdev) { in tegra_fbdev_create()
[all …]
/Linux-v5.4/drivers/gpu/drm/msm/
Dmsm_fbdev.c47 struct msm_fbdev *fbdev = to_msm_fbdev(helper); in msm_fbdev_mmap() local
48 struct drm_gem_object *bo = msm_framebuffer_bo(fbdev->fb, 0); in msm_fbdev_mmap()
63 struct msm_fbdev *fbdev = to_msm_fbdev(helper); in msm_fbdev_create() local
112 fbdev->fb = fb; in msm_fbdev_create()
131 DBG("allocated %dx%d fb", fbdev->fb->width, fbdev->fb->height); in msm_fbdev_create()
151 struct msm_fbdev *fbdev = NULL; in msm_fbdev_init() local
155 fbdev = kzalloc(sizeof(*fbdev), GFP_KERNEL); in msm_fbdev_init()
156 if (!fbdev) in msm_fbdev_init()
159 helper = &fbdev->base; in msm_fbdev_init()
180 priv->fbdev = helper; in msm_fbdev_init()
[all …]
/Linux-v5.4/drivers/video/fbdev/omap2/omapfb/
Domapfb-main.c49 static int omapfb_fb_init(struct omapfb2_device *fbdev, struct fb_info *fbi);
50 static int omapfb_get_recommended_bpp(struct omapfb2_device *fbdev,
1220 struct omapfb2_device *fbdev = ofbi->fbdev; in omapfb_blank() local
1228 omapfb_lock(fbdev); in omapfb_blank()
1230 d = get_display_data(fbdev, display); in omapfb_blank()
1242 omapfb_start_auto_update(fbdev, display); in omapfb_blank()
1256 omapfb_stop_auto_update(fbdev, display); in omapfb_blank()
1267 omapfb_unlock(fbdev); in omapfb_blank()
1304 struct omapfb2_device *fbdev = ofbi->fbdev; in omapfb_free_fbmem() local
1324 dma_free_attrs(fbdev->dev, rg->size, rg->token, rg->dma_handle, in omapfb_free_fbmem()
[all …]
Domapfb.h63 struct omapfb2_device *fbdev; member
70 struct omapfb2_device *fbdev; member
115 int omapfb_create_sysfs(struct omapfb2_device *fbdev);
116 void omapfb_remove_sysfs(struct omapfb2_device *fbdev);
126 void omapfb_start_auto_update(struct omapfb2_device *fbdev,
128 void omapfb_stop_auto_update(struct omapfb2_device *fbdev,
150 struct omapfb2_device *fbdev, struct omap_dss_device *dssdev) in get_display_data() argument
154 for (i = 0; i < fbdev->num_displays; ++i) in get_display_data()
155 if (fbdev->displays[i].dssdev == dssdev) in get_display_data()
156 return &fbdev->displays[i]; in get_display_data()
[all …]
Domapfb-ioctl.c38 struct omapfb2_device *fbdev = ofbi->fbdev; in get_mem_region() local
45 if (mem_idx >= fbdev->num_fbs) in get_mem_region()
48 return &fbdev->regions[mem_idx]; in get_mem_region()
54 struct omapfb2_device *fbdev = ofbi->fbdev; in omapfb_setup_plane() local
171 dev_err(fbdev->dev, "setup_plane failed\n"); in omapfb_setup_plane()
205 struct omapfb2_device *fbdev = ofbi->fbdev; in omapfb_setup_mem() local
232 for (i = 0; i < fbdev->num_fbs; i++) { in omapfb_setup_mem()
233 struct omapfb_info *ofbi2 = FB2OFB(fbdev->fbs[i]); in omapfb_setup_mem()
251 dev_err(fbdev->dev, "realloc fbmem failed\n"); in omapfb_setup_mem()
303 struct omapfb2_device *fbdev = ofbi->fbdev; in omapfb_set_update_mode() local
[all …]
Domapfb-sysfs.c135 struct omapfb2_device *fbdev = ofbi->fbdev; in show_overlays() local
140 omapfb_lock(fbdev); in show_overlays()
146 for (ovlnum = 0; ovlnum < fbdev->num_overlays; ++ovlnum) in show_overlays()
147 if (ovl == fbdev->overlays[ovlnum]) in show_overlays()
156 omapfb_unlock(fbdev); in show_overlays()
162 static struct omapfb_info *get_overlay_fb(struct omapfb2_device *fbdev, in get_overlay_fb() argument
167 for (i = 0; i < fbdev->num_fbs; i++) { in get_overlay_fb()
168 struct omapfb_info *ofbi = FB2OFB(fbdev->fbs[i]); in get_overlay_fb()
184 struct omapfb2_device *fbdev = ofbi->fbdev; in store_overlays() local
198 omapfb_lock(fbdev); in store_overlays()
[all …]
/Linux-v5.4/drivers/gpu/drm/gma500/
Dframebuffer.c43 struct psb_fbdev *fbdev = info->par; in psbfb_setcolreg() local
44 struct drm_framebuffer *fb = fbdev->psb_fb_helper.fb; in psbfb_setcolreg()
80 struct psb_fbdev *fbdev = info->par; in psbfb_pan() local
81 struct psb_framebuffer *psbfb = &fbdev->pfb; in psbfb_pan()
148 struct psb_fbdev *fbdev = info->par; in psbfb_mmap() local
149 struct psb_framebuffer *psbfb = &fbdev->pfb; in psbfb_mmap()
303 static int psbfb_create(struct psb_fbdev *fbdev, in psbfb_create() argument
306 struct drm_device *dev = fbdev->psb_fb_helper.dev; in psbfb_create()
310 struct psb_framebuffer *psbfb = &fbdev->pfb; in psbfb_create()
375 info = drm_fb_helper_alloc_fbi(&fbdev->psb_fb_helper); in psbfb_create()
[all …]
/Linux-v5.4/drivers/staging/fieldbus/
Ddev_core.c168 struct fieldbus_dev *fbdev; member
175 struct fieldbus_dev *fbdev = container_of(inode->i_cdev, in fieldbus_open() local
182 of->fbdev = fbdev; in fieldbus_open()
199 struct fieldbus_dev *fbdev = of->fbdev; in fieldbus_read() local
201 of->dc_event = fbdev->dc_event; in fieldbus_read()
202 return fbdev->read_area(fbdev, buf, size, offset); in fieldbus_read()
209 struct fieldbus_dev *fbdev = of->fbdev; in fieldbus_write() local
211 return fbdev->write_area(fbdev, buf, size, offset); in fieldbus_write()
217 struct fieldbus_dev *fbdev = of->fbdev; in fieldbus_poll() local
220 poll_wait(filp, &fbdev->dc_wq, wait); in fieldbus_poll()
[all …]
Dfieldbus_dev.h41 ssize_t (*read_area)(struct fieldbus_dev *fbdev, char __user *buf,
43 ssize_t (*write_area)(struct fieldbus_dev *fbdev,
49 bool (*enable_get)(struct fieldbus_dev *fbdev);
50 int (*fieldbus_id_get)(struct fieldbus_dev *fbdev, char *buf,
52 int (*simple_enable_set)(struct fieldbus_dev *fbdev, bool enable);
/Linux-v5.4/drivers/gpu/drm/hisilicon/hibmc/
Dhibmc_drm_fbdev.c118 priv->fbdev->size = size; in hibmc_drm_fb_create()
123 drm_fb_helper_fill_info(info, &priv->fbdev->helper, sizes); in hibmc_drm_fb_create()
142 static void hibmc_fbdev_destroy(struct hibmc_fbdev *fbdev) in hibmc_fbdev_destroy() argument
144 struct hibmc_framebuffer *gfb = fbdev->fb; in hibmc_fbdev_destroy()
145 struct drm_fb_helper *fbh = &fbdev->helper; in hibmc_fbdev_destroy()
172 priv->fbdev = hifbdev; in hibmc_fbdev_init()
195 var = &hifbdev->helper.fbdev->var; in hibmc_fbdev_init()
196 fix = &hifbdev->helper.fbdev->fix; in hibmc_fbdev_init()
235 if (!priv->fbdev) in hibmc_fbdev_fini()
238 hibmc_fbdev_destroy(priv->fbdev); in hibmc_fbdev_fini()
[all …]
/Linux-v5.4/drivers/gpu/drm/exynos/
Dexynos_drm_fbdev.c187 struct exynos_drm_fbdev *fbdev; in exynos_drm_fbdev_init() local
195 fbdev = kzalloc(sizeof(*fbdev), GFP_KERNEL); in exynos_drm_fbdev_init()
196 if (!fbdev) in exynos_drm_fbdev_init()
199 private->fb_helper = helper = &fbdev->drm_fb_helper; in exynos_drm_fbdev_init()
232 kfree(fbdev); in exynos_drm_fbdev_init()
261 struct exynos_drm_fbdev *fbdev; in exynos_drm_fbdev_fini() local
266 fbdev = to_exynos_fbdev(private->fb_helper); in exynos_drm_fbdev_fini()
269 kfree(fbdev); in exynos_drm_fbdev_fini()
/Linux-v5.4/Documentation/driver-api/
Dframe-buffer.rst11 needed functions to make fbdev and fbcon work. fb_info is only visible
34 .. kernel-doc:: drivers/video/fbdev/core/fbmem.c
40 .. kernel-doc:: drivers/video/fbdev/core/fbcmap.c
46 .. kernel-doc:: drivers/video/fbdev/core/modedb.c
49 .. kernel-doc:: drivers/video/fbdev/core/modedb.c
55 .. kernel-doc:: drivers/video/fbdev/macmodes.c
/Linux-v5.4/drivers/staging/fbtft/
DREADME13 cd drivers/video/fbdev/fbtft
16 Add to drivers/video/fbdev/Kconfig: source "drivers/video/fbdev/fbtft/Kconfig"
17 Add to drivers/video/fbdev/Makefile: obj-y += fbtft/
/Linux-v5.4/drivers/video/fbdev/mmp/
DKconfig9 source "drivers/video/fbdev/mmp/hw/Kconfig"
10 source "drivers/video/fbdev/mmp/panel/Kconfig"
11 source "drivers/video/fbdev/mmp/fb/Kconfig"

1234