Home
last modified time | relevance | path

Searched refs:fb (Results 1 – 25 of 665) sorted by relevance

12345678910>>...27

/netbsd-src/usr.sbin/tpctl/
H A Dfb.c57 fb_dispmode(struct fb *fb, int dispmode) in fb_dispmode() argument
60 if (fb->dispmode != dispmode) { in fb_dispmode()
61 if (ioctl(fb->fd, WSDISPLAYIO_SMODE, &dispmode) < 0) in fb_dispmode()
63 fb->dispmode = dispmode; in fb_dispmode()
70 fb_init(struct fb *fb, int fd) in fb_init() argument
77 fb->fd = fd; in fb_init()
78 fb->linecache_y = INVALID_CACHE; in fb_init()
79 fb->conf.hf_conf_index = HPCFB_CURRENT_CONFIG; in fb_init()
80 if (ioctl(fb->fd, WSDISPLAYIO_GMODE, &fb->dispmode) < 0) in fb_init()
82 if (ioctl(fb->fd, HPCFBIO_GCONF, &fb->conf) < 0) { in fb_init()
[all …]
H A Dmain.c58 void drawcross(struct fb *, int, int, int, fb_pixel_t);
261 struct fb fb; in do_calibration() local
267 if (fb_init(&fb, fbfd) < 0) in do_calibration()
273 coords->maxx = fb.conf.hf_width - 1; in do_calibration()
274 coords->maxy = fb.conf.hf_height - 1; in do_calibration()
278 xm = fb.conf.hf_width/10; in do_calibration()
279 ym = fb.conf.hf_height/10; in do_calibration()
282 coords->samples[0].x = fb.conf.hf_width/2; in do_calibration()
283 coords->samples[0].y = fb.conf.hf_height/2; in do_calibration()
291 coords->samples[2].y = fb.conf.hf_height - ym; in do_calibration()
[all …]
/netbsd-src/sys/arch/hp300/dev/
H A Ddiofb.c97 diofb_fbinquire(struct diofb *fb, int scode, struct diofbreg *fbr) in diofb_fbinquire() argument
102 fb->regaddr = (uint8_t *)IIOP(fbr); in diofb_fbinquire()
104 fb->regaddr = dio_scodetopa(scode); in diofb_fbinquire()
106 if (fb->fbwidth == 0 || fb->fbheight == 0) { in diofb_fbinquire()
107 fb->fbwidth = (fbr->fbwmsb << 8) | fbr->fbwlsb; in diofb_fbinquire()
108 fb->fbheight = (fbr->fbhmsb << 8) | fbr->fbhlsb; in diofb_fbinquire()
110 fb->fbsize = fb->fbwidth * fb->fbheight; in diofb_fbinquire()
112 fb->regkva = (uint8_t *)fbr; in diofb_fbinquire()
114 fb->fbaddr = (uint8_t *) (*((uint8_t *)fbr + fboff) << 16); in diofb_fbinquire()
116 if (fb->regaddr >= (uint8_t *)DIOII_BASE) { in diofb_fbinquire()
[all …]
H A Dgbox.c266 gbox_reset(struct diofb *fb, int scode, struct diofbreg *fbr) in gbox_reset() argument
272 fb->fbwidth = 1024; in gbox_reset()
273 fb->fbheight = 1024; in gbox_reset()
274 fb->dwidth = 1024; in gbox_reset()
275 fb->dheight = 768; in gbox_reset()
276 if ((rc = diofb_fbinquire(fb, scode, fbr)) != 0) in gbox_reset()
279 fb->bmv = gbox_windowmove; in gbox_reset()
280 gbox_restore(fb); in gbox_reset()
291 fbp = (uint8_t *)fb->fbkva; in gbox_reset()
294 fb->planemask = *fbp; in gbox_reset()
[all …]
H A Dtopcat.c174 if (strcmp("fb", ia->ia_modname) != 0) in topcat_intio_match()
314 topcat_reset(struct diofb *fb, int scode, struct diofbreg *fbr) in topcat_reset() argument
317 struct rasops_info *ri = &fb->ri; in topcat_reset()
322 if ((rc = diofb_fbinquire(fb, scode, fbr)) != 0) in topcat_reset()
330 if (fb->planes == 0) { in topcat_reset()
334 fbp = (uint8_t *)fb->fbkva; in topcat_reset()
341 fb->planemask = *fbp; in topcat_reset()
344 for (fb->planes = 1; fb->planemask >= (1 << fb in topcat_reset()
399 topcat_restore(struct diofb * fb) topcat_restore() argument
434 struct diofb *fb = v; topcat_ioctl() local
477 topcat_setcolor(struct diofb * fb,u_int index) topcat_setcolor() argument
522 topcat_setcmap(struct diofb * fb,struct wsdisplay_cmap * cm) topcat_setcmap() argument
554 topcat_windowmove(struct diofb * fb,uint16_t sx,uint16_t sy,uint16_t dx,uint16_t dy,uint16_t cx,uint16_t cy,int16_t rop,int16_t planemask) topcat_windowmove() argument
603 uint32_t fb; topcat_putchar1_4() local
691 struct diofb *fb = &diofb_cn; topcatcnattach() local
[all...]
H A Drbox.c251 rbox_reset(struct diofb *fb, int scode, struct diofbreg *fbr) in rbox_reset() argument
255 if ((rc = diofb_fbinquire(fb, scode, fbr)) != 0) in rbox_reset()
263 fb->planes = fb->planemask = 1; in rbox_reset()
265 fb->bmv = rbox_windowmove; in rbox_reset()
266 rbox_restore(fb); in rbox_reset()
267 diofb_fbsetup(fb); in rbox_reset()
273 rbox_restore(struct diofb *fb) in rbox_restore() argument
275 volatile struct rboxfb *rb = (struct rboxfb *)fb->regkva; in rbox_restore()
293 rb_waitbusy(fb->regkva); in rbox_restore()
295 *(fb->regkva + 0x63c3 + i*4) = 0x0; in rbox_restore()
[all …]
H A Dgendiofb.c144 gendiofb_reset(struct diofb *fb, int scode, struct diofbreg *fbr) in gendiofb_reset() argument
147 struct rasops_info *ri = &fb->ri; in gendiofb_reset()
149 if ((rc = diofb_fbinquire(fb, scode, fbr)) != 0) in gendiofb_reset()
162 ri->ri_stride = (fb->fbwidth * ri->ri_depth) / 8; in gendiofb_reset()
165 if (fb == &diofb_cn) in gendiofb_reset()
167 ri->ri_bits = fb->fbkva; in gendiofb_reset()
168 ri->ri_width = fb->dwidth; in gendiofb_reset()
169 ri->ri_height = fb->dheight; in gendiofb_reset()
170 ri->ri_hw = fb; in gendiofb_reset()
179 diofb_resetcmap(fb); in gendiofb_reset()
[all …]
/netbsd-src/sys/external/bsd/drm2/dist/drm/nouveau/nvkm/subdev/fb/
H A Dnouveau_nvkm_subdev_fb_base.c40 nvkm_fb_tile_fini(struct nvkm_fb *fb, int region, struct nvkm_fb_tile *tile) in nvkm_fb_tile_fini() argument
42 fb->func->tile.fini(fb, region, tile); in nvkm_fb_tile_fini()
46 nvkm_fb_tile_init(struct nvkm_fb *fb, int region, u32 addr, u32 size, in nvkm_fb_tile_init() argument
49 fb->func->tile.init(fb, region, addr, size, pitch, flags, tile); in nvkm_fb_tile_init()
53 nvkm_fb_tile_prog(struct nvkm_fb *fb, int region, struct nvkm_fb_tile *tile) in nvkm_fb_tile_prog() argument
55 struct nvkm_device *device = fb->subdev.device; in nvkm_fb_tile_prog()
56 if (fb->func->tile.prog) { in nvkm_fb_tile_prog()
57 fb->func->tile.prog(fb, region, tile); in nvkm_fb_tile_prog()
96 struct nvkm_fb *fb = nvkm_fb(subdev); in nvkm_fb_intr() local
97 if (fb->func->intr) in nvkm_fb_intr()
[all …]
H A DKbuild2 nvkm-y += nvkm/subdev/fb/base.o
3 nvkm-y += nvkm/subdev/fb/nv04.o
4 nvkm-y += nvkm/subdev/fb/nv10.o
5 nvkm-y += nvkm/subdev/fb/nv1a.o
6 nvkm-y += nvkm/subdev/fb/nv20.o
7 nvkm-y += nvkm/subdev/fb/nv25.o
8 nvkm-y += nvkm/subdev/fb/nv30.o
9 nvkm-y += nvkm/subdev/fb/nv35.o
10 nvkm-y += nvkm/subdev/fb/nv36.o
11 nvkm-y += nvkm/subdev/fb/nv40.o
[all …]
H A Dnouveau_nvkm_subdev_fb_gf100.c39 struct gf100_fb *fb = gf100_fb(base); in gf100_fb_intr() local
40 struct nvkm_subdev *subdev = &fb->base.subdev; in gf100_fb_intr()
52 struct gf100_fb *fb = gf100_fb(base); in gf100_fb_oneinit() local
53 struct nvkm_device *device = fb->base.subdev.device; in gf100_fb_oneinit()
54 int ret, size = 1 << (fb->base.page ? fb->base.page : 17); in gf100_fb_oneinit()
60 true, &fb->base.mmu_rd); in gf100_fb_oneinit()
65 true, &fb->base.mmu_wr); in gf100_fb_oneinit()
75 fb->r100c10_page = NULL; /* paranoia */ in gf100_fb_oneinit()
76 fb->r100c10_kva = NULL; in gf100_fb_oneinit()
80 &fb->r100c10_seg, 1, &nsegs, BUS_DMA_WAITOK); in gf100_fb_oneinit()
[all …]
H A Dnouveau_nvkm_subdev_fb_nv50.c39 struct nv50_fb *fb = nv50_fb(base); in nv50_fb_ram_new() local
40 return fb->func->ram_new(&fb->base, pram); in nv50_fb_ram_new()
142 struct nv50_fb *fb = nv50_fb(base); in nv50_fb_intr() local
143 struct nvkm_subdev *subdev = &fb->base.subdev; in nv50_fb_intr()
203 struct nv50_fb *fb = nv50_fb(base); in nv50_fb_oneinit() local
204 struct nvkm_device *device = fb->base.subdev.device; in nv50_fb_oneinit()
212 fb->r100c08_page = NULL; /* paranoia */ in nv50_fb_oneinit()
213 fb->r100c08_kva = NULL; in nv50_fb_oneinit()
217 &fb->r100c08_seg, 1, &nsegs, BUS_DMA_WAITOK); in nv50_fb_oneinit()
224 BUS_DMA_WAITOK, &fb->r100c08_page); in nv50_fb_oneinit()
[all …]
/netbsd-src/sys/dev/pci/
H A Dlynxfb.c106 #define DPR_READ(fb, reg) \ argument
107 bus_space_read_4((fb)->memt, (fb)->dprh, (reg))
108 #define DPR_WRITE(fb, reg, val) \ argument
109 bus_space_write_4((fb)->memt, (fb)->dprh, (reg), (val))
173 struct lynxfb fb; member
199 struct rasops_info *ri = &lynxfb_console.fb.vcs.scr_ri; in lynxfb_cnattach()
200 struct lynxfb *fb; in lynxfb_cnattach() local
219 fb = &lynxfb_console.fb; in lynxfb_cnattach()
220 fb->memt = memt; in lynxfb_cnattach()
221 fb->memh = memh; in lynxfb_cnattach()
[all …]
H A Dsisfb.c167 sisfb_crtc_read(struct sisfb *fb, uint idx) in sisfb_crtc_read() argument
170 bus_space_write_1(fb->iot, fb->ioh, CRTC_ADDR, idx); in sisfb_crtc_read()
171 val = bus_space_read_1(fb->iot, fb->ioh, CRTC_DATA); in sisfb_crtc_read()
179 sisfb_crtc_write(struct sisfb *fb, uint idx, uint val) in sisfb_crtc_write() argument
184 bus_space_write_1(fb->iot, fb->ioh, CRTC_ADDR, idx); in sisfb_crtc_write()
185 bus_space_write_1(fb->iot, fb->ioh, CRTC_DATA, val); in sisfb_crtc_write()
189 sisfb_seq_read(struct sisfb *fb, uint idx) in sisfb_seq_read() argument
192 bus_space_write_1(fb->iot, fb->ioh, SEQ_ADDR, idx); in sisfb_seq_read()
193 val = bus_space_read_1(fb->iot, fb->ioh, SEQ_DATA); in sisfb_seq_read()
201 sisfb_seq_write(struct sisfb *fb, uint idx, uint val) in sisfb_seq_write() argument
[all …]
/netbsd-src/sys/external/bsd/drm2/dist/drm/
H A Ddrm_framebuffer.c83 const struct drm_framebuffer *fb) in drm_framebuffer_check_src_coords() argument
87 fb_width = fb->width << 16; in drm_framebuffer_check_src_coords()
88 fb_height = fb->height << 16; in drm_framebuffer_check_src_coords()
101 fb->width, fb->height); in drm_framebuffer_check_src_coords()
301 struct drm_framebuffer *fb; in drm_internal_framebuffer_create() local
330 fb = dev->mode_config.funcs->fb_create(dev, file_priv, r); in drm_internal_framebuffer_create()
331 if (IS_ERR(fb)) { in drm_internal_framebuffer_create()
333 return fb; in drm_internal_framebuffer_create()
336 return fb; in drm_internal_framebuffer_create()
359 struct drm_framebuffer *fb; in drm_mode_addfb2() local
[all …]
/netbsd-src/sys/arch/mips/cavium/dev/
H A Docteon_fpa.c105 struct octfpa_buf *fb; in octfpa_buf_init() local
110 fb = kmem_zalloc(sizeof(*fb) + sizeof(*fb->fb_dma_segs) * nsegs, in octfpa_buf_init()
112 fb->fb_poolno = poolno; in octfpa_buf_init()
113 fb->fb_size = size; in octfpa_buf_init()
114 fb->fb_nelems = nelems; in octfpa_buf_init()
115 fb->fb_len = size * nelems; in octfpa_buf_init()
116 fb->fb_dmat = sc->sc_dmat; in octfpa_buf_init()
117 fb->fb_dma_segs = (void *)(fb + 1); in octfpa_buf_init()
118 fb->fb_dma_nsegs = nsegs; in octfpa_buf_init()
120 octfpa_buf_dma_alloc(fb); in octfpa_buf_init()
[all …]
/netbsd-src/sys/arch/hpcarm/dev/
H A Depsonlcd.c166 struct hpcfb_fbconf *fb = &sc->sc_fb; in epsonlcd_mmap() local
168 if (offset < 0 || (fb->hf_bytes_per_plane + fb->hf_offset) < offset) in epsonlcd_mmap()
175 epsonlcd_setup_hpcfbif(struct epsonlcd_softc *sc, struct hpcfb_fbconf *fb) in epsonlcd_setup_hpcfbif() argument
179 memset(fb, 0, sizeof(struct hpcfb_fbconf)); in epsonlcd_setup_hpcfbif()
180 fb->hf_conf_index = 0; /* configuration index */ in epsonlcd_setup_hpcfbif()
181 fb->hf_nconfs = 1; /* how many configurations */ in epsonlcd_setup_hpcfbif()
183 strncpy(fb->hf_name, "Epson S1D138xx LCD Controller", HPCFB_MAXNAMELEN); in epsonlcd_setup_hpcfbif()
186 strncpy(fb->hf_conf_name, "LCD", HPCFB_MAXNAMELEN); in epsonlcd_setup_hpcfbif()
188 fb->hf_height = vc->vc_fbheight; in epsonlcd_setup_hpcfbif()
189 fb->hf_width = vc->vc_fbwidth; in epsonlcd_setup_hpcfbif()
[all …]
H A Dipaq_lcd.c174 struct hpcfb_fbconf *fb; in ipaqlcd_fbinit() local
176 fb = &sc->sc_fbconf; in ipaqlcd_fbinit()
179 memset(fb, 0, sizeof(*fb)); in ipaqlcd_fbinit()
181 fb->hf_conf_index = 0; /* configuration index */ in ipaqlcd_fbinit()
182 fb->hf_nconfs = 1; in ipaqlcd_fbinit()
183 strcpy(fb->hf_name, "built-in video"); in ipaqlcd_fbinit()
184 strcpy(fb->hf_conf_name, "LCD"); in ipaqlcd_fbinit()
186 fb->hf_height = bootinfo->fb_height; in ipaqlcd_fbinit()
187 fb->hf_width = bootinfo->fb_width; in ipaqlcd_fbinit()
191 0, &fb->hf_baseaddr)) { in ipaqlcd_fbinit()
[all …]
H A Dsed_saip.c192 sed1356_init(struct hpcfb_fbconf *fb) in sed1356_init() argument
207 memset(fb, 0, sizeof(*fb)); in sed1356_init()
209 fb->hf_conf_index = 0; /* configuration index */ in sed1356_init()
210 fb->hf_nconfs = 1; /* how many configurations */ in sed1356_init()
211 strcpy(fb->hf_name, "built-in video"); in sed1356_init()
213 strcpy(fb->hf_conf_name, "default"); in sed1356_init()
215 fb->hf_height = bootinfo->fb_height; in sed1356_init()
216 fb->hf_width = bootinfo->fb_width; in sed1356_init()
220 0, &fb->hf_baseaddr)) { in sed1356_init()
224 fb->hf_offset = (u_long)bootinfo->fb_addr - in sed1356_init()
[all …]
/netbsd-src/usr.bin/scmdctl/
H A Dcommon.c59 int common_clear(struct function_block *fb, int fd, bool debug) in common_clear() argument
61 return (*(fb->func_clear))(fd, debug); in common_clear()
65 common_identify(struct function_block *fb, int fd, bool debug, int a_module, struct scmd_identify_r… in common_identify() argument
70 err = (*(fb->func_clear))(fd, debug); in common_identify()
72 err = (*(fb->func_phy_read))(fd, debug, a_module, SCMD_REG_ID, SCMD_REG_ID, &b); in common_identify()
75 err = (*(fb->func_phy_read))(fd, debug, a_module, SCMD_REG_FID, SCMD_REG_FID, &b); in common_identify()
78 err = (*(fb->func_phy_read))(fd, debug, a_module, SCMD_REG_CONFIG_BITS, SCMD_REG_CONFIG_BITS, &b); in common_identify()
81 err = (*(fb->func_phy_read))(fd, debug, a_module, SCMD_REG_SLAVE_ADDR, SCMD_REG_SLAVE_ADDR, &b); in common_identify()
89 int common_diag(struct function_block *fb, int fd, bool debug, int a_module, struct scmd_diag_respo… in common_diag() argument
94 err = (*(fb->func_clear))(fd, debug); in common_diag()
[all …]
/netbsd-src/sys/external/bsd/drm2/drm/
H A Ddrm_gem_framebuffer_helper.c58 drm_gem_fb_destroy(struct drm_framebuffer *fb) in drm_gem_fb_destroy() argument
62 for (plane = 0; plane < __arraycount(fb->obj); plane++) in drm_gem_fb_destroy()
63 drm_gem_object_put_unlocked(fb->obj[plane]); in drm_gem_fb_destroy()
64 drm_framebuffer_cleanup(fb); in drm_gem_fb_destroy()
65 kfree(fb); in drm_gem_fb_destroy()
78 drm_gem_fb_create_handle(struct drm_framebuffer *fb, struct drm_file *file, in drm_gem_fb_create_handle() argument
82 return drm_gem_handle_create(file, fb->obj[0], handlep); in drm_gem_fb_create_handle()
102 struct drm_framebuffer *fb; in drm_gem_fb_create_with_funcs() local
107 fb = kmalloc(sizeof(*fb), GFP_KERNEL); in drm_gem_fb_create_with_funcs()
108 if (fb == NULL) { in drm_gem_fb_create_with_funcs()
[all …]
/netbsd-src/sys/arch/hpcmips/dev/
H A Dmq200.c327 mq200_fbinit(struct hpcfb_fbconf *fb) in mq200_fbinit() argument
343 memset(fb, 0, sizeof(*fb)); in mq200_fbinit()
345 fb->hf_conf_index = 0; /* configuration index */ in mq200_fbinit()
346 fb->hf_nconfs = 1; /* how many configurations */ in mq200_fbinit()
347 strcpy(fb->hf_name, "built-in video"); in mq200_fbinit()
349 strcpy(fb->hf_conf_name, "default"); in mq200_fbinit()
351 fb->hf_height = bootinfo->fb_height; in mq200_fbinit()
352 fb->hf_width = bootinfo->fb_width; in mq200_fbinit()
353 fb->hf_baseaddr = mips_ptob(mips_btop(bootinfo->fb_addr)); in mq200_fbinit()
354 fb->hf_offset = (u_long)bootinfo->fb_addr - fb->hf_baseaddr; in mq200_fbinit()
[all …]
/netbsd-src/sys/external/bsd/drm2/dist/include/drm/
H A Ddrm_framebuffer.h75 int (*create_handle)(struct drm_framebuffer *fb,
221 struct drm_framebuffer *fb,
226 void drm_framebuffer_remove(struct drm_framebuffer *fb);
227 void drm_framebuffer_cleanup(struct drm_framebuffer *fb);
228 void drm_framebuffer_unregister_private(struct drm_framebuffer *fb);
236 static inline void drm_framebuffer_get(struct drm_framebuffer *fb) in drm_framebuffer_get() argument
238 drm_mode_object_get(&fb->base); in drm_framebuffer_get()
248 static inline void drm_framebuffer_put(struct drm_framebuffer *fb) in drm_framebuffer_put() argument
250 drm_mode_object_put(&fb->base); in drm_framebuffer_put()
259 static inline uint32_t drm_framebuffer_read_refcount(const struct drm_framebuffer *fb) in drm_framebuffer_read_refcount() argument
[all …]
/netbsd-src/sys/dev/hpc/
H A Dbivideo.c202 bivideo_getcnfb(struct hpcfb_fbconf *fb) in bivideo_getcnfb() argument
206 return bivideo_init(fb); in bivideo_getcnfb()
210 bivideo_init(struct hpcfb_fbconf *fb) in bivideo_init() argument
225 memset(fb, 0, sizeof(*fb)); in bivideo_init()
227 fb->hf_conf_index = 0; /* configuration index */ in bivideo_init()
228 fb->hf_nconfs = 1; /* how many configurations */ in bivideo_init()
229 strcpy(fb->hf_name, "built-in video"); in bivideo_init()
231 strcpy(fb->hf_conf_name, "default"); in bivideo_init()
233 fb->hf_height = bootinfo->fb_height; in bivideo_init()
234 fb->hf_width = bootinfo->fb_width; in bivideo_init()
[all …]
/netbsd-src/sys/external/bsd/drm/dist/shared-core/
H A Dsis_mm.c91 drm_sis_mem_t *fb = data; in sis_fb_alloc() local
95 req.size = fb->size; in sis_fb_alloc()
99 fb->offset = req.offset; in sis_fb_alloc()
100 fb->free = req.offset; in sis_fb_alloc()
101 if (!add_alloc_set(fb->context, VIDEO_TYPE, fb->free)) { in sis_fb_alloc()
107 fb->offset = 0; in sis_fb_alloc()
108 fb->size = 0; in sis_fb_alloc()
109 fb->free = 0; in sis_fb_alloc()
112 DRM_DEBUG("alloc fb, size = %d, offset = %ld\n", fb->size, req.offset); in sis_fb_alloc()
119 drm_sis_mem_t fb; in sis_fb_free() local
[all …]
/netbsd-src/sys/arch/sun3/dev/
H A Dfb.c1 /* $NetBSD: fb.c,v 1.18 2024/12/21 17:40:11 tsutsui Exp $ */
40 * @(#)fb.c 8.1 (Berkeley) 6/11/93
44 * /dev/fb (indirect frame buffer driver).
48 __KERNEL_RCSID(0, "$NetBSD: fb.c,v 1.18 2024/12/21 17:40:11 tsutsui Exp $");
91 fb_attach(struct fbdevice *fb, int newpri) in fb_attach() argument
95 devfb = fb; in fb_attach()
128 * Common fb ioctl function
131 fbioctlfb(struct fbdevice *fb, u_long cmd, void *data) in fbioctlfb() argument
133 struct fbdriver *fbd = fb->fb_driver; in fbioctlfb()
140 *(struct fbtype *)vp = fb in fbioctlfb()
197 fb_eeprom_setsize(struct fbdevice * fb) fb_eeprom_setsize() argument
267 fb_pfour_get_video(struct fbdevice * fb) fb_pfour_get_video() argument
277 fb_pfour_set_video(struct fbdevice * fb,int on) fb_pfour_set_video() argument
300 fb_pfour_setsize(struct fbdevice * fb) fb_pfour_setsize() argument
[all...]

12345678910>>...27