/qemu/net/ |
H A D | hub.c | 2 * Hub net client 20 #include "hub.h" 26 * A hub broadcasts incoming packets to all its ports except the source port. 35 NetHub *hub; member 48 static ssize_t net_hub_receive(NetHub *hub, NetHubPort *source_port, in net_hub_receive() argument 53 QLIST_FOREACH(port, &hub->ports, next) { in net_hub_receive() 63 static ssize_t net_hub_receive_iov(NetHub *hub, NetHubPort *source_port, in net_hub_receive_iov() argument 69 QLIST_FOREACH(port, &hub->ports, next) { in net_hub_receive_iov() 81 NetHub *hub; in net_hub_new() local 83 hub = g_malloc(sizeof(*hub)); in net_hub_new() [all …]
|
H A D | net-hmp-cmds.c | 21 #include "net/hub.h" 41 /* Skip if already printed in hub info */ in hmp_info_network()
|
H A D | hub.h | 2 * Hub net client
|
H A D | meson.build | 9 'hub.c',
|
H A D | slirp.c | 37 #include "hub.h" 1142 monitor_printf(mon, "Hub %d (%s):\n%s", in hmp_info_usernet()
|
/qemu/chardev/ |
H A D | char-hub.c | 2 * QEMU Character Hub Device 32 * Character hub device aggregates input from multiple backend devices 33 * and forwards it to a single frontend device. Additionally, hub 87 CharBackend *fe = backend->hub->parent.be; in hub_chr_can_read() 99 CharBackend *fe = backend->hub->parent.be; in hub_chr_read() 109 HubChardev *d = backend->hub; in hub_chr_event() 165 error_setg(errp, "hub: too many uses of chardevs '%s'" in hub_chr_attach_chardev() 172 d->backends[d->be_cnt].hub = d; in hub_chr_attach_chardev() 211 ChardevHub *hub = backend->u.hub.data; in qemu_chr_open_hub() local 213 strList *list = hub->chardevs; in qemu_chr_open_hub() [all …]
|
H A D | chardev-internal.h | 63 * Back-pointer on a hub, actual backend and its index in 64 * `hub->backends` array 67 HubChardev *hub; member 77 * Number of backends attached to this hub. Once attached, a 79 * To safely remove a backend, hub has to be removed first.
|
H A D | meson.build | 6 'char-hub.c',
|
/qemu/tests/unit/ |
H A D | test-char.c | 365 Chardev *hub, *chr1, *chr2, *base; in char_hub_test() local 375 * Create invalid hub in char_hub_test() 376 * 1. Create hub without a 'chardevs.N' defined (expect error) in char_hub_test() 380 qemu_opt_set(opts, "backend", "hub", &error_abort); in char_hub_test() 381 hub = qemu_chr_new_from_opts(opts, NULL, &error); in char_hub_test() 383 "hub: 'chardevs' list is not defined"); in char_hub_test() 389 * Create invalid hub in char_hub_test() 391 * 2. Create hub which refers mux in char_hub_test() 392 * 3. Create hub which refers chardev already attached in char_hub_test() 406 qemu_opt_set(opts, "backend", "hub", &error_abort); in char_hub_test() [all …]
|
/qemu/hw/usb/ |
H A D | dev-hub.c | 2 * QEMU USB HUB emulation 54 #define TYPE_USB_HUB "usb-hub" 108 [STR_PRODUCT] = "QEMU USB Hub", 159 0x29, /* u8 bDescriptorType; Hub-descriptor */ 604 error_setg(errp, "usb hub chain too deep"); in usb_hub_realize() 624 .name = "usb-hub-port", 642 .name = "usb-hub/port-timer", 653 .name = "usb-hub", 679 uc->product_desc = "QEMU USB Hub"; in usb_hub_class_initfn() 687 dc->fw_name = "hub"; in usb_hub_class_initfn()
|
H A D | bus.c | 396 USBDevice *hub; in usb_claim_port() local 412 if (bus->nfree == 1 && strcmp(object_get_typename(OBJECT(dev)), "usb-hub") != 0) { in usb_claim_port() 413 /* Create a new hub and chain it on */ in usb_claim_port() 414 hub = USB_DEVICE(qdev_try_new("usb-hub")); in usb_claim_port() 415 if (hub) { in usb_claim_port() 416 usb_realize_and_unref(hub, bus, NULL); in usb_claim_port() 587 /* some hub between root port and device */ in usb_get_fw_dev_path() 588 pos += snprintf(fw_path + pos, fw_len - pos, "hub@%lx/", nr); in usb_get_fw_dev_path()
|
H A D | hcd-ohci.h | 29 /* Number of Downstream Ports on the root hub: */ 74 /* Root Hub partition */
|
H A D | meson.build | 36 system_ss.add(when: 'CONFIG_USB_HUB', if_true: files('dev-hub.c'))
|
H A D | hcd-ohci.c | 171 #define OHCI_INTR_RHSC (1U << 6) /* Root hub status change */ 1380 /* Set root hub status */ 1465 /* Set root hub port status */
|
/qemu/docs/system/devices/ |
H A D | net.rst | 8 emulated hub. The various host network backends can either be used to 183 QEMU can simulate several hubs. A hub can be thought of as a virtual 187 such a hub using the ``-netdev 189 connects the given device to the emulated hub with ID 0 (i.e. the 190 default hub) unless you specify a netdev with ``-net nic,netdev=xxx``
|
H A D | usb.rst | 225 ports (1-6), and the emulated (1.1) USB hub has eight ports. 231 Plugging a hub into UHCI port 2 works like this:: 233 -device usb-hub,bus=usb-bus.0,port=2 235 Plugging a virtual USB stick into port 4 of the hub just plugged works
|
/qemu/qapi/ |
H A D | char.json | 338 # Configuration info for hub chardevs. 340 # @chardevs: IDs to be added to this hub (maximum 4 devices). 495 # @hub: (since 10.0) 539 'hub', 617 # @data: Configuration info for hub chardevs 732 'hub': 'ChardevHubWrapper',
|
H A D | net.json | 386 # Connect two or more net clients through a software hub. 388 # @hubid: hub identifier number 390 # @netdev: used to connect hub to a netdev instead of a device
|
/qemu/include/hw/remote/ |
H A D | iohub.h | 2 * IO Hub for remote device
|
/qemu/docs/system/ |
H A D | target-i386-desc.rst.inc | 37 hub.
|
/qemu/hw/remote/ |
H A D | iohub.c | 2 * Remote IO Hub
|
/qemu/include/hw/ |
H A D | usb.h | 355 * the port (iow attached through a hub) gets detached. 361 * the packet originated when a hub is involved.
|
/qemu/ |
H A D | qemu-options.hx | 2952 " configure a hub port on the hub with ID 'n'\n", QEMU_ARCH_ALL) 2985 " connect it to hub 0 (please use -nic unless you need a hub)\n" 3690 Create a hub port on the emulated hub with ID hubid. 3692 The hubport netdev lets you connect a NIC to a QEMU emulated hub 3700 emulated hub with ID 0 (i.e. the default hub), or to the netdev nd. 3716 the same ``-netdev`` option) and connect it to the emulated hub 0 3717 (the default hub). Use name to specify the name of the hub port. 3769 Backend is one of: ``null``, ``socket``, ``udp``, ``msmouse``, ``hub``, 3829 regarding chardev ``hub`` aggregator device configuration. 3929 ``-chardev hub,id=id,chardevs.0=id[,chardevs.N=id]`` [all …]
|
/qemu/include/chardev/ |
H A D | char.h | 235 #define TYPE_CHARDEV_HUB "chardev-hub"
|
/qemu/tests/lcitool/ |
H A D | refresh | 119 # Based on the hub.docker.com/library/rust Dockerfiles
|