Home
last modified time | relevance | path

Searched +full:peer +full:- +full:hub (Results 1 – 25 of 41) sorted by relevance

12

/openbmc/qemu/net/
H A Dhub.c2 * Hub net client
11 * See the COPYING.LIB file in the top-level directory.
20 #include "hub.h"
22 #include "qemu/error-report.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()
58 qemu_send_packet(&port->nc, buf, len); in net_hub_receive()
63 static ssize_t net_hub_receive_iov(NetHub *hub, NetHubPort *source_port, in net_hub_receive_iov() argument
[all …]
H A Dnet-hmp-cmds.c10 * the COPYING file in the top-level directory.
12 * Contributions after 2012-01-13 are licensed under the terms of the
21 #include "net/hub.h"
22 #include "qapi/clone-visitor.h"
23 #include "qapi/qapi-commands-net.h"
24 #include "qapi/qapi-visit-net.h"
26 #include "qemu/config-file.h"
32 NetClientState *nc, *peer; in hmp_info_network() local
38 peer = nc->peer; in hmp_info_network()
39 type = nc->info->type; in hmp_info_network()
[all …]
H A Dnet.c4 * Copyright (c) 2003-2008 Fabrice Bellard
29 #include "hub.h"
30 #include "hw/qdev-properties.h"
37 #include "qapi/qapi-commands-net.h"
38 #include "qapi/qapi-visit-net.h"
41 #include "qemu/error-report.h"
44 #include "qemu/config-file.h"
48 #include "qemu/qemu-print.h"
49 #include "qemu/main-loop.h"
53 #include "qapi/opts-visitor.h"
[all …]
H A Dslirp.c4 * Copyright (c) 2003-2008 Fabrice Bellard
37 #include "hub.h"
39 #include "qemu/error-report.h"
42 #include "chardev/char-fe.h"
50 #include "migration/qemu-file-types.h"
59 return -1; in get_str_sep()
60 len = p1 - p; in get_str_sep()
63 if (len > buf_size - 1) in get_str_sep()
64 len = buf_size - 1; in get_str_sep()
123 if (net_peer_needs_padding(&s->nc)) { in net_slirp_send_packet()
[all …]
/openbmc/linux/drivers/usb/core/
H A Dport.c1 // SPDX-License-Identifier: GPL-2.0
15 #include "hub.h"
26 return sysfs_emit(buf, "%s\n", port_dev->early_stop ? "yes" : "no"); in early_stop_show()
36 return -EINVAL; in early_stop_store()
39 port_dev->early_stop = 1; in early_stop_store()
41 port_dev->early_stop = 0; in early_stop_store()
51 struct usb_device *hdev = to_usb_device(dev->parent->parent); in disable_show()
52 struct usb_hub *hub = usb_hub_to_struct_hub(hdev); in disable_show() local
53 struct usb_interface *intf = to_usb_interface(dev->parent); in disable_show()
54 int port1 = port_dev->portnum; in disable_show()
[all …]
H A Dhub.h1 /* SPDX-License-Identifier: GPL-2.0 */
3 * usb hub driver head file
28 struct usb_hub_status hub; member
48 #if USB_MAXCHILDREN > 31 /* 8*sizeof(unsigned long) - 1 */
80 * struct usb port - kernel's representation of a usb port
84 * @peer: related usb2 and usb3 ports (share the same connector)
92 * @is_superspeed cache super-speed status
102 struct usb_port *peer; member
122 extern int usb_hub_create_port_device(struct usb_hub *hub,
124 extern void usb_hub_remove_port_device(struct usb_hub *hub,
[all …]
H A Dhcd.c1 // SPDX-License-Identifier: GPL-2.0+
4 * (C) Copyright Johannes Erdfelt 1999-2001
9 * (C) Copyright David Brownell 2000-2002
23 #include <linux/dma-mapping.h>
45 /*-------------------------------------------------------------------------*/
51 * HCD-specific behaviors/bugs.
55 * hardware differences. That includes root hub registers, i/o queues,
58 * Shared code includes most of the "root hub" code (these are emulated,
66 * only by the hub driver ... and that neither should be seen or used by
70 * Roman Weissgaerber, Rory Bolt, Greg Kroah-Hartman, ...
[all …]
/openbmc/linux/Documentation/devicetree/bindings/usb/
H A Dmicrochip,usb5744.yaml1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
3 ---
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: Microchip USB5744 4-port Hub Controller
10 Microchip's USB5744 SmartHubTM IC is a 4 port, SuperSpeed (SS)/Hi-Speed (HS),
19 - Piyush Mehta <piyush.mehta@amd.com>
20 - Michal Simek <michal.simek@amd.com>
25 - usb424,2744
26 - usb424,5744
27 - microchip,usb5744
[all …]
H A Drealtek,rts5411.yaml1 # SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
3 ---
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: Realtek RTS5411 USB 3.0 hub controller
10 - Matthias Kaehlcke <mka@chromium.org>
13 - $ref: usb-device.yaml#
18 - enum:
19 - usbbda,5411
20 - usbbda,411
24 vdd-supply:
[all …]
H A Dti,usb8041.yaml1 # SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
3 ---
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: TI USB8041 USB 3.0 hub controller
10 - Alexander Stein <alexander.stein@ew.tq-group.com>
13 - $ref: usb-device.yaml#
18 - usb451,8140
19 - usb451,8142
23 reset-gpios:
25 - description: GPIO specifier for GRST# pin.
[all …]
H A Dvialab,vl817.yaml1 # SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
3 ---
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: Via labs VL817 USB 3.1 hub controller
10 - Anand Moon <linux.amoon@gmail.com>
13 - $ref: usb-device.yaml#
18 - usb2109,2817
19 - usb2109,817
23 reset-gpios:
28 vdd-supply:
[all …]
H A Dcypress,hx3.yaml1 # SPDX-License-Identifier: GPL-2.0-only or BSD-2-Clause
3 ---
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: Cypress HX3 USB 3.0 hub controller family
10 - Benjamin Bara <benjamin.bara@skidata.com>
13 - $ref: usb-device.yaml#
18 - usb4b4,6504
19 - usb4b4,6506
23 reset-gpios:
25 - description: GPIO specifier for RESETN pin.
[all …]
/openbmc/linux/drivers/usb/misc/
H A Donboard_usb_hub_pdevs.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * API for creating and destroying USB onboard hub platform devices
33 * onboard_hub_create_pdevs -- create platform devices for onboard USB hubs
34 * @parent_hub : parent hub to scan for connected onboard hubs
35 * @pdev_list : list of onboard hub platform devices owned by the parent hub
37 * Creates a platform device for each supported onboard hub that is connected to
38 * the given parent hub. The platform device is in charge of initializing the
39 * hub (enable regulators, take the hub out of reset, ...) and can optionally
40 * control whether the hub remains powered during system suspend or not.
43 * by the parent hub.
[all …]
H A Donboard_usb_hub.c1 // SPDX-License-Identifier: GPL-2.0-only
32 * hub requires more than the currently supported supplies, add a new one here.
65 static int onboard_hub_power_on(struct onboard_hub *hub) in onboard_hub_power_on() argument
69 err = regulator_bulk_enable(hub->pdata->num_supplies, hub->supplies); in onboard_hub_power_on()
71 dev_err(hub->dev, "failed to enable supplies: %d\n", err); in onboard_hub_power_on()
75 fsleep(hub->pdata->reset_us); in onboard_hub_power_on()
76 gpiod_set_value_cansleep(hub->reset_gpio, 0); in onboard_hub_power_on()
78 hub->is_powered_on = true; in onboard_hub_power_on()
83 static int onboard_hub_power_off(struct onboard_hub *hub) in onboard_hub_power_off() argument
87 gpiod_set_value_cansleep(hub->reset_gpio, 1); in onboard_hub_power_off()
[all …]
/openbmc/linux/arch/arm64/boot/dts/amlogic/
H A Dmeson-sm1-odroid-c4.dts1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
6 /dts-v1/;
8 #include "meson-sm1-odroid.dtsi"
11 compatible = "hardkernel,odroid-c4", "amlogic,sm1";
12 model = "Hardkernel ODROID-C4";
15 compatible = "gpio-leds";
17 led-blue {
21 linux,default-trigger = "heartbeat";
22 panic-indicator;
27 model = "ODROID-C4";
[all …]
/openbmc/linux/Documentation/driver-api/usb/
H A Dpower-management.rst1 .. _usb-power-management:
7 :Date: Last-updated: February 2014
11 ---------
17 * Changing the default idle-delay time
31 -------------------------
35 component is ``suspended`` it is in a nonfunctional low-power state; it
37 ``resumed`` (returned to a functional full-power state) when the kernel
67 ----------------------
81 pressed, or a suspended USB hub resuming when a device is plugged in.
85 --------------------------
[all …]
/openbmc/linux/arch/arm64/boot/dts/freescale/
H A Dimx8mp-debix-som-a-bmb-08.dts1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
7 /dts-v1/;
9 #include "imx8mp-debix-som-a.dtsi"
12 model = "Polyhex i.MX8MPlus Debix SOM A on BMB-08";
13 compatible = "polyhex,imx8mp-debix-som-a-bmb-08", "polyhex,imx8mp-debix-som-a",
22 stdout-path = &uart2;
25 reg_baseboard_vdd3v3: regulator-baseboard-vdd3v3 {
26 compatible = "regulator-fixed";
27 regulator-min-microvolt = <3300000>;
28 regulator-max-microvolt = <3300000>;
[all …]
H A Dimx8mp-debix-model-a.dts1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
7 /dts-v1/;
9 #include <dt-bindings/gpio/gpio.h>
10 #include <dt-bindings/leds/common.h>
11 #include <dt-bindings/usb/pd.h>
17 compatible = "polyhex,imx8mp-debix-model-a", "polyhex,imx8mp-debix", "fsl,imx8mp";
20 stdout-path = &uart2;
24 compatible = "gpio-leds";
25 pinctrl-names = "default";
26 pinctrl-0 = <&pinctrl_gpio_led>;
[all …]
H A Dimx8mp-tqma8mpql-mba8mpxl.dts1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
3 * Copyright 2021-2022 TQ-Systems GmbH
4 * Author: Alexander Stein <alexander.stein@tq-group.com>
7 /dts-v1/;
9 #include <dt-bindings/leds/common.h>
10 #include <dt-bindings/net/ti-dp83867.h>
11 #include <dt-bindings/phy/phy-imx8-pcie.h>
12 #include <dt-bindings/pwm/pwm.h>
13 #include "imx8mp-tqma8mpql.dtsi"
16 model = "TQ-Systems i.MX8MPlus TQMa8MPxL on MBa8MPxL";
[all …]
/openbmc/linux/Documentation/hid/
H A Dintel-ish-hid.rst2 Intel Integrated Sensor Hub (ISH)
5 A sensor hub enables the ability to offload sensor polling and algorithm
6 processing to a dedicated low power co-processor. This allows the core
11 Sensor usage tables. These may be found in tablets, 2-in-1 convertible laptops
27 ----------------- ----------------------
28 | USB HID | --> | ISH HID |
29 ----------------- ----------------------
30 ----------------- ----------------------
31 | USB protocol | --> | ISH Transport |
32 ----------------- ----------------------
[all …]
/openbmc/linux/arch/arm64/boot/dts/qcom/
H A Dsc7280-herobrine.dtsi1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
16 #include <dt-bindings/input/gpio-keys.h>
17 #include <dt-bindings/input/input.h>
18 #include <dt-bindings/leds/common.h>
20 #include "sc7280-qcard.dtsi"
21 #include "sc7280-chrome-common.dtsi"
25 stdout-path = "serial0:115200n8";
38 ppvar_sys: ppvar-sys-regulator {
39 compatible = "regulator-fixed";
40 regulator-name = "ppvar_sys";
[all …]
H A Dsc7180-acer-aspire1.dts1 // SPDX-License-Identifier: BSD-3-Clause
3 /dts-v1/;
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/regulator/qcom,rpmh-regulator.h>
13 /delete-node/ &tz_mem;
14 /delete-node/ &ipa_fw_mem;
19 chassis-type = "laptop";
29 stdout-path = "serial0:115200n8";
32 reserved-memory {
33 zap_mem: zap-shader@80840000 {
[all …]
H A Dsc7180-trogdor.dtsi1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
8 #include <dt-bindings/gpio/gpio.h>
9 #include <dt-bindings/input/gpio-keys.h>
10 #include <dt-bindings/input/input.h>
11 #include <dt-bindings/leds/common.h>
12 #include <dt-bindings/regulator/qcom,rpmh-regulator.h>
13 #include <dt-bindings/sound/sc7180-lpass.h>
16 #include "sc7180-firmware-tfa.dtsi"
22 thermal-zones {
23 charger_thermal: charger-thermal {
[all …]
/openbmc/linux/arch/mips/include/asm/sn/sn0/
H A Dhubio.h8 * Copyright (C) 1992 - 1997, 1999 Silicon Graphics, Inc.
15 * Hub I/O interface registers
17 * All registers in this file are subject to change until Hub chip tapeout.
57 #define IIO_BTE_OFF_1 IIO_IBLS_1 - IIO_IBLS_0 /* Offset from base to BTE 1 */
61 #define BTEOFF_SRC (IIO_BTE_SRC_0 - IIO_BTE_STAT_0)
62 #define BTEOFF_DEST (IIO_BTE_DEST_0 - IIO_BTE_STAT_0)
63 #define BTEOFF_CTRL (IIO_BTE_CTRL_0 - IIO_BTE_STAT_0)
64 #define BTEOFF_NOTIFY (IIO_BTE_NOTIFY_0 - IIO_BTE_STAT_0)
65 #define BTEOFF_INT (IIO_BTE_INT_0 - IIO_BTE_STAT_0)
86 #define IIO_WSTAT_ECRAZY (1ULL << 32) /* Hub gone crazy */
[all …]
/openbmc/linux/drivers/usb/usbip/
H A Dvhci_hcd.c1 // SPDX-License-Identifier: GPL-2.0+
3 * Copyright (C) 2003-2008 Takahiro Hirofuchi
4 * Copyright (C) 2015-2016 Nobuo Iwata
23 * - update root hub emulation
24 * - move the emulation code to userland ?
27 * - add suspend/resume code
28 * - clean up everything
128 pr_debug("status prev -> new: %08x -> %08x\n", prev_status, new_status); in dump_port_status_diff()
137 change = '-'; in dump_port_status_diff()
156 struct vhci *vhci = vhci_hcd->vhci; in rh_port_connect()
[all …]

12