Home
last modified time | relevance | path

Searched refs:evtchn (Results 1 – 25 of 53) sorted by relevance

123

/xen/xen/include/xen/
A Devent.h117 static always_inline void evtchn_read_lock(struct evtchn *evtchn) in evtchn_read_lock() argument
127 static inline void evtchn_read_unlock(struct evtchn *evtchn) in evtchn_read_unlock() argument
169 static bool evtchn_usable(const struct evtchn *evtchn) in evtchn_usable() argument
220 void (*init)(struct domain *d, struct evtchn *evtchn);
221 void (*set_pending)(struct vcpu *v, struct evtchn *evtchn);
223 void (*unmask)(struct domain *d, struct evtchn *evtchn);
231 int (*set_priority)(struct domain *d, struct evtchn *evtchn,
244 struct evtchn *evtchn) in evtchn_port_set_pending() argument
264 const struct evtchn *evtchn) in evtchn_is_masked() argument
271 struct evtchn *evtchn = evtchn_from_port(d, port); in evtchn_port_is_masked() local
[all …]
A Dirq.h166 evtchn_port_t evtchn; member
183 #define pirq_to_evtchn(d, pirq) pirq_field(d, pirq, evtchn, 0)
189 (!(pirq)->evtchn ? pirq_cleanup_check(pirq, d) : (void)0)
A Dsched.h68 #define BUCKETS_PER_GROUP (PAGE_SIZE/sizeof(struct evtchn *))
80 #define EVTCHNS_PER_BUCKET (PAGE_SIZE / next_power_of_2(sizeof(struct evtchn)))
87 struct evtchn struct
420 struct evtchn *evtchn; /* first bucket only */ member
421 struct evtchn **evtchn_group[NR_EVTCHN_GROUPS]; /* all other buckets */
/xen/xen/common/
A Devent_2l.c20 struct vcpu *v, struct evtchn *evtchn) in evtchn_2l_set_pending() argument
23 unsigned int port = evtchn->port; in evtchn_2l_set_pending()
46 struct domain *d, struct evtchn *evtchn) in evtchn_2l_clear_pending() argument
52 struct domain *d, struct evtchn *evtchn) in evtchn_2l_unmask() argument
54 struct vcpu *v = d->vcpu[evtchn->notify_vcpu_id]; in evtchn_2l_unmask()
55 unsigned int port = evtchn->port; in evtchn_2l_unmask()
71 const struct domain *d, const struct evtchn *evtchn) in evtchn_2l_is_pending() argument
73 evtchn_port_t port = evtchn->port; in evtchn_2l_is_pending()
82 const struct domain *d, const struct evtchn *evtchn) in evtchn_2l_is_masked() argument
84 evtchn_port_t port = evtchn->port; in evtchn_2l_is_masked()
[all …]
A Devent_channel.h12 const struct evtchn *evtchn) in evtchn_is_busy() argument
15 d->evtchn_port_ops->is_busy(d, evtchn); in evtchn_is_busy()
19 struct evtchn *evtchn) in evtchn_port_unmask() argument
21 if ( evtchn_usable(evtchn) ) in evtchn_port_unmask()
22 d->evtchn_port_ops->unmask(d, evtchn); in evtchn_port_unmask()
26 struct evtchn *evtchn, in evtchn_port_set_priority() argument
31 if ( !evtchn_usable(evtchn) ) in evtchn_port_set_priority()
33 return d->evtchn_port_ops->set_priority(d, evtchn, priority); in evtchn_port_set_priority()
37 const struct evtchn *evtchn) in evtchn_port_print_state() argument
39 d->evtchn_port_ops->print_state(d, evtchn); in evtchn_port_print_state()
A Devent_fifo.c81 static void cf_check evtchn_fifo_init(struct domain *d, struct evtchn *evtchn) in evtchn_fifo_init() argument
162 struct vcpu *v, struct evtchn *evtchn) in evtchn_fifo_set_pending() argument
173 port = evtchn->port; in evtchn_fifo_set_pending()
322 struct domain *d, struct evtchn *evtchn) in evtchn_fifo_clear_pending() argument
356 const struct domain *d, const struct evtchn *evtchn) in evtchn_fifo_is_pending() argument
364 const struct domain *d, const struct evtchn *evtchn) in evtchn_fifo_is_masked() argument
372 const struct domain *d, const struct evtchn *evtchn) in evtchn_fifo_is_busy() argument
380 struct domain *d, struct evtchn *evtchn, unsigned int priority) in evtchn_fifo_set_priority() argument
396 struct domain *d, const struct evtchn *evtchn) in evtchn_fifo_print_state() argument
558 struct evtchn *evtchn; in setup_ports() local
[all …]
A Devent_channel.c48 static always_inline void evtchn_write_lock(struct evtchn *evtchn) in evtchn_write_lock() argument
53 evtchn->old_state = evtchn->state; in evtchn_write_lock()
57 static inline unsigned int old_state(const struct evtchn *evtchn) in old_state() argument
66 static inline void evtchn_write_unlock(struct evtchn *evtchn) in evtchn_write_unlock() argument
69 ASSERT(old_state(evtchn) == ECS_FREE || old_state(evtchn) == ECS_UNBOUND || in evtchn_write_unlock()
70 evtchn->state == ECS_FREE || evtchn->state == ECS_UNBOUND); in evtchn_write_unlock()
156 struct evtchn *chn; in alloc_evtchn_bucket()
309 struct evtchn *chn; in evtchn_alloc_unbound()
364 static void double_evtchn_unlock(struct evtchn *lchn, struct evtchn *rchn) in double_evtchn_unlock()
1158 struct evtchn *evtchn = _evtchn_from_port(d, port); in evtchn_unmask() local
[all …]
/xen/tools/libs/
A Duselibs.mk7 LIBS_LIBS += evtchn
20 USELIBS_ctrl := toollog call evtchn gnttab foreignmemory devicemodel
22 USELIBS_guest := evtchn ctrl
26 USELIBS_vchan := toollog store gnttab evtchn
30 USELIBS_light := toollog evtchn toolcore ctrl store hypfs guest
A DMakefile7 SUBDIRS-y += evtchn
/xen/xen/include/xsm/
A Dxsm.h70 void (*evtchn_close_post)(struct evtchn *chn);
71 int (*evtchn_send)(struct domain *d, struct evtchn *chn);
72 int (*evtchn_status)(struct domain *d, struct evtchn *chn);
273 xsm_default_t def, struct domain *d1, struct evtchn *chan1, in xsm_evtchn_interdomain()
274 struct domain *d2, struct evtchn *chan2) in xsm_evtchn_interdomain()
279 static inline void xsm_evtchn_close_post(struct evtchn *chn) in xsm_evtchn_close_post()
285 xsm_default_t def, struct domain *d, struct evtchn *chn) in xsm_evtchn_send()
291 xsm_default_t def, struct domain *d, struct evtchn *chn) in xsm_evtchn_status()
349 struct evtchn *chn, unsigned int nr) in xsm_alloc_security_evtchns()
355 struct evtchn *chn, unsigned int nr) in xsm_free_security_evtchns()
[all …]
A Ddummy.h315 XSM_DEFAULT_ARG struct domain *d, struct evtchn *chn, domid_t id2) in xsm_evtchn_unbound()
322 XSM_DEFAULT_ARG struct domain *d1, struct evtchn *chan1, struct domain *d2, in xsm_evtchn_interdomain()
323 struct evtchn *chan2) in xsm_evtchn_interdomain()
329 static XSM_INLINE void cf_check xsm_evtchn_close_post(struct evtchn *chn) in xsm_evtchn_close_post()
335 XSM_DEFAULT_ARG struct domain *d, struct evtchn *chn) in xsm_evtchn_send()
342 XSM_DEFAULT_ARG struct domain *d, struct evtchn *chn) in xsm_evtchn_status()
356 struct evtchn chn[], unsigned int nr) in xsm_alloc_security_evtchns()
362 struct evtchn chn[], unsigned int nr) in xsm_free_security_evtchns()
368 struct domain *d, const struct evtchn *chn) in xsm_show_security_evtchn()
/xen/tools/9pfsd/
A Dxen-9pfsd.c383 if ( ring->evtchn ) in disconnect_ring()
385 xenevtchn_unbind(xe, ring->evtchn); in disconnect_ring()
386 ring->evtchn = 0; in disconnect_ring()
427 xenevtchn_port_or_error_t evtchn; in connect_device() local
450 evtchn = xenevtchn_bind_interdomain(xe, device->domid, val); in connect_device()
451 if ( evtchn < 0 ) in connect_device()
453 ring->evtchn = evtchn; in connect_device()
677 xenevtchn_port_or_error_t evtchn; in handle_event() local
682 evtchn = xenevtchn_pending(xe); in handle_event()
683 if ( evtchn < 0 ) in handle_event()
[all …]
A DMakefile17 xen-9pfsd: LDLIBS += $(call xenlibs-ldlibs,store evtchn gnttab)
/xen/docs/misc/arm/device-tree/
A Dbooting.txt473 "xen,evtchn"
475 - xen,evtchn
478 (local-evtchn link-to-foreign-evtchn) where:
485 link-to-foreign-evtchn is a single phandle to a remote evtchn to which
494 ec1: evtchn@1 {
496 /* local-evtchn link-to-foreign-evtchn */
507 ec2: evtchn@2 {
509 /* local-evtchn link-to-foreign-evtchn */
513 ec3: evtchn@3 {
518 ec4: evtchn@4 {
[all …]
/xen/xen/xsm/
A Dsilo.c37 struct domain *d1, struct evtchn *chn, domid_t id2) in silo_evtchn_unbound()
55 struct domain *d1, struct evtchn *chan1, in silo_evtchn_interdomain()
56 struct domain *d2, struct evtchn *chan2) in silo_evtchn_interdomain()
/xen/xen/arch/x86/guest/xen/
A Dxen.c172 unsigned long evtchn = xchg(&XEN_shared_info->evtchn_pending[l1], 0); in xen_evtchn_upcall() local
175 evtchn &= ~XEN_shared_info->evtchn_mask[l1]; in xen_evtchn_upcall()
176 while ( evtchn ) in xen_evtchn_upcall()
178 unsigned int port = ffsl(evtchn) - 1; in xen_evtchn_upcall()
180 __clear_bit(port, &evtchn); in xen_evtchn_upcall()
/xen/xen/arch/arm/include/asm/
A Dvpl011.h59 evtchn_port_t evtchn; member
65 evtchn_port_t evtchn; member
/xen/xen/include/public/io/
A Dpvcalls.h62 uint32_t evtchn; member
84 uint32_t evtchn; member
/xen/xen/arch/arm/
A Dvpl011.c253 notify_via_xen_event_channel(d, vpl011->evtchn); in vpl011_read_data()
340 notify_via_xen_event_channel(d, vpl011->evtchn); in vpl011_write_data()
705 vpl011->evtchn = info->evtchn = rc; in domain_vpl011_init()
763 if ( vpl011->evtchn ) in domain_vpl011_deinit()
765 free_xen_event_channel(d, vpl011->evtchn); in domain_vpl011_deinit()
772 vpl011->evtchn = 0; in domain_vpl011_deinit()
A Ddomctl.c47 vuart_op->evtchn = info.evtchn; in handle_vuart_init()
/xen/tools/misc/
A Dxen-hptool.c104 int *evtchn, int *lockfd) in suspend_guest() argument
110 if (!evtchn) in suspend_guest()
126 *evtchn = suspend_evtchn; in suspend_guest()
/xen/tools/ocaml/xenstored/
A Devent.ml23 (* On clean start, both parameters will be None, and we must open the evtchn
45 Printf.fprintf chan "evtchn-dev,%d,%d\n"
/xen/stubdom/
A Dmini-os.mk11 EVTCHN_PATH = $(XEN_ROOT)/stubdom/libs-$(MINIOS_TARGET_ARCH)/evtchn
/xen/tools/ocaml/libs/eventchn/
A DMakefile11 LIBS_xeneventchn = $(call xenlibs-ldflags-ldlibs,evtchn)
/xen/tools/console/daemon/
A DMakefile12 LDLIBS += $(call xenlibs-ldlibs,ctrl store evtchn gnttab foreignmemory)

Completed in 49 milliseconds

123