| /OK3568_Linux_fs/kernel/drivers/usb/misc/ |
| H A D | usb251xb.c | 3 * Driver for Microchip USB251xB USB 2.0 Hi-Speed Hub Controller 110 #define DRIVER_DESC "Microchip USB 2.0 Hi-Speed Hub Controller" 242 static int usb251x_check_gpio_chip(struct usb251xb *hub) in usb251x_check_gpio_chip() argument 244 struct gpio_chip *gc = gpiod_to_chip(hub->gpio_reset); in usb251x_check_gpio_chip() 245 struct i2c_adapter *adap = hub->i2c->adapter; in usb251x_check_gpio_chip() 248 if (!hub->gpio_reset) in usb251x_check_gpio_chip() 256 dev_err(hub->dev, "Reset GPIO chip is at the same i2c-bus\n"); in usb251x_check_gpio_chip() 263 static int usb251x_check_gpio_chip(struct usb251xb *hub) in usb251x_check_gpio_chip() argument 269 static void usb251xb_reset(struct usb251xb *hub) in usb251xb_reset() argument 271 if (!hub->gpio_reset) in usb251xb_reset() [all …]
|
| H A D | usb3503.c | 3 * Driver for SMSC USB3503 USB 2.0 hub controller driver 55 static int usb3503_reset(struct usb3503 *hub, int state) in usb3503_reset() argument 57 if (!state && hub->connect) in usb3503_reset() 58 gpiod_set_value_cansleep(hub->connect, 0); in usb3503_reset() 60 if (hub->reset) in usb3503_reset() 61 gpiod_set_value_cansleep(hub->reset, !state); in usb3503_reset() 63 /* Wait T_HUBINIT == 4ms for hub logic to stabilize */ in usb3503_reset() 70 static int usb3503_connect(struct usb3503 *hub) in usb3503_connect() argument 72 struct device *dev = hub->dev; in usb3503_connect() 75 usb3503_reset(hub, 1); in usb3503_connect() [all …]
|
| H A D | usb4604.c | 3 * Driver for SMSC USB4604 USB HSIC 4-port 2.0 hub controller driver 28 static void usb4604_reset(struct usb4604 *hub, int state) in usb4604_reset() argument 30 gpiod_set_value_cansleep(hub->gpio_reset, state); in usb4604_reset() 37 static int usb4604_connect(struct usb4604 *hub) in usb4604_connect() argument 39 struct device *dev = hub->dev; in usb4604_connect() 44 usb4604_reset(hub, 1); in usb4604_connect() 48 usb4604_reset(hub, 0); in usb4604_connect() 52 hub->mode = USB4604_MODE_HUB; in usb4604_connect() 53 dev_dbg(dev, "switched to HUB mode\n"); in usb4604_connect() 58 static int usb4604_switch_mode(struct usb4604 *hub, enum usb4604_mode mode) in usb4604_switch_mode() argument [all …]
|
| /OK3568_Linux_fs/kernel/drivers/usb/core/ |
| H A D | hub.c | 3 * USB hub driver. 37 #include "hub.h" 57 /* workqueue to process hub events */ 61 /* synchronize hub-port add/remove and peering operations */ 89 * hub driver's behavior. On the first initialization attempt, if the 117 static int hub_port_disable(struct usb_hub *hub, int port1, int set_state); 118 static bool hub_port_warm_reset_required(struct usb_hub *hub, int port1, 121 static inline char *portspeed(struct usb_hub *hub, int portstatus) in portspeed() argument 123 if (hub_is_superspeedplus(hub->hdev)) in portspeed() 125 if (hub_is_superspeed(hub->hdev)) in portspeed() [all …]
|
| H A D | hub.h | 3 * usb hub driver head file 28 struct usb_hub_status hub; member 113 extern int usb_hub_create_port_device(struct usb_hub *hub, 115 extern void usb_hub_remove_port_device(struct usb_hub *hub, 117 extern int usb_hub_set_port_power(struct usb_device *hdev, struct usb_hub *hub, 120 extern int hub_port_debounce(struct usb_hub *hub, int port1, 125 static inline bool hub_is_port_power_switchable(struct usb_hub *hub) in hub_is_port_power_switchable() argument 129 if (!hub) in hub_is_port_power_switchable() 131 hcs = hub->descriptor->wHubCharacteristics; in hub_is_port_power_switchable() 147 static inline unsigned hub_power_on_good_delay(struct usb_hub *hub) in hub_power_on_good_delay() argument [all …]
|
| H A D | usb-acpi.c | 16 #include "hub.h" 21 * @hdev: USB device belonging to the usb hub 43 * @hdev: USB device belonging to the usb hub 54 struct usb_hub *hub = usb_hub_to_struct_hub(hdev); in usb_acpi_set_power_state() local 61 if (!hub) in usb_acpi_set_power_state() 63 port_dev = hub->ports[port1 - 1]; in usb_acpi_set_power_state() 151 /* Get the struct usb_device point of port's hub */ in usb_acpi_get_companion_for_port() 155 * The root hub ports' parent is the root hub. The non-root-hub in usb_acpi_get_companion_for_port() 156 * ports' parent is the parent hub port which the hub is in usb_acpi_get_companion_for_port() 205 struct usb_hub *hub; in usb_acpi_find_companion_for_device() local [all …]
|
| H A D | port.c | 13 #include "hub.h" 196 struct usb_hub *hub = usb_hub_to_struct_hub(hdev); in usb_port_runtime_resume() local 202 if (!hub) in usb_port_runtime_resume() 204 if (hub->in_reset) { in usb_port_runtime_resume() 205 set_bit(port1, hub->power_bits); in usb_port_runtime_resume() 220 retval = usb_hub_set_port_power(hdev, hub, port1, true); in usb_port_runtime_resume() 221 msleep(hub_power_on_good_delay(hub)); in usb_port_runtime_resume() 232 if (hub_port_debounce_be_connected(hub, port1) < 0) { in usb_port_runtime_resume() 235 set_bit(port1, hub->warm_reset_bits); in usb_port_runtime_resume() 239 if (!test_and_set_bit(port1, hub->child_usage_bits)) { in usb_port_runtime_resume() [all …]
|
| /OK3568_Linux_fs/external/rkwifibt/drivers/rtl8852bs/phl/ |
| H A D | phl_msg_hub.c | 69 struct phl_msg_hub* hub = (struct phl_msg_hub*)phl->msg_hub; in pop_front_idle_msg() local 73 if(pq_pop(d, &hub->idle_msg_q, &new_msg, _first, _bh)) { in pop_front_idle_msg() 87 struct phl_msg_hub* hub = (struct phl_msg_hub*)phl->msg_hub; in push_back_idle_msg() local 91 pq_push(d, &hub->idle_msg_q, &ex->list, _tail, _bh); in push_back_idle_msg() 97 struct phl_msg_hub* hub = (struct phl_msg_hub*)phl->msg_hub; in pop_front_wait_msg() local 101 if(pq_pop(d, &hub->wait_msg_q, &new_msg, _first, _bh)) { in pop_front_wait_msg() 112 struct phl_msg_hub* hub = (struct phl_msg_hub*)phl->msg_hub; in push_back_wait_msg() local 113 pq_push(d, &hub->wait_msg_q, &ex->list, _tail, _bh); in push_back_wait_msg() 114 _os_sema_up(d, &(hub->msg_q_sema)); in push_back_wait_msg() 121 struct phl_msg_hub* hub = (struct phl_msg_hub*)phl->msg_hub; in msg_forward() local [all …]
|
| /OK3568_Linux_fs/kernel/drivers/fsi/ |
| H A D | fsi-master-hub.c | 3 * FSI hub master driver 21 * FSI hub master support 23 * A hub master increases the number of potential target devices that the 25 * each of those links can in turn be chained to a hub master with multiple 28 * The hub is controlled by a set of control registers exposed as a regular fsi 29 * device (the hub->upstream device), and provides access to the downstream FSI 48 struct fsi_master_hub *hub = to_fsi_master_hub(master); in hub_master_read() local 53 addr += hub->addr + (link * FSI_HUB_LINK_SIZE); in hub_master_read() 54 return fsi_slave_read(hub->upstream->slave, addr, val, size); in hub_master_read() 60 struct fsi_master_hub *hub = to_fsi_master_hub(master); in hub_master_write() local [all …]
|
| /OK3568_Linux_fs/external/rkwifibt/drivers/rtl8852be/phl/ |
| H A D | phl_msg_hub.c | 69 struct phl_msg_hub* hub = (struct phl_msg_hub*)phl->msg_hub; in pop_front_idle_msg() local 73 if(pq_pop(d, &hub->idle_msg_q, &new_msg, _first, _bh)) { in pop_front_idle_msg() 87 struct phl_msg_hub* hub = (struct phl_msg_hub*)phl->msg_hub; in push_back_idle_msg() local 91 pq_push(d, &hub->idle_msg_q, &ex->list, _tail, _bh); in push_back_idle_msg() 97 struct phl_msg_hub* hub = (struct phl_msg_hub*)phl->msg_hub; in pop_front_wait_msg() local 101 if(pq_pop(d, &hub->wait_msg_q, &new_msg, _first, _bh)) { in pop_front_wait_msg() 112 struct phl_msg_hub* hub = (struct phl_msg_hub*)phl->msg_hub; in push_back_wait_msg() local 113 pq_push(d, &hub->wait_msg_q, &ex->list, _tail, _bh); in push_back_wait_msg() 114 _os_sema_up(d, &(hub->msg_q_sema)); in push_back_wait_msg() 121 struct phl_msg_hub* hub = (struct phl_msg_hub*)phl->msg_hub; in msg_forward() local [all …]
|
| /OK3568_Linux_fs/kernel/drivers/gpu/drm/tegra/ |
| H A D | hub.c | 139 int tegra_display_hub_prepare(struct tegra_display_hub *hub) in tegra_display_hub_prepare() argument 149 for (i = 0; i < hub->soc->num_wgrps; i++) { in tegra_display_hub_prepare() 150 struct tegra_windowgroup *wgrp = &hub->wgrps[i]; in tegra_display_hub_prepare() 160 void tegra_display_hub_cleanup(struct tegra_display_hub *hub) in tegra_display_hub_cleanup() argument 168 for (i = 0; i < hub->soc->num_wgrps; i++) { in tegra_display_hub_cleanup() 169 struct tegra_windowgroup *wgrp = &hub->wgrps[i]; in tegra_display_hub_cleanup() 558 struct tegra_display_hub *hub = tegra->hub; in tegra_shared_plane_create() local 575 plane->wgrp = &hub->wgrps[wgrp]; in tegra_shared_plane_create() 627 tegra_display_hub_get_state(struct tegra_display_hub *hub, in tegra_display_hub_get_state() argument 632 priv = drm_atomic_get_private_obj_state(state, &hub->base); in tegra_display_hub_get_state() [all …]
|
| /OK3568_Linux_fs/u-boot/common/ |
| H A D | usb_hub.c | 21 * HUB "Driver" 22 * Probes device for being a hub and configurate it 52 struct usb_device *dev; /* USB hub device to scan */ 53 struct usb_hub_device *hub; /* USB hub struct */ member 60 __weak void usb_hub_reset_devices(struct usb_hub_device *hub, int port) in usb_hub_reset_devices() argument 71 bool usb_hub_is_root_hub(struct udevice *hub) in usb_hub_is_root_hub() argument 73 if (device_get_uclass_id(hub->parent) != UCLASS_USB_HUB) in usb_hub_is_root_hub() 136 * Translate the USB 3.0 hub port status field into the old version in usb_get_port_status() 137 * that U-Boot understands. Do this only when the hub is not root hub. in usb_get_port_status() 138 * For root hub, the port status field has already been translated in usb_get_port_status() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/hwtracing/intel_th/ |
| H A D | Kconfig | 3 tristate "Intel(R) Trace Hub controller" 6 Intel(R) Trace Hub (TH) is a set of hardware blocks (subdevices) that 16 Say Y here to enable Intel(R) Trace Hub controller support. 21 tristate "Intel(R) Trace Hub PCI controller" 24 Intel(R) Trace Hub may exist as a PCI device. This option enables 30 tristate "Intel(R) Trace Hub ACPI controller" 33 Intel(R) Trace Hub may exist as an ACPI device. This option enables 42 tristate "Intel(R) Trace Hub Global Trace Hub" 44 Global Trace Hub (GTH) is the central component of the 49 Say Y here to enable GTH subdevice of Intel(R) Trace Hub. [all …]
|
| H A D | core.c | 3 * Intel(R) Trace Hub driver core 53 struct intel_th_device *hub = NULL; in intel_th_probe() local 57 hub = thdev; in intel_th_probe() 59 hub = to_intel_th_device(dev->parent); in intel_th_probe() 61 if (!hub || !hub->dev.driver) in intel_th_probe() 64 hubdrv = to_intel_th_driver(hub->dev.driver); in intel_th_probe() 83 ret = hubdrv->assign(hub, thdev); in intel_th_probe() 102 struct intel_th_device *hub = to_intel_th_hub(thdev); in intel_th_remove() local 106 struct intel_th *th = to_intel_th(hub); in intel_th_remove() 115 * Remove outputs, that is, hub's children: they are created in intel_th_remove() [all …]
|
| /OK3568_Linux_fs/kernel/Documentation/devicetree/bindings/usb/ |
| H A D | usb251xb.txt | 1 Microchip USB 2.0 Hi-Speed Hub Controller 14 - reset-gpios : Should specify the gpio for hub reset 16 - skip-config : Skip Hub configuration, but only send the USB-Attach command 17 - vendor-id : Set USB Vendor ID of the hub (16 bit, default is 0x0424) 18 - product-id : Set USB Product ID of the hub (16 bit, default depends on type) 19 - device-id : Set USB Device ID of the hub (16 bit, default is 0x0bb3) 39 - compound-device : indicate the hub is part of a compound device (boolean) 49 - sp-max-total-current-microamp: Specifies max current consumed by the hub 50 from VBUS when operating in self-powered hub. It includes the hub 53 - bp-max-total-current-microamp: Specifies max current consumed by the hub [all …]
|
| /OK3568_Linux_fs/prebuilts/gcc/linux-x86/arm/gcc-arm-10.3-2021.07-x86_64-arm-none-linux-gnueabihf/arm-none-linux-gnueabihf/libc/usr/include/linux/usb/ |
| H A D | ch11.h | 3 * This file holds Hub protocol constants and data structures that are 4 * defined in chapter 11 (Hub Specification) of the USB 2.0 specification. 16 * From USB 2.0 spec Table 11-13, offset 7, a hub can 21 * limit. Because the arrays need to add a bit for hub status data, we 30 * Hub request types 45 * Hub class requests 54 * Hub class additional requests defined by USB 3.0 spec 61 * Hub Class feature numbers 104 /* USB 3.0 hub remote wake mask bits, see table 10-14 */ 110 * Hub Status and Hub Change results [all …]
|
| /OK3568_Linux_fs/prebuilts/gcc/linux-x86/aarch64/gcc-arm-10.3-2021.07-x86_64-aarch64-none-linux-gnu/aarch64-none-linux-gnu/libc/usr/include/linux/usb/ |
| H A D | ch11.h | 3 * This file holds Hub protocol constants and data structures that are 4 * defined in chapter 11 (Hub Specification) of the USB 2.0 specification. 16 * From USB 2.0 spec Table 11-13, offset 7, a hub can 21 * limit. Because the arrays need to add a bit for hub status data, we 30 * Hub request types 45 * Hub class requests 54 * Hub class additional requests defined by USB 3.0 spec 61 * Hub Class feature numbers 104 /* USB 3.0 hub remote wake mask bits, see table 10-14 */ 110 * Hub Status and Hub Change results [all …]
|
| /OK3568_Linux_fs/kernel/include/uapi/linux/usb/ |
| H A D | ch11.h | 3 * This file holds Hub protocol constants and data structures that are 4 * defined in chapter 11 (Hub Specification) of the USB 2.0 specification. 16 * From USB 2.0 spec Table 11-13, offset 7, a hub can 21 * limit. Because the arrays need to add a bit for hub status data, we 30 * Hub request types 45 * Hub class requests 54 * Hub class additional requests defined by USB 3.0 spec 61 * Hub Class feature numbers 104 /* USB 3.0 hub remote wake mask bits, see table 10-14 */ 110 * Hub Status and Hub Change results [all …]
|
| /OK3568_Linux_fs/u-boot/doc/driver-model/ |
| H A D | usb-info.txt | 85 this structure, even the root hub. The controller itself does not 117 root hub attached to it. This hub, which is itself a USB device, can provide 119 possible to power up a hub and find out which of its ports have devices 122 Devices are given addresses starting at 1. The root hub is always address 1, 126 USB devices are enumerated by finding a device on a particular hub, and 140 newer (XHCI). If you connect a super-speed device to a high-speed hub, you 173 are attached to a parent hub (or controller in the case of the root hub) and 200 (only) device that is attached to the controller - a root hub 244 Note that the first device is always a root hub, and this must be scanned to 245 find any devices. The above steps will have created a hub (UCLASS_USB_HUB), [all …]
|
| /OK3568_Linux_fs/kernel/drivers/gpu/drm/amd/amdgpu/ |
| H A D | gfxhub_v2_0.c | 123 struct amdgpu_vmhub *hub = &adev->vmhub[AMDGPU_GFXHUB_0]; in gfxhub_v2_0_setup_vm_pt_regs() local 126 hub->ctx_addr_distance * vmid, in gfxhub_v2_0_setup_vm_pt_regs() 130 hub->ctx_addr_distance * vmid, in gfxhub_v2_0_setup_vm_pt_regs() 287 struct amdgpu_vmhub *hub = &adev->vmhub[AMDGPU_GFXHUB_0]; in gfxhub_v2_0_setup_vmid_config() local 318 i * hub->ctx_distance, tmp); in gfxhub_v2_0_setup_vmid_config() 320 i * hub->ctx_addr_distance, 0); in gfxhub_v2_0_setup_vmid_config() 322 i * hub->ctx_addr_distance, 0); in gfxhub_v2_0_setup_vmid_config() 324 i * hub->ctx_addr_distance, in gfxhub_v2_0_setup_vmid_config() 327 i * hub->ctx_addr_distance, in gfxhub_v2_0_setup_vmid_config() 334 struct amdgpu_vmhub *hub = &adev->vmhub[AMDGPU_GFXHUB_0]; in gfxhub_v2_0_program_invalidation() local [all …]
|
| H A D | gfxhub_v1_0.c | 41 struct amdgpu_vmhub *hub = &adev->vmhub[AMDGPU_GFXHUB_0]; in gfxhub_v1_0_setup_vm_pt_regs() local 44 hub->ctx_addr_distance * vmid, in gfxhub_v1_0_setup_vm_pt_regs() 48 hub->ctx_addr_distance * vmid, in gfxhub_v1_0_setup_vm_pt_regs() 210 struct amdgpu_vmhub *hub = &adev->vmhub[AMDGPU_GFXHUB_0]; in gfxhub_v1_0_setup_vmid_config() local 250 i * hub->ctx_distance, tmp); in gfxhub_v1_0_setup_vmid_config() 252 i * hub->ctx_addr_distance, 0); in gfxhub_v1_0_setup_vmid_config() 254 i * hub->ctx_addr_distance, 0); in gfxhub_v1_0_setup_vmid_config() 256 i * hub->ctx_addr_distance, in gfxhub_v1_0_setup_vmid_config() 259 i * hub->ctx_addr_distance, in gfxhub_v1_0_setup_vmid_config() 266 struct amdgpu_vmhub *hub = &adev->vmhub[AMDGPU_GFXHUB_0]; in gfxhub_v1_0_program_invalidation() local [all …]
|
| H A D | gfxhub_v2_1.c | 123 struct amdgpu_vmhub *hub = &adev->vmhub[AMDGPU_GFXHUB_0]; in gfxhub_v2_1_setup_vm_pt_regs() local 126 hub->ctx_addr_distance * vmid, in gfxhub_v2_1_setup_vm_pt_regs() 130 hub->ctx_addr_distance * vmid, in gfxhub_v2_1_setup_vm_pt_regs() 293 struct amdgpu_vmhub *hub = &adev->vmhub[AMDGPU_GFXHUB_0]; in gfxhub_v2_1_setup_vmid_config() local 324 i * hub->ctx_distance, tmp); in gfxhub_v2_1_setup_vmid_config() 326 i * hub->ctx_addr_distance, 0); in gfxhub_v2_1_setup_vmid_config() 328 i * hub->ctx_addr_distance, 0); in gfxhub_v2_1_setup_vmid_config() 330 i * hub->ctx_addr_distance, in gfxhub_v2_1_setup_vmid_config() 333 i * hub->ctx_addr_distance, in gfxhub_v2_1_setup_vmid_config() 340 struct amdgpu_vmhub *hub = &adev->vmhub[AMDGPU_GFXHUB_0]; in gfxhub_v2_1_program_invalidation() local [all …]
|
| /OK3568_Linux_fs/kernel/drivers/misc/mei/ |
| H A D | hw-me.h | 73 * @MEI_ME_ICH_CFG: I/O Controller Hub legacy devices. 74 * @MEI_ME_ICH10_CFG: I/O Controller Hub platforms Gen10 75 * @MEI_ME_PCH6_CFG: Platform Controller Hub platforms (Gen6). 76 * @MEI_ME_PCH7_CFG: Platform Controller Hub platforms (Gen7). 77 * @MEI_ME_PCH_CPT_PBG_CFG:Platform Controller Hub workstations 79 * @MEI_ME_PCH8_CFG: Platform Controller Hub Gen8 and newer 81 * @MEI_ME_PCH8_ITOUCH_CFG:Platform Controller Hub Gen8 and newer 83 * @MEI_ME_PCH8_SPS_4_CFG: Platform Controller Hub Gen8 and newer 86 * @MEI_ME_PCH12_CFG: Platform Controller Hub Gen12 and newer 87 * @MEI_ME_PCH12_SPS_4_CFG:Platform Controller Hub Gen12 up to 4.0 [all …]
|
| /OK3568_Linux_fs/kernel/include/linux/ |
| H A D | hid-sensor-hub.h | 57 * struct hid_sensor_hub_device - Stores the hub instance data 59 * @vendor_id: Vendor id of hub device. 60 * @product_id: Product id of hub device. 61 * @usage: Usage id for this hub device instance. 99 * sensor_hub_device_open() - Open hub device 100 * @hsdev: Hub device instance. 102 * Used to open hid device for sensor hub. 107 * sensor_hub_device_clode() - Close hub device 108 * @hsdev: Hub device instance. 110 * Used to clode hid device for sensor hub. [all …]
|
| /OK3568_Linux_fs/kernel/arch/mips/sgi-ip27/ |
| H A D | ip27-hubio.c | 6 * Support functions for the HUB ASIC - mostly PIO mapping related. 22 * hub_pio_map - establish a HUB PIO mapping 24 * @hub: hub to perform PIO mapping on 40 printk(KERN_WARNING "PIO mapping at hub %d widget %d addr 0x%lx" in hub_pio_map() 60 * received by the hub and can be used by future PIO reads/ in hub_pio_map() 73 " hub %d widget %d addr 0x%lx\n", in hub_pio_map() 120 * hub_set_piomode - set pio mode for a given hub 122 * @nasid: physical node ID for the hub in question 124 * Put the hub into either "PIO conveyor belt" mode or "fire-and-forget" mode. 171 * hub_pio_init - PIO-related hub initialization [all …]
|