Home
last modified time | relevance | path

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

12345678910>>...13

/linux-6.6.21/drivers/usb/misc/
Dusb251xb.c242 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()
274 i2c_lock_bus(hub->i2c->adapter, I2C_LOCK_SEGMENT); in usb251xb_reset()
276 gpiod_set_value_cansleep(hub->gpio_reset, 1); in usb251xb_reset()
[all …]
Dusb3503.c56 static int usb3503_connect(struct usb3503 *hub) in usb3503_connect() argument
58 struct device *dev = hub->dev; in usb3503_connect()
61 if (hub->regmap) { in usb3503_connect()
63 err = regmap_write(hub->regmap, USB3503_SP_ILOCK, in usb3503_connect()
72 if (hub->port_off_mask) { in usb3503_connect()
73 err = regmap_update_bits(hub->regmap, USB3503_PDS, in usb3503_connect()
74 hub->port_off_mask, in usb3503_connect()
75 hub->port_off_mask); in usb3503_connect()
83 err = regmap_update_bits(hub->regmap, USB3503_CFG1, in usb3503_connect()
92 err = regmap_update_bits(hub->regmap, USB3503_SP_ILOCK, in usb3503_connect()
[all …]
Donboard_usb_hub.c65 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()
89 err = regulator_bulk_disable(hub->pdata->num_supplies, hub->supplies); in onboard_hub_power_off()
91 dev_err(hub->dev, "failed to disable supplies: %d\n", err); in onboard_hub_power_off()
[all …]
Dusb4604.c28 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()
58 static int usb4604_switch_mode(struct usb4604 *hub, enum usb4604_mode mode) in usb4604_switch_mode() argument
60 struct device *dev = hub->dev; in usb4604_switch_mode()
65 err = usb4604_connect(hub); in usb4604_switch_mode()
[all …]
/linux-6.6.21/drivers/platform/surface/
Dsurface_aggregator_hub.c36 int (*get_state)(struct ssam_hub *hub, enum ssam_hub_state *state);
61 int (*get_state)(struct ssam_hub *hub, enum ssam_hub_state *state);
69 struct ssam_hub *hub = container_of(work, struct ssam_hub, update_work.work); in ssam_hub_update_workfn() local
73 status = hub->ops.get_state(hub, &state); in ssam_hub_update_workfn()
97 if (test_and_clear_bit(SSAM_HUB_HOT_REMOVED, &hub->flags)) { in ssam_hub_update_workfn()
99 schedule_delayed_work(&hub->update_work, hub->connect_delay); in ssam_hub_update_workfn()
104 if (hub->state == state) in ssam_hub_update_workfn()
106 hub->state = state; in ssam_hub_update_workfn()
108 if (hub->state == SSAM_HUB_CONNECTED) in ssam_hub_update_workfn()
109 status = ssam_device_register_clients(hub->sdev); in ssam_hub_update_workfn()
[all …]
/linux-6.6.21/drivers/usb/core/
Dhub.c128 static int hub_port_disable(struct usb_hub *hub, int port1, int set_state);
129 static bool hub_port_warm_reset_required(struct usb_hub *hub, int port1,
132 static inline char *portspeed(struct usb_hub *hub, int portstatus) in portspeed() argument
134 if (hub_is_superspeedplus(hub->hdev)) in portspeed()
136 if (hub_is_superspeed(hub->hdev)) in portspeed()
207 struct usb_hub *hub, in usb_set_lpm_mel() argument
222 hub->descriptor->u.ss.bHubHdrDecLat * 100; in usb_set_lpm_mel()
230 total_mel += (__le16_to_cpu(hub->descriptor->u.ss.wHubDelay) + in usb_set_lpm_mel()
241 if (!hub->hdev->parent) in usb_set_lpm_mel()
254 struct usb_hub *hub, in usb_set_lpm_pel() argument
[all …]
Dhub.h28 struct usb_hub_status hub; 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,
126 extern int usb_hub_set_port_power(struct usb_device *hdev, struct usb_hub *hub,
129 extern int hub_port_debounce(struct usb_hub *hub, int port1,
133 extern int usb_hub_port_status(struct usb_hub *hub, int port1,
135 extern int usb_port_is_power_on(struct usb_hub *hub, unsigned int portstatus);
137 static inline bool hub_is_port_power_switchable(struct usb_hub *hub) in hub_is_port_power_switchable() argument
141 if (!hub) in hub_is_port_power_switchable()
143 hcs = hub->descriptor->wHubCharacteristics; in hub_is_port_power_switchable()
[all …]
Dport.c52 struct usb_hub *hub = usb_hub_to_struct_hub(hdev); in disable_show() local
53 struct usb_interface *intf = to_usb_interface(hub->intfdev); in disable_show()
64 if (hub->disconnected) { in disable_show()
69 usb_hub_port_status(hub, port1, &portstatus, &unused); in disable_show()
70 disabled = !usb_port_is_power_on(hub, portstatus); in disable_show()
87 struct usb_hub *hub = usb_hub_to_struct_hub(hdev); in disable_store() local
88 struct usb_interface *intf = to_usb_interface(hub->intfdev); in disable_store()
102 if (hub->disconnected) { in disable_store()
110 rc = usb_hub_set_port_power(hdev, hub, port1, !disabled); in disable_store()
319 struct usb_hub *hub = usb_hub_to_struct_hub(hdev); in usb_port_runtime_resume() local
[all …]
/linux-6.6.21/drivers/fsi/
Dfsi-master-hub.c48 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
65 addr += hub->addr + (link * FSI_HUB_LINK_SIZE); in hub_master_write()
66 return fsi_slave_write(hub->upstream->slave, addr, val, size); in hub_master_write()
83 struct fsi_master_hub *hub = to_fsi_master_hub(master); in hub_master_link_enable() local
94 return fsi_device_write(hub->upstream, FSI_MCENP0 + (4 * idx), in hub_master_link_enable()
97 rc = fsi_device_write(hub->upstream, FSI_MSENP0 + (4 * idx), &reg, 4); in hub_master_link_enable()
108 struct fsi_master_hub *hub = to_fsi_master_hub(to_fsi_master(dev)); in hub_master_release() local
[all …]
/linux-6.6.21/drivers/gpu/drm/tegra/
Dhub.c156 int tegra_display_hub_prepare(struct tegra_display_hub *hub) in tegra_display_hub_prepare() argument
166 for (i = 0; i < hub->soc->num_wgrps; i++) { in tegra_display_hub_prepare()
167 struct tegra_windowgroup *wgrp = &hub->wgrps[i]; in tegra_display_hub_prepare()
177 void tegra_display_hub_cleanup(struct tegra_display_hub *hub) in tegra_display_hub_cleanup() argument
185 for (i = 0; i < hub->soc->num_wgrps; i++) { in tegra_display_hub_cleanup()
186 struct tegra_windowgroup *wgrp = &hub->wgrps[i]; in tegra_display_hub_cleanup()
763 struct tegra_display_hub *hub = tegra->hub; in tegra_shared_plane_create() local
779 plane->wgrp = &hub->wgrps[wgrp]; in tegra_shared_plane_create()
834 tegra_display_hub_get_state(struct tegra_display_hub *hub, in tegra_display_hub_get_state() argument
839 priv = drm_atomic_get_private_obj_state(state, &hub->base); in tegra_display_hub_get_state()
[all …]
/linux-6.6.21/Documentation/devicetree/bindings/usb/
Dmicrochip,usb5744.yaml39 3V3 power supply to the hub
43 1V2 power supply to the hub
45 peer-hub:
48 phandle to the peer hub on the controller.
53 phandle of an usb hub connected via i2c bus.
70 peer-hub: false
75 - peer-hub
85 hub: usb-hub@2d {
95 /* 2.0 hub on port 1 */
96 hub_2_0: hub@1 {
[all …]
Drealtek,rts5411.yaml7 title: Realtek RTS5411 USB 3.0 hub controller
26 phandle to the regulator that provides power to the hub.
28 peer-hub:
31 phandle to the peer hub on the controller.
34 - peer-hub
47 /* 2.0 hub on port 1 */
48 hub_2_0: hub@1 {
52 peer-hub = <&hub_3_0>;
55 /* 3.0 hub on port 2 */
56 hub_3_0: hub@2 {
[all …]
Dti,usb8041.yaml7 title: TI USB8041 USB 3.0 hub controller
29 VDD power supply to the hub
31 peer-hub:
34 phandle to the peer hub on the controller.
39 - peer-hub
52 /* 2.0 hub on port 1 */
53 hub_2_0: hub@1 {
56 peer-hub = <&hub_3_0>;
60 /* 3.0 hub on port 2 */
61 hub_3_0: hub@2 {
[all …]
Dvialab,vl817.yaml7 title: Via labs VL817 USB 3.1 hub controller
30 phandle to the regulator that provides power to the hub.
32 peer-hub:
35 phandle to the peer hub on the controller.
42 - peer-hub
54 /* 2.0 hub on port 1 */
55 hub_2_0: hub@1 {
59 peer-hub = <&hub_3_0>;
63 /* 3.1 hub on port 4 */
64 hub_3_0: hub@2 {
[all …]
Dcypress,hx3.yaml7 title: Cypress HX3 USB 3.0 hub controller family
35 peer-hub:
38 phandle to the peer hub on the controller.
43 - peer-hub
58 /* 2.0 hub on port 1 */
59 hub_2_0: hub@1 {
62 peer-hub = <&hub_3_0>;
68 /* 3.0 hub on port 2 */
69 hub_3_0: hub@2 {
72 peer-hub = <&hub_2_0>;
/linux-6.6.21/drivers/gpu/drm/amd/amdgpu/
Dgfxhub_v2_0.c123 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()
285 struct amdgpu_vmhub *hub = &adev->vmhub[AMDGPU_GFXHUB(0)]; in gfxhub_v2_0_setup_vmid_config() local
316 i * hub->ctx_distance, tmp); in gfxhub_v2_0_setup_vmid_config()
318 i * hub->ctx_addr_distance, 0); 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, in gfxhub_v2_0_setup_vmid_config()
325 i * hub->ctx_addr_distance, in gfxhub_v2_0_setup_vmid_config()
329 hub->vm_cntx_cntl = tmp; in gfxhub_v2_0_setup_vmid_config()
[all …]
Dgfxhub_v3_0_3.c125 struct amdgpu_vmhub *hub = &adev->vmhub[AMDGPU_GFXHUB(0)]; in gfxhub_v3_0_3_setup_vm_pt_regs() local
128 hub->ctx_addr_distance * vmid, in gfxhub_v3_0_3_setup_vm_pt_regs()
132 hub->ctx_addr_distance * vmid, in gfxhub_v3_0_3_setup_vm_pt_regs()
298 struct amdgpu_vmhub *hub = &adev->vmhub[AMDGPU_GFXHUB(0)]; in gfxhub_v3_0_3_setup_vmid_config() local
329 i * hub->ctx_distance, tmp); in gfxhub_v3_0_3_setup_vmid_config()
331 i * hub->ctx_addr_distance, 0); in gfxhub_v3_0_3_setup_vmid_config()
333 i * hub->ctx_addr_distance, 0); in gfxhub_v3_0_3_setup_vmid_config()
335 i * hub->ctx_addr_distance, in gfxhub_v3_0_3_setup_vmid_config()
338 i * hub->ctx_addr_distance, in gfxhub_v3_0_3_setup_vmid_config()
342 hub->vm_cntx_cntl = tmp; in gfxhub_v3_0_3_setup_vmid_config()
[all …]
Dmmhub_v3_0_2.c132 struct amdgpu_vmhub *hub = &adev->vmhub[AMDGPU_MMHUB0(0)]; in mmhub_v3_0_2_setup_vm_pt_regs() local
135 hub->ctx_addr_distance * vmid, in mmhub_v3_0_2_setup_vm_pt_regs()
139 hub->ctx_addr_distance * vmid, in mmhub_v3_0_2_setup_vm_pt_regs()
314 struct amdgpu_vmhub *hub = &adev->vmhub[AMDGPU_MMHUB0(0)]; in mmhub_v3_0_2_setup_vmid_config() local
346 i * hub->ctx_distance, tmp); in mmhub_v3_0_2_setup_vmid_config()
348 i * hub->ctx_addr_distance, 0); in mmhub_v3_0_2_setup_vmid_config()
350 i * hub->ctx_addr_distance, 0); in mmhub_v3_0_2_setup_vmid_config()
352 i * hub->ctx_addr_distance, in mmhub_v3_0_2_setup_vmid_config()
355 i * hub->ctx_addr_distance, in mmhub_v3_0_2_setup_vmid_config()
359 hub->vm_cntx_cntl = tmp; in mmhub_v3_0_2_setup_vmid_config()
[all …]
Dgfxhub_v3_0.c122 struct amdgpu_vmhub *hub = &adev->vmhub[AMDGPU_GFXHUB(0)]; in gfxhub_v3_0_setup_vm_pt_regs() local
125 hub->ctx_addr_distance * vmid, in gfxhub_v3_0_setup_vm_pt_regs()
129 hub->ctx_addr_distance * vmid, in gfxhub_v3_0_setup_vm_pt_regs()
293 struct amdgpu_vmhub *hub = &adev->vmhub[AMDGPU_GFXHUB(0)]; in gfxhub_v3_0_setup_vmid_config() local
324 i * hub->ctx_distance, tmp); in gfxhub_v3_0_setup_vmid_config()
326 i * hub->ctx_addr_distance, 0); in gfxhub_v3_0_setup_vmid_config()
328 i * hub->ctx_addr_distance, 0); in gfxhub_v3_0_setup_vmid_config()
330 i * hub->ctx_addr_distance, in gfxhub_v3_0_setup_vmid_config()
333 i * hub->ctx_addr_distance, in gfxhub_v3_0_setup_vmid_config()
337 hub->vm_cntx_cntl = tmp; in gfxhub_v3_0_setup_vmid_config()
[all …]
Dmmhub_v3_0.c139 struct amdgpu_vmhub *hub = &adev->vmhub[AMDGPU_MMHUB0(0)]; in mmhub_v3_0_setup_vm_pt_regs() local
142 hub->ctx_addr_distance * vmid, in mmhub_v3_0_setup_vm_pt_regs()
146 hub->ctx_addr_distance * vmid, in mmhub_v3_0_setup_vm_pt_regs()
322 struct amdgpu_vmhub *hub = &adev->vmhub[AMDGPU_MMHUB0(0)]; in mmhub_v3_0_setup_vmid_config() local
354 i * hub->ctx_distance, tmp); in mmhub_v3_0_setup_vmid_config()
356 i * hub->ctx_addr_distance, 0); in mmhub_v3_0_setup_vmid_config()
358 i * hub->ctx_addr_distance, 0); in mmhub_v3_0_setup_vmid_config()
360 i * hub->ctx_addr_distance, in mmhub_v3_0_setup_vmid_config()
363 i * hub->ctx_addr_distance, in mmhub_v3_0_setup_vmid_config()
367 hub->vm_cntx_cntl = tmp; in mmhub_v3_0_setup_vmid_config()
[all …]
Dgfxhub_v1_0.c43 struct amdgpu_vmhub *hub = &adev->vmhub[AMDGPU_GFXHUB(0)]; in gfxhub_v1_0_setup_vm_pt_regs() local
46 hub->ctx_addr_distance * vmid, in gfxhub_v1_0_setup_vm_pt_regs()
50 hub->ctx_addr_distance * vmid, in gfxhub_v1_0_setup_vm_pt_regs()
252 struct amdgpu_vmhub *hub = &adev->vmhub[AMDGPU_GFXHUB(0)]; in gfxhub_v1_0_setup_vmid_config() local
296 i * hub->ctx_distance, tmp); in gfxhub_v1_0_setup_vmid_config()
298 i * hub->ctx_addr_distance, 0); in gfxhub_v1_0_setup_vmid_config()
300 i * hub->ctx_addr_distance, 0); in gfxhub_v1_0_setup_vmid_config()
302 i * hub->ctx_addr_distance, in gfxhub_v1_0_setup_vmid_config()
305 i * hub->ctx_addr_distance, in gfxhub_v1_0_setup_vmid_config()
312 struct amdgpu_vmhub *hub = &adev->vmhub[AMDGPU_GFXHUB(0)]; in gfxhub_v1_0_program_invalidation() local
[all …]
Dmmhub_v3_0_1.c141 struct amdgpu_vmhub *hub = &adev->vmhub[AMDGPU_MMHUB0(0)]; in mmhub_v3_0_1_setup_vm_pt_regs() local
144 hub->ctx_addr_distance * vmid, in mmhub_v3_0_1_setup_vm_pt_regs()
148 hub->ctx_addr_distance * vmid, in mmhub_v3_0_1_setup_vm_pt_regs()
309 struct amdgpu_vmhub *hub = &adev->vmhub[AMDGPU_MMHUB0(0)]; in mmhub_v3_0_1_setup_vmid_config() local
341 i * hub->ctx_distance, tmp); in mmhub_v3_0_1_setup_vmid_config()
343 i * hub->ctx_addr_distance, 0); in mmhub_v3_0_1_setup_vmid_config()
345 i * hub->ctx_addr_distance, 0); in mmhub_v3_0_1_setup_vmid_config()
347 i * hub->ctx_addr_distance, in mmhub_v3_0_1_setup_vmid_config()
350 i * hub->ctx_addr_distance, in mmhub_v3_0_1_setup_vmid_config()
354 hub->vm_cntx_cntl = tmp; in mmhub_v3_0_1_setup_vmid_config()
[all …]
Dgmc_v11_0.c102 struct amdgpu_vmhub *hub = &adev->vmhub[vmhub_index]; in gmc_v11_0_process_interrupt() local
116 RREG32(hub->vm_l2_pro_fault_status); in gmc_v11_0_process_interrupt()
118 status = RREG32(hub->vm_l2_pro_fault_status); in gmc_v11_0_process_interrupt()
119 WREG32_P(hub->vm_l2_pro_fault_cntl, 1, ~1); in gmc_v11_0_process_interrupt()
137 hub->vmhub_funcs->print_l2_protection_fault_status(adev, status); in gmc_v11_0_process_interrupt()
198 struct amdgpu_vmhub *hub = &adev->vmhub[vmhub]; in gmc_v11_0_flush_vm_hub() local
199 u32 inv_req = hub->vmhub_funcs->get_invalidate_req(vmid, flush_type); in gmc_v11_0_flush_vm_hub()
221 tmp = RREG32_RLC_NO_KIQ(hub->vm_inv_eng0_sem + in gmc_v11_0_flush_vm_hub()
222 hub->eng_distance * eng, hub_ip); in gmc_v11_0_flush_vm_hub()
232 WREG32_RLC_NO_KIQ(hub->vm_inv_eng0_req + hub->eng_distance * eng, inv_req, hub_ip); in gmc_v11_0_flush_vm_hub()
[all …]
Dmmhub_v2_0.c190 struct amdgpu_vmhub *hub = &adev->vmhub[AMDGPU_MMHUB0(0)]; in mmhub_v2_0_setup_vm_pt_regs() local
193 hub->ctx_addr_distance * vmid, in mmhub_v2_0_setup_vm_pt_regs()
197 hub->ctx_addr_distance * vmid, in mmhub_v2_0_setup_vm_pt_regs()
365 struct amdgpu_vmhub *hub = &adev->vmhub[AMDGPU_MMHUB0(0)]; in mmhub_v2_0_setup_vmid_config() local
397 i * hub->ctx_distance, tmp); in mmhub_v2_0_setup_vmid_config()
399 i * hub->ctx_addr_distance, 0); in mmhub_v2_0_setup_vmid_config()
401 i * hub->ctx_addr_distance, 0); in mmhub_v2_0_setup_vmid_config()
403 i * hub->ctx_addr_distance, in mmhub_v2_0_setup_vmid_config()
406 i * hub->ctx_addr_distance, in mmhub_v2_0_setup_vmid_config()
410 hub->vm_cntx_cntl = tmp; in mmhub_v2_0_setup_vmid_config()
[all …]
/linux-6.6.21/arch/arm64/boot/dts/amlogic/
Dmeson-sm1-odroid-c4.dts30 /* USB hub supports both USB 2.0 and USB 3.0 root hub */
31 usb-hub {
36 /* 2.0 hub on port 1 */
37 hub_2_0: hub@1 {
40 peer-hub = <&hub_3_0>;
45 /* 3.1 hub on port 4 */
46 hub_3_0: hub@2 {
49 peer-hub = <&hub_2_0>;

12345678910>>...13