Lines Matching refs:dinfo
131 static void get_initial_mode(struct intelfb_info *dinfo);
132 static void update_dinfo(struct intelfb_info *dinfo,
164 static int intelfb_set_fbinfo(struct intelfb_info *dinfo);
413 static void cleanup(struct intelfb_info *dinfo) in cleanup() argument
417 if (!dinfo) in cleanup()
420 intelfbhw_disable_irq(dinfo); in cleanup()
422 fb_dealloc_cmap(&dinfo->info->cmap); in cleanup()
423 kfree(dinfo->info->pixmap.addr); in cleanup()
425 if (dinfo->registered) in cleanup()
426 unregister_framebuffer(dinfo->info); in cleanup()
428 arch_phys_wc_del(dinfo->wc_cookie); in cleanup()
430 if (dinfo->fbmem_gart && dinfo->gtt_fb_mem) { in cleanup()
431 agp_unbind_memory(dinfo->gtt_fb_mem); in cleanup()
432 agp_free_memory(dinfo->gtt_fb_mem); in cleanup()
434 if (dinfo->gtt_cursor_mem) { in cleanup()
435 agp_unbind_memory(dinfo->gtt_cursor_mem); in cleanup()
436 agp_free_memory(dinfo->gtt_cursor_mem); in cleanup()
438 if (dinfo->gtt_ring_mem) { in cleanup()
439 agp_unbind_memory(dinfo->gtt_ring_mem); in cleanup()
440 agp_free_memory(dinfo->gtt_ring_mem); in cleanup()
445 intelfb_delete_i2c_busses(dinfo); in cleanup()
448 if (dinfo->mmio_base) in cleanup()
449 iounmap((void __iomem *)dinfo->mmio_base); in cleanup()
450 if (dinfo->aperture.virtual) in cleanup()
451 iounmap((void __iomem *)dinfo->aperture.virtual); in cleanup()
453 if (dinfo->flag & INTELFB_MMIO_ACQUIRED) in cleanup()
454 release_mem_region(dinfo->mmio_base_phys, INTEL_REG_SIZE); in cleanup()
455 if (dinfo->flag & INTELFB_FB_ACQUIRED) in cleanup()
456 release_mem_region(dinfo->aperture.physical, in cleanup()
457 dinfo->aperture.size); in cleanup()
458 framebuffer_release(dinfo->info); in cleanup()
461 #define bailout(dinfo) do { \ argument
463 cleanup(dinfo); \
473 struct intelfb_info *dinfo; in intelfb_pci_register() local
502 dinfo = info->par; in intelfb_pci_register()
503 dinfo->info = info; in intelfb_pci_register()
504 dinfo->fbops = &intel_fb_ops; in intelfb_pci_register()
505 dinfo->pdev = pdev; in intelfb_pci_register()
516 dinfo->fixed_mode = fixed; in intelfb_pci_register()
521 cleanup(dinfo); in intelfb_pci_register()
537 dinfo->aperture.physical = pci_resource_start(pdev, aperture_bar); in intelfb_pci_register()
538 dinfo->aperture.size = pci_resource_len(pdev, aperture_bar); in intelfb_pci_register()
539 dinfo->mmio_base_phys = pci_resource_start(pdev, mmio_bar); in intelfb_pci_register()
547 if (!request_mem_region(dinfo->aperture.physical, dinfo->aperture.size, in intelfb_pci_register()
550 cleanup(dinfo); in intelfb_pci_register()
554 dinfo->flag |= INTELFB_FB_ACQUIRED; in intelfb_pci_register()
556 if (!request_mem_region(dinfo->mmio_base_phys, in intelfb_pci_register()
560 cleanup(dinfo); in intelfb_pci_register()
564 dinfo->flag |= INTELFB_MMIO_ACQUIRED; in intelfb_pci_register()
567 dinfo->pci_chipset = pdev->device; in intelfb_pci_register()
569 if (intelfbhw_get_chipset(pdev, dinfo)) { in intelfb_pci_register()
570 cleanup(dinfo); in intelfb_pci_register()
575 cleanup(dinfo); in intelfb_pci_register()
582 PCI_FUNC(pdev->devfn), dinfo->name, in intelfb_pci_register()
586 dinfo->accel = accel; in intelfb_pci_register()
587 dinfo->hwcursor = hwcursor; in intelfb_pci_register()
589 if (NOACCEL_CHIPSET(dinfo) && dinfo->accel == 1) { in intelfb_pci_register()
591 dinfo->name); in intelfb_pci_register()
592 dinfo->accel = 0; in intelfb_pci_register()
597 dinfo->fb.size = ROUND_UP_TO_PAGE(stolen_size); in intelfb_pci_register()
598 dinfo->fbmem_gart = 0; in intelfb_pci_register()
600 dinfo->fb.size = MB(vram); in intelfb_pci_register()
601 dinfo->fbmem_gart = 1; in intelfb_pci_register()
605 if (dinfo->accel) { in intelfb_pci_register()
606 dinfo->ring.size = RINGBUFFER_SIZE; in intelfb_pci_register()
607 dinfo->ring_tail_mask = dinfo->ring.size - 1; in intelfb_pci_register()
609 if (dinfo->hwcursor) in intelfb_pci_register()
610 dinfo->cursor.size = HW_CURSOR_SIZE; in intelfb_pci_register()
615 cleanup(dinfo); in intelfb_pci_register()
623 cleanup(dinfo); in intelfb_pci_register()
633 if (dinfo->accel) in intelfb_pci_register()
634 dinfo->ring.offset = offset + gtt_info.current_memory; in intelfb_pci_register()
635 if (dinfo->hwcursor) in intelfb_pci_register()
636 dinfo->cursor.offset = offset + in intelfb_pci_register()
637 + gtt_info.current_memory + (dinfo->ring.size >> 12); in intelfb_pci_register()
638 if (dinfo->fbmem_gart) in intelfb_pci_register()
639 dinfo->fb.offset = offset + in intelfb_pci_register()
640 + gtt_info.current_memory + (dinfo->ring.size >> 12) in intelfb_pci_register()
641 + (dinfo->cursor.size >> 12); in intelfb_pci_register()
646 dinfo->aperture.virtual = (u8 __iomem *)ioremap_wc in intelfb_pci_register()
647 (dinfo->aperture.physical, ((offset + dinfo->fb.offset) << 12) in intelfb_pci_register()
648 + dinfo->fb.size); in intelfb_pci_register()
649 if (!dinfo->aperture.virtual) { in intelfb_pci_register()
652 cleanup(dinfo); in intelfb_pci_register()
656 dinfo->mmio_base = in intelfb_pci_register()
657 (u8 __iomem *)ioremap(dinfo->mmio_base_phys, in intelfb_pci_register()
659 if (!dinfo->mmio_base) { in intelfb_pci_register()
662 cleanup(dinfo); in intelfb_pci_register()
666 if (dinfo->accel) { in intelfb_pci_register()
667 if (!(dinfo->gtt_ring_mem = in intelfb_pci_register()
668 agp_allocate_memory(bridge, dinfo->ring.size >> 12, in intelfb_pci_register()
672 cleanup(dinfo); in intelfb_pci_register()
675 if (agp_bind_memory(dinfo->gtt_ring_mem, in intelfb_pci_register()
676 dinfo->ring.offset)) { in intelfb_pci_register()
679 cleanup(dinfo); in intelfb_pci_register()
682 dinfo->ring.physical = dinfo->aperture.physical in intelfb_pci_register()
683 + (dinfo->ring.offset << 12); in intelfb_pci_register()
684 dinfo->ring.virtual = dinfo->aperture.virtual in intelfb_pci_register()
685 + (dinfo->ring.offset << 12); in intelfb_pci_register()
686 dinfo->ring_head = 0; in intelfb_pci_register()
688 if (dinfo->hwcursor) { in intelfb_pci_register()
689 agp_memtype = dinfo->mobile ? AGP_PHYSICAL_MEMORY in intelfb_pci_register()
691 if (!(dinfo->gtt_cursor_mem = in intelfb_pci_register()
692 agp_allocate_memory(bridge, dinfo->cursor.size >> 12, in intelfb_pci_register()
696 cleanup(dinfo); in intelfb_pci_register()
699 if (agp_bind_memory(dinfo->gtt_cursor_mem, in intelfb_pci_register()
700 dinfo->cursor.offset)) { in intelfb_pci_register()
703 cleanup(dinfo); in intelfb_pci_register()
706 if (dinfo->mobile) in intelfb_pci_register()
707 dinfo->cursor.physical in intelfb_pci_register()
708 = dinfo->gtt_cursor_mem->physical; in intelfb_pci_register()
710 dinfo->cursor.physical = dinfo->aperture.physical in intelfb_pci_register()
711 + (dinfo->cursor.offset << 12); in intelfb_pci_register()
712 dinfo->cursor.virtual = dinfo->aperture.virtual in intelfb_pci_register()
713 + (dinfo->cursor.offset << 12); in intelfb_pci_register()
715 if (dinfo->fbmem_gart) { in intelfb_pci_register()
716 if (!(dinfo->gtt_fb_mem = in intelfb_pci_register()
717 agp_allocate_memory(bridge, dinfo->fb.size >> 12, in intelfb_pci_register()
721 dinfo->fbmem_gart = 0; in intelfb_pci_register()
723 if (agp_bind_memory(dinfo->gtt_fb_mem, in intelfb_pci_register()
724 dinfo->fb.offset)) { in intelfb_pci_register()
727 dinfo->fbmem_gart = 0; in intelfb_pci_register()
732 if (!dinfo->fbmem_gart) in intelfb_pci_register()
733 dinfo->fb.offset = 0; /* starts at offset 0 */ in intelfb_pci_register()
734 dinfo->fb.physical = dinfo->aperture.physical in intelfb_pci_register()
735 + (dinfo->fb.offset << 12); in intelfb_pci_register()
736 dinfo->fb.virtual = dinfo->aperture.virtual + (dinfo->fb.offset << 12); in intelfb_pci_register()
737 dinfo->fb_start = dinfo->fb.offset << 12; in intelfb_pci_register()
743 dinfo->wc_cookie = arch_phys_wc_add(dinfo->aperture.physical, in intelfb_pci_register()
744 dinfo->aperture.size); in intelfb_pci_register()
747 dinfo->fb.physical, dinfo->fb.offset, dinfo->fb.size, in intelfb_pci_register()
748 dinfo->fb.virtual); in intelfb_pci_register()
750 dinfo->mmio_base_phys, INTEL_REG_SIZE, in intelfb_pci_register()
751 dinfo->mmio_base); in intelfb_pci_register()
753 dinfo->ring.physical, dinfo->ring.size, in intelfb_pci_register()
754 dinfo->ring.virtual); in intelfb_pci_register()
756 dinfo->cursor.physical, dinfo->cursor.size, in intelfb_pci_register()
757 dinfo->cursor.virtual, dinfo->cursor.offset, in intelfb_pci_register()
758 dinfo->cursor.physical); in intelfb_pci_register()
765 bailout(dinfo); in intelfb_pci_register()
771 dvo = intelfbhw_check_non_crt(dinfo); in intelfb_pci_register()
773 dinfo->fixed_mode = 1; in intelfb_pci_register()
789 bailout(dinfo); in intelfb_pci_register()
791 if (FIXED_MODE(dinfo) && in intelfb_pci_register()
794 cleanup(dinfo); in intelfb_pci_register()
799 bailout(dinfo); in intelfb_pci_register()
804 get_initial_mode(dinfo); in intelfb_pci_register()
807 bailout(dinfo); in intelfb_pci_register()
809 if (FIXED_MODE(dinfo)) /* remap fb address */ in intelfb_pci_register()
810 update_dinfo(dinfo, &dinfo->initial_var); in intelfb_pci_register()
813 bailout(dinfo); in intelfb_pci_register()
816 if (intelfb_set_fbinfo(dinfo)) { in intelfb_pci_register()
817 cleanup(dinfo); in intelfb_pci_register()
822 bailout(dinfo); in intelfb_pci_register()
826 intelfb_create_i2c_busses(dinfo); in intelfb_pci_register()
830 bailout(dinfo); in intelfb_pci_register()
832 pci_set_drvdata(pdev, dinfo); in intelfb_pci_register()
835 i = intelfbhw_read_hw_state(dinfo, &dinfo->save_state, in intelfb_pci_register()
839 bailout(dinfo); in intelfb_pci_register()
842 intelfbhw_print_hw_state(dinfo, &dinfo->save_state); in intelfb_pci_register()
845 bailout(dinfo); in intelfb_pci_register()
848 dinfo->pipe = intelfbhw_active_pipe(&dinfo->save_state); in intelfb_pci_register()
851 if (dinfo->hwcursor) { in intelfb_pci_register()
852 intelfbhw_cursor_init(dinfo); in intelfb_pci_register()
853 intelfbhw_cursor_reset(dinfo); in intelfb_pci_register()
857 bailout(dinfo); in intelfb_pci_register()
860 if (dinfo->accel) in intelfb_pci_register()
861 intelfbhw_2d_start(dinfo); in intelfb_pci_register()
864 bailout(dinfo); in intelfb_pci_register()
867 bailout(dinfo); in intelfb_pci_register()
869 if (register_framebuffer(dinfo->info) < 0) { in intelfb_pci_register()
871 cleanup(dinfo); in intelfb_pci_register()
875 dinfo->registered = 1; in intelfb_pci_register()
876 dinfo->open = 0; in intelfb_pci_register()
878 init_waitqueue_head(&dinfo->vsync.wait); in intelfb_pci_register()
879 spin_lock_init(&dinfo->int_lock); in intelfb_pci_register()
880 dinfo->irq_flags = 0; in intelfb_pci_register()
881 dinfo->vsync.pan_display = 0; in intelfb_pci_register()
882 dinfo->vsync.pan_offset = 0; in intelfb_pci_register()
895 struct intelfb_info *dinfo = pci_get_drvdata(pdev); in intelfb_pci_unregister() local
899 if (!dinfo) in intelfb_pci_unregister()
902 cleanup(dinfo); in intelfb_pci_unregister()
939 static void get_initial_mode(struct intelfb_info *dinfo) in get_initial_mode() argument
946 dinfo->initial_vga = 1; in get_initial_mode()
947 dinfo->initial_fb_base = screen_info.lfb_base; in get_initial_mode()
948 dinfo->initial_video_ram = screen_info.lfb_size * KB(64); in get_initial_mode()
949 dinfo->initial_pitch = screen_info.lfb_linelength; in get_initial_mode()
951 var = &dinfo->initial_var; in get_initial_mode()
966 dinfo->initial_fb_base, dinfo->initial_video_ram, in get_initial_mode()
967 BtoKB(dinfo->initial_video_ram)); in get_initial_mode()
971 dinfo->initial_pitch); in get_initial_mode()
1006 static int intelfb_init_var(struct intelfb_info *dinfo) in intelfb_init_var() argument
1013 var = &dinfo->info->var; in intelfb_init_var()
1014 if (FIXED_MODE(dinfo)) { in intelfb_init_var()
1015 memcpy(var, &dinfo->initial_var, in intelfb_init_var()
1019 const u8 *edid_s = fb_firmware_edid(&dinfo->pdev->dev); in intelfb_init_var()
1027 &dinfo->info->monspecs); in intelfb_init_var()
1035 msrc = fb_find_mode(var, dinfo->info, mode, in intelfb_init_var()
1036 dinfo->info->monspecs.modedb, in intelfb_init_var()
1037 dinfo->info->monspecs.modedb_len, in intelfb_init_var()
1044 msrc = fb_find_mode(var, dinfo->info, mode, in intelfb_init_var()
1054 msrc = fb_find_mode(var, dinfo->info, PREFERRED_MODE, in intelfb_init_var()
1072 dinfo->fb.size / 2 / (var->bits_per_pixel * var->xres); in intelfb_init_var()
1079 if (dinfo->accel) in intelfb_init_var()
1087 static int intelfb_set_fbinfo(struct intelfb_info *dinfo) in intelfb_set_fbinfo() argument
1089 struct fb_info *info = dinfo->info; in intelfb_set_fbinfo()
1095 info->pseudo_palette = dinfo->pseudo_palette; in intelfb_set_fbinfo()
1102 if (intelfb_init_var(dinfo)) in intelfb_set_fbinfo()
1106 strcpy(info->fix.id, dinfo->name); in intelfb_set_fbinfo()
1107 info->fix.smem_start = dinfo->fb.physical; in intelfb_set_fbinfo()
1108 info->fix.smem_len = dinfo->fb.size; in intelfb_set_fbinfo()
1114 info->fix.mmio_start = dinfo->mmio_base_phys; in intelfb_set_fbinfo()
1117 update_dinfo(dinfo, &info->var); in intelfb_set_fbinfo()
1123 static void update_dinfo(struct intelfb_info *dinfo, in update_dinfo() argument
1128 dinfo->bpp = var->bits_per_pixel; in update_dinfo()
1129 dinfo->depth = intelfb_var_to_depth(var); in update_dinfo()
1130 dinfo->xres = var->xres; in update_dinfo()
1131 dinfo->yres = var->xres; in update_dinfo()
1132 dinfo->pixclock = var->pixclock; in update_dinfo()
1134 dinfo->info->fix.visual = dinfo->visual; in update_dinfo()
1135 dinfo->info->fix.line_length = dinfo->pitch; in update_dinfo()
1137 switch (dinfo->bpp) { in update_dinfo()
1139 dinfo->visual = FB_VISUAL_PSEUDOCOLOR; in update_dinfo()
1140 dinfo->pitch = var->xres_virtual; in update_dinfo()
1143 dinfo->visual = FB_VISUAL_TRUECOLOR; in update_dinfo()
1144 dinfo->pitch = var->xres_virtual * 2; in update_dinfo()
1147 dinfo->visual = FB_VISUAL_TRUECOLOR; in update_dinfo()
1148 dinfo->pitch = var->xres_virtual * 4; in update_dinfo()
1153 if (IS_I9XX(dinfo)) in update_dinfo()
1154 dinfo->pitch = ROUND_UP_TO(dinfo->pitch, STRIDE_ALIGNMENT_I9XX); in update_dinfo()
1156 dinfo->pitch = ROUND_UP_TO(dinfo->pitch, STRIDE_ALIGNMENT); in update_dinfo()
1158 if (FIXED_MODE(dinfo)) in update_dinfo()
1159 dinfo->pitch = dinfo->initial_pitch; in update_dinfo()
1161 dinfo->info->screen_base = (char __iomem *)dinfo->fb.virtual; in update_dinfo()
1162 dinfo->info->fix.line_length = dinfo->pitch; in update_dinfo()
1163 dinfo->info->fix.visual = dinfo->visual; in update_dinfo()
1174 struct intelfb_info *dinfo = GET_DINFO(info); in intelfb_open() local
1177 dinfo->open++; in intelfb_open()
1184 struct intelfb_info *dinfo = GET_DINFO(info); in intelfb_release() local
1187 dinfo->open--; in intelfb_release()
1189 if (!dinfo->open) in intelfb_release()
1190 intelfbhw_disable_irq(dinfo); in intelfb_release()
1201 struct intelfb_info *dinfo; in intelfb_check_var() local
1215 dinfo = GET_DINFO(info); in intelfb_check_var()
1218 if (intelfbhw_validate_mode(dinfo, var) != 0) in intelfb_check_var()
1252 if (FIXED_MODE(dinfo) && in intelfb_check_var()
1254 var->yres_virtual > dinfo->initial_var.yres_virtual || in intelfb_check_var()
1255 var->yres_virtual < dinfo->initial_var.yres || in intelfb_check_var()
1319 struct intelfb_info *dinfo = GET_DINFO(info); in intelfb_set_par() local
1321 if (FIXED_MODE(dinfo)) { in intelfb_set_par()
1340 if (ACCEL(dinfo, info)) in intelfb_set_par()
1341 intelfbhw_2d_stop(dinfo); in intelfb_set_par()
1343 memcpy(hw, &dinfo->save_state, sizeof(*hw)); in intelfb_set_par()
1344 if (intelfbhw_mode_to_hw(dinfo, hw, &info->var)) in intelfb_set_par()
1346 if (intelfbhw_program_mode(dinfo, hw, 0)) in intelfb_set_par()
1350 intelfbhw_read_hw_state(dinfo, hw, 0); in intelfb_set_par()
1351 intelfbhw_print_hw_state(dinfo, hw); in intelfb_set_par()
1354 update_dinfo(dinfo, &info->var); in intelfb_set_par()
1356 if (ACCEL(dinfo, info)) in intelfb_set_par()
1357 intelfbhw_2d_start(dinfo); in intelfb_set_par()
1363 if (ACCEL(dinfo, info)) { in intelfb_set_par()
1381 struct intelfb_info *dinfo = GET_DINFO(info); in intelfb_setcolreg() local
1384 DBG_MSG("intelfb_setcolreg: regno %d, depth %d\n", regno, dinfo->depth); in intelfb_setcolreg()
1390 if (dinfo->depth == 8) { in intelfb_setcolreg()
1395 intelfbhw_setcolreg(dinfo, regno, red, green, blue, in intelfb_setcolreg()
1400 switch (dinfo->depth) { in intelfb_setcolreg()
1402 dinfo->pseudo_palette[regno] = ((red & 0xf800) >> 1) | in intelfb_setcolreg()
1407 dinfo->pseudo_palette[regno] = (red & 0xf800) | in intelfb_setcolreg()
1412 dinfo->pseudo_palette[regno] = ((red & 0xff00) << 8) | in intelfb_setcolreg()
1440 struct intelfb_info *dinfo = GET_DINFO(info); in intelfb_ioctl() local
1448 retval = intelfbhw_wait_for_vsync(dinfo, pipe); in intelfb_ioctl()
1460 struct intelfb_info *dinfo = GET_DINFO(info); in intelfb_fillrect() local
1467 if (!ACCEL(dinfo, info) || dinfo->depth == 4) { in intelfb_fillrect()
1477 if (dinfo->depth != 8) in intelfb_fillrect()
1478 color = dinfo->pseudo_palette[rect->color]; in intelfb_fillrect()
1482 intelfbhw_do_fillrect(dinfo, rect->dx, rect->dy, in intelfb_fillrect()
1484 dinfo->pitch, info->var.bits_per_pixel, in intelfb_fillrect()
1491 struct intelfb_info *dinfo = GET_DINFO(info); in intelfb_copyarea() local
1497 if (!ACCEL(dinfo, info) || dinfo->depth == 4) { in intelfb_copyarea()
1502 intelfbhw_do_bitblt(dinfo, region->sx, region->sy, region->dx, in intelfb_copyarea()
1504 dinfo->pitch, info->var.bits_per_pixel); in intelfb_copyarea()
1510 struct intelfb_info *dinfo = GET_DINFO(info); in intelfb_imageblit() local
1517 if (!ACCEL(dinfo, info) || dinfo->depth == 4 in intelfb_imageblit()
1523 if (dinfo->depth != 8) { in intelfb_imageblit()
1524 fgcolor = dinfo->pseudo_palette[image->fg_color]; in intelfb_imageblit()
1525 bgcolor = dinfo->pseudo_palette[image->bg_color]; in intelfb_imageblit()
1531 if (!intelfbhw_do_drawglyph(dinfo, fgcolor, bgcolor, image->width, in intelfb_imageblit()
1534 dinfo->pitch, info->var.bits_per_pixel)) { in intelfb_imageblit()
1542 struct intelfb_info *dinfo = GET_DINFO(info); in intelfb_cursor() local
1548 if (!dinfo->hwcursor) in intelfb_cursor()
1551 intelfbhw_cursor_hide(dinfo); in intelfb_cursor()
1554 physical = (dinfo->mobile || IS_I9XX(dinfo)) ? dinfo->cursor.physical : in intelfb_cursor()
1555 (dinfo->cursor.offset << 12); in intelfb_cursor()
1565 intelfbhw_cursor_init(dinfo); in intelfb_cursor()
1566 intelfbhw_cursor_reset(dinfo); in intelfb_cursor()
1567 intelfbhw_cursor_setpos(dinfo, cursor->image.dx, in intelfb_cursor()
1570 if (dinfo->depth != 8) { in intelfb_cursor()
1571 fg =dinfo->pseudo_palette[cursor->image.fg_color]; in intelfb_cursor()
1572 bg =dinfo->pseudo_palette[cursor->image.bg_color]; in intelfb_cursor()
1577 intelfbhw_cursor_setcolor(dinfo, bg, fg); in intelfb_cursor()
1578 intelfbhw_cursor_load(dinfo, cursor->image.width, in intelfb_cursor()
1580 dinfo->cursor_src); in intelfb_cursor()
1583 intelfbhw_cursor_show(dinfo); in intelfb_cursor()
1593 intelfbhw_cursor_setpos(dinfo, dx, dy); in intelfb_cursor()
1600 intelfbhw_cursor_reset(dinfo); in intelfb_cursor()
1606 if (dinfo->depth != 8) { in intelfb_cursor()
1607 fg = dinfo->pseudo_palette[cursor->image.fg_color]; in intelfb_cursor()
1608 bg = dinfo->pseudo_palette[cursor->image.bg_color]; in intelfb_cursor()
1614 intelfbhw_cursor_setcolor(dinfo, bg, fg); in intelfb_cursor()
1642 memcpy(dinfo->cursor_src, src, size); in intelfb_cursor()
1644 intelfbhw_cursor_load(dinfo, cursor->image.width, in intelfb_cursor()
1649 intelfbhw_cursor_show(dinfo); in intelfb_cursor()
1656 struct intelfb_info *dinfo = GET_DINFO(info); in intelfb_sync() local
1662 if (dinfo->ring_lockup) in intelfb_sync()
1665 intelfbhw_do_sync(dinfo); in intelfb_sync()