Home
last modified time | relevance | path

Searched full:port (Results 1 – 25 of 519) sorted by relevance

12345678910>>...21

/qemu/hw/net/rocker/
H A Drocker_fp.c44 char *fp_port_get_name(FpPort *port) in fp_port_get_name() argument
46 return port->name; in fp_port_get_name()
49 bool fp_port_get_link_up(FpPort *port) in fp_port_get_link_up() argument
51 return !qemu_get_queue(port->nic)->link_down; in fp_port_get_link_up()
54 RockerPort *fp_port_get_info(FpPort *port) in fp_port_get_info() argument
58 value->name = g_strdup(port->name); in fp_port_get_info()
59 value->enabled = port->enabled; in fp_port_get_info()
60 value->link_up = fp_port_get_link_up(port); in fp_port_get_info()
61 value->speed = port->speed; in fp_port_get_info()
62 value->duplex = port->duplex; in fp_port_get_info()
[all …]
H A Drocker_fp.h27 int fp_port_eg(FpPort *port, const struct iovec *iov, int iovcnt);
29 char *fp_port_get_name(FpPort *port);
30 bool fp_port_get_link_up(FpPort *port);
31 RockerPort *fp_port_get_info(FpPort *port);
32 void fp_port_get_macaddr(FpPort *port, MACAddr *macaddr);
33 void fp_port_set_macaddr(FpPort *port, MACAddr *macaddr);
34 uint8_t fp_port_get_learning(FpPort *port);
35 void fp_port_set_learning(FpPort *port, uint8_t learning);
36 int fp_port_get_settings(FpPort *port, uint32_t *speed,
38 int fp_port_set_settings(FpPort *port, uint32_t speed,
[all …]
/qemu/hw/char/
H A Dvirtio-serial-bus.c41 VirtIOSerialPort *port; in find_port_by_id() local
47 QTAILQ_FOREACH(port, &vser->ports, next) { in find_port_by_id()
48 if (port->id == id) in find_port_by_id()
49 return port; in find_port_by_id()
56 VirtIOSerialPort *port; in find_port_by_vq() local
58 QTAILQ_FOREACH(port, &vser->ports, next) { in find_port_by_vq()
59 if (port->ivq == vq || port->ovq == vq) in find_port_by_vq()
60 return port; in find_port_by_vq()
70 VirtIOSerialPort *port; in find_port_by_name() local
72 QTAILQ_FOREACH(port, &vser->ports, next) { in find_port_by_name()
[all …]
H A Dvirtio-console.c2 * Virtio Console and Generic Serial Port Devices
52 static ssize_t flush_buf(VirtIOSerialPort *port, in flush_buf() argument
55 VirtConsole *vcon = VIRTIO_CONSOLE(port); in flush_buf()
64 trace_virtio_console_flush_buf(port->id, len, ret); in flush_buf()
67 VirtIOSerialPortClass *k = VIRTIO_SERIAL_PORT_GET_CLASS(port); in flush_buf()
99 virtio_serial_throttle_port(port, true); in flush_buf()
110 /* Callback function that's called when the guest opens/closes the port */
111 static void set_guest_connected(VirtIOSerialPort *port, int guest_connected) in set_guest_connected() argument
113 VirtConsole *vcon = VIRTIO_CONSOLE(port); in set_guest_connected()
114 DeviceState *dev = DEVICE(port); in set_guest_connected()
[all …]
/qemu/hw/usb/
H A Ddev-hub.c40 USBPort port; member
162 0x00, /* (per-port OC, no power switching) */
169 static bool usb_hub_port_change(USBHubPort *port, uint16_t status) in usb_hub_port_change() argument
174 port->wPortChange |= status; in usb_hub_port_change()
180 static bool usb_hub_port_set(USBHubPort *port, uint16_t status) in usb_hub_port_set() argument
182 if (port->wPortStatus & status) { in usb_hub_port_set()
185 port->wPortStatus |= status; in usb_hub_port_set()
186 return usb_hub_port_change(port, status); in usb_hub_port_set()
189 static bool usb_hub_port_clear(USBHubPort *port, uint16_t status) in usb_hub_port_clear() argument
191 if (!(port->wPortStatus & status)) { in usb_hub_port_clear()
[all …]
H A Dbus.c22 DEFINE_PROP_STRING("port", USBDevice, port_path),
293 if (dev->port) { in usb_qdev_unrealize()
319 static void usb_fill_port(USBPort *port, void *opaque, int index, in usb_fill_port() argument
322 port->opaque = opaque; in usb_fill_port()
323 port->index = index; in usb_fill_port()
324 port->ops = ops; in usb_fill_port()
325 port->speedmask = speedmask; in usb_fill_port()
326 usb_port_location(port, NULL, index + 1); in usb_fill_port()
329 void usb_register_port(USBBus *bus, USBPort *port, void *opaque, int index, in usb_register_port() argument
332 usb_fill_port(port, opaque, index, ops, speedmask); in usb_register_port()
[all …]
H A Dxen-usb.c72 USBPort port; member
98 unsigned port; member
614 res->portnum = usb_hp->port; in usbback_hotplug_notify()
615 res->speed = usbif->ports[usb_hp->port - 1].speed; in usbback_hotplug_notify()
623 TR_BUS(&usbif->xendev, "hotplug port %d speed %d\n", usb_hp->port, in usbback_hotplug_notify()
684 static void usbback_hotplug_enq(struct usbback_info *usbif, unsigned port) in usbback_hotplug_enq() argument
689 usb_hp->port = port; in usbback_hotplug_enq()
694 static void usbback_portid_drain(struct usbback_info *usbif, unsigned port) in usbback_portid_drain() argument
699 QTAILQ_FOREACH_SAFE(req, &usbif->ports[port - 1].submit_q, q, tmp) { in usbback_portid_drain()
709 static void usbback_portid_detach(struct usbback_info *usbif, unsigned port) in usbback_portid_detach() argument
[all …]
H A Dtrace-events4 …b_packet_state_change(int bus, const char *port, int ep, void *p, const char *o, const char *n) "b…
5 …sb_packet_state_fault(int bus, const char *port, int ep, void *p, const char *o, const char *n) "b…
8 usb_port_claim(int bus, const char *port) "bus %d, port %s"
9 usb_port_attach(int bus, const char *port, const char *devspeed, const char *portspeed) "bus %d, po…
10 usb_port_detach(int bus, const char *port) "bus %d, port %s"
11 usb_port_release(int bus, const char *port) "bus %d, port %s"
33 usb_ohci_port_attach(int index) "port #%d"
34 usb_ohci_port_detach(int index) "port #%d"
35 usb_ohci_port_wakeup(int index) "port #%d"
36 usb_ohci_port_suspend(int index) "port #%d"
[all …]
/qemu/net/
H A Dhub.c26 * A hub broadcasts incoming packets to all its ports except the source port.
51 NetHubPort *port; in net_hub_receive() local
53 QLIST_FOREACH(port, &hub->ports, next) { in net_hub_receive()
54 if (port == source_port) { in net_hub_receive()
58 qemu_send_packet(&port->nc, buf, len); in net_hub_receive()
66 NetHubPort *port; in net_hub_receive_iov() local
69 QLIST_FOREACH(port, &hub->ports, next) { in net_hub_receive_iov()
70 if (port == source_port) { in net_hub_receive_iov()
74 qemu_sendv_packet(&port->nc, iov, iovcnt); in net_hub_receive_iov()
95 NetHubPort *port; in net_hub_port_can_receive() local
[all …]
/qemu/tests/qtest/libqos/
H A Dahci.c86 uint8_t port; member
118 bool is_atapi(AHCIQState *ahci, uint8_t port) in is_atapi() argument
120 return ahci_px_rreg(ahci, port, AHCI_PX_SIG) == AHCI_SIGNATURE_CDROM; in is_atapi()
166 uint8_t port, slot; in ahci_clean_mem() local
168 for (port = 0; port < 32; ++port) { in ahci_clean_mem()
169 if (ahci->port[port].fb) { in ahci_clean_mem()
170 ahci_free(ahci, ahci->port[port].fb); in ahci_clean_mem()
171 ahci->port[port].fb = 0; in ahci_clean_mem()
173 if (ahci->port[port].clb) { in ahci_clean_mem()
175 ahci_destroy_command(ahci, port, slot); in ahci_clean_mem()
[all …]
/qemu/hw/ide/
H A Dtrace-events66 ahci_port_read(void *s, int port, const char *reg, int offset, uint32_t ret) "ahci(%p)[%d]: port re…
67 ahci_port_read_default(void *s, int port, const char *reg, int offset) "ahci(%p)[%d]: unimplemented…
71 ahci_trigger_irq(void *s, int port, const char *name, uint32_t val, uint32_t old, uint32_t new, uin…
72 ahci_port_write(void *s, int port, const char *reg, int offset, uint32_t val) "ahci(%p)[%d]: port w…
73 …hci_port_write_unimpl(void *s, int port, const char *reg, int offset, uint32_t val) "ahci(%p)[%d]:…
83 ahci_set_signature(void *s, int port, uint8_t nsector, uint8_t sector, uint8_t lcyl, uint8_t hcyl, …
84 ahci_reset_port(void *s, int port) "ahci(%p)[%d]: reset port"
85 ahci_unmap_fis_address_null(void *s, int port) "ahci(%p)[%d]: Attempt to unmap NULL FIS address"
86 ahci_unmap_clb_address_null(void *s, int port) "ahci(%p)[%d]: Attempt to unmap NULL CLB address"
87 ahci_populate_sglist(void *s, int port) "ahci(%p)[%d]"
[all …]
H A Dahci.c38 static void check_cmd(AHCIState *s, int port);
39 static void handle_cmd(AHCIState *s, int port, uint8_t slot);
40 static void ahci_reset_port(AHCIState *s, int port);
110 static uint32_t ahci_port_read(AHCIState *s, int port, int offset) in ahci_port_read() argument
113 AHCIPortRegs *pr = &s->dev[port].port_regs; in ahci_port_read()
146 if (s->dev[port].port.ifs[0].blk) { in ahci_port_read()
166 trace_ahci_port_read_default(s, port, AHCIPortReg_lookup[regnum], in ahci_port_read()
171 trace_ahci_port_read(s, port, AHCIPortReg_lookup[regnum], offset, val); in ahci_port_read()
272 static void ahci_port_write(AHCIState *s, int port, int offset, uint32_t val) in ahci_port_write() argument
274 AHCIPortRegs *pr = &s->dev[port].port_regs; in ahci_port_write()
[all …]
/qemu/hw/i386/kvm/
H A Dxen_evtchn.c66 uint16_t port:15; member
128 uint16_t port; member
210 /* Rebuild s->pirq[].port mapping */ in xen_evtchn_post_load()
224 s->pirq[p->u.pirq].port = i; in xen_evtchn_post_load()
547 static void deassign_kernel_port(evtchn_port_t port) in deassign_kernel_port() argument
553 ha.u.evtchn.send_port = port; in deassign_kernel_port()
558 qemu_log_mask(LOG_GUEST_ERROR, "Failed to unbind kernel port %d: %s\n", in deassign_kernel_port()
559 port, strerror(ret)); in deassign_kernel_port()
563 static int assign_kernel_port(uint16_t type, evtchn_port_t port, in assign_kernel_port() argument
574 ha.u.evtchn.send_port = port; in assign_kernel_port()
[all …]
/qemu/tests/qemu-iotests/tests/
H A Dnbd-tls-iothread52 # Picks and returns an "unused" port, setting the global variable
53 # $port.
63 # Start at a random port to make it less likely that two parallel
65 port=$(( 50000 + (RANDOM%15000) ))
66 while ss -ltn | grep -sqE ":$port\b"; do
67 ((port++))
68 if [ $port -eq 65000 ]; then port=50000; fi
70 echo picked unused port
79 echo "== preparing TLS creds and spare port =="
100 -device '{"driver":"pcie-root-port", "id":"root0", "multifunction":true,
[all …]
/qemu/include/hw/virtio/
H A Dvirtio-serial.h28 #define TYPE_VIRTIO_SERIAL_PORT "virtio-serial-port"
45 * The per-port (or per-app) realize function that's called when a
50 * Per-port unrealize function that's called when a port gets
57 void (*set_guest_connected)(VirtIOSerialPort *port, int guest_connected);
59 /* Enable/disable backend for virtio serial port */
60 void (*enable_backend)(VirtIOSerialPort *port, bool enable);
63 void (*guest_ready)(VirtIOSerialPort *port);
74 void (*guest_writable)(VirtIOSerialPort *port);
77 * Guest wrote some data to the port. This data is handed over to
79 * 'len'. In this case, throttling will be enabled for this port.
[all …]
/qemu/pc-bios/optionrom/
H A Doptrom.h38 static inline void outb(uint8_t value, uint16_t port) in outb() argument
40 asm volatile("outb %0, %w1" : : "a"(value), "Nd"(port)); in outb()
43 static inline void outw(uint16_t value, uint16_t port) in outw() argument
45 asm volatile("outw %0, %w1" : : "a"(value), "Nd"(port)); in outw()
48 static inline void outl(uint32_t value, uint16_t port) in outl() argument
50 asm volatile("outl %0, %w1" : : "a"(value), "Nd"(port)); in outl()
53 static inline uint8_t inb(uint16_t port) in inb() argument
57 asm volatile("inb %w1, %0" : "=a"(value) : "Nd"(port)); in inb()
61 static inline uint16_t inw(uint16_t port) in inw() argument
65 asm volatile("inw %w1, %0" : "=a"(value) : "Nd"(port)); in inw()
[all …]
/qemu/hw/net/
H A Dxilinx_ethlite.c97 unsigned int port_index; /* dual port RAM index */
101 XlnxXpsEthLitePort port[2]; member
107 if (s->port[0].reg.tx_gie & GIE_GIE) { in eth_pulse_irq()
119 return memory_region_get_ram_ptr(&s->port[port_index].txbuf); in txbuf_ptr()
124 return memory_region_get_ram_ptr(&s->port[port_index].rxbuf); in rxbuf_ptr()
135 r = s->port[port_index].reg.tx_len; in port_tx_read()
138 r = s->port[port_index].reg.tx_gie; in port_tx_read()
141 r = s->port[port_index].reg.tx_ctrl; in port_tx_read()
158 s->port[port_index].reg.tx_len = value; in port_tx_write()
161 s->port[port_index].reg.tx_gie = value; in port_tx_write()
[all …]
/qemu/include/hw/usb/
H A Dehci-regs.h31 #define USBSTS_PCD (1 << 2) // Port Change Detect
64 #define PORTSC_PTC (15 << 16) // Port Test Control
65 #define PORTSC_PTC_SH 16 // Port Test Control shift
66 #define PORTSC_PIC (3 << 14) // Port Indicator Control
67 #define PORTSC_PIC_SH 14 // Port Indicator Control Shift
68 #define PORTSC_POWNER (1 << 13) // Port Owner
69 #define PORTSC_PPOWER (1 << 12) // Port Power
70 #define PORTSC_LINESTAT (3 << 10) // Port Line Status
71 #define PORTSC_LINESTAT_SH 10 // Port Line Status Shift
72 #define PORTSC_PRESET (1 << 8) // Port Reset
[all …]
/qemu/tests/qtest/
H A Dnetdev-socket.c83 static int inet_get_free_port_multiple(int nb, int *port, bool ipv6) in inet_get_free_port_multiple() argument
93 port[i] = ipv6 ? inet_get_free_port_socket_ipv6(sock[i]) : in inet_get_free_port_multiple()
95 if (port[i] == -1) { in inet_get_free_port_multiple()
110 int nb, port; in inet_get_free_port() local
112 nb = inet_get_free_port_multiple(1, &port, ipv6); in inet_get_free_port()
115 return port; in inet_get_free_port()
122 int port; in test_stream_inet_ipv4() local
124 port = inet_get_free_port(false); in test_stream_inet_ipv4()
128 "addr.host=127.0.0.1,addr.port=%d", port); in test_stream_inet_ipv4()
135 "addr.host=127.0.0.1,addr.port=%d", port); in test_stream_inet_ipv4()
[all …]
/qemu/tests/qemu-iotests/
H A D16252 # And this should not treat @port as if it had not been specified
54 # refused" does not contain the destination port)
57 # random port and continue until success, i.e. until we have found a port that
60 port=$((RANDOM + 32768))
61 if $QEMU_NBD -p $port -f raw --fork null-co:// 2> /dev/null; then
66 $QEMU_IMG info "json:{'driver': 'nbd', 'host': 'localhost', 'port': $port}" \
67 | grep '^image' | sed -e "s/$port/PORT/"
79 # SSH expects all of its arguments to be strings, except for @port, which is
83 $QEMU_IMG info 'json:{"driver": "ssh", "host": "localhost", "port": "0", "path": "/foo"}'
86 driver=ssh,host=localhost,port=0,path=/foo
[all …]
H A D083.out4 qemu-io: can't open device nbd+tcp://127.0.0.1:PORT/foo
8 qemu-io: can't open device nbd+tcp://127.0.0.1:PORT/foo
12 qemu-io: can't open device nbd+tcp://127.0.0.1:PORT/foo
16 qemu-io: can't open device nbd+tcp://127.0.0.1:PORT/foo
20 qemu-io: can't open device nbd+tcp://127.0.0.1:PORT/foo
24 qemu-io: can't open device nbd+tcp://127.0.0.1:PORT/foo
28 qemu-io: can't open device nbd+tcp://127.0.0.1:PORT/foo
32 qemu-io: can't open device nbd+tcp://127.0.0.1:PORT/foo
36 qemu-io: can't open device nbd+tcp://127.0.0.1:PORT/foo
40 qemu-io: can't open device nbd+tcp://127.0.0.1:PORT/foo
[all …]
/qemu/hw/misc/
H A Dtz-ppc.c82 /* Check whether to allow an access to port n; return true if in tz_ppc_check()
110 int n = p - s->port; in tz_ppc_read()
151 int n = p - s->port; in tz_ppc_write()
193 * Board code should never map the upstream end of an unused port, in tz_ppc_dummy_accepts()
248 /* We can't create the upstream end of the port until realize, in tz_ppc_realize()
252 if (s->port[i].downstream) { in tz_ppc_realize()
258 TZPPCPort *port = &s->port[i]; in tz_ppc_realize() local
262 if (!port->downstream) { in tz_ppc_realize()
265 * numbering doesn't get out of sync with the port numbers. in tz_ppc_realize()
268 name = g_strdup_printf("tz-ppc-dummy-port[%d]", i); in tz_ppc_realize()
[all …]
/qemu/include/hw/misc/
H A Dtz-ppc.h29 * "default" port which has no security checks applied. In QEMU the default
30 * port can be emulated simply by wiring its downstream devices directly
34 * In the hardware, selection of which downstream port to use is done by
36 * we provide 16 MMIO regions, one per port, and the user maps these into
41 * of each of the 16 ports of the PPC. When a port is unused (i.e. no
44 * unused port lies in the middle of the range with other used ports at
45 * higher port numbers, a dummy MMIO region is created to ensure that
46 * port N's upstream is always sysbus MMIO region N. Dummy regions should
48 * + Property "port[0..15]": MemoryRegion defining the downstream device(s)
50 * + Named GPIO inputs "cfg_nonsec[0..15]": set to 1 if the port should be
[all …]
/qemu/docs/config/
H A Dq35-virtio-serial.cfg80 driver = "pcie-root-port"
83 port = "1"
88 driver = "pcie-root-port"
91 port = "2"
95 driver = "pcie-root-port"
98 port = "3"
102 driver = "pcie-root-port"
105 port = "4"
109 driver = "pcie-root-port"
112 port = "5"
[all …]
/qemu/util/
H A Dqemu-sockets.c74 static void inet_setport(struct addrinfo *e, int port) in inet_setport() argument
82 i6->sin6_port = htons(port); in inet_setport()
86 i4->sin_port = htons(port); in inet_setport()
206 * it could be that the IPv4 port is already claimed, so retry in try_bind()
276 char port[33]; in inet_listen_saddr() local
299 if (saddr->port != NULL) { in inet_listen_saddr()
300 pstrcpy(port, sizeof(port), saddr->port); in inet_listen_saddr()
302 port[0] = '\0'; in inet_listen_saddr()
308 if (strlen(port) == 0) { in inet_listen_saddr()
309 error_setg(errp, "port not specified"); in inet_listen_saddr()
[all …]

12345678910>>...21