/linux/drivers/usb/misc/ |
H A D | usb251xb.c | 248 if (!hub->gpio_reset) in usb251x_check_gpio_chip() 271 if (!hub->gpio_reset) in usb251xb_reset() 294 if (hub->skip_config) { in usb251xb_connect() 299 usb251xb_reset(hub); in usb251xb_connect() 349 usb251xb_reset(hub); in usb251xb_connect() 665 if (IS_ERR(hub->vdd)) in usb251xb_probe() 666 return PTR_ERR(hub->vdd); in usb251xb_probe() 690 struct usb251xb *hub; in usb251xb_i2c_probe() local 693 if (!hub) in usb251xb_i2c_probe() 697 hub->dev = &i2c->dev; in usb251xb_i2c_probe() [all …]
|
H A D | usb3503.c | 61 if (hub->regmap) { in usb3503_connect() 101 if (hub->connect) in usb3503_connect() 140 if (hub->reset) in usb3503_switch_mode() 143 if (hub->bypass) in usb3503_switch_mode() 250 if (hub->intn) in usb3503_probe() 266 if (hub->bypass) in usb3503_probe() 280 if (hub->port_off_mask && !hub->regmap) in usb3503_probe() 283 usb3503_switch_mode(hub, hub->mode); in usb3503_probe() 302 if (!hub) in usb3503_i2c_probe() 330 if (!hub) in usb3503_platform_probe() [all …]
|
H A D | usb4604.c | 44 usb4604_reset(hub, 1); in usb4604_connect() 48 usb4604_reset(hub, 0); in usb4604_connect() 69 usb4604_reset(hub, 0); in usb4604_switch_mode() 92 hub->gpio_reset = gpio; in usb4604_probe() 95 hub->mode = mode; in usb4604_probe() 97 return usb4604_switch_mode(hub, hub->mode); in usb4604_probe() 102 struct usb4604 *hub; in usb4604_i2c_probe() local 104 hub = devm_kzalloc(&i2c->dev, sizeof(*hub), GFP_KERNEL); in usb4604_i2c_probe() 105 if (!hub) in usb4604_i2c_probe() 109 hub->dev = &i2c->dev; in usb4604_i2c_probe() [all …]
|
/linux/drivers/platform/surface/ |
H A D | surface_aggregator_hub.c | 73 status = hub->ops.get_state(hub, &state); 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() 158 struct ssam_hub *hub; in ssam_hub_probe() local 167 hub = devm_kzalloc(&sdev->dev, sizeof(*hub), GFP_KERNEL); in ssam_hub_probe() 168 if (!hub) in ssam_hub_probe() 171 hub->sdev = sdev; in ssam_hub_probe() 172 hub->state = SSAM_HUB_UNINITIALIZED; in ssam_hub_probe() [all …]
|
/linux/drivers/usb/core/ |
H A D | hub.c | 354 if (!hub) in usb_set_lpm_parameters() 736 if (hub) in usb_kick_hub_wq() 786 if ((++hub->nerrors < 10) || hub->error) in hub_irq() 990 ret = get_hub_status(hub->hdev, &hub->status->hub); in hub_hub_status() 1391 if (hub->tt.hub) in hub_quiesce() 1564 hub->tt.hub = hdev; in hub_configure() 1574 hub->tt.hub = hdev; in hub_configure() 1926 hub = kzalloc(sizeof(*hub), GFP_KERNEL); in hub_probe() 3403 (hub ? hub->wakeup_enabled_descendants : 0); in usb_wakeup_enabled_descendants() 4753 if (hub) in hub_set_initial_usb2_lpm_policy() [all …]
|
H A D | hub.h | 29 struct usb_hub_status hub; member 125 extern int usb_hub_create_port_device(struct usb_hub *hub, 127 extern void usb_hub_remove_port_device(struct usb_hub *hub, 132 extern void hub_get(struct usb_hub *hub); 133 extern void hub_put(struct usb_hub *hub); 146 if (!hub) in hub_is_port_power_switchable() 148 hcs = hub->descriptor->wHubCharacteristics; in hub_is_port_power_switchable() 166 unsigned delay = hub->descriptor->bPwrOn2PwrGood * 2; in hub_power_on_good_delay() 168 if (!hub->hdev->parent) /* root hub */ in hub_power_on_good_delay() 177 return hub_port_debounce(hub, port1, true); in hub_port_debounce_be_connected() [all …]
|
/linux/drivers/fsi/ |
H A D | fsi-master-hub.c | 110 kfree(hub); in hub_master_release() 198 struct fsi_master_hub *hub; in hub_master_probe() local 218 hub = kzalloc(sizeof(*hub), GFP_KERNEL); in hub_master_probe() 219 if (!hub) { in hub_master_probe() 226 hub->upstream = fsi_dev; in hub_master_probe() 228 hub->master.dev.parent = dev; in hub_master_probe() 232 hub->master.n_links = links; in hub_master_probe() 238 dev_set_drvdata(dev, hub); in hub_master_probe() 240 hub_master_init(hub); in hub_master_probe() 253 get_device(&hub->master.dev); in hub_master_probe() [all …]
|
/linux/drivers/gpu/drm/tegra/ |
H A D | hub.c | 762 struct tegra_display_hub *hub = tegra->hub; in tegra_shared_plane_create() local 854 if (!tegra->hub) in tegra_display_hub_atomic_check() 915 struct tegra_display_hub *hub = tegra->hub; in tegra_display_hub_atomic_commit() local 952 tegra->hub = hub; in tegra_display_hub_init() 963 tegra->hub = NULL; in tegra_display_hub_exit() 1064 hub = devm_kzalloc(&pdev->dev, sizeof(*hub), GFP_KERNEL); in tegra_display_hub_probe() 1065 if (!hub) in tegra_display_hub_probe() 1096 hub->wgrps = devm_kcalloc(&pdev->dev, hub->soc->num_wgrps, in tegra_display_hub_probe() 1098 if (!hub->wgrps) in tegra_display_hub_probe() 1121 hub->clk_heads = devm_kcalloc(&pdev->dev, hub->num_heads, sizeof(clk), in tegra_display_hub_probe() [all …]
|
/linux/Documentation/devicetree/bindings/usb/ |
H A D | genesys,gl850g.yaml | 7 title: Genesys Logic USB hub controller 29 peer-hub: 50 peer-hub: false 62 peer-hub: true 75 hub: hub@1 { 89 /* 2.0 hub on port 1 */ 90 hub_2_0: hub@1 { 93 peer-hub = <&hub_3_0>; 98 /* 3.1 hub on port 4 */ 99 hub_3_0: hub@2 { [all …]
|
H A D | microchip,usb5744.yaml | 40 3V3 power supply to the hub 44 1V2 power supply to the hub 46 peer-hub: 71 peer-hub: false 84 hub: usb-hub@2d { 94 /* 2.0 hub on port 1 */ 95 hub_2_0: hub@1 { 99 i2c-bus = <&hub>; 103 /* 3.0 hub on port 2 */ 104 hub_3_0: hub@2 { [all …]
|
H A D | ti,usb8041.yaml | 7 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 …]
|
H A D | ti,usb8020b.yaml | 7 title: TI USB8020B 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>; 61 /* 3.0 hub on port 2 */ 62 hub_3_0: hub@2 { [all …]
|
H A D | vialab,vl817.yaml | 7 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. 41 - peer-hub 53 /* 2.0 hub on port 1 */ 54 hub_2_0: hub@1 { 58 peer-hub = <&hub_3_0>; 62 /* 3.1 hub on port 4 */ 63 hub_3_0: hub@2 { [all …]
|
H A D | cypress,hx3.yaml | 7 title: Cypress HX3 USB 3.0 hub controller family 35 peer-hub: 38 phandle to the peer hub on the controller. 43 - peer-hub 57 /* 2.0 hub on port 1 */ 58 hub_2_0: hub@1 { 61 peer-hub = <&hub_3_0>; 67 /* 3.0 hub on port 2 */ 68 hub_3_0: hub@2 { 71 peer-hub = <&hub_2_0>;
|
/linux/drivers/gpu/drm/amd/amdgpu/ |
H A D | gfxhub_v2_0.c | 322 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() 370 i * hub->ctx_distance, 0); in gfxhub_v2_0_gart_disable() 439 hub->ctx0_ptb_addr_lo32 = in gfxhub_v2_0_init() 442 hub->ctx0_ptb_addr_hi32 = in gfxhub_v2_0_init() 445 hub->vm_inv_eng0_sem = in gfxhub_v2_0_init() 447 hub->vm_inv_eng0_req = in gfxhub_v2_0_init() 449 hub->vm_inv_eng0_ack = in gfxhub_v2_0_init() 451 hub->vm_context0_cntl = in gfxhub_v2_0_init() 453 hub->vm_l2_pro_fault_status = in gfxhub_v2_0_init() [all …]
|
H A D | gfxhub_v3_0_3.c | 334 i * hub->ctx_addr_distance, in gfxhub_v3_0_3_setup_vmid_config() 341 hub->vm_cntx_cntl = tmp; in gfxhub_v3_0_3_setup_vmid_config() 382 i * hub->ctx_distance, 0); in gfxhub_v3_0_3_gart_disable() 455 hub->ctx0_ptb_addr_lo32 = in gfxhub_v3_0_3_init() 458 hub->ctx0_ptb_addr_hi32 = in gfxhub_v3_0_3_init() 461 hub->vm_inv_eng0_sem = in gfxhub_v3_0_3_init() 463 hub->vm_inv_eng0_req = in gfxhub_v3_0_3_init() 465 hub->vm_inv_eng0_ack = in gfxhub_v3_0_3_init() 467 hub->vm_context0_cntl = in gfxhub_v3_0_3_init() 469 hub->vm_l2_pro_fault_status = in gfxhub_v3_0_3_init() [all …]
|
H A D | mmhub_v3_0_2.c | 351 i * hub->ctx_addr_distance, in mmhub_v3_0_2_setup_vmid_config() 358 hub->vm_cntx_cntl = tmp; in mmhub_v3_0_2_setup_vmid_config() 399 i * hub->ctx_distance, 0); in mmhub_v3_0_2_gart_disable() 473 hub->ctx0_ptb_addr_lo32 = in mmhub_v3_0_2_init() 476 hub->ctx0_ptb_addr_hi32 = in mmhub_v3_0_2_init() 479 hub->vm_inv_eng0_sem = in mmhub_v3_0_2_init() 481 hub->vm_inv_eng0_req = in mmhub_v3_0_2_init() 483 hub->vm_inv_eng0_ack = in mmhub_v3_0_2_init() 485 hub->vm_context0_cntl = in mmhub_v3_0_2_init() 487 hub->vm_l2_pro_fault_status = in mmhub_v3_0_2_init() [all …]
|
H A D | gfxhub_v11_5_0.c | 332 i * hub->ctx_addr_distance, in gfxhub_v11_5_0_setup_vmid_config() 339 hub->vm_cntx_cntl = tmp; in gfxhub_v11_5_0_setup_vmid_config() 392 i * hub->ctx_distance, 0); in gfxhub_v11_5_0_gart_disable() 470 hub->ctx0_ptb_addr_lo32 = in gfxhub_v11_5_0_init() 473 hub->ctx0_ptb_addr_hi32 = in gfxhub_v11_5_0_init() 476 hub->vm_inv_eng0_sem = in gfxhub_v11_5_0_init() 478 hub->vm_inv_eng0_req = in gfxhub_v11_5_0_init() 480 hub->vm_inv_eng0_ack = in gfxhub_v11_5_0_init() 482 hub->vm_context0_cntl = in gfxhub_v11_5_0_init() 484 hub->vm_l2_pro_fault_status = in gfxhub_v11_5_0_init() [all …]
|
H A D | gfxhub_v3_0.c | 329 i * hub->ctx_addr_distance, in gfxhub_v3_0_setup_vmid_config() 336 hub->vm_cntx_cntl = tmp; in gfxhub_v3_0_setup_vmid_config() 389 i * hub->ctx_distance, 0); in gfxhub_v3_0_gart_disable() 467 hub->ctx0_ptb_addr_lo32 = in gfxhub_v3_0_init() 470 hub->ctx0_ptb_addr_hi32 = in gfxhub_v3_0_init() 473 hub->vm_inv_eng0_sem = in gfxhub_v3_0_init() 475 hub->vm_inv_eng0_req = in gfxhub_v3_0_init() 477 hub->vm_inv_eng0_ack = in gfxhub_v3_0_init() 479 hub->vm_context0_cntl = in gfxhub_v3_0_init() 481 hub->vm_l2_pro_fault_status = in gfxhub_v3_0_init() [all …]
|
H A D | gmc_v12_0.c | 93 struct amdgpu_vmhub *hub; in gmc_v12_0_process_interrupt() local 101 hub = &adev->vmhub[AMDGPU_MMHUB0(0)]; in gmc_v12_0_process_interrupt() 103 hub = &adev->vmhub[AMDGPU_GFXHUB(0)]; in gmc_v12_0_process_interrupt() 112 RREG32(hub->vm_l2_pro_fault_status); in gmc_v12_0_process_interrupt() 237 WREG32_RLC_NO_KIQ(hub->vm_inv_eng0_req + hub->eng_distance * eng, inv_req, hub_ip); in gmc_v12_0_flush_vm_hub() 307 u32 req = hub->vm_inv_eng0_req + hub->eng_distance * eng; in gmc_v12_0_flush_gpu_tlb() 308 u32 ack = hub->vm_inv_eng0_ack + hub->eng_distance * eng; in gmc_v12_0_flush_gpu_tlb() 378 hub->vm_inv_eng0_sem + in gmc_v12_0_emit_flush_gpu_tlb() 390 hub->eng_distance * eng, in gmc_v12_0_emit_flush_gpu_tlb() 391 hub->vm_inv_eng0_ack + in gmc_v12_0_emit_flush_gpu_tlb() [all …]
|
H A D | gfxhub_v12_0.c | 337 i * hub->ctx_addr_distance, in gfxhub_v12_0_setup_vmid_config() 344 hub->vm_cntx_cntl = tmp; in gfxhub_v12_0_setup_vmid_config() 397 i * hub->ctx_distance, 0); in gfxhub_v12_0_gart_disable() 475 hub->ctx0_ptb_addr_lo32 = in gfxhub_v12_0_init() 478 hub->ctx0_ptb_addr_hi32 = in gfxhub_v12_0_init() 481 hub->vm_inv_eng0_sem = in gfxhub_v12_0_init() 483 hub->vm_inv_eng0_req = in gfxhub_v12_0_init() 485 hub->vm_inv_eng0_ack = in gfxhub_v12_0_init() 487 hub->vm_context0_cntl = in gfxhub_v12_0_init() 489 hub->vm_l2_pro_fault_status = in gfxhub_v12_0_init() [all …]
|
H A D | mmhub_v3_0.c | 366 hub->vm_cntx_cntl = tmp; in mmhub_v3_0_setup_vmid_config() 407 i * hub->ctx_distance, 0); in mmhub_v3_0_gart_disable() 481 hub->ctx0_ptb_addr_lo32 = in mmhub_v3_0_init() 484 hub->ctx0_ptb_addr_hi32 = in mmhub_v3_0_init() 487 hub->vm_inv_eng0_sem = in mmhub_v3_0_init() 489 hub->vm_inv_eng0_req = in mmhub_v3_0_init() 491 hub->vm_inv_eng0_ack = in mmhub_v3_0_init() 493 hub->vm_context0_cntl = in mmhub_v3_0_init() 495 hub->vm_l2_pro_fault_status = in mmhub_v3_0_init() 497 hub->vm_l2_pro_fault_cntl = in mmhub_v3_0_init() [all …]
|
H A D | gfxhub_v1_0.c | 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() 350 i * hub->ctx_distance, 0); in gfxhub_v1_0_gart_disable() 419 hub->ctx0_ptb_addr_lo32 = in gfxhub_v1_0_init() 422 hub->ctx0_ptb_addr_hi32 = in gfxhub_v1_0_init() 425 hub->vm_inv_eng0_sem = in gfxhub_v1_0_init() 427 hub->vm_inv_eng0_req = in gfxhub_v1_0_init() 429 hub->vm_inv_eng0_ack = in gfxhub_v1_0_init() 431 hub->vm_context0_cntl = in gfxhub_v1_0_init() 433 hub->vm_l2_pro_fault_status = in gfxhub_v1_0_init() [all …]
|
H A D | mmhub_v3_0_1.c | 346 i * hub->ctx_addr_distance, in mmhub_v3_0_1_setup_vmid_config() 353 hub->vm_cntx_cntl = tmp; in mmhub_v3_0_1_setup_vmid_config() 394 i * hub->ctx_distance, 0); in mmhub_v3_0_1_gart_disable() 463 hub->ctx0_ptb_addr_lo32 = in mmhub_v3_0_1_init() 466 hub->ctx0_ptb_addr_hi32 = in mmhub_v3_0_1_init() 469 hub->vm_inv_eng0_sem = in mmhub_v3_0_1_init() 471 hub->vm_inv_eng0_req = in mmhub_v3_0_1_init() 473 hub->vm_inv_eng0_ack = in mmhub_v3_0_1_init() 475 hub->vm_context0_cntl = in mmhub_v3_0_1_init() 477 hub->vm_l2_pro_fault_status = in mmhub_v3_0_1_init() [all …]
|
/linux/arch/arm64/boot/dts/amlogic/ |
H A D | meson-sm1-odroid-c4.dts | 30 /* 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>;
|