Lines Matching refs:fbcon

34 #define m2info (container_of(info, struct matroxfb_dh_fb_info, fbcon))  in matroxfb_dh_setcolreg()
38 if (m2info->fbcon.var.grayscale) { in matroxfb_dh_setcolreg()
42 red = CNVT_TOHW(red, m2info->fbcon.var.red.length); in matroxfb_dh_setcolreg()
43 green = CNVT_TOHW(green, m2info->fbcon.var.green.length); in matroxfb_dh_setcolreg()
44 blue = CNVT_TOHW(blue, m2info->fbcon.var.blue.length); in matroxfb_dh_setcolreg()
45 transp = CNVT_TOHW(transp, m2info->fbcon.var.transp.length); in matroxfb_dh_setcolreg()
47 col = (red << m2info->fbcon.var.red.offset) | in matroxfb_dh_setcolreg()
48 (green << m2info->fbcon.var.green.offset) | in matroxfb_dh_setcolreg()
49 (blue << m2info->fbcon.var.blue.offset) | in matroxfb_dh_setcolreg()
50 (transp << m2info->fbcon.var.transp.offset); in matroxfb_dh_setcolreg()
52 switch (m2info->fbcon.var.bits_per_pixel) { in matroxfb_dh_setcolreg()
123 u_int32_t linelen = m2info->fbcon.var.xres_virtual * (m2info->fbcon.var.bits_per_pixel >> 3); in matroxfb_dh_restore()
175 m2info->fbcon.var.xoffset = var->xoffset; in matroxfb_dh_pan_var()
176 m2info->fbcon.var.yoffset = var->yoffset; in matroxfb_dh_pan_var()
177 pixelsize = m2info->fbcon.var.bits_per_pixel >> 3; in matroxfb_dh_pan_var()
178 linelen = m2info->fbcon.var.xres_virtual * pixelsize; in matroxfb_dh_pan_var()
179 pos = m2info->fbcon.var.yoffset * linelen + m2info->fbcon.var.xoffset * pixelsize; in matroxfb_dh_pan_var()
264 #define m2info (container_of(info, struct matroxfb_dh_fb_info, fbcon)) in matroxfb_dh_open()
273 err = minfo->fbops.fb_open(&minfo->fbcon, user); in matroxfb_dh_open()
283 #define m2info (container_of(info, struct matroxfb_dh_fb_info, fbcon)) in matroxfb_dh_release()
288 err = minfo->fbops.fb_release(&minfo->fbcon, user); in matroxfb_dh_release()
300 struct fb_fix_screeninfo *fix = &m2info->fbcon.fix; in matroxfb_dh_init_fix()
315 #define m2info (container_of(info, struct matroxfb_dh_fb_info, fbcon)) in matroxfb_dh_check_var()
325 #define m2info (container_of(info, struct matroxfb_dh_fb_info, fbcon)) in matroxfb_dh_set_par()
337 m2info->fbcon.screen_base = vaddr_va(m2info->video.vbase); in matroxfb_dh_set_par()
338 m2info->fbcon.fix.visual = visual; in matroxfb_dh_set_par()
339 m2info->fbcon.fix.type = FB_TYPE_PACKED_PIXELS; in matroxfb_dh_set_par()
340 m2info->fbcon.fix.type_aux = 0; in matroxfb_dh_set_par()
341 m2info->fbcon.fix.line_length = (var->xres_virtual * var->bits_per_pixel) >> 3; in matroxfb_dh_set_par()
349 matroxfb_var2my(&m2info->fbcon.var, &mt); in matroxfb_dh_set_par()
354 …pos = (m2info->fbcon.var.yoffset * m2info->fbcon.var.xres_virtual + m2info->fbcon.var.xoffset) * m… in matroxfb_dh_set_par()
397 #define m2info (container_of(info, struct matroxfb_dh_fb_info, fbcon)) in matroxfb_dh_pan_display()
412 if (vblank->vcount >= m2info->fbcon.var.yres) in matroxfb_dh_get_vblank()
427 #define m2info (container_of(info, struct matroxfb_dh_fb_info, fbcon)) in matroxfb_dh_ioctl()
460 return minfo->fbcon.fbops->fb_ioctl(&minfo->fbcon, cmd, arg); in matroxfb_dh_ioctl()
553 #define m2info (container_of(info, struct matroxfb_dh_fb_info, fbcon)) in matroxfb_dh_blank()
605 m2info->fbcon.fbops = &matroxfb_dh_ops; in matroxfb_dh_regit()
606 m2info->fbcon.flags = FBINFO_HWACCEL_XPAN | in matroxfb_dh_regit()
608 m2info->fbcon.pseudo_palette = m2info->cmap; in matroxfb_dh_regit()
609 fb_alloc_cmap(&m2info->fbcon.cmap, 256, 1); in matroxfb_dh_regit()
633 if (register_framebuffer(&m2info->fbcon)) { in matroxfb_dh_regit()
637 fb_set_var(&m2info->fbcon, &matroxfb_dh_defined); in matroxfb_dh_regit()
659 minfo->fbcon.node, m2info->fbcon.node); in matroxfb_dh_registerfb()
682 id = m2info->fbcon.node; in matroxfb_dh_deregisterfb()
683 unregister_framebuffer(&m2info->fbcon); in matroxfb_dh_deregisterfb()