/qemu/hw/net/rocker/ |
H A D | rocker_fp.c | 46 return port->name; in fp_port_get_name() 116 *port = pport - 1; in fp_port_from_pport() 146 return world_ingress(port->world, port->pport, iov, iovcnt); in fp_port_receive_iov() 168 rocker_event_link_changed(port->r, port->pport, !nc->link_down); in fp_port_set_link_status() 231 port->r = r; in fp_port_alloc() 237 port->name = g_strdup_printf("%sp%d", sw_name, port->pport); in fp_port_alloc() 239 memcpy(port->conf.macaddr.a, start_mac, sizeof(port->conf.macaddr.a)); in fp_port_alloc() 244 port->nic = qemu_new_nic(&fp_port_info, &port->conf, sw_name, NULL, in fp_port_alloc() 251 return port; in fp_port_alloc() 258 g_free(port); in fp_port_free() [all …]
|
H A D | rocker_fp.h | 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); 34 uint8_t fp_port_get_learning(FpPort *port); 41 World *fp_port_get_world(FpPort *port); 42 void fp_port_set_world(FpPort *port, World *world); 44 bool fp_port_enabled(FpPort *port); 45 void fp_port_enable(FpPort *port); 46 void fp_port_disable(FpPort *port); 51 void fp_port_free(FpPort *port); [all …]
|
/qemu/hw/char/ |
H A D | virtio-serial-bus.c | 59 if (port->ivq == vq || port->ovq == vq) in find_port_by_vq() 221 do_flush_queued_data(port, port->ovq, VIRTIO_DEVICE(port->vser)); in flush_queued_data() 297 if (!port || !port->host_connected || !port->guest_connected) { in virtio_serial_write() 507 if (!port || !port->host_connected) { in handle_output() 633 if (port && !use_multiport(port->vser) in set_status() 727 port = s->post_load->connected[i].port; in virtio_serial_post_load_timer_cb() 776 s->post_load->connected[i].port = port; in fetch_active_ports_list() 998 port->ivq = port->vser->ivqs[port->id]; in virtser_port_device_plug() 999 port->ovq = port->vser->ovqs[port->id]; in virtser_port_device_plug() 1001 add_port(port->vser, port->id); in virtser_port_device_plug() [all …]
|
H A D | virtio-console.c | 52 static ssize_t flush_buf(VirtIOSerialPort *port, in flush_buf() argument 55 VirtConsole *vcon = VIRTIO_CONSOLE(port); in flush_buf() 113 VirtConsole *vcon = VIRTIO_CONSOLE(port); in set_guest_connected() 114 DeviceState *dev = DEVICE(port); in set_guest_connected() 128 VirtConsole *vcon = VIRTIO_CONSOLE(port); in guest_writable() 148 virtio_serial_write(port, buf, size); in chr_read() 159 virtio_serial_open(port); in chr_event() 166 virtio_serial_close(port); in chr_event() 202 VirtConsole *vcon = VIRTIO_CONSOLE(port); in virtconsole_enable_backend() 226 if (port->id == 0 && !k->is_console) { in virtconsole_realize() [all …]
|
/qemu/hw/usb/ |
H A D | dev-hub.c | 40 USBPort port; member 202 if (port->port.dev && port->port.dev->attached) { in usb_hub_port_update() 204 if (port->port.dev->speed == USB_SPEED_LOW) { in usb_hub_port_update() 246 s->dev.port->ops->child_detach(s->dev.port, port1->dev); in usb_hub_detach() 259 s->dev.port->ops->child_detach(s->dev.port, child); in usb_hub_child_detach() 286 s->dev.port->ops->complete(s->dev.port, packet); in usb_hub_complete() 292 USBHubPort *port; in usb_hub_find_device() local 301 downstream = usb_find_device(&port->port, addr); in usb_hub_find_device() 414 pdev = port->port.dev; in usb_hub_handle_control() 615 &port->port, s, i, &usb_hub_port_ops, in usb_hub_realize() [all …]
|
H A D | bus.c | 294 if (dev->port) { in usb_qdev_unrealize() 325 port->ops = ops; in usb_fill_port() 386 if (port->dev) { in usb_unregister_port() 396 USBPort *port; in usb_claim_port() local 432 dev->port = port; in usb_claim_port() 442 USBPort *port = dev->port; in usb_release_port() local 486 USBPort *port = dev->port; in usb_check_attach() local 508 USBPort *port = dev->port; in usb_device_attach() local 524 USBPort *port = dev->port; in usb_device_detach() local 555 dev->port ? dev->port->path : "-", in usb_bus_dev_print() [all …]
|
H A D | xen-usb.c | 72 USBPort port; member 98 unsigned port; member 614 res->portnum = usb_hp->port; in usbback_hotplug_notify() 689 usb_hp->port = port; in usbback_hotplug_enq() 718 usbback_hotplug_enq(usbif, port); in usbback_portid_detach() 744 if (usbif->ports[port - 1].dev) { in usbback_portid_add() 805 usbback_hotplug_enq(usbif, port); in usbback_portid_add() 967 usbif = port->opaque; in xen_bus_attach() 977 usbif = port->opaque; in xen_bus_detach() 986 usbif = port->opaque; in xen_bus_child_detach() [all …]
|
H A D | hcd-uhci.c | 310 UHCIPort *port; in uhci_reset() local 328 if (port->port.dev && port->port.dev->attached) { in uhci_reset() 329 usb_port_reset(&port->port); in uhci_reset() 403 UHCIPort *port; in uhci_port_write() local 409 usb_device_reset(port->port.dev); in uhci_port_write() 455 UHCIPort *port; in uhci_port_write() local 464 dev = port->port.dev; in uhci_port_write() 514 UHCIPort *port; in uhci_port_read() local 559 if (port->port.dev->speed == USB_SPEED_LOW) { in uhci_attach() 601 if (port->ctrl & UHCI_PORT_SUSPEND && !(port->ctrl & UHCI_PORT_RD)) { in uhci_wakeup() [all …]
|
/qemu/net/ |
H A D | hub.c | 51 NetHubPort *port; in net_hub_receive() local 66 NetHubPort *port; in net_hub_receive_iov() local 95 NetHubPort *port; in net_hub_port_can_receive() local 117 return net_hub_receive(port->hub, port, buf, len); in net_hub_port_receive() 125 return net_hub_receive_iov(port->hub, port, iov, iovcnt); in net_hub_port_receive_iov() 148 NetHubPort *port; in net_hub_port_new() local 160 port->id = id; in net_hub_port_new() 161 port->hub = hub; in net_hub_port_new() 165 return port; in net_hub_port_new() 180 NetHubPort *port; in net_hub_add_port() local [all …]
|
/qemu/tests/qtest/libqos/ |
H A D | ahci.c | 168 for (port = 0; port < 32; ++port) { in ahci_clean_mem() 169 if (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() 178 ahci->port[port].clb = 0; in ahci_clean_mem() 409 uint8_t port = cmd->port; in ahci_port_check_error() local 466 uint8_t port = cmd->port; in ahci_port_check_interrupts() local 488 uint8_t port = cmd->port; in ahci_port_check_nonbusy() local 536 uint8_t port = cmd->port; in ahci_port_check_pio_sanity() local 1193 cmd->port = port; in ahci_command_commit() [all …]
|
H A D | ahci.h | 344 AHCIPortQState port[32]; member 545 return ahci_rreg(ahci, ahci_px_offset(port, reg_num)); in ahci_px_rreg() 557 ahci_px_wreg(ahci, port, reg_num, in ahci_px_set() 564 ahci_px_wreg(ahci, port, reg_num, in ahci_px_clr() 582 void ahci_port_clear(AHCIQState *ahci, uint8_t port); 585 unsigned ahci_pick_cmd(AHCIQState *ahci, uint8_t port); 601 bool is_atapi(AHCIQState *ahci, uint8_t port); 611 void ahci_exec(AHCIQState *ahci, uint8_t port, 615 void ahci_atapi_get_sense(AHCIQState *ahci, uint8_t port, 617 void ahci_atapi_eject(AHCIQState *ahci, uint8_t port); [all …]
|
/qemu/hw/i386/kvm/ |
H A D | xen_evtchn.c | 562 ha.u.evtchn.deliver.port.port = port; in assign_kernel_port() 659 status->u.interdomain.port = p->u.interdomain.port; in xen_evtchn_status_op() 924 evt.port = port; in set_port_pending() 1078 rp->u.interdomain.port != port || in close_port() 1290 s->pirq[pirq->pirq].port = pirq->port; in xen_evtchn_bind_pirq_op() 1632 int port = s->pirq[pirq].port; in xen_evtchn_set_gsi() local 1772 port = s->pirq[pirq].port; in xen_evtchn_translate_pirq_msi() 1783 route->u.xen_evtchn.port = port; in xen_evtchn_translate_pirq_msi() 1808 port = s->pirq[pirq].port; in xen_evtchn_deliver_pirq_msi() 1941 int port = s->pirq[pirq].port; in xen_physdev_eoi_pirq() local [all …]
|
/qemu/pc-bios/optionrom/ |
H A D | optrom.h | 38 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 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() 69 static inline uint32_t inl(uint16_t port) in inl() argument [all …]
|
/qemu/hw/ide/ |
H A D | ahci.c | 153 if (s->dev[port].port.ifs[0].blk) { in ahci_port_read() 360 check_cmd(s, port); in ahci_port_write() 383 check_cmd(s, port); in ahci_port_write() 676 ide_state = &s->dev[port].port.ifs[0]; in ahci_reset_port() 1091 int port = ad->port_no; in execute_ncq_command() local 1224 return s->dev[port].lst ? &((AHCICmdHdr *)s->dev[port].lst)[slot] : NULL; in get_cmd_header() 1230 IDEState *ide_state = &s->dev[port].port.ifs[0]; in handle_reg_h2d_fis() 1338 ide_bus_exec_cmd(&s->dev[port].port, cmd_fis[2]); in handle_reg_h2d_fis() 1349 if (s->dev[port].port.ifs[0].status & (BUSY_STAT|DRQ_STAT)) { in handle_cmd() 1364 ide_state = &s->dev[port].port.ifs[0]; in handle_cmd() [all …]
|
H A D | trace-events | 66 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… 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]:… 84 ahci_reset_port(void *s, int port) "ahci(%p)[%d]: reset port" 87 ahci_populate_sglist(void *s, int port) "ahci(%p)[%d]" 105 handle_cmd_busy(void *s, int port) "ahci(%p)[%d]: engine busy" 106 handle_cmd_nolist(void *s, int port) "ahci(%p)[%d]: handle_cmd called without s->dev[port].lst" 107 handle_cmd_badport(void *s, int port) "ahci(%p)[%d]: guest accessed unused port" 112 ahci_start_dma(void *s, int port) "ahci(%p)[%d]: start dma" [all …]
|
/qemu/hw/pci-host/ |
H A D | mv643xx.h | 709 #define MV64340_MPSC_CAUSE_REG(port) (0xb804 + (port << 3)) argument 710 #define MV64340_MPSC_MASK_REG(port) (0xb884 + (port << 3)) argument 712 #define MV64340_MPSC_MAIN_CONFIG_LOW(port) (0x8000 + (port << 12)) argument 713 #define MV64340_MPSC_MAIN_CONFIG_HIGH(port) (0x8004 + (port << 12)) argument 714 #define MV64340_MPSC_PROTOCOL_CONFIG(port) (0x8008 + (port << 12)) argument 715 #define MV64340_MPSC_CHANNEL_REG1(port) (0x800c + (port << 12)) argument 716 #define MV64340_MPSC_CHANNEL_REG2(port) (0x8010 + (port << 12)) argument 717 #define MV64340_MPSC_CHANNEL_REG3(port) (0x8014 + (port << 12)) argument 718 #define MV64340_MPSC_CHANNEL_REG4(port) (0x8018 + (port << 12)) argument 719 #define MV64340_MPSC_CHANNEL_REG5(port) (0x801c + (port << 12)) argument [all …]
|
/qemu/include/hw/virtio/ |
H A D | virtio-serial.h | 57 void (*set_guest_connected)(VirtIOSerialPort *port, int guest_connected); 60 void (*enable_backend)(VirtIOSerialPort *port, bool enable); 63 void (*guest_ready)(VirtIOSerialPort *port); 74 void (*guest_writable)(VirtIOSerialPort *port); 81 ssize_t (*have_data)(VirtIOSerialPort *port, const uint8_t *buf, 164 VirtIOSerialPort *port; member 198 int virtio_serial_open(VirtIOSerialPort *port); 204 int virtio_serial_close(VirtIOSerialPort *port); 209 ssize_t virtio_serial_write(VirtIOSerialPort *port, const uint8_t *buf, 215 size_t virtio_serial_guest_ready(VirtIOSerialPort *port); [all …]
|
/qemu/tests/qtest/ |
H A D | netdev-socket.c | 95 if (port[i] == -1) { in inet_get_free_port_multiple() 110 int nb, port; in inet_get_free_port() local 115 return port; in inet_get_free_port() 122 int port; in test_stream_inet_ipv4() local 138 port); in test_stream_inet_ipv4() 245 int port; in test_stream_inet_ipv6() local 370 int port[2]; in test_dgram_inet() local 380 port[0], port[1]); in test_dgram_inet() 384 port[0], port[1]); in test_dgram_inet() 392 port[1], port[0]); in test_dgram_inet() [all …]
|
H A D | ahci-test.c | 217 uint8_t port; in ahci_boot_and_enable() local 857 uint8_t port; in ahci_test_io_rw_simple() local 892 uint8_t port; in ahci_test_nondata() local 900 return port; in ahci_test_nondata() 912 uint8_t port; in ahci_test_max() local 923 qtest_memread(ahci->parent->qts, ahci->port[port].fb + 0x40, d2h, 0x20); in ahci_test_max() 1088 uint8_t port; in test_flush() local 1105 uint8_t port; in test_flush_retry() local 1211 uint8_t port; in ahci_halted_io_test() local 1276 uint8_t port; in ahci_migrate_halted_io() local [all …]
|
/qemu/include/hw/xen/interface/ |
H A D | event_channel.h | 80 evtchn_port_t port; member 130 evtchn_port_t port; member 146 evtchn_port_t port; member 159 evtchn_port_t port; member 170 evtchn_port_t port; member 180 evtchn_port_t port; member 195 evtchn_port_t port; member 211 evtchn_port_t port; member 233 evtchn_port_t port; member 244 evtchn_port_t port; member [all …]
|
/qemu/util/ |
H A D | qemu-sockets.c | 215 char port[33]; in inet_listen_saddr() local 245 pstrcpy(port, sizeof(port), saddr->port); in inet_listen_saddr() 269 strlen(port) ? port : NULL, &ai, &res); in inet_listen_saddr() 514 port = sraddr->port; in inet_dgram_saddr() 518 if (port == NULL || strlen(port) == 0) { in inet_dgram_saddr() 537 port = sladdr->port; in inet_dgram_saddr() 541 if (!port || strlen(port) == 0) { in inet_dgram_saddr() 627 char port[33]; in inet_parse() local 657 addr->port = g_strdup(port); in inet_parse() 833 char port[33]; in vsock_parse() local [all …]
|
/qemu/hw/misc/ |
H A D | tz-ppc.c | 110 int n = p - s->port; in tz_ppc_read() 151 int n = p - s->port; in tz_ppc_write() 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() 271 sysbus_init_mmio(sbd, &port->upstream); in tz_ppc_realize() 278 port->ppc = s; in tz_ppc_realize() 279 address_space_init(&port->downstream_as, port->downstream, name); in tz_ppc_realize() 281 size = memory_region_size(port->downstream); in tz_ppc_realize() 283 port, name, size); in tz_ppc_realize() [all …]
|
/qemu/docs/config/ |
H A D | q35-virtio-serial.cfg | 80 driver = "pcie-root-port" 83 port = "1" 88 driver = "pcie-root-port" 91 port = "2" 95 driver = "pcie-root-port" 98 port = "3" 105 port = "4" 112 port = "5" 119 port = "6" 126 port = "7" [all …]
|
/qemu/tests/qemu-iotests/ |
H A D | 162 | 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/" 86 driver=ssh,host=localhost,port=0,path=/foo 93 driver=ssh,host=localhost,port=0.42,path=/foo
|
/qemu/ui/ |
H A D | spice-core.c | 189 char host[NI_MAXHOST], port[NI_MAXSERV]; in add_addr_info() local 191 getnameinfo(addr, len, host, sizeof(host), port, sizeof(port), in add_addr_info() 195 info->port = g_strdup(port); in add_addr_info() 395 host, sizeof(host), port, sizeof(port), in qmp_query_spice_channels() 398 chan->port = g_strdup(port); in qmp_query_spice_channels() 522 int port, tls_port; in qmp_query_spice_real() local 551 if (port) { in qmp_query_spice_real() 553 info->port = port; in qmp_query_spice_real() 665 int port, tls_port, addr_flags; in qemu_spice_init() local 677 if (port < 0 || port > 65535) { in qemu_spice_init() [all …]
|