Lines Matching refs:par
355 struct hvfb_par *par; in synthvid_recv_sub() local
361 par = info->par; in synthvid_recv_sub()
362 msg = (struct synthvid_msg *)par->recv_buf; in synthvid_recv_sub()
367 memcpy(par->init_buf, msg, MAX_VMBUS_PKT_SIZE); in synthvid_recv_sub()
368 complete(&par->wait); in synthvid_recv_sub()
374 if (par->fb_ready) { in synthvid_recv_sub()
379 par->update = msg->feature_chg.is_dirt_needed; in synthvid_recv_sub()
380 if (par->update) in synthvid_recv_sub()
381 schedule_delayed_work(&par->dwork, HVFB_UPDATE_DELAY); in synthvid_recv_sub()
390 struct hvfb_par *par; in synthvid_receive() local
399 par = info->par; in synthvid_receive()
400 recv_buf = (struct synthvid_msg *)par->recv_buf; in synthvid_receive()
416 struct hvfb_par *par = info->par; in synthvid_negotiate_ver() local
417 struct synthvid_msg *msg = (struct synthvid_msg *)par->init_buf; in synthvid_negotiate_ver()
428 t = wait_for_completion_timeout(&par->wait, VSP_TIMEOUT); in synthvid_negotiate_ver()
439 par->synthvid_version = ver; in synthvid_negotiate_ver()
449 struct hvfb_par *par = info->par; in synthvid_connect_vsp() local
471 if (par->synthvid_version == SYNTHVID_VERSION_WIN7) in synthvid_connect_vsp()
490 struct hvfb_par *par = info->par; in synthvid_send_config() local
491 struct synthvid_msg *msg = (struct synthvid_msg *)par->init_buf; in synthvid_send_config()
504 t = wait_for_completion_timeout(&par->wait, VSP_TIMEOUT); in synthvid_send_config()
532 struct hvfb_par *par = container_of(w, struct hvfb_par, dwork.work); in hvfb_update_work() local
533 struct fb_info *info = par->info; in hvfb_update_work()
535 if (par->fb_ready) in hvfb_update_work()
538 if (par->update) in hvfb_update_work()
539 schedule_delayed_work(&par->dwork, HVFB_UPDATE_DELAY); in hvfb_update_work()
545 struct hvfb_par *par; in hvfb_on_panic() local
548 par = container_of(nb, struct hvfb_par, hvfb_panic_nb); in hvfb_on_panic()
549 par->synchronous_fb = true; in hvfb_on_panic()
550 info = par->info; in hvfb_on_panic()
608 struct hvfb_par *par = p->par; in hvfb_cfb_fillrect() local
611 if (par->synchronous_fb) in hvfb_cfb_fillrect()
618 struct hvfb_par *par = p->par; in hvfb_cfb_copyarea() local
621 if (par->synchronous_fb) in hvfb_cfb_copyarea()
628 struct hvfb_par *par = p->par; in hvfb_cfb_imageblit() local
631 if (par->synchronous_fb) in hvfb_cfb_imageblit()
650 struct hvfb_par *par = info->par; in hvfb_get_option() local
665 (par->synthvid_version == SYNTHVID_VERSION_WIN8 && in hvfb_get_option()
667 (par->synthvid_version == SYNTHVID_VERSION_WIN7 && in hvfb_get_option()
682 struct hvfb_par *par = info->par; in hvfb_getmem() local
688 par->mem.name = KBUILD_MODNAME; in hvfb_getmem()
689 par->mem.flags = IORESOURCE_MEM | IORESOURCE_BUSY; in hvfb_getmem()
691 ret = allocate_resource(&hyperv_mmio, &par->mem, in hvfb_getmem()
712 par->mem.end = pci_resource_end(pdev, 0); in hvfb_getmem()
713 par->mem.start = par->mem.end - screen_fb_size + 1; in hvfb_getmem()
714 ret = request_resource(&pdev->resource[0], &par->mem); in hvfb_getmem()
721 fb_virt = ioremap(par->mem.start, screen_fb_size); in hvfb_getmem()
739 info->fix.smem_start = par->mem.start; in hvfb_getmem()
752 release_resource(&par->mem); in hvfb_getmem()
763 struct hvfb_par *par = info->par; in hvfb_putmem() local
766 release_resource(&par->mem); in hvfb_putmem()
774 struct hvfb_par *par; in hvfb_probe() local
783 par = info->par; in hvfb_probe()
784 par->info = info; in hvfb_probe()
785 par->fb_ready = false; in hvfb_probe()
786 init_completion(&par->wait); in hvfb_probe()
787 INIT_DELAYED_WORK(&par->dwork, hvfb_update_work); in hvfb_probe()
839 info->pseudo_palette = par->pseudo_palette; in hvfb_probe()
852 par->fb_ready = true; in hvfb_probe()
854 par->synchronous_fb = false; in hvfb_probe()
855 par->hvfb_panic_nb.notifier_call = hvfb_on_panic; in hvfb_probe()
857 &par->hvfb_panic_nb); in hvfb_probe()
866 cancel_delayed_work_sync(&par->dwork); in hvfb_probe()
876 struct hvfb_par *par = info->par; in hvfb_remove() local
879 &par->hvfb_panic_nb); in hvfb_remove()
881 par->update = false; in hvfb_remove()
882 par->fb_ready = false; in hvfb_remove()
885 cancel_delayed_work_sync(&par->dwork); in hvfb_remove()