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
708 ret = vmbus_allocate_mmio(&par->mem, hdev, pot_start, pot_end, in hvfb_getmem()
715 fb_virt = ioremap(par->mem->start, screen_fb_size); in hvfb_getmem()
733 info->fix.smem_start = par->mem->start; in hvfb_getmem()
746 release_mem_region(par->mem->start, screen_fb_size); in hvfb_getmem()
747 par->mem = NULL; in hvfb_getmem()
758 struct hvfb_par *par = info->par; in hvfb_putmem() local
761 release_mem_region(par->mem->start, screen_fb_size); in hvfb_putmem()
762 par->mem = NULL; in hvfb_putmem()
770 struct hvfb_par *par; in hvfb_probe() local
779 par = info->par; in hvfb_probe()
780 par->info = info; in hvfb_probe()
781 par->fb_ready = false; in hvfb_probe()
782 init_completion(&par->wait); in hvfb_probe()
783 INIT_DELAYED_WORK(&par->dwork, hvfb_update_work); in hvfb_probe()
835 info->pseudo_palette = par->pseudo_palette; in hvfb_probe()
848 par->fb_ready = true; in hvfb_probe()
850 par->synchronous_fb = false; in hvfb_probe()
851 par->hvfb_panic_nb.notifier_call = hvfb_on_panic; in hvfb_probe()
853 &par->hvfb_panic_nb); in hvfb_probe()
862 cancel_delayed_work_sync(&par->dwork); in hvfb_probe()
872 struct hvfb_par *par = info->par; in hvfb_remove() local
875 &par->hvfb_panic_nb); in hvfb_remove()
877 par->update = false; in hvfb_remove()
878 par->fb_ready = false; in hvfb_remove()
881 cancel_delayed_work_sync(&par->dwork); in hvfb_remove()