Lines Matching refs:fb
63 struct bcm2835_fb_config fb; member
77 bcm_fb_init(struct bcmsc_softc *sc, struct bcm2835_fb_config *fb) in bcm_fb_init() argument
83 memset(fb, 0, sizeof(*fb)); in bcm_fb_init()
84 if (bcm2835_mbox_fb_get_w_h(fb) != 0) in bcm_fb_init()
86 if (bcm2835_mbox_fb_get_bpp(fb) != 0) in bcm_fb_init()
88 if (fb->bpp < FB_DEPTH) { in bcm_fb_init()
90 fb->bpp, FB_DEPTH); in bcm_fb_init()
91 fb->bpp = FB_DEPTH; in bcm_fb_init()
94 fb->bpp); in bcm_fb_init()
96 fb->vxres = fb->xres; in bcm_fb_init()
97 fb->vyres = fb->yres; in bcm_fb_init()
98 fb->xoffset = fb->yoffset = 0; in bcm_fb_init()
100 if ((err = bcm2835_mbox_fb_init(fb)) != 0) { in bcm_fb_init()
112 struct bcm2835_fb_config fb; in bcm_fb_setup_fbd() local
116 err = bcm_fb_init(sc, &fb); in bcm_fb_setup_fbd()
123 sc->info.fb_vbase = (intptr_t)pmap_mapdev(fb.base, fb.size); in bcm_fb_setup_fbd()
124 sc->info.fb_pbase = fb.base; in bcm_fb_setup_fbd()
125 sc->info.fb_size = fb.size; in bcm_fb_setup_fbd()
126 sc->info.fb_bpp = sc->info.fb_depth = fb.bpp; in bcm_fb_setup_fbd()
127 sc->info.fb_stride = fb.pitch; in bcm_fb_setup_fbd()
128 sc->info.fb_width = fb.xres; in bcm_fb_setup_fbd()
129 sc->info.fb_height = fb.yres; in bcm_fb_setup_fbd()
162 device_printf(sc->dev, "%dx%d(%dx%d@%d,%d) %dbpp\n", fb.xres, fb.yres, in bcm_fb_setup_fbd()
163 fb.vxres, fb.vyres, fb.xoffset, fb.yoffset, fb.bpp); in bcm_fb_setup_fbd()
166 sc->fbswap, fb.pitch, fb.base, fb.size); in bcm_fb_setup_fbd()
175 struct bcm2835_fb_config fb; in bcm_fb_resync_sysctl() local
184 bcm_fb_init(sc, &fb); in bcm_fb_resync_sysctl()