Lines Matching refs:info
57 terasic_mtl_fbd_panel_info(struct terasic_mtl_softc *sc, struct fb_info *info)
70 info->fb_width = dts_value[0];
71 info->fb_height = dts_value[1];
72 info->fb_bpp = info->fb_depth = 32;
73 info->fb_stride = info->fb_width * (info->fb_depth / 8);
79 if (info->fb_width != TERASIC_MTL_FB_WIDTH ||
80 info->fb_height != TERASIC_MTL_FB_HEIGHT ||
81 info->fb_stride != 3200 ||
82 info->fb_bpp != 32 || info->fb_depth != 32) {
85 (unsigned)info->fb_width, (unsigned)info->fb_height);
95 struct fb_info *info;
98 info = &sc->mtl_fb_info;
99 info->fb_name = device_get_nameunit(sc->mtl_dev);
100 info->fb_pbase = rman_get_start(sc->mtl_pixel_res);
101 info->fb_size = rman_get_size(sc->mtl_pixel_res);
102 info->fb_vbase = (intptr_t)pmap_mapdev(info->fb_pbase, info->fb_size);
103 if (terasic_mtl_fbd_panel_info(sc, info) != 0) {
105 info->fb_bpp = info->fb_depth = 32;
106 info->fb_width = 800;
107 info->fb_height = 480;
108 info->fb_stride = info->fb_width * (info->fb_depth / 8);