Home
last modified time | relevance | path

Searched refs:hub (Results 1 – 16 of 16) sorted by relevance

/qemu/net/
H A Dhub.c35 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()
84 hub->id = id; in net_hub_new()
85 hub->num_ports = 0; in net_hub_new()
86 QLIST_INIT(&hub->ports); in net_hub_new()
[all …]
H A Dmeson.build9 'hub.c',
/qemu/chardev/
H A Dchar-hub.c87 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()
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()
251 ChardevHub *hub; in qemu_chr_parse_hub() local
256 hub = backend->u.hub.data = g_new0(ChardevHub, 1); in qemu_chr_parse_hub()
257 qemu_chr_parse_common(opts, qapi_ChardevHub_base(hub)); in qemu_chr_parse_hub()
259 tail = &hub->chardevs; in qemu_chr_parse_hub()
H A Dchardev-internal.h67 HubChardev *hub; member
H A Dmeson.build6 'char-hub.c',
/qemu/docs/system/devices/
H A Dnet.rst8 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 Dusb.rst225 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/tests/unit/
H A Dtest-char.c365 Chardev *hub, *chr1, *chr2, *base; in char_hub_test() local
381 hub = qemu_chr_new_from_opts(opts, NULL, &error); in char_hub_test()
408 hub = qemu_chr_new_from_opts(opts, NULL, &error); in char_hub_test()
421 hub = qemu_chr_new_from_opts(opts, NULL, &error); in char_hub_test()
495 hub = qemu_chr_new_from_opts(opts, NULL, &error_abort); in char_hub_test()
496 g_assert_nonnull(hub); in char_hub_test()
500 qemu_chr_fe_init(&chr_be, hub, &error_abort); in char_hub_test()
510 qemu_chr_fe_init(&chr_be, hub, &error); in char_hub_test()
630 hub = qemu_chr_new_from_opts(opts, NULL, &error_abort); in char_hub_test()
631 g_assert_nonnull(hub); in char_hub_test()
[all …]
/qemu/qapi/
H A Dchar.json338 # 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 Dnet.json386 # 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/hw/usb/
H A Dbus.c396 USBDevice *hub; in usb_claim_port() local
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()
H A Dmeson.build36 system_ss.add(when: 'CONFIG_USB_HUB', if_true: files('dev-hub.c'))
H A Dtrace-events251 # dev-hub.c
/qemu/docs/system/
H A Dtarget-i386-desc.rst.inc37 hub.
/qemu/
H A Dqemu-options.hx2952 " 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/docs/about/
H A Dremoved-features.rst64 specifying a hub ID, not about IEEE 802.1Q or something similar), so this
68 connect multiple NICs or network backends via a hub device (which is what