Home
last modified time | relevance | path

Searched refs:fb_info (Results 1 – 25 of 634) sorted by relevance

12345678910>>...26

/kernel/linux/linux-4.19/drivers/video/fbdev/core/
Dfbsysfs.c39 struct fb_info *framebuffer_alloc(size_t size, struct device *dev) in framebuffer_alloc()
42 #define PADDING (BYTES_PER_LONG - (sizeof(struct fb_info) % BYTES_PER_LONG)) in framebuffer_alloc()
43 int fb_info_size = sizeof(struct fb_info); in framebuffer_alloc()
44 struct fb_info *info; in framebuffer_alloc()
55 info = (struct fb_info *) p; in framebuffer_alloc()
82 void framebuffer_release(struct fb_info *info) in framebuffer_release()
91 static int activate(struct fb_info *fb_info, struct fb_var_screeninfo *var) in activate() argument
97 fb_info->flags |= FBINFO_MISC_USEREVENT; in activate()
98 err = fb_set_var(fb_info, var); in activate()
99 fb_info->flags &= ~FBINFO_MISC_USEREVENT; in activate()
[all …]
Dfbmem.c49 struct fb_info *registered_fb[FB_MAX] __read_mostly;
55 static struct fb_info *get_fb_info(unsigned int idx) in get_fb_info()
57 struct fb_info *fb_info; in get_fb_info() local
63 fb_info = registered_fb[idx]; in get_fb_info()
64 if (fb_info) in get_fb_info()
65 atomic_inc(&fb_info->count); in get_fb_info()
68 return fb_info; in get_fb_info()
71 static void put_fb_info(struct fb_info *fb_info) in put_fb_info() argument
73 if (!atomic_dec_and_test(&fb_info->count)) in put_fb_info()
75 if (fb_info->fbops->fb_destroy) in put_fb_info()
[all …]
/kernel/linux/linux-5.10/drivers/video/fbdev/core/
Dfbsysfs.c36 struct fb_info *framebuffer_alloc(size_t size, struct device *dev) in framebuffer_alloc()
39 #define PADDING (BYTES_PER_LONG - (sizeof(struct fb_info) % BYTES_PER_LONG)) in framebuffer_alloc()
40 int fb_info_size = sizeof(struct fb_info); in framebuffer_alloc()
41 struct fb_info *info; in framebuffer_alloc()
52 info = (struct fb_info *) p; in framebuffer_alloc()
79 void framebuffer_release(struct fb_info *info) in framebuffer_release()
88 static int activate(struct fb_info *fb_info, struct fb_var_screeninfo *var) in activate() argument
94 err = fb_set_var(fb_info, var); in activate()
96 fbcon_update_vcs(fb_info, var->activate & FB_ACTIVATE_ALL); in activate()
128 struct fb_info *fb_info = dev_get_drvdata(device); in store_mode() local
[all …]
Dfbmem.c50 struct fb_info *registered_fb[FB_MAX] __read_mostly;
60 static struct fb_info *get_fb_info(unsigned int idx) in get_fb_info()
62 struct fb_info *fb_info; in get_fb_info() local
68 fb_info = registered_fb[idx]; in get_fb_info()
69 if (fb_info) in get_fb_info()
70 atomic_inc(&fb_info->count); in get_fb_info()
73 return fb_info; in get_fb_info()
76 static void put_fb_info(struct fb_info *fb_info) in put_fb_info() argument
78 if (!atomic_dec_and_test(&fb_info->count)) in put_fb_info()
80 if (fb_info->fbops->fb_destroy) in put_fb_info()
[all …]
/kernel/linux/linux-5.10/include/linux/
Dfbcon.h7 int fbcon_fb_registered(struct fb_info *info);
8 void fbcon_fb_unregistered(struct fb_info *info);
9 void fbcon_fb_unbind(struct fb_info *info);
10 void fbcon_suspended(struct fb_info *info);
11 void fbcon_resumed(struct fb_info *info);
12 int fbcon_mode_deleted(struct fb_info *info,
14 void fbcon_new_modelist(struct fb_info *info);
15 void fbcon_get_requirement(struct fb_info *info,
17 void fbcon_fb_blanked(struct fb_info *info, int blank);
18 int fbcon_modechange_possible(struct fb_info *info,
[all …]
Dfb.h20 struct fb_info;
140 struct fb_info *info;
198 void (*writeio)(struct fb_info *info, void __iomem *dst, void *src, unsigned int size);
199 void (*readio) (struct fb_info *info, void *dst, void __iomem *src, unsigned int size);
209 void (*first_io)(struct fb_info *info);
210 void (*deferred_io)(struct fb_info *info, struct list_head *pagelist);
231 int (*fb_open)(struct fb_info *info, int user);
232 int (*fb_release)(struct fb_info *info, int user);
237 ssize_t (*fb_read)(struct fb_info *info, char __user *buf,
239 ssize_t (*fb_write)(struct fb_info *info, const char __user *buf,
[all …]
/kernel/linux/linux-4.19/drivers/video/fbdev/
Dmxsfb.c267 struct fb_info *fb_info) in mxsfb_check_var() argument
269 struct mxsfb_info *host = fb_info->par; in mxsfb_check_var()
328 static void mxsfb_enable_controller(struct fb_info *fb_info) in mxsfb_enable_controller() argument
330 struct mxsfb_info *host = fb_info->par; in mxsfb_enable_controller()
348 clk_set_rate(host->clk, PICOS2KHZ(fb_info->var.pixclock) * 1000U); in mxsfb_enable_controller()
365 static void mxsfb_disable_controller(struct fb_info *fb_info) in mxsfb_disable_controller() argument
367 struct mxsfb_info *host = fb_info->par; in mxsfb_disable_controller()
407 static int mxsfb_set_par(struct fb_info *fb_info) in mxsfb_set_par() argument
409 struct mxsfb_info *host = fb_info->par; in mxsfb_set_par()
414 line_size = fb_info->var.xres * (fb_info->var.bits_per_pixel >> 3); in mxsfb_set_par()
[all …]
Dacornfb.c95 static struct fb_info fb_info; variable
116 static void acornfb_set_timing(struct fb_info *info) in acornfb_set_timing()
270 u_int trans, struct fb_info *info) in acornfb_setcolreg()
320 acornfb_adjust_timing(struct fb_info *info, struct fb_var_screeninfo *var, u_int fontht) in acornfb_adjust_timing()
439 acornfb_update_dma(struct fb_info *info, struct fb_var_screeninfo *var) in acornfb_update_dma()
451 acornfb_check_var(struct fb_var_screeninfo *var, struct fb_info *info) in acornfb_check_var()
524 static int acornfb_set_par(struct fb_info *info) in acornfb_set_par()
595 acornfb_pan_display(struct fb_var_screeninfo *var, struct fb_info *info) in acornfb_pan_display()
700 fb_info.fbops = &acornfb_ops; in acornfb_init_fbinfo()
701 fb_info.flags = FBINFO_DEFAULT | FBINFO_HWACCEL_YPAN; in acornfb_init_fbinfo()
[all …]
Dxen-fbfront.c44 struct fb_info *fb_info; member
71 static void xenfb_init_shared_page(struct xenfb_info *, struct fb_info *);
184 static void xenfb_deferred_io(struct fb_info *fb_info, in xenfb_deferred_io() argument
187 struct xenfb_info *info = fb_info->par; in xenfb_deferred_io()
197 y1 = beg / fb_info->fix.line_length; in xenfb_deferred_io()
198 y2 = end / fb_info->fix.line_length; in xenfb_deferred_io()
199 if (y2 >= fb_info->var.yres) in xenfb_deferred_io()
200 y2 = fb_info->var.yres - 1; in xenfb_deferred_io()
206 xenfb_refresh(info, 0, miny, fb_info->var.xres, maxy - miny + 1); in xenfb_deferred_io()
216 struct fb_info *info) in xenfb_setcolreg()
[all …]
Dpvr2fb.c146 static struct fb_info *fb_info; variable
197 unsigned int transp, struct fb_info *info);
198 static int pvr2fb_blank(int blank, struct fb_info *info);
201 static int pvr2fb_check_var(struct fb_var_screeninfo *var, struct fb_info *info);
202 static int pvr2fb_set_par(struct fb_info *info);
203 static void pvr2_update_display(struct fb_info *info);
204 static void pvr2_init_display(struct fb_info *info);
211 static ssize_t pvr2fb_write(struct fb_info *info, const char *buf,
263 struct pvr2fb_par *par = (struct pvr2fb_par *)fb_info->par; in pvr2fb_set_pal_type()
275 static int pvr2fb_blank(int blank, struct fb_info *info) in pvr2fb_blank()
[all …]
Dhpfb.c21 static struct fb_info fb_info = { variable
77 struct fb_info *info) in hpfb_setcolreg()
118 static int hpfb_blank(int blank, struct fb_info *info) in hpfb_blank()
145 static void hpfb_copyarea(struct fb_info *info, const struct fb_copyarea *area) in hpfb_copyarea()
150 static void hpfb_fillrect(struct fb_info *p, const struct fb_fillrect *region) in hpfb_fillrect()
170 static int hpfb_sync(struct fb_info *info) in hpfb_sync()
217 fb_info.fix.smem_start = (in_8(fb_regs + fboff) << 16); in hpfb_init_one()
220 fb_info.fix.smem_start += phys_base; in hpfb_init_one()
241 fb_info.fix.line_length = fb_width; in hpfb_init_one()
243 fb_info.fix.smem_len = fb_width * fb_height; in hpfb_init_one()
[all …]
D68328fb.c55 static struct fb_info fb_info; variable
91 struct fb_info *info);
92 static int mc68x328fb_set_par(struct fb_info *info);
94 u_int transp, struct fb_info *info);
96 struct fb_info *info);
97 static int mc68x328fb_mmap(struct fb_info *info, struct vm_area_struct *vma);
133 struct fb_info *info) in mc68x328fb_check_var()
265 static int mc68x328fb_set_par(struct fb_info *info) in mc68x328fb_set_par()
279 u_int transp, struct fb_info *info) in mc68x328fb_setcolreg()
367 struct fb_info *info) in mc68x328fb_pan_display()
[all …]
Dg364fb.c72 static struct fb_info fb_info; variable
107 struct fb_info *info);
110 struct fb_info *info);
111 static int g364fb_cursor(struct fb_info *info, struct fb_cursor *cursor);
112 static int g364fb_blank(int blank, struct fb_info *info);
125 int g364fb_cursor(struct fb_info *info, struct fb_cursor *cursor) in g364fb_cursor()
150 struct fb_info *info) in g364fb_pan_display()
163 static int g364fb_blank(int blank, struct fb_info *info) in g364fb_blank()
176 u_int blue, u_int transp, struct fb_info *info) in g364fb_setcolreg()
241 fb_info.fbops = &g364fb_ops; in g364fb_init()
[all …]
/kernel/linux/linux-4.19/include/linux/
Dfb.h20 struct fb_info;
168 struct fb_info *info;
226 void (*writeio)(struct fb_info *info, void __iomem *dst, void *src, unsigned int size);
227 void (*readio) (struct fb_info *info, void *dst, void __iomem *src, unsigned int size);
237 void (*first_io)(struct fb_info *info);
238 void (*deferred_io)(struct fb_info *info, struct list_head *pagelist);
259 int (*fb_open)(struct fb_info *info, int user);
260 int (*fb_release)(struct fb_info *info, int user);
265 ssize_t (*fb_read)(struct fb_info *info, char __user *buf,
267 ssize_t (*fb_write)(struct fb_info *info, const char __user *buf,
[all …]
/kernel/linux/linux-5.10/include/drm/
Ddrm_fb_helper.h132 struct fb_info *fbdev;
218 int drm_fb_helper_blank(int blank, struct fb_info *info);
220 struct fb_info *info);
221 int drm_fb_helper_set_par(struct fb_info *info);
223 struct fb_info *info);
227 struct fb_info *drm_fb_helper_alloc_fbi(struct drm_fb_helper *fb_helper);
229 void drm_fb_helper_fill_info(struct fb_info *info,
233 void drm_fb_helper_deferred_io(struct fb_info *info,
236 ssize_t drm_fb_helper_sys_read(struct fb_info *info, char __user *buf,
238 ssize_t drm_fb_helper_sys_write(struct fb_info *info, const char __user *buf,
[all …]
/kernel/linux/linux-4.19/include/drm/
Ddrm_fb_helper.h193 struct fb_info *fbdev;
280 int drm_fb_helper_blank(int blank, struct fb_info *info);
282 struct fb_info *info);
283 int drm_fb_helper_set_par(struct fb_info *info);
285 struct fb_info *info);
289 struct fb_info *drm_fb_helper_alloc_fbi(struct drm_fb_helper *fb_helper);
291 void drm_fb_helper_fill_var(struct fb_info *info, struct drm_fb_helper *fb_helper,
293 void drm_fb_helper_fill_fix(struct fb_info *info, uint32_t pitch,
298 void drm_fb_helper_deferred_io(struct fb_info *info,
302 ssize_t drm_fb_helper_sys_read(struct fb_info *info, char __user *buf,
[all …]
/kernel/linux/linux-5.10/drivers/video/fbdev/
Dacornfb.c91 static struct fb_info fb_info; variable
112 static void acornfb_set_timing(struct fb_info *info) in acornfb_set_timing()
266 u_int trans, struct fb_info *info) in acornfb_setcolreg()
316 acornfb_adjust_timing(struct fb_info *info, struct fb_var_screeninfo *var, u_int fontht) in acornfb_adjust_timing()
435 acornfb_update_dma(struct fb_info *info, struct fb_var_screeninfo *var) in acornfb_update_dma()
447 acornfb_check_var(struct fb_var_screeninfo *var, struct fb_info *info) in acornfb_check_var()
520 static int acornfb_set_par(struct fb_info *info) in acornfb_set_par()
591 acornfb_pan_display(struct fb_var_screeninfo *var, struct fb_info *info) in acornfb_pan_display()
696 fb_info.fbops = &acornfb_ops; in acornfb_init_fbinfo()
697 fb_info.flags = FBINFO_DEFAULT | FBINFO_HWACCEL_YPAN; in acornfb_init_fbinfo()
[all …]
Dxen-fbfront.c44 struct fb_info *fb_info; member
71 static void xenfb_init_shared_page(struct xenfb_info *, struct fb_info *);
184 static void xenfb_deferred_io(struct fb_info *fb_info, in xenfb_deferred_io() argument
187 struct xenfb_info *info = fb_info->par; in xenfb_deferred_io()
197 y1 = beg / fb_info->fix.line_length; in xenfb_deferred_io()
198 y2 = end / fb_info->fix.line_length; in xenfb_deferred_io()
199 if (y2 >= fb_info->var.yres) in xenfb_deferred_io()
200 y2 = fb_info->var.yres - 1; in xenfb_deferred_io()
206 xenfb_refresh(info, 0, miny, fb_info->var.xres, maxy - miny + 1); in xenfb_deferred_io()
216 struct fb_info *info) in xenfb_setcolreg()
[all …]
D68328fb.c55 static struct fb_info fb_info; variable
91 struct fb_info *info);
92 static int mc68x328fb_set_par(struct fb_info *info);
94 u_int transp, struct fb_info *info);
96 struct fb_info *info);
97 static int mc68x328fb_mmap(struct fb_info *info, struct vm_area_struct *vma);
133 struct fb_info *info) in mc68x328fb_check_var()
265 static int mc68x328fb_set_par(struct fb_info *info) in mc68x328fb_set_par()
279 u_int transp, struct fb_info *info) in mc68x328fb_setcolreg()
367 struct fb_info *info) in mc68x328fb_pan_display()
[all …]
Dpvr2fb.c147 static struct fb_info *fb_info; variable
231 struct pvr2fb_par *par = (struct pvr2fb_par *)fb_info->par; in pvr2fb_set_pal_type()
243 static int pvr2fb_blank(int blank, struct fb_info *info) in pvr2fb_blank()
282 unsigned int transp, struct fb_info *info) in pvr2fb_setcolreg()
354 static int pvr2fb_set_par(struct fb_info *info) in pvr2fb_set_par()
431 static int pvr2fb_check_var(struct fb_var_screeninfo *var, struct fb_info *info) in pvr2fb_check_var()
534 static void pvr2_update_display(struct fb_info *info) in pvr2_update_display()
552 static void pvr2_init_display(struct fb_info *info) in pvr2_init_display()
623 struct fb_info *info = dev_id; in pvr2fb_interrupt()
641 static ssize_t pvr2fb_write(struct fb_info *info, const char *buf, in pvr2fb_write()
[all …]
Dhpfb.c22 static struct fb_info fb_info = { variable
78 struct fb_info *info) in hpfb_setcolreg()
119 static int hpfb_blank(int blank, struct fb_info *info) in hpfb_blank()
146 static void hpfb_copyarea(struct fb_info *info, const struct fb_copyarea *area) in hpfb_copyarea()
151 static void hpfb_fillrect(struct fb_info *p, const struct fb_fillrect *region) in hpfb_fillrect()
171 static int hpfb_sync(struct fb_info *info) in hpfb_sync()
218 fb_info.fix.smem_start = (in_8(fb_regs + fboff) << 16); in hpfb_init_one()
221 fb_info.fix.smem_start += phys_base; in hpfb_init_one()
242 fb_info.fix.line_length = fb_width; in hpfb_init_one()
244 fb_info.fix.smem_len = fb_width * fb_height; in hpfb_init_one()
[all …]
Dg364fb.c72 static struct fb_info fb_info; variable
107 struct fb_info *info);
110 struct fb_info *info);
111 static int g364fb_blank(int blank, struct fb_info *info);
129 struct fb_info *info) in g364fb_pan_display()
142 static int g364fb_blank(int blank, struct fb_info *info) in g364fb_blank()
155 u_int blue, u_int transp, struct fb_info *info) in g364fb_setcolreg()
218 fb_info.fbops = &g364fb_ops; in g364fb_init()
219 fb_info.screen_base = (char *) G364_MEM_BASE; /* virtual kernel address */ in g364fb_init()
220 fb_info.var = fb_var; in g364fb_init()
[all …]
/kernel/linux/linux-5.10/drivers/gpu/drm/nouveau/
Dnouveau_fbcon.h54 int nv04_fbcon_copyarea(struct fb_info *info, const struct fb_copyarea *region);
55 int nv04_fbcon_fillrect(struct fb_info *info, const struct fb_fillrect *rect);
56 int nv04_fbcon_imageblit(struct fb_info *info, const struct fb_image *image);
57 int nv04_fbcon_accel_init(struct fb_info *info);
59 int nv50_fbcon_fillrect(struct fb_info *info, const struct fb_fillrect *rect);
60 int nv50_fbcon_copyarea(struct fb_info *info, const struct fb_copyarea *region);
61 int nv50_fbcon_imageblit(struct fb_info *info, const struct fb_image *image);
62 int nv50_fbcon_accel_init(struct fb_info *info);
64 int nvc0_fbcon_fillrect(struct fb_info *info, const struct fb_fillrect *rect);
65 int nvc0_fbcon_copyarea(struct fb_info *info, const struct fb_copyarea *region);
[all …]
/kernel/linux/linux-4.19/drivers/gpu/drm/nouveau/
Dnouveau_fbcon.h51 int nv04_fbcon_copyarea(struct fb_info *info, const struct fb_copyarea *region);
52 int nv04_fbcon_fillrect(struct fb_info *info, const struct fb_fillrect *rect);
53 int nv04_fbcon_imageblit(struct fb_info *info, const struct fb_image *image);
54 int nv04_fbcon_accel_init(struct fb_info *info);
56 int nv50_fbcon_fillrect(struct fb_info *info, const struct fb_fillrect *rect);
57 int nv50_fbcon_copyarea(struct fb_info *info, const struct fb_copyarea *region);
58 int nv50_fbcon_imageblit(struct fb_info *info, const struct fb_image *image);
59 int nv50_fbcon_accel_init(struct fb_info *info);
61 int nvc0_fbcon_fillrect(struct fb_info *info, const struct fb_fillrect *rect);
62 int nvc0_fbcon_copyarea(struct fb_info *info, const struct fb_copyarea *region);
[all …]
/kernel/linux/linux-4.19/drivers/media/platform/vivid/
Dvivid-osd.c68 static int vivid_fb_ioctl(struct fb_info *info, unsigned cmd, unsigned long arg) in vivid_fb_ioctl()
169 static int vivid_fb_check_var(struct fb_var_screeninfo *var, struct fb_info *info) in vivid_fb_check_var()
177 static int vivid_fb_pan_display(struct fb_var_screeninfo *var, struct fb_info *info) in vivid_fb_pan_display()
182 static int vivid_fb_set_par(struct fb_info *info) in vivid_fb_set_par()
196 struct fb_info *info) in vivid_fb_setcolreg()
230 static int vivid_fb_blank(int blank_mode, struct fb_info *info) in vivid_fb_blank()
312 dev->fb_info.node = -1; in vivid_fb_init_vidmode()
313 dev->fb_info.flags = FBINFO_FLAG_DEFAULT; in vivid_fb_init_vidmode()
314 dev->fb_info.fbops = &vivid_fb_ops; in vivid_fb_init_vidmode()
315 dev->fb_info.par = dev; in vivid_fb_init_vidmode()
[all …]

12345678910>>...26