/xen/xen/drivers/char/ |
A D | serial.c | 37 port->driver->start_tx(port); in serial_start_tx() 43 port->driver->stop_tx(port); in serial_stop_tx() 54 if ( port->driver->getc(port, &c) ) in serial_rx_interrupt() 91 if ( port->txbufc == port->txbufp ) in serial_tx_interrupt() 108 port, port->txbuf[mask_serial_txbuf_idx(port->txbufc++)]); in serial_tx_interrupt() 111 port->driver->flush(port); in serial_tx_interrupt() 167 port->driver->putc(port, c); in __serial_putc() 186 port->driver->putc(port, c); in __serial_putc() 193 port->driver->putc(port, c); in __serial_putc() 222 port->driver->flush(port); in serial_putc() [all …]
|
A D | meson-uart.c | 65 struct serial_port *port = data; in meson_uart_interrupt() local 66 struct meson_uart *uart = port->uart; in meson_uart_interrupt() 70 serial_rx_interrupt(port, regs); in meson_uart_interrupt() 73 serial_tx_interrupt(port, regs); in meson_uart_interrupt() 78 struct meson_uart *uart = port->uart; in meson_uart_init_preirq() 94 struct meson_uart *uart = port->uart; in meson_uart_init_postirq() 98 uart->irqaction.dev_id = port; in meson_uart_init_postirq() 130 struct meson_uart *uart = port->uart; in meson_uart_putc() 137 struct meson_uart *uart = port->uart; in meson_uart_getc() 149 struct meson_uart *uart = port->uart; in meson_irq() [all …]
|
A D | cadence-uart.c | 45 struct serial_port *port = data; in cuart_interrupt() local 46 struct cuart *uart = port->uart; in cuart_interrupt() 54 serial_rx_interrupt(port, regs); in cuart_interrupt() 62 struct cuart *uart = port->uart; in cuart_init_preirq() 72 struct cuart *uart = port->uart; in cuart_init_postirq() 79 uart->irqaction.dev_id = port; in cuart_init_postirq() 105 struct cuart *uart = port->uart; in cuart_tx_ready() 113 struct cuart *uart = port->uart; in cuart_putc() 120 struct cuart *uart = port->uart; in cuart_getc() 131 struct cuart *uart = port->uart; in cuart_irq() [all …]
|
A D | mvebu-uart.c | 71 struct serial_port *port = data; in mvebu3700_uart_interrupt() local 72 struct mvebu3700_uart *uart = port->uart; in mvebu3700_uart_interrupt() 77 serial_rx_interrupt(port, regs); in mvebu3700_uart_interrupt() 80 serial_tx_interrupt(port, regs); in mvebu3700_uart_interrupt() 85 struct mvebu3700_uart *uart = port->uart; in mvebu3700_uart_init_preirq() 108 struct mvebu3700_uart *uart = port->uart; in mvebu3700_uart_init_postirq() 113 uart->irqaction.dev_id = port; in mvebu3700_uart_init_postirq() 139 struct mvebu3700_uart *uart = port->uart; in mvebu3700_uart_putc() 146 struct mvebu3700_uart *uart = port->uart; in mvebu3700_uart_getc() 158 struct mvebu3700_uart *uart = port->uart; in mvebu3700_irq() [all …]
|
A D | pl011.c | 65 struct serial_port *port = data; in pl011_interrupt() local 66 struct pl011 *uart = port->uart; in pl011_interrupt() 93 struct pl011 *uart = port->uart; in pl011_init_preirq() 128 struct pl011 *uart = port->uart; in pl011_init_postirq() 159 struct pl011 *uart = port->uart; in pl011_tx_ready() 166 struct pl011 *uart = port->uart; in pl011_putc() 173 struct pl011 *uart = port->uart; in pl011_getc() 184 struct pl011 *uart = port->uart; in pl011_irq() 191 struct pl011 *uart = port->uart; in pl011_vuart() 198 struct pl011 *uart = port->uart; in pl011_tx_stop() [all …]
|
A D | scif-uart.c | 95 struct serial_port *port = data; in scif_uart_interrupt() local 96 struct scif_uart *uart = port->uart; in scif_uart_interrupt() 132 struct scif_uart *uart = port->uart; in scif_uart_init_preirq() 163 struct scif_uart *uart = port->uart; in scif_uart_init_postirq() 169 uart->irqaction.dev_id = port; in scif_uart_init_postirq() 198 struct scif_uart *uart = port->uart; in scif_uart_tx_ready() 215 struct scif_uart *uart = port->uart; in scif_uart_putc() 227 struct scif_uart *uart = port->uart; in scif_uart_getc() 246 struct scif_uart *uart = port->uart; in scif_uart_irq() 253 struct scif_uart *uart = port->uart; in scif_vuart_info() [all …]
|
A D | exynos4210-uart.c | 50 struct serial_port *port = data; in exynos4210_uart_interrupt() local 51 struct exynos4210_uart *uart = port->uart; in exynos4210_uart_interrupt() 84 serial_rx_interrupt(port, regs); in exynos4210_uart_interrupt() 92 serial_tx_interrupt(port, regs); in exynos4210_uart_interrupt() 103 struct exynos4210_uart *uart = port->uart; in exynos4210_uart_init_preirq() 192 struct exynos4210_uart *uart = port->uart; in exynos4210_uart_init_postirq() 197 uart->irqaction.dev_id = port; in exynos4210_uart_init_postirq() 225 struct exynos4210_uart *uart = port->uart; in exynos4210_uart_tx_ready() 247 struct exynos4210_uart *uart = port->uart; in exynos4210_uart_putc() 254 struct exynos4210_uart *uart = port->uart; in exynos4210_uart_getc() [all …]
|
A D | omap-uart.c | 64 struct serial_port *port = data; in omap_uart_interrupt() local 65 struct omap_uart *uart = port->uart; in omap_uart_interrupt() 77 if ( port->txbufc == port->txbufp ) { in omap_uart_interrupt() 196 struct omap_uart *uart = port->uart; in omap_uart_init_preirq() 228 struct omap_uart *uart = port->uart; in omap_uart_init_postirq() 232 uart->irqaction.dev_id = port; in omap_uart_init_postirq() 257 struct omap_uart *uart = port->uart; in omap_uart_tx_ready() 277 struct omap_uart *uart = port->uart; in omap_uart_putc() 284 struct omap_uart *uart = port->uart; in omap_uart_getc() 295 struct omap_uart *uart = port->uart; in omap_uart_irq() [all …]
|
/xen/xen/common/ |
A D | event_2l.c | 21 unsigned int port = evtchn->port; in evtchn_2l_set_pending() local 33 if ( !guest_test_bit(d, port, &shared_info(d, evtchn_mask)) && in evtchn_2l_set_pending() 34 !guest_test_and_set_bit(d, port / BITS_PER_EVTCHN_WORD(d), in evtchn_2l_set_pending() 40 evtchn_check_pollers(d, port); in evtchn_2l_set_pending() 51 unsigned int port = evtchn->port; in evtchn_2l_unmask() local 69 evtchn_port_t port = evtchn->port; in evtchn_2l_is_pending() local 72 ASSERT(port < max_ports); in evtchn_2l_is_pending() 73 return (port < max_ports && in evtchn_2l_is_pending() 80 evtchn_port_t port = evtchn->port; in evtchn_2l_is_masked() local 83 ASSERT(port < max_ports); in evtchn_2l_is_masked() [all …]
|
A D | event_channel.c | 167 chn[i].port = port + i; in alloc_evtchn_bucket() 238 for ( port = 0; port <= d->max_evtchn_port; port++ ) in get_free_port() 310 alloc->port = port; in evtchn_alloc_unbound() 471 v->virq_to_evtchn[virq] = bind->port = port; in evtchn_bind_virq() 505 bind->port = port; in evtchn_bind_ipi() 588 bind->port = port; in evtchn_bind_pirq() 797 int port; in send_guest_vcpu_virq() local 945 int port = status->port; in evtchn_status() local 1147 unsigned int port = set_priority->port; in evtchn_set_priority() local 1528 for ( port = v->pirq_evtchn_head; port; port = chn->u.pirq.next_port ) in evtchn_move_pirqs() [all …]
|
A D | event_fifo.c | 143 unsigned int port; in evtchn_fifo_set_pending() local 151 port = evtchn->port; in evtchn_fifo_set_pending() 214 d, evtchn->port); in evtchn_fifo_set_pending() 250 if ( old_q->tail == port ) in evtchn_fifo_set_pending() 284 q->tail = port; in evtchn_fifo_set_pending() 299 evtchn_check_pollers(d, port); in evtchn_fifo_set_pending() 528 unsigned int port; in setup_ports() local 536 for ( port = 1; port < prev_evtchns; port++ ) in setup_ports() 540 if ( !port_is_valid(d, port) ) in setup_ports() 657 for ( ; port < d->evtchn_fifo->num_evtchns; port++ ) in add_page_to_event_array() [all …]
|
/xen/tools/libs/evtchn/ |
A D | minios.c | 52 port_info->port = -1; in port_alloc() 123 mask_evtchn(port); in evtchn_handler() 125 if (port_info->port == port) in evtchn_handler() 142 evtchn_port_t port; in xenevtchn_bind_unbound_port() local 159 port_info->port = port; in xenevtchn_bind_unbound_port() 161 return port; in xenevtchn_bind_unbound_port() 198 if (port_info->port == port) { in xenevtchn_unbind() 223 if (port < 0) { in xenevtchn_bind_virq() 225 errno = -port; in xenevtchn_bind_virq() 229 port_info->port = port; in xenevtchn_bind_virq() [all …]
|
A D | freebsd.c | 62 int xenevtchn_notify(xenevtchn_handle *xce, evtchn_port_t port) in xenevtchn_notify() argument 67 notify.port = port; in xenevtchn_notify() 80 return ( ret == 0 ) ? bind.port : ret; in xenevtchn_bind_unbound_port() 93 return ( ret == 0 ) ? bind.port : ret; in xenevtchn_bind_interdomain() 104 return ( ret == 0 ) ? bind.port : ret; in xenevtchn_bind_virq() 107 int xenevtchn_unbind(xenevtchn_handle *xce, evtchn_port_t port) in xenevtchn_unbind() argument 112 unbind.port = port; in xenevtchn_unbind() 120 evtchn_port_t port; in xenevtchn_pending() local 122 if ( read(fd, &port, sizeof(port)) != sizeof(port) ) in xenevtchn_pending() 125 return port; in xenevtchn_pending() [all …]
|
A D | netbsd.c | 62 int xenevtchn_notify(xenevtchn_handle *xce, evtchn_port_t port) in xenevtchn_notify() argument 67 notify.port = port; in xenevtchn_notify() 82 return bind.port; in xenevtchn_bind_unbound_port() 99 return bind.port; in xenevtchn_bind_interdomain() 104 int xenevtchn_unbind(xenevtchn_handle *xce, evtchn_port_t port) in xenevtchn_unbind() argument 109 unbind.port = port; in xenevtchn_unbind() 126 return bind.port; in xenevtchn_bind_virq() 132 evtchn_port_t port; in xenevtchn_pending() local 134 if ( read_exact(fd, (char *)&port, sizeof(port)) == -1 ) in xenevtchn_pending() 137 return port; in xenevtchn_pending() [all …]
|
A D | linux.c | 66 int xenevtchn_notify(xenevtchn_handle *xce, evtchn_port_t port) in xenevtchn_notify() argument 71 notify.port = port; in xenevtchn_notify() 111 int xenevtchn_unbind(xenevtchn_handle *xce, evtchn_port_t port) in xenevtchn_unbind() argument 116 unbind.port = port; in xenevtchn_unbind() 124 evtchn_port_t port; in xenevtchn_pending() local 126 if ( read(fd, &port, sizeof(port)) != sizeof(port) ) in xenevtchn_pending() 129 return port; in xenevtchn_pending() 132 int xenevtchn_unmask(xenevtchn_handle *xce, evtchn_port_t port) in xenevtchn_unmask() argument 136 if ( write(fd, &port, sizeof(port)) != sizeof(port) ) in xenevtchn_unmask()
|
A D | solaris.c | 65 int xenevtchn_notify(xenevtchn_handle *xce, evtchn_port_t port) in xenevtchn_notify() argument 70 notify.port = port; in xenevtchn_notify() 107 int xenevtchn_unbind(xenevtchn_handle *xce, evtchn_port_t port) in xenevtchn_unbind() argument 112 unbind.port = port; in xenevtchn_unbind() 120 evtchn_port_t port; in xenevtchn_pending() local 122 if ( read_exact(fd, (char *)&port, sizeof(port)) == -1 ) in xenevtchn_pending() 125 return port; in xenevtchn_pending() 128 int xenevtchn_unmask(xenevtchn_handle *xce, evtchn_port_t port) in xenevtchn_unmask() argument 131 return write_exact(fd, (char *)&port, sizeof(port)); in xenevtchn_unmask()
|
/xen/tools/ocaml/libs/eventchn/ |
A D | xeneventchn_stubs.c | 73 CAMLparam2(xce, port); in stub_eventchn_notify() 90 CAMLlocal1(port); in stub_eventchn_bind_interdomain() 99 port = Val_int(rc); in stub_eventchn_bind_interdomain() 101 CAMLreturn(port); in stub_eventchn_bind_interdomain() 107 CAMLlocal1(port); in stub_eventchn_bind_virq() 116 port = Val_int(rc); in stub_eventchn_bind_virq() 118 CAMLreturn(port); in stub_eventchn_bind_virq() 123 CAMLparam2(xce, port); in stub_eventchn_unbind() 146 if (port == -1) in stub_eventchn_pending() 156 evtchn_port_t port; in stub_eventchn_unmask() local [all …]
|
/xen/xen/arch/x86/pv/ |
A D | emul-priv-op.c | 216 return ioports_access_permitted(d, port, port + bytes - 1); in admin_io_okay() 268 case 1: return inb(port); in guest_io_read() 269 case 2: return inw(port); in guest_io_read() 279 if ( (port == 0x42) || (port == 0x43) || (port == 0x61) ) in guest_io_read() 283 else if ( port == RTC_PORT(0) || port == RTC_PORT(1) ) in guest_io_read() 306 port += size; in guest_io_read() 340 if ( (start < (port + len)) && ((start + width) > port) ) in check_guest_io_breakpoint() 392 outl(data, port); in guest_io_write() 402 if ( (port == 0x42) || (port == 0x43) || (port == 0x61) ) in guest_io_write() 406 else if ( port == RTC_PORT(0) || port == RTC_PORT(1) ) in guest_io_write() [all …]
|
/xen/tools/ocaml/xenstored/ |
A D | domain.ml | 29 mutable port: Xeneventchn.t option; RecordField 45 let get_port d = d.port 69 | Some port -> 70 Event.notify dom.eventchn port 73 begin match dom.port with 75 | Some port -> Event.unbind dom.eventchn port 78 …debug "bound domain %d remote port %d to local port %s" dom.id dom.remote_port (string_of_port dom… 82 debug "domain %d unbound port %s" dom.id (string_of_port dom.port); 83 begin match dom.port with 85 | Some port -> Event.unbind dom.eventchn port [all …]
|
/xen/xen/include/public/ |
A D | event_channel.h | 97 evtchn_port_t port; member 147 evtchn_port_t port; member 163 evtchn_port_t port; member 176 evtchn_port_t port; member 187 evtchn_port_t port; member 197 evtchn_port_t port; member 212 evtchn_port_t port; member 228 evtchn_port_t port; member 250 evtchn_port_t port; member 261 evtchn_port_t port; member [all …]
|
/xen/tools/xcutils/ |
A D | lsevtchn.c | 12 int domid, port, rc; in main() local 21 for ( port = 0; ; port++ ) in main() 24 status.port = port; in main() 32 printf("%4d: VCPU %u: ", port, status.vcpu); in main() 42 status.u.interdomain.dom, status.u.interdomain.port); in main()
|
/xen/tools/include/xen-sys/NetBSD/ |
A D | evtchn.h | 41 unsigned int port; member 51 unsigned int port; member 61 unsigned int port; member 70 unsigned int port; member 79 unsigned int port; member
|
/xen/tools/include/xen-sys/NetBSDRump/ |
A D | evtchn.h | 41 unsigned int port; member 51 unsigned int port; member 61 unsigned int port; member 70 unsigned int port; member 79 unsigned int port; member
|
/xen/tools/include/xen-sys/FreeBSD/ |
A D | evtchn.h | 42 unsigned int port; member 52 unsigned int port; member 62 unsigned int port; member 71 unsigned int port; member 80 unsigned int port; member
|
/xen/tools/libxc/ |
A D | xc_evtchn_compat.c | 27 int xc_evtchn_notify(xc_evtchn *xce, evtchn_port_t port) in xc_evtchn_notify() argument 29 return xenevtchn_notify(xce, port); in xc_evtchn_notify() 51 int xc_evtchn_unbind(xc_evtchn *xce, evtchn_port_t port) in xc_evtchn_unbind() argument 53 return xenevtchn_unbind(xce, port); in xc_evtchn_unbind() 62 int xc_evtchn_unmask(xc_evtchn *xce, evtchn_port_t port) in xc_evtchn_unmask() argument 64 return xenevtchn_unmask(xce, port); in xc_evtchn_unmask()
|