Lines Matching refs:info

215 	struct fb_info *info;  member
264 struct fb_info *info = hv_get_drvdata(hdev); in synthvid_send_situ() local
267 if (!info) in synthvid_send_situ()
279 msg.situ.video_output[0].depth_bits = info->var.bits_per_pixel; in synthvid_send_situ()
280 msg.situ.video_output[0].width_pixels = info->var.xres; in synthvid_send_situ()
281 msg.situ.video_output[0].height_pixels = info->var.yres; in synthvid_send_situ()
282 msg.situ.video_output[0].pitch_bytes = info->fix.line_length; in synthvid_send_situ()
324 static int synthvid_update(struct fb_info *info) in synthvid_update() argument
326 struct hv_device *hdev = device_to_hv_device(info->device); in synthvid_update()
338 msg.dirt.rect[0].x2 = info->var.xres; in synthvid_update()
339 msg.dirt.rect[0].y2 = info->var.yres; in synthvid_update()
354 struct fb_info *info = hv_get_drvdata(hdev); in synthvid_recv_sub() local
358 if (!info) in synthvid_recv_sub()
361 par = info->par; in synthvid_recv_sub()
389 struct fb_info *info = hv_get_drvdata(hdev); in synthvid_receive() local
396 if (!info) in synthvid_receive()
399 par = info->par; in synthvid_receive()
415 struct fb_info *info = hv_get_drvdata(hdev); in synthvid_negotiate_ver() local
416 struct hvfb_par *par = info->par; in synthvid_negotiate_ver()
448 struct fb_info *info = hv_get_drvdata(hdev); in synthvid_connect_vsp() local
449 struct hvfb_par *par = info->par; in synthvid_connect_vsp()
489 struct fb_info *info = hv_get_drvdata(hdev); in synthvid_send_config() local
490 struct hvfb_par *par = info->par; in synthvid_send_config()
500 msg->vram.user_ctx = msg->vram.vram_gpa = info->fix.smem_start; in synthvid_send_config()
510 if (msg->vram_ack.user_ctx != info->fix.smem_start) { in synthvid_send_config()
533 struct fb_info *info = par->info; in hvfb_update_work() local
536 synthvid_update(info); in hvfb_update_work()
546 struct fb_info *info; in hvfb_on_panic() local
550 info = par->info; in hvfb_on_panic()
551 synthvid_update(info); in hvfb_on_panic()
558 static int hvfb_check_var(struct fb_var_screeninfo *var, struct fb_info *info) in hvfb_check_var() argument
571 static int hvfb_set_par(struct fb_info *info) in hvfb_set_par() argument
573 struct hv_device *hdev = device_to_hv_device(info->device); in hvfb_set_par()
585 unsigned blue, unsigned transp, struct fb_info *info) in hvfb_setcolreg() argument
587 u32 *pal = info->pseudo_palette; in hvfb_setcolreg()
592 pal[regno] = chan_to_field(red, &info->var.red) in hvfb_setcolreg()
593 | chan_to_field(green, &info->var.green) in hvfb_setcolreg()
594 | chan_to_field(blue, &info->var.blue) in hvfb_setcolreg()
595 | chan_to_field(transp, &info->var.transp); in hvfb_setcolreg()
600 static int hvfb_blank(int blank, struct fb_info *info) in hvfb_blank() argument
648 static void hvfb_get_option(struct fb_info *info) in hvfb_get_option() argument
650 struct hvfb_par *par = info->par; in hvfb_get_option()
680 static int hvfb_getmem(struct hv_device *hdev, struct fb_info *info) in hvfb_getmem() argument
682 struct hvfb_par *par = info->par; in hvfb_getmem()
719 info->apertures = alloc_apertures(1); in hvfb_getmem()
720 if (!info->apertures) in hvfb_getmem()
724 info->apertures->ranges[0].base = screen_info.lfb_base; in hvfb_getmem()
725 info->apertures->ranges[0].size = screen_info.lfb_size; in hvfb_getmem()
726 remove_conflicting_framebuffers(info->apertures, in hvfb_getmem()
729 info->apertures->ranges[0].base = pci_resource_start(pdev, 0); in hvfb_getmem()
730 info->apertures->ranges[0].size = pci_resource_len(pdev, 0); in hvfb_getmem()
733 info->fix.smem_start = par->mem->start; in hvfb_getmem()
734 info->fix.smem_len = screen_fb_size; in hvfb_getmem()
735 info->screen_base = fb_virt; in hvfb_getmem()
736 info->screen_size = screen_fb_size; in hvfb_getmem()
756 static void hvfb_putmem(struct fb_info *info) in hvfb_putmem() argument
758 struct hvfb_par *par = info->par; in hvfb_putmem()
760 iounmap(info->screen_base); in hvfb_putmem()
769 struct fb_info *info; in hvfb_probe() local
773 info = framebuffer_alloc(sizeof(struct hvfb_par), &hdev->device); in hvfb_probe()
774 if (!info) { in hvfb_probe()
779 par = info->par; in hvfb_probe()
780 par->info = info; in hvfb_probe()
786 hv_set_drvdata(hdev, info); in hvfb_probe()
793 ret = hvfb_getmem(hdev, info); in hvfb_probe()
799 hvfb_get_option(info); in hvfb_probe()
805 info->flags = FBINFO_DEFAULT; in hvfb_probe()
807 info->var.xres_virtual = info->var.xres = screen_width; in hvfb_probe()
808 info->var.yres_virtual = info->var.yres = screen_height; in hvfb_probe()
809 info->var.bits_per_pixel = screen_depth; in hvfb_probe()
811 if (info->var.bits_per_pixel == 16) { in hvfb_probe()
812 info->var.red = (struct fb_bitfield){11, 5, 0}; in hvfb_probe()
813 info->var.green = (struct fb_bitfield){5, 6, 0}; in hvfb_probe()
814 info->var.blue = (struct fb_bitfield){0, 5, 0}; in hvfb_probe()
815 info->var.transp = (struct fb_bitfield){0, 0, 0}; in hvfb_probe()
817 info->var.red = (struct fb_bitfield){16, 8, 0}; in hvfb_probe()
818 info->var.green = (struct fb_bitfield){8, 8, 0}; in hvfb_probe()
819 info->var.blue = (struct fb_bitfield){0, 8, 0}; in hvfb_probe()
820 info->var.transp = (struct fb_bitfield){24, 8, 0}; in hvfb_probe()
823 info->var.activate = FB_ACTIVATE_NOW; in hvfb_probe()
824 info->var.height = -1; in hvfb_probe()
825 info->var.width = -1; in hvfb_probe()
826 info->var.vmode = FB_VMODE_NONINTERLACED; in hvfb_probe()
828 strcpy(info->fix.id, KBUILD_MODNAME); in hvfb_probe()
829 info->fix.type = FB_TYPE_PACKED_PIXELS; in hvfb_probe()
830 info->fix.visual = FB_VISUAL_TRUECOLOR; in hvfb_probe()
831 info->fix.line_length = screen_width * screen_depth / 8; in hvfb_probe()
832 info->fix.accel = FB_ACCEL_NONE; in hvfb_probe()
834 info->fbops = &hvfb_ops; in hvfb_probe()
835 info->pseudo_palette = par->pseudo_palette; in hvfb_probe()
842 ret = register_framebuffer(info); in hvfb_probe()
858 hvfb_putmem(info); in hvfb_probe()
864 framebuffer_release(info); in hvfb_probe()
871 struct fb_info *info = hv_get_drvdata(hdev); in hvfb_remove() local
872 struct hvfb_par *par = info->par; in hvfb_remove()
880 unregister_framebuffer(info); in hvfb_remove()
886 hvfb_putmem(info); in hvfb_remove()
887 framebuffer_release(info); in hvfb_remove()