Lines Matching refs:fb
144 struct bcm2835_fb_config fb; in bcm_fb_attach() local
154 memset(&fb, 0, sizeof(fb)); in bcm_fb_attach()
155 if (bcm2835_mbox_fb_get_w_h(&fb) != 0) in bcm_fb_attach()
157 fb.bpp = FB_DEPTH; in bcm_fb_attach()
158 fb.vxres = fb.xres; in bcm_fb_attach()
159 fb.vyres = fb.yres; in bcm_fb_attach()
160 fb.xoffset = fb.yoffset = 0; in bcm_fb_attach()
161 if (bcm2835_mbox_fb_init(&fb) != 0) in bcm_fb_attach()
164 sc->fb_addr = (intptr_t)pmap_mapdev(fb.base, fb.size); in bcm_fb_attach()
165 sc->fb_paddr = fb.base; in bcm_fb_attach()
166 sc->fb_size = fb.size; in bcm_fb_attach()
167 sc->depth = fb.bpp; in bcm_fb_attach()
168 sc->stride = fb.pitch; in bcm_fb_attach()
169 sc->width = fb.xres; in bcm_fb_attach()
170 sc->height = fb.yres; in bcm_fb_attach()
179 device_printf(dev, "%dx%d(%dx%d@%d,%d) %dbpp\n", fb.xres, fb.yres, in bcm_fb_attach()
180 fb.vxres, fb.vyres, fb.xoffset, fb.yoffset, fb.bpp); in bcm_fb_attach()
183 sc->fbswap, fb.pitch, fb.base, fb.size); in bcm_fb_attach()
677 struct fbtype *fb; in bcmfb_ioctl() local
683 fb = (struct fbtype *)data; in bcmfb_ioctl()
684 fb->fb_type = FBTYPE_PCIMISC; in bcmfb_ioctl()
685 fb->fb_height = sc->height; in bcmfb_ioctl()
686 fb->fb_width = sc->width; in bcmfb_ioctl()
687 fb->fb_depth = sc->depth; in bcmfb_ioctl()
689 fb->fb_cmsize = 0; in bcmfb_ioctl()
691 fb->fb_cmsize = 1 << sc->depth; in bcmfb_ioctl()
692 fb->fb_size = sc->fb_size; in bcmfb_ioctl()