Lines Matching refs:domid
38 static void get_suspend_file(char buf[], uint32_t domid) in get_suspend_file() argument
40 snprintf(buf, SUSPEND_FILE_BUFLEN, SUSPEND_LOCK_FILE, domid); in get_suspend_file()
43 static int lock_suspend_event(xc_interface *xch, uint32_t domid, int *lockfd) in lock_suspend_event() argument
50 get_suspend_file(suspend_file, domid); in lock_suspend_event()
103 static int unlock_suspend_event(xc_interface *xch, uint32_t domid, int *lockfd) in unlock_suspend_event() argument
111 get_suspend_file(suspend_file, domid); in unlock_suspend_event()
151 uint32_t domid, int suspend_evtchn, int *lockfd) in xc_suspend_evtchn_release() argument
156 return unlock_suspend_event(xch, domid, lockfd); in xc_suspend_evtchn_release()
160 uint32_t domid, int port, int *lockfd) in xc_suspend_evtchn_init_sane() argument
164 if (lock_suspend_event(xch, domid, lockfd)) { in xc_suspend_evtchn_init_sane()
169 suspend_evtchn = xenevtchn_bind_interdomain(xce, domid, port); in xc_suspend_evtchn_init_sane()
175 rc = xc_domain_subscribe_for_suspend(xch, domid, port); in xc_suspend_evtchn_init_sane()
184 xc_suspend_evtchn_release(xch, xce, domid, suspend_evtchn, lockfd); in xc_suspend_evtchn_init_sane()
190 uint32_t domid, int port, int *lockfd) in xc_suspend_evtchn_init_exclusive() argument
194 suspend_evtchn = xc_suspend_evtchn_init_sane(xch, xce, domid, port, lockfd); in xc_suspend_evtchn_init_exclusive()