/kernel/linux/linux-5.10/drivers/xen/events/ |
D | events_base.c | 106 evtchn_port_t evtchn; /* event channel */ member 214 static int set_evtchn_to_irq(evtchn_port_t evtchn, unsigned int irq) in set_evtchn_to_irq() argument 220 if (evtchn >= xen_evtchn_max_channels()) in set_evtchn_to_irq() 223 row = EVTCHN_ROW(evtchn); in set_evtchn_to_irq() 224 col = EVTCHN_COL(evtchn); in set_evtchn_to_irq() 249 int get_evtchn_to_irq(evtchn_port_t evtchn) in get_evtchn_to_irq() argument 251 if (evtchn >= xen_evtchn_max_channels()) in get_evtchn_to_irq() 253 if (evtchn_to_irq[EVTCHN_ROW(evtchn)] == NULL) in get_evtchn_to_irq() 255 return READ_ONCE(evtchn_to_irq[EVTCHN_ROW(evtchn)][EVTCHN_COL(evtchn)]); in get_evtchn_to_irq() 279 evtchn_port_t evtchn, in xen_irq_info_common_setup() argument [all …]
|
D | events_internal.h | 18 void (*bind_to_cpu)(evtchn_port_t evtchn, unsigned int cpu, 36 int get_evtchn_to_irq(evtchn_port_t evtchn); 39 unsigned int cpu_from_evtchn(evtchn_port_t evtchn); 50 static inline int xen_evtchn_port_setup(evtchn_port_t evtchn) in xen_evtchn_port_setup() argument 53 return evtchn_ops->setup(evtchn); in xen_evtchn_port_setup() 57 static inline void xen_evtchn_port_remove(evtchn_port_t evtchn, in xen_evtchn_port_remove() argument 61 evtchn_ops->remove(evtchn, cpu); in xen_evtchn_port_remove() 64 static inline void xen_evtchn_port_bind_to_cpu(evtchn_port_t evtchn, in xen_evtchn_port_bind_to_cpu() argument 68 evtchn_ops->bind_to_cpu(evtchn, cpu, old_cpu); in xen_evtchn_port_bind_to_cpu()
|
D | events_2l.c | 50 static void evtchn_2l_remove(evtchn_port_t evtchn, unsigned int cpu) in evtchn_2l_remove() argument 52 clear_bit(evtchn, BM(per_cpu(cpu_evtchn_mask, cpu))); in evtchn_2l_remove() 55 static void evtchn_2l_bind_to_cpu(evtchn_port_t evtchn, unsigned int cpu, in evtchn_2l_bind_to_cpu() argument 58 clear_bit(evtchn, BM(per_cpu(cpu_evtchn_mask, old_cpu))); in evtchn_2l_bind_to_cpu() 59 set_bit(evtchn, BM(per_cpu(cpu_evtchn_mask, cpu))); in evtchn_2l_bind_to_cpu() 178 evtchn_port_t evtchn = evtchn_from_irq(irq); in evtchn_2l_handle_events() local 179 word_idx = evtchn / BITS_PER_LONG; in evtchn_2l_handle_events() 180 bit_idx = evtchn % BITS_PER_LONG; in evtchn_2l_handle_events()
|
D | events_fifo.c | 188 static void evtchn_fifo_bind_to_cpu(evtchn_port_t evtchn, unsigned int cpu, in evtchn_fifo_bind_to_cpu() argument
|
/kernel/linux/linux-5.10/drivers/xen/ |
D | evtchn.c | 107 static int add_evtchn(struct per_user_data *u, struct user_evtchn *evtchn) in add_evtchn() argument 119 if (this->port < evtchn->port) in add_evtchn() 121 else if (this->port > evtchn->port) in add_evtchn() 128 rb_link_node(&evtchn->node, parent, new); in add_evtchn() 129 rb_insert_color(&evtchn->node, &u->evtchns); in add_evtchn() 134 static void del_evtchn(struct per_user_data *u, struct user_evtchn *evtchn) in del_evtchn() argument 137 rb_erase(&evtchn->node, &u->evtchns); in del_evtchn() 138 kfree(evtchn); in del_evtchn() 147 struct user_evtchn *evtchn; in find_evtchn() local 149 evtchn = rb_entry(node, struct user_evtchn, node); in find_evtchn() [all …]
|
D | Makefile | 19 obj-$(CONFIG_XEN_DEV_EVTCHN) += xen-evtchn.o 38 xen-evtchn-y := evtchn.o
|
D | pvcalls-front.c | 371 static int create_active(struct sock_mapping *map, evtchn_port_t *evtchn) in create_active() argument 376 *evtchn = 0; in create_active() 389 ret = xenbus_alloc_evtchn(pvcalls_front_dev, evtchn); in create_active() 392 irq = bind_evtchn_to_irqhandler(*evtchn, pvcalls_front_conn_handler, in create_active() 407 if (*evtchn > 0) in create_active() 408 xenbus_free_evtchn(pvcalls_front_dev, *evtchn); in create_active() 419 evtchn_port_t evtchn; in pvcalls_front_connect() local 443 ret = create_active(map, &evtchn); in pvcalls_front_connect() 458 req->u.connect.evtchn = evtchn; in pvcalls_front_connect() 770 evtchn_port_t evtchn; in pvcalls_front_accept() local [all …]
|
D | pvcalls-back.c | 316 evtchn_port_t evtchn, in pvcalls_new_active_socket() argument 353 fedata->dev->otherend_id, evtchn, in pvcalls_new_active_socket() 417 req->u.connect.evtchn, in pvcalls_back_connect() 557 req->u.accept.evtchn, in __pvcalls_back_accept() 924 evtchn_port_t evtchn; in backend_connect() local 934 &evtchn); in backend_connect() 950 err = bind_interdomain_evtchn_to_irq_lateeoi(dev->otherend_id, evtchn); in backend_connect()
|
D | xen-scsiback.c | 786 evtchn_port_t evtchn) in scsiback_init_sring() argument 802 err = bind_interdomain_evtchn_to_irq_lateeoi(info->domid, evtchn); in scsiback_init_sring() 828 evtchn_port_t evtchn; in scsiback_map() local 833 "event-channel", "%u", &evtchn, NULL); in scsiback_map() 839 return scsiback_init_sring(info, ring_ref, evtchn); in scsiback_map()
|
/kernel/linux/linux-5.10/include/xen/ |
D | events.h | 17 int bind_evtchn_to_irq(evtchn_port_t evtchn); 18 int bind_evtchn_to_irq_lateeoi(evtchn_port_t evtchn); 19 int bind_evtchn_to_irqhandler(evtchn_port_t evtchn, 23 int bind_evtchn_to_irqhandler_lateeoi(evtchn_port_t evtchn, 70 int evtchn_make_refcounted(evtchn_port_t evtchn); 71 int evtchn_get(evtchn_port_t evtchn); 72 void evtchn_put(evtchn_port_t evtchn); 75 void rebind_evtchn_irq(evtchn_port_t evtchn, int irq); 102 unsigned int irq_from_evtchn(evtchn_port_t evtchn);
|
/kernel/linux/linux-5.10/drivers/tty/hvc/ |
D | hvc_xen.c | 39 unsigned int evtchn; member 83 notify_remote_via_evtchn(cons->evtchn); in notify_daemon() 255 info->evtchn = v; in xen_hvm_console_init() 278 info->evtchn = xen_start_info->console.domU.evtchn; in xencons_info_pv_init() 296 if (!xen_start_info->console.domU.evtchn) in xen_pv_console_init() 348 info->evtchn = v; in xen_console_update_evtchn() 350 info->evtchn = xen_start_info->console.domU.evtchn; in xen_console_update_evtchn() 359 rebind_evtchn_irq(info->evtchn, info->irq); in xen_console_resume() 369 if (info->evtchn > 0) in xencons_disconnect_backend() 370 xenbus_free_evtchn(info->xbdev, info->evtchn); in xencons_disconnect_backend() [all …]
|
/kernel/linux/linux-5.10/drivers/char/tpm/ |
D | xen-tpmfront.c | 26 unsigned int evtchn; member 126 notify_remote_via_evtchn(priv->evtchn); in vtpm_cancel() 161 notify_remote_via_evtchn(priv->evtchn); in vtpm_send() 270 rv = xenbus_alloc_evtchn(dev, &priv->evtchn); in setup_ring() 274 rv = bind_evtchn_to_irqhandler(priv->evtchn, tpmif_interrupt, 0, in setup_ring() 297 priv->evtchn); in setup_ring()
|
/kernel/linux/linux-5.10/include/xen/interface/io/ |
D | pvcalls.h | 53 uint32_t evtchn; member 72 uint32_t evtchn; member
|
/kernel/linux/linux-5.10/drivers/pci/ |
D | xen-pcifront.c | 44 int evtchn; member 117 evtchn_port_t port = pdev->evtchn; in do_pci_op() 665 notify_remote_via_evtchn(pdev->evtchn); in pcifront_do_aer() 743 pdev->evtchn = INVALID_EVTCHN; in alloc_pdev() 766 if (pdev->evtchn != INVALID_EVTCHN) in free_pdev() 767 xenbus_free_evtchn(pdev->xdev, pdev->evtchn); in free_pdev() 792 err = xenbus_alloc_evtchn(pdev->xdev, &pdev->evtchn); in pcifront_publish_info() 796 err = bind_evtchn_to_irqhandler(pdev->evtchn, pcifront_handler_aer, in pcifront_publish_info() 817 "event-channel", "%u", pdev->evtchn); in pcifront_publish_info()
|
/kernel/linux/linux-5.10/drivers/input/misc/ |
D | xen-kbdfront.c | 426 int ret, evtchn; in xenkbd_connect_backend() local 435 ret = xenbus_alloc_evtchn(dev, &evtchn); in xenkbd_connect_backend() 438 ret = bind_evtchn_to_irqhandler(evtchn, input_handler, in xenkbd_connect_backend() 461 evtchn); in xenkbd_connect_backend() 482 xenbus_free_evtchn(dev, evtchn); in xenkbd_connect_backend()
|
/kernel/linux/linux-5.10/net/9p/ |
D | trans_xen.c | 63 int evtchn; member 378 ret = xenbus_alloc_evtchn(dev, &ring->evtchn); in xen_9pfs_front_alloc_dataring() 381 ring->irq = bind_evtchn_to_irqhandler(ring->evtchn, in xen_9pfs_front_alloc_dataring() 387 xenbus_free_evtchn(dev, ring->evtchn); in xen_9pfs_front_alloc_dataring() 473 priv->rings[i].evtchn); in xen_9pfs_front_init()
|
/kernel/linux/linux-5.10/drivers/video/fbdev/ |
D | xen-fbfront.c | 579 int ret, evtchn, irq; in xenfb_connect_backend() local 582 ret = xenbus_alloc_evtchn(dev, &evtchn); in xenfb_connect_backend() 585 irq = bind_evtchn_to_irqhandler(evtchn, xenfb_event_handler, in xenfb_connect_backend() 588 xenbus_free_evtchn(dev, evtchn); in xenfb_connect_backend() 603 evtchn); in xenfb_connect_backend()
|
/kernel/linux/linux-5.10/drivers/block/xen-blkback/ |
D | xenbus.c | 193 unsigned int nr_grefs, unsigned int evtchn) in xen_blkif_map() argument 254 evtchn, xen_blkif_be_int, 0, "blkif-backend", ring); in xen_blkif_map() 978 unsigned int nr_grefs, evtchn; in read_per_ring_refs() local 981 &evtchn); in read_per_ring_refs() 1036 err = xen_blkif_map(ring, ring_ref, nr_grefs, evtchn); in read_per_ring_refs() 1038 xenbus_dev_fatal(dev, err, "mapping ring-ref port %u", evtchn); in read_per_ring_refs()
|
/kernel/linux/linux-5.10/drivers/scsi/ |
D | xen-scsifront.c | 109 unsigned int evtchn; member 727 err = xenbus_alloc_evtchn(dev, &info->evtchn); in scsifront_alloc_ring() 733 err = bind_evtchn_to_irq(info->evtchn); in scsifront_alloc_ring() 778 pr_debug("%s: %u %u\n", __func__, info->ring_ref, info->evtchn); in scsifront_init_ring() 793 info->evtchn); in scsifront_init_ring()
|
/kernel/linux/linux-5.10/drivers/net/xen-netback/ |
D | xenbus.c | 688 unsigned int evtchn; in connect_ctrl_ring() local 707 evtchn = val; in connect_ctrl_ring() 709 err = xenvif_connect_ctrl(vif, ring_ref, evtchn); in connect_ctrl_ring() 713 ring_ref, evtchn); in connect_ctrl_ring()
|
D | common.h | 360 unsigned int evtchn);
|
D | interface.c | 618 unsigned int evtchn) in xenvif_connect_ctrl() argument 641 err = bind_interdomain_evtchn_to_irq_lateeoi(vif->domid, evtchn); in xenvif_connect_ctrl()
|
/kernel/linux/linux-5.10/include/xen/interface/ |
D | xen.h | 646 uint32_t evtchn; /* Event channel for console page. */ member
|
/kernel/linux/linux-5.10/usr/include/ |
D | Makefile | 56 no-header-test += xen/evtchn.h
|
/kernel/linux/linux-5.10/drivers/block/ |
D | xen-blkfront.c | 181 unsigned int evtchn, irq; member 1370 rinfo->evtchn = rinfo->irq = 0; in blkif_free_ring() 1782 err = xenbus_alloc_evtchn(dev, &rinfo->evtchn); in setup_blkring() 1786 err = bind_evtchn_to_irqhandler_lateeoi(rinfo->evtchn, blkif_interrupt, in setup_blkring() 1833 err = xenbus_printf(xbt, dir, "event-channel", "%u", rinfo->evtchn); in write_per_ring_nodes()
|