Lines Matching refs:suspend_evtchn
129 int xc_await_suspend(xc_interface *xch, xenevtchn_handle *xce, int suspend_evtchn) in xc_await_suspend() argument
139 } while (rc != suspend_evtchn); in xc_await_suspend()
142 if (xenevtchn_unmask(xce, suspend_evtchn) < 0) in xc_await_suspend()
151 uint32_t domid, int suspend_evtchn, int *lockfd) in xc_suspend_evtchn_release() argument
153 if (suspend_evtchn >= 0) in xc_suspend_evtchn_release()
154 xenevtchn_unbind(xce, suspend_evtchn); in xc_suspend_evtchn_release()
162 int rc, suspend_evtchn = -1; in xc_suspend_evtchn_init_sane() local
169 suspend_evtchn = xenevtchn_bind_interdomain(xce, domid, port); in xc_suspend_evtchn_init_sane()
170 if (suspend_evtchn < 0) { in xc_suspend_evtchn_init_sane()
171 ERROR("failed to bind suspend event channel: %d", suspend_evtchn); in xc_suspend_evtchn_init_sane()
181 return suspend_evtchn; in xc_suspend_evtchn_init_sane()
184 xc_suspend_evtchn_release(xch, xce, domid, suspend_evtchn, lockfd); in xc_suspend_evtchn_init_sane()
192 int suspend_evtchn; in xc_suspend_evtchn_init_exclusive() local
194 suspend_evtchn = xc_suspend_evtchn_init_sane(xch, xce, domid, port, lockfd); in xc_suspend_evtchn_init_exclusive()
195 if (suspend_evtchn < 0) in xc_suspend_evtchn_init_exclusive()
196 return suspend_evtchn; in xc_suspend_evtchn_init_exclusive()
199 xc_await_suspend(xch, xce, suspend_evtchn); in xc_suspend_evtchn_init_exclusive()
201 return suspend_evtchn; in xc_suspend_evtchn_init_exclusive()