hub                20 arch/mips/include/asm/mach-ip27/mmzone.h 	struct hub_data hub;
hub                26 arch/mips/include/asm/mach-ip27/mmzone.h #define hub_data(n)		(&__node_data[(n)]->hub)
hub                38 arch/mips/include/asm/mach-loongson64/mmzone.h 	struct hub_data hub;
hub                45 arch/mips/include/asm/mach-loongson64/mmzone.h #define hub_data(n)		(&__node_data[(n)]->hub)
hub                26 arch/mips/include/asm/sn/intr.h #define REMOTE_HUB_SEND_INTR(hub, level)			\
hub                27 arch/mips/include/asm/sn/intr.h 	REMOTE_HUB_S((hub), PI_INT_PEND_MOD, (0x100 | (level)))
hub                41 arch/mips/include/asm/sn/intr.h #define REMOTE_HUB_CLR_INTR(hub, level)				\
hub                43 arch/mips/include/asm/sn/intr.h 	nasid_t	 __hub = (hub);					\
hub                57 arch/mips/sgi-ip27/ip27-init.c 	struct hub_data *hub = hub_data(cnode);
hub                60 arch/mips/sgi-ip27/ip27-init.c 	cpumask_set_cpu(smp_processor_id(), &hub->h_cpus);
hub                87 arch/mips/sgi-ip27/ip27-init.c 	struct hub_data *hub = hub_data(cnode);
hub                89 arch/mips/sgi-ip27/ip27-init.c 	if (test_and_set_bit(slice, &hub->slice_map))
hub               123 arch/mips/sgi-ip27/ip27-irq.c 	struct hub_data *hub;
hub               143 arch/mips/sgi-ip27/ip27-irq.c 	hub = hub_data(NASID_TO_COMPACT_NODEID(info->nasid));
hub               144 arch/mips/sgi-ip27/ip27-irq.c 	setup_hub_mask(hd, &hub->h_cpus);
hub               152 arch/mips/sgi-ip27/ip27-irq.c 	cpumask_copy(desc->irq_common_data.affinity, &hub->h_cpus);
hub               418 arch/mips/sgi-ip27/ip27-memory.c 	.hub = {
hub                46 arch/mips/sgi-ip27/ip27-smp.c 	klhub_t *hub;
hub                52 arch/mips/sgi-ip27/ip27-smp.c 	hub  = (klhub_t *)find_first_component(brd, KLSTRUCT_HUB);
hub                53 arch/mips/sgi-ip27/ip27-smp.c 	if (!hub)
hub                55 arch/mips/sgi-ip27/ip27-smp.c 	if (!(hub->hub_info.flags & KLINFO_ENABLE))	/* disabled node brd */
hub                56 arch/mips/sgi-ip27/ip27-smp.c 		return hub->hub_info.physid;
hub               837 arch/x86/include/asm/uv/uv_hub.h 	struct uv_hub_nmi_s	*hub;
hub               846 arch/x86/include/asm/uv/uv_hub.h #define uv_hub_nmi			this_cpu_read(uv_cpu_nmi.hub)
hub               848 arch/x86/include/asm/uv/uv_hub.h #define uv_hub_nmi_per(cpu)		(uv_cpu_nmi_per(cpu).hub)
hub              1442 arch/x86/kernel/apic/x2apic_uv_x.c 	char *hub = is_uv4_hub() ? "UV400" :
hub              1447 arch/x86/kernel/apic/x2apic_uv_x.c 	if (!hub) {
hub              1451 arch/x86/kernel/apic/x2apic_uv_x.c 	pr_info("UV: Found %s hub\n", hub);
hub                92 drivers/clk/bcm/clk-bcm281xx.c 	BCM281XX_CCU_COMMON(hub, HUB),
hub                95 drivers/clk/bcm/clk-bcm281xx.c 			KONA_CLK(hub, tmon_1m, peri),
hub                94 drivers/fsi/fsi-master-hub.c 	struct fsi_master_hub *hub = to_fsi_master_hub(master);
hub                99 drivers/fsi/fsi-master-hub.c 	addr += hub->addr + (link * FSI_HUB_LINK_SIZE);
hub               100 drivers/fsi/fsi-master-hub.c 	return fsi_slave_read(hub->upstream->slave, addr, val, size);
hub               106 drivers/fsi/fsi-master-hub.c 	struct fsi_master_hub *hub = to_fsi_master_hub(master);
hub               111 drivers/fsi/fsi-master-hub.c 	addr += hub->addr + (link * FSI_HUB_LINK_SIZE);
hub               112 drivers/fsi/fsi-master-hub.c 	return fsi_slave_write(hub->upstream->slave, addr, val, size);
hub               128 drivers/fsi/fsi-master-hub.c 	struct fsi_master_hub *hub = to_fsi_master_hub(master);
hub               138 drivers/fsi/fsi-master-hub.c 	rc = fsi_device_write(hub->upstream, FSI_MSENP0 + (4 * idx), &reg, 4);
hub               142 drivers/fsi/fsi-master-hub.c 	fsi_device_read(hub->upstream, FSI_MENP0 + (4 * idx), &reg, 4);
hub               149 drivers/fsi/fsi-master-hub.c 	struct fsi_master_hub *hub = to_fsi_master_hub(dev_to_fsi_master(dev));
hub               151 drivers/fsi/fsi-master-hub.c 	kfree(hub);
hub               165 drivers/fsi/fsi-master-hub.c static int hub_master_init(struct fsi_master_hub *hub)
hub               167 drivers/fsi/fsi-master-hub.c 	struct fsi_device *dev = hub->upstream;
hub               239 drivers/fsi/fsi-master-hub.c 	struct fsi_master_hub *hub;
hub               259 drivers/fsi/fsi-master-hub.c 	hub = kzalloc(sizeof(*hub), GFP_KERNEL);
hub               260 drivers/fsi/fsi-master-hub.c 	if (!hub) {
hub               265 drivers/fsi/fsi-master-hub.c 	hub->addr = FSI_HUB_LINK_OFFSET;
hub               266 drivers/fsi/fsi-master-hub.c 	hub->size = FSI_HUB_LINK_SIZE * links;
hub               267 drivers/fsi/fsi-master-hub.c 	hub->upstream = fsi_dev;
hub               269 drivers/fsi/fsi-master-hub.c 	hub->master.dev.parent = dev;
hub               270 drivers/fsi/fsi-master-hub.c 	hub->master.dev.release = hub_master_release;
hub               271 drivers/fsi/fsi-master-hub.c 	hub->master.dev.of_node = of_node_get(dev_of_node(dev));
hub               273 drivers/fsi/fsi-master-hub.c 	hub->master.n_links = links;
hub               274 drivers/fsi/fsi-master-hub.c 	hub->master.read = hub_master_read;
hub               275 drivers/fsi/fsi-master-hub.c 	hub->master.write = hub_master_write;
hub               276 drivers/fsi/fsi-master-hub.c 	hub->master.send_break = hub_master_break;
hub               277 drivers/fsi/fsi-master-hub.c 	hub->master.link_enable = hub_master_link_enable;
hub               279 drivers/fsi/fsi-master-hub.c 	dev_set_drvdata(dev, hub);
hub               281 drivers/fsi/fsi-master-hub.c 	hub_master_init(hub);
hub               283 drivers/fsi/fsi-master-hub.c 	rc = fsi_master_register(&hub->master);
hub               294 drivers/fsi/fsi-master-hub.c 	get_device(&hub->master.dev);
hub               305 drivers/fsi/fsi-master-hub.c 	struct fsi_master_hub *hub = dev_get_drvdata(dev);
hub               307 drivers/fsi/fsi-master-hub.c 	fsi_master_unregister(&hub->master);
hub               308 drivers/fsi/fsi-master-hub.c 	fsi_slave_release_range(hub->upstream->slave, hub->addr, hub->size);
hub               309 drivers/fsi/fsi-master-hub.c 	of_node_put(hub->master.dev.of_node);
hub               315 drivers/fsi/fsi-master-hub.c 	put_device(&hub->master.dev);
hub               360 drivers/gpu/drm/amd/amdgpu/gfxhub_v1_0.c 	struct amdgpu_vmhub *hub = &adev->vmhub[AMDGPU_GFXHUB_0];
hub               362 drivers/gpu/drm/amd/amdgpu/gfxhub_v1_0.c 	hub->ctx0_ptb_addr_lo32 =
hub               365 drivers/gpu/drm/amd/amdgpu/gfxhub_v1_0.c 	hub->ctx0_ptb_addr_hi32 =
hub               368 drivers/gpu/drm/amd/amdgpu/gfxhub_v1_0.c 	hub->vm_inv_eng0_sem =
hub               370 drivers/gpu/drm/amd/amdgpu/gfxhub_v1_0.c 	hub->vm_inv_eng0_req =
hub               372 drivers/gpu/drm/amd/amdgpu/gfxhub_v1_0.c 	hub->vm_inv_eng0_ack =
hub               374 drivers/gpu/drm/amd/amdgpu/gfxhub_v1_0.c 	hub->vm_context0_cntl =
hub               376 drivers/gpu/drm/amd/amdgpu/gfxhub_v1_0.c 	hub->vm_l2_pro_fault_status =
hub               378 drivers/gpu/drm/amd/amdgpu/gfxhub_v1_0.c 	hub->vm_l2_pro_fault_cntl =
hub               345 drivers/gpu/drm/amd/amdgpu/gfxhub_v2_0.c 	struct amdgpu_vmhub *hub = &adev->vmhub[AMDGPU_GFXHUB_0];
hub               347 drivers/gpu/drm/amd/amdgpu/gfxhub_v2_0.c 	hub->ctx0_ptb_addr_lo32 =
hub               350 drivers/gpu/drm/amd/amdgpu/gfxhub_v2_0.c 	hub->ctx0_ptb_addr_hi32 =
hub               353 drivers/gpu/drm/amd/amdgpu/gfxhub_v2_0.c 	hub->vm_inv_eng0_sem =
hub               355 drivers/gpu/drm/amd/amdgpu/gfxhub_v2_0.c 	hub->vm_inv_eng0_req =
hub               357 drivers/gpu/drm/amd/amdgpu/gfxhub_v2_0.c 	hub->vm_inv_eng0_ack =
hub               359 drivers/gpu/drm/amd/amdgpu/gfxhub_v2_0.c 	hub->vm_context0_cntl =
hub               361 drivers/gpu/drm/amd/amdgpu/gfxhub_v2_0.c 	hub->vm_l2_pro_fault_status =
hub               363 drivers/gpu/drm/amd/amdgpu/gfxhub_v2_0.c 	hub->vm_l2_pro_fault_cntl =
hub                62 drivers/gpu/drm/amd/amdgpu/gmc_v10_0.c 	struct amdgpu_vmhub *hub;
hub                84 drivers/gpu/drm/amd/amdgpu/gmc_v10_0.c 		hub = &adev->vmhub[AMDGPU_MMHUB_0];
hub                86 drivers/gpu/drm/amd/amdgpu/gmc_v10_0.c 			reg = hub->vm_context0_cntl + i;
hub                93 drivers/gpu/drm/amd/amdgpu/gmc_v10_0.c 		hub = &adev->vmhub[AMDGPU_GFXHUB_0];
hub                95 drivers/gpu/drm/amd/amdgpu/gmc_v10_0.c 			reg = hub->vm_context0_cntl + i;
hub               103 drivers/gpu/drm/amd/amdgpu/gmc_v10_0.c 		hub = &adev->vmhub[AMDGPU_MMHUB_0];
hub               105 drivers/gpu/drm/amd/amdgpu/gmc_v10_0.c 			reg = hub->vm_context0_cntl + i;
hub               112 drivers/gpu/drm/amd/amdgpu/gmc_v10_0.c 		hub = &adev->vmhub[AMDGPU_GFXHUB_0];
hub               114 drivers/gpu/drm/amd/amdgpu/gmc_v10_0.c 			reg = hub->vm_context0_cntl + i;
hub               131 drivers/gpu/drm/amd/amdgpu/gmc_v10_0.c 	struct amdgpu_vmhub *hub = &adev->vmhub[entry->vmid_src];
hub               145 drivers/gpu/drm/amd/amdgpu/gmc_v10_0.c 			RREG32(hub->vm_l2_pro_fault_status);
hub               147 drivers/gpu/drm/amd/amdgpu/gmc_v10_0.c 		status = RREG32(hub->vm_l2_pro_fault_status);
hub               148 drivers/gpu/drm/amd/amdgpu/gmc_v10_0.c 		WREG32_P(hub->vm_l2_pro_fault_cntl, 1, ~1);
hub               232 drivers/gpu/drm/amd/amdgpu/gmc_v10_0.c 	struct amdgpu_vmhub *hub = &adev->vmhub[vmhub];
hub               252 drivers/gpu/drm/amd/amdgpu/gmc_v10_0.c 			tmp = RREG32_NO_KIQ(hub->vm_inv_eng0_sem + eng);
hub               262 drivers/gpu/drm/amd/amdgpu/gmc_v10_0.c 	WREG32_NO_KIQ(hub->vm_inv_eng0_req + eng, inv_req);
hub               269 drivers/gpu/drm/amd/amdgpu/gmc_v10_0.c 		RREG32_NO_KIQ(hub->vm_inv_eng0_req + eng);
hub               273 drivers/gpu/drm/amd/amdgpu/gmc_v10_0.c 		tmp = RREG32_NO_KIQ(hub->vm_inv_eng0_ack + eng);
hub               288 drivers/gpu/drm/amd/amdgpu/gmc_v10_0.c 		WREG32_NO_KIQ(hub->vm_inv_eng0_sem + eng, 0);
hub               372 drivers/gpu/drm/amd/amdgpu/gmc_v10_0.c 	struct amdgpu_vmhub *hub = &ring->adev->vmhub[ring->funcs->vmhub];
hub               388 drivers/gpu/drm/amd/amdgpu/gmc_v10_0.c 					  hub->vm_inv_eng0_sem + eng, 0x1, 0x1);
hub               390 drivers/gpu/drm/amd/amdgpu/gmc_v10_0.c 	amdgpu_ring_emit_wreg(ring, hub->ctx0_ptb_addr_lo32 + (2 * vmid),
hub               393 drivers/gpu/drm/amd/amdgpu/gmc_v10_0.c 	amdgpu_ring_emit_wreg(ring, hub->ctx0_ptb_addr_hi32 + (2 * vmid),
hub               396 drivers/gpu/drm/amd/amdgpu/gmc_v10_0.c 	amdgpu_ring_emit_reg_write_reg_wait(ring, hub->vm_inv_eng0_req + eng,
hub               397 drivers/gpu/drm/amd/amdgpu/gmc_v10_0.c 					    hub->vm_inv_eng0_ack + eng,
hub               407 drivers/gpu/drm/amd/amdgpu/gmc_v10_0.c 		amdgpu_ring_emit_wreg(ring, hub->vm_inv_eng0_sem + eng, 0);
hub               289 drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c 	struct amdgpu_vmhub *hub;
hub               303 drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c 			hub = &adev->vmhub[j];
hub               305 drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c 				reg = hub->vm_context0_cntl + i;
hub               314 drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c 			hub = &adev->vmhub[j];
hub               316 drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c 				reg = hub->vm_context0_cntl + i;
hub               333 drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c 	struct amdgpu_vmhub *hub;
hub               348 drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c 		hub = &adev->vmhub[AMDGPU_MMHUB_0];
hub               351 drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c 		hub = &adev->vmhub[AMDGPU_MMHUB_1];
hub               354 drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c 		hub = &adev->vmhub[AMDGPU_GFXHUB_0];
hub               365 drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c 			RREG32(hub->vm_l2_pro_fault_status);
hub               367 drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c 		status = RREG32(hub->vm_l2_pro_fault_status);
hub               368 drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c 		WREG32_P(hub->vm_l2_pro_fault_cntl, 1, ~1);
hub               491 drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c 	struct amdgpu_vmhub *hub;
hub               495 drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c 	hub = &adev->vmhub[vmhub];
hub               504 drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c 		uint32_t req = hub->vm_inv_eng0_req + eng;
hub               505 drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c 		uint32_t ack = hub->vm_inv_eng0_ack + eng;
hub               525 drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c 			tmp = RREG32_NO_KIQ(hub->vm_inv_eng0_sem + eng);
hub               535 drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c 	WREG32_NO_KIQ(hub->vm_inv_eng0_req + eng, inv_req);
hub               542 drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c 		RREG32_NO_KIQ(hub->vm_inv_eng0_req + eng);
hub               545 drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c 		tmp = RREG32_NO_KIQ(hub->vm_inv_eng0_ack + eng);
hub               557 drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c 		WREG32_NO_KIQ(hub->vm_inv_eng0_sem + eng, 0);
hub               572 drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c 	struct amdgpu_vmhub *hub = &adev->vmhub[ring->funcs->vmhub];
hub               587 drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c 					  hub->vm_inv_eng0_sem + eng, 0x1, 0x1);
hub               589 drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c 	amdgpu_ring_emit_wreg(ring, hub->ctx0_ptb_addr_lo32 + (2 * vmid),
hub               592 drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c 	amdgpu_ring_emit_wreg(ring, hub->ctx0_ptb_addr_hi32 + (2 * vmid),
hub               595 drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c 	amdgpu_ring_emit_reg_write_reg_wait(ring, hub->vm_inv_eng0_req + eng,
hub               596 drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c 					    hub->vm_inv_eng0_ack + eng,
hub               605 drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c 		amdgpu_ring_emit_wreg(ring, hub->vm_inv_eng0_sem + eng, 0);
hub               413 drivers/gpu/drm/amd/amdgpu/mmhub_v1_0.c 	struct amdgpu_vmhub *hub = &adev->vmhub[AMDGPU_MMHUB_0];
hub               415 drivers/gpu/drm/amd/amdgpu/mmhub_v1_0.c 	hub->ctx0_ptb_addr_lo32 =
hub               418 drivers/gpu/drm/amd/amdgpu/mmhub_v1_0.c 	hub->ctx0_ptb_addr_hi32 =
hub               421 drivers/gpu/drm/amd/amdgpu/mmhub_v1_0.c 	hub->vm_inv_eng0_sem =
hub               423 drivers/gpu/drm/amd/amdgpu/mmhub_v1_0.c 	hub->vm_inv_eng0_req =
hub               425 drivers/gpu/drm/amd/amdgpu/mmhub_v1_0.c 	hub->vm_inv_eng0_ack =
hub               427 drivers/gpu/drm/amd/amdgpu/mmhub_v1_0.c 	hub->vm_context0_cntl =
hub               429 drivers/gpu/drm/amd/amdgpu/mmhub_v1_0.c 	hub->vm_l2_pro_fault_status =
hub               431 drivers/gpu/drm/amd/amdgpu/mmhub_v1_0.c 	hub->vm_l2_pro_fault_cntl =
hub               336 drivers/gpu/drm/amd/amdgpu/mmhub_v2_0.c 	struct amdgpu_vmhub *hub = &adev->vmhub[AMDGPU_MMHUB_0];
hub               338 drivers/gpu/drm/amd/amdgpu/mmhub_v2_0.c 	hub->ctx0_ptb_addr_lo32 =
hub               341 drivers/gpu/drm/amd/amdgpu/mmhub_v2_0.c 	hub->ctx0_ptb_addr_hi32 =
hub               344 drivers/gpu/drm/amd/amdgpu/mmhub_v2_0.c 	hub->vm_inv_eng0_sem =
hub               346 drivers/gpu/drm/amd/amdgpu/mmhub_v2_0.c 	hub->vm_inv_eng0_req =
hub               348 drivers/gpu/drm/amd/amdgpu/mmhub_v2_0.c 	hub->vm_inv_eng0_ack =
hub               350 drivers/gpu/drm/amd/amdgpu/mmhub_v2_0.c 	hub->vm_context0_cntl =
hub               352 drivers/gpu/drm/amd/amdgpu/mmhub_v2_0.c 	hub->vm_l2_pro_fault_status =
hub               354 drivers/gpu/drm/amd/amdgpu/mmhub_v2_0.c 	hub->vm_l2_pro_fault_cntl =
hub               492 drivers/gpu/drm/amd/amdgpu/mmhub_v9_4.c 	struct amdgpu_vmhub *hub[MMHUB_NUM_INSTANCES] =
hub               497 drivers/gpu/drm/amd/amdgpu/mmhub_v9_4.c 		hub[i]->ctx0_ptb_addr_lo32 =
hub               501 drivers/gpu/drm/amd/amdgpu/mmhub_v9_4.c 		hub[i]->ctx0_ptb_addr_hi32 =
hub               505 drivers/gpu/drm/amd/amdgpu/mmhub_v9_4.c 		hub[i]->vm_inv_eng0_sem =
hub               509 drivers/gpu/drm/amd/amdgpu/mmhub_v9_4.c 		hub[i]->vm_inv_eng0_req =
hub               513 drivers/gpu/drm/amd/amdgpu/mmhub_v9_4.c 		hub[i]->vm_inv_eng0_ack =
hub               517 drivers/gpu/drm/amd/amdgpu/mmhub_v9_4.c 		hub[i]->vm_context0_cntl =
hub               521 drivers/gpu/drm/amd/amdgpu/mmhub_v9_4.c 		hub[i]->vm_l2_pro_fault_status =
hub               525 drivers/gpu/drm/amd/amdgpu/mmhub_v9_4.c 		hub[i]->vm_l2_pro_fault_cntl =
hub              1373 drivers/gpu/drm/amd/amdgpu/uvd_v7_0.c 	struct amdgpu_vmhub *hub = &ring->adev->vmhub[ring->funcs->vmhub];
hub              1379 drivers/gpu/drm/amd/amdgpu/uvd_v7_0.c 	data0 = hub->ctx0_ptb_addr_lo32 + vmid * 2;
hub              1416 drivers/gpu/drm/amd/amdgpu/uvd_v7_0.c 	struct amdgpu_vmhub *hub = &ring->adev->vmhub[ring->funcs->vmhub];
hub              1421 drivers/gpu/drm/amd/amdgpu/uvd_v7_0.c 	uvd_v7_0_enc_ring_emit_reg_wait(ring, hub->ctx0_ptb_addr_lo32 + vmid * 2,
hub               992 drivers/gpu/drm/amd/amdgpu/vce_v4_0.c 	struct amdgpu_vmhub *hub = &ring->adev->vmhub[ring->funcs->vmhub];
hub               997 drivers/gpu/drm/amd/amdgpu/vce_v4_0.c 	vce_v4_0_emit_reg_wait(ring, hub->ctx0_ptb_addr_lo32 + vmid * 2,
hub              1562 drivers/gpu/drm/amd/amdgpu/vcn_v1_0.c 	struct amdgpu_vmhub *hub = &ring->adev->vmhub[ring->funcs->vmhub];
hub              1568 drivers/gpu/drm/amd/amdgpu/vcn_v1_0.c 	data0 = hub->ctx0_ptb_addr_lo32 + vmid * 2;
hub              1703 drivers/gpu/drm/amd/amdgpu/vcn_v1_0.c 	struct amdgpu_vmhub *hub = &ring->adev->vmhub[ring->funcs->vmhub];
hub              1708 drivers/gpu/drm/amd/amdgpu/vcn_v1_0.c 	vcn_v1_0_enc_ring_emit_reg_wait(ring, hub->ctx0_ptb_addr_lo32 + vmid * 2,
hub              1967 drivers/gpu/drm/amd/amdgpu/vcn_v1_0.c 	struct amdgpu_vmhub *hub = &ring->adev->vmhub[ring->funcs->vmhub];
hub              1973 drivers/gpu/drm/amd/amdgpu/vcn_v1_0.c 	data0 = hub->ctx0_ptb_addr_lo32 + vmid * 2;
hub              1621 drivers/gpu/drm/amd/amdgpu/vcn_v2_0.c 	struct amdgpu_vmhub *hub = &ring->adev->vmhub[ring->funcs->vmhub];
hub              1627 drivers/gpu/drm/amd/amdgpu/vcn_v2_0.c 	data0 = hub->ctx0_ptb_addr_lo32 + vmid * 2;
hub              1777 drivers/gpu/drm/amd/amdgpu/vcn_v2_0.c 	struct amdgpu_vmhub *hub = &ring->adev->vmhub[ring->funcs->vmhub];
hub              1782 drivers/gpu/drm/amd/amdgpu/vcn_v2_0.c 	vcn_v2_0_enc_ring_emit_reg_wait(ring, hub->ctx0_ptb_addr_lo32 + vmid * 2,
hub              2017 drivers/gpu/drm/amd/amdgpu/vcn_v2_0.c 	struct amdgpu_vmhub *hub = &ring->adev->vmhub[ring->funcs->vmhub];
hub              2023 drivers/gpu/drm/amd/amdgpu/vcn_v2_0.c 	data0 = hub->ctx0_ptb_addr_lo32 + vmid * 2;
hub                36 drivers/gpu/drm/nouveau/include/nvif/ifc00d.h 	__u8  hub;
hub                27 drivers/gpu/drm/nouveau/include/nvkm/subdev/fault.h 	u8    hub;
hub                60 drivers/gpu/drm/nouveau/nouveau_svm.c 			u8  hub;
hub               397 drivers/gpu/drm/nouveau/nouveau_svm.c 			 u64 inst, u8 hub, u8 gpc, u8 client)
hub               399 drivers/gpu/drm/nouveau/nouveau_svm.c 	SVM_DBG(svm, "cancel %016llx %d %02x %02x", inst, hub, gpc, client);
hub               403 drivers/gpu/drm/nouveau/nouveau_svm.c 					.hub = hub,
hub               415 drivers/gpu/drm/nouveau/nouveau_svm.c 				      fault->hub,
hub               450 drivers/gpu/drm/nouveau/nouveau_svm.c 	const u8     hub = (info & 0x00100000) >> 20;
hub               463 drivers/gpu/drm/nouveau/nouveau_svm.c 			nouveau_svm_fault_cancel(svm, inst, hub, gpc, client);
hub               475 drivers/gpu/drm/nouveau/nouveau_svm.c 	fault->hub    = hub;
hub               270 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gf100.c 	if (info->hub) {
hub               390 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gf100.c 	info.hub    = (type & 0x00000040) >> 6;
hub               479 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gk104.c 	if (info->hub) {
hub                89 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gm107.c 	info.hub    = (type & 0x00000040) >> 6;
hub                71 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gp100.c 	info.hub    = (type & 0x00100000) >> 20;
hub              1378 drivers/gpu/drm/nouveau/nvkm/engine/gr/ctxgf100.c 		gf100_gr_mmio(gr, grctx->hub);
hub              1585 drivers/gpu/drm/nouveau/nvkm/engine/gr/ctxgf100.c 	.hub   = gf100_grctx_pack_hub,
hub                30 drivers/gpu/drm/nouveau/nvkm/engine/gr/ctxgf100.h 	const struct gf100_gr_pack *hub;
hub                86 drivers/gpu/drm/nouveau/nvkm/engine/gr/ctxgf104.c 	.hub   = gf100_grctx_pack_hub,
hub               787 drivers/gpu/drm/nouveau/nvkm/engine/gr/ctxgf108.c 	.hub   = gf108_grctx_pack_hub,
hub               334 drivers/gpu/drm/nouveau/nvkm/engine/gr/ctxgf110.c 	.hub   = gf100_grctx_pack_hub,
hub               285 drivers/gpu/drm/nouveau/nvkm/engine/gr/ctxgf117.c 	.hub   = gf117_grctx_pack_hub,
hub               502 drivers/gpu/drm/nouveau/nvkm/engine/gr/ctxgf119.c 	.hub   = gf119_grctx_pack_hub,
hub               980 drivers/gpu/drm/nouveau/nvkm/engine/gr/ctxgk104.c 	.hub   = gk104_grctx_pack_hub,
hub               827 drivers/gpu/drm/nouveau/nvkm/engine/gr/ctxgk110.c 	.hub   = gk110_grctx_pack_hub,
hub                76 drivers/gpu/drm/nouveau/nvkm/engine/gr/ctxgk110b.c 	.hub   = gk110_grctx_pack_hub,
hub               542 drivers/gpu/drm/nouveau/nvkm/engine/gr/ctxgk208.c 	.hub   = gk208_grctx_pack_hub,
hub               967 drivers/gpu/drm/nouveau/nvkm/engine/gr/ctxgm107.c 	.hub   = gm107_grctx_pack_hub,
hub              1804 drivers/gpu/drm/nouveau/nvkm/engine/gr/gf100.c 	gf100_gr_init_csdata(gr, grctx->hub, 0x409000, 0x000, 0x000000);
hub                63 drivers/gpu/drm/nouveau/nvkm/subdev/fault/gv100.c 		info.hub    = (info1 & 0x00100000) >> 20;
hub               143 drivers/gpu/drm/nouveau/nvkm/subdev/fault/gv100.c 	info.hub    = (info1 & 0x00100000) >> 20;
hub                90 drivers/gpu/drm/nouveau/nvkm/subdev/fault/tu102.c 	info.hub    = (info1 & 0x00100000) >> 20;
hub               415 drivers/gpu/drm/nouveau/nvkm/subdev/mmu/vmmgp100.c 					     (args->v0.hub    << 20) |
hub                71 drivers/gpu/drm/tegra/drm.c 	if (tegra->hub) {
hub               172 drivers/gpu/drm/tegra/drm.c 	if (tegra->hub) {
hub               173 drivers/gpu/drm/tegra/drm.c 		err = tegra_display_hub_prepare(tegra->hub);
hub               190 drivers/gpu/drm/tegra/drm.c 		goto hub;
hub               196 drivers/gpu/drm/tegra/drm.c 		goto hub;
hub               200 drivers/gpu/drm/tegra/drm.c hub:
hub               201 drivers/gpu/drm/tegra/drm.c 	if (tegra->hub)
hub               202 drivers/gpu/drm/tegra/drm.c 		tegra_display_hub_cleanup(tegra->hub);
hub                58 drivers/gpu/drm/tegra/drm.h 	struct tegra_display_hub *hub;
hub               131 drivers/gpu/drm/tegra/hub.c int tegra_display_hub_prepare(struct tegra_display_hub *hub)
hub               141 drivers/gpu/drm/tegra/hub.c 	for (i = 0; i < hub->soc->num_wgrps; i++) {
hub               142 drivers/gpu/drm/tegra/hub.c 		struct tegra_windowgroup *wgrp = &hub->wgrps[i];
hub               150 drivers/gpu/drm/tegra/hub.c void tegra_display_hub_cleanup(struct tegra_display_hub *hub)
hub               158 drivers/gpu/drm/tegra/hub.c 	for (i = 0; i < hub->soc->num_wgrps; i++) {
hub               159 drivers/gpu/drm/tegra/hub.c 		struct tegra_windowgroup *wgrp = &hub->wgrps[i];
hub               536 drivers/gpu/drm/tegra/hub.c 	struct tegra_display_hub *hub = tegra->hub;
hub               553 drivers/gpu/drm/tegra/hub.c 	plane->wgrp = &hub->wgrps[wgrp];
hub               605 drivers/gpu/drm/tegra/hub.c tegra_display_hub_get_state(struct tegra_display_hub *hub,
hub               608 drivers/gpu/drm/tegra/hub.c 	struct drm_device *drm = dev_get_drvdata(hub->client.parent);
hub               613 drivers/gpu/drm/tegra/hub.c 	priv = drm_atomic_get_private_obj_state(state, &hub->base);
hub               629 drivers/gpu/drm/tegra/hub.c 	if (!tegra->hub)
hub               632 drivers/gpu/drm/tegra/hub.c 	hub_state = tegra_display_hub_get_state(tegra->hub, state);
hub               685 drivers/gpu/drm/tegra/hub.c 	struct tegra_display_hub *hub = tegra->hub;
hub               687 drivers/gpu/drm/tegra/hub.c 	struct device *dev = hub->client.dev;
hub               690 drivers/gpu/drm/tegra/hub.c 	hub_state = to_tegra_display_hub_state(hub->base.state);
hub               698 drivers/gpu/drm/tegra/hub.c 		err = clk_set_parent(hub->clk_disp, hub_state->clk);
hub               701 drivers/gpu/drm/tegra/hub.c 				hub->clk_disp, hub_state->clk, err);
hub               710 drivers/gpu/drm/tegra/hub.c 	struct tegra_display_hub *hub = to_tegra_display_hub(client);
hub               719 drivers/gpu/drm/tegra/hub.c 	drm_atomic_private_obj_init(drm, &hub->base, &state->base,
hub               722 drivers/gpu/drm/tegra/hub.c 	tegra->hub = hub;
hub               732 drivers/gpu/drm/tegra/hub.c 	drm_atomic_private_obj_fini(&tegra->hub->base);
hub               733 drivers/gpu/drm/tegra/hub.c 	tegra->hub = NULL;
hub               746 drivers/gpu/drm/tegra/hub.c 	struct tegra_display_hub *hub;
hub               751 drivers/gpu/drm/tegra/hub.c 	hub = devm_kzalloc(&pdev->dev, sizeof(*hub), GFP_KERNEL);
hub               752 drivers/gpu/drm/tegra/hub.c 	if (!hub)
hub               755 drivers/gpu/drm/tegra/hub.c 	hub->soc = of_device_get_match_data(&pdev->dev);
hub               757 drivers/gpu/drm/tegra/hub.c 	hub->clk_disp = devm_clk_get(&pdev->dev, "disp");
hub               758 drivers/gpu/drm/tegra/hub.c 	if (IS_ERR(hub->clk_disp)) {
hub               759 drivers/gpu/drm/tegra/hub.c 		err = PTR_ERR(hub->clk_disp);
hub               763 drivers/gpu/drm/tegra/hub.c 	if (hub->soc->supports_dsc) {
hub               764 drivers/gpu/drm/tegra/hub.c 		hub->clk_dsc = devm_clk_get(&pdev->dev, "dsc");
hub               765 drivers/gpu/drm/tegra/hub.c 		if (IS_ERR(hub->clk_dsc)) {
hub               766 drivers/gpu/drm/tegra/hub.c 			err = PTR_ERR(hub->clk_dsc);
hub               771 drivers/gpu/drm/tegra/hub.c 	hub->clk_hub = devm_clk_get(&pdev->dev, "hub");
hub               772 drivers/gpu/drm/tegra/hub.c 	if (IS_ERR(hub->clk_hub)) {
hub               773 drivers/gpu/drm/tegra/hub.c 		err = PTR_ERR(hub->clk_hub);
hub               777 drivers/gpu/drm/tegra/hub.c 	hub->rst = devm_reset_control_get(&pdev->dev, "misc");
hub               778 drivers/gpu/drm/tegra/hub.c 	if (IS_ERR(hub->rst)) {
hub               779 drivers/gpu/drm/tegra/hub.c 		err = PTR_ERR(hub->rst);
hub               783 drivers/gpu/drm/tegra/hub.c 	hub->wgrps = devm_kcalloc(&pdev->dev, hub->soc->num_wgrps,
hub               784 drivers/gpu/drm/tegra/hub.c 				  sizeof(*hub->wgrps), GFP_KERNEL);
hub               785 drivers/gpu/drm/tegra/hub.c 	if (!hub->wgrps)
hub               788 drivers/gpu/drm/tegra/hub.c 	for (i = 0; i < hub->soc->num_wgrps; i++) {
hub               789 drivers/gpu/drm/tegra/hub.c 		struct tegra_windowgroup *wgrp = &hub->wgrps[i];
hub               806 drivers/gpu/drm/tegra/hub.c 	hub->num_heads = of_get_child_count(pdev->dev.of_node);
hub               808 drivers/gpu/drm/tegra/hub.c 	hub->clk_heads = devm_kcalloc(&pdev->dev, hub->num_heads, sizeof(clk),
hub               810 drivers/gpu/drm/tegra/hub.c 	if (!hub->clk_heads)
hub               813 drivers/gpu/drm/tegra/hub.c 	for (i = 0; i < hub->num_heads; i++) {
hub               829 drivers/gpu/drm/tegra/hub.c 		hub->clk_heads[i] = clk;
hub               835 drivers/gpu/drm/tegra/hub.c 	err = reset_control_assert(hub->rst);
hub               839 drivers/gpu/drm/tegra/hub.c 	platform_set_drvdata(pdev, hub);
hub               842 drivers/gpu/drm/tegra/hub.c 	INIT_LIST_HEAD(&hub->client.list);
hub               843 drivers/gpu/drm/tegra/hub.c 	hub->client.ops = &tegra_display_hub_ops;
hub               844 drivers/gpu/drm/tegra/hub.c 	hub->client.dev = &pdev->dev;
hub               846 drivers/gpu/drm/tegra/hub.c 	err = host1x_client_register(&hub->client);
hub               856 drivers/gpu/drm/tegra/hub.c 	struct tegra_display_hub *hub = platform_get_drvdata(pdev);
hub               859 drivers/gpu/drm/tegra/hub.c 	err = host1x_client_unregister(&hub->client);
hub               872 drivers/gpu/drm/tegra/hub.c 	struct tegra_display_hub *hub = dev_get_drvdata(dev);
hub               873 drivers/gpu/drm/tegra/hub.c 	unsigned int i = hub->num_heads;
hub               876 drivers/gpu/drm/tegra/hub.c 	err = reset_control_assert(hub->rst);
hub               881 drivers/gpu/drm/tegra/hub.c 		clk_disable_unprepare(hub->clk_heads[i]);
hub               883 drivers/gpu/drm/tegra/hub.c 	clk_disable_unprepare(hub->clk_hub);
hub               884 drivers/gpu/drm/tegra/hub.c 	clk_disable_unprepare(hub->clk_dsc);
hub               885 drivers/gpu/drm/tegra/hub.c 	clk_disable_unprepare(hub->clk_disp);
hub               892 drivers/gpu/drm/tegra/hub.c 	struct tegra_display_hub *hub = dev_get_drvdata(dev);
hub               896 drivers/gpu/drm/tegra/hub.c 	err = clk_prepare_enable(hub->clk_disp);
hub               900 drivers/gpu/drm/tegra/hub.c 	err = clk_prepare_enable(hub->clk_dsc);
hub               904 drivers/gpu/drm/tegra/hub.c 	err = clk_prepare_enable(hub->clk_hub);
hub               908 drivers/gpu/drm/tegra/hub.c 	for (i = 0; i < hub->num_heads; i++) {
hub               909 drivers/gpu/drm/tegra/hub.c 		err = clk_prepare_enable(hub->clk_heads[i]);
hub               914 drivers/gpu/drm/tegra/hub.c 	err = reset_control_deassert(hub->rst);
hub               922 drivers/gpu/drm/tegra/hub.c 		clk_disable_unprepare(hub->clk_heads[i]);
hub               924 drivers/gpu/drm/tegra/hub.c 	clk_disable_unprepare(hub->clk_hub);
hub               926 drivers/gpu/drm/tegra/hub.c 	clk_disable_unprepare(hub->clk_dsc);
hub               928 drivers/gpu/drm/tegra/hub.c 	clk_disable_unprepare(hub->clk_disp);
hub                78 drivers/gpu/drm/tegra/hub.h int tegra_display_hub_prepare(struct tegra_display_hub *hub);
hub                79 drivers/gpu/drm/tegra/hub.h void tegra_display_hub_cleanup(struct tegra_display_hub *hub);
hub               191 drivers/hid/hid-elo.c 	struct usb_device *hub = dev->parent;
hub               203 drivers/hid/hid-elo.c 	usb_hub_for_each_child(hub, i, child) {
hub                53 drivers/hwtracing/intel_th/core.c 	struct intel_th_device *hub = NULL;
hub                57 drivers/hwtracing/intel_th/core.c 		hub = thdev;
hub                59 drivers/hwtracing/intel_th/core.c 		hub = to_intel_th_device(dev->parent);
hub                61 drivers/hwtracing/intel_th/core.c 	if (!hub || !hub->dev.driver)
hub                64 drivers/hwtracing/intel_th/core.c 	hubdrv = to_intel_th_driver(hub->dev.driver);
hub                83 drivers/hwtracing/intel_th/core.c 		ret = hubdrv->assign(hub, thdev);
hub               102 drivers/hwtracing/intel_th/core.c 	struct intel_th_device *hub = to_intel_th_hub(thdev);
hub               106 drivers/hwtracing/intel_th/core.c 		struct intel_th *th = to_intel_th(hub);
hub               157 drivers/hwtracing/intel_th/core.c 		if (hub->dev.driver)
hub               159 drivers/hwtracing/intel_th/core.c 			hubdrv->unassign(hub, thdev);
hub               362 drivers/hwtracing/intel_th/core.c 		parent = &th->hub->dev;
hub               572 drivers/hwtracing/intel_th/core.c 	request_module("intel_th_%s", th->hub->name);
hub               664 drivers/hwtracing/intel_th/core.c 		th->hub = thdev;
hub               932 drivers/hwtracing/intel_th/core.c 	intel_th_device_remove(th->hub);
hub               934 drivers/hwtracing/intel_th/core.c 		if (th->thdev[i] != th->hub)
hub               962 drivers/hwtracing/intel_th/core.c 	struct intel_th_device *hub = to_intel_th_device(thdev->dev.parent);
hub               963 drivers/hwtracing/intel_th/core.c 	struct intel_th_driver *hubdrv = to_intel_th_driver(hub->dev.driver);
hub               965 drivers/hwtracing/intel_th/core.c 	if (WARN_ON_ONCE(hub->type != INTEL_TH_SWITCH))
hub               972 drivers/hwtracing/intel_th/core.c 	hubdrv->enable(hub, &thdev->output);
hub               984 drivers/hwtracing/intel_th/core.c 	struct intel_th_device *hub = to_intel_th_device(thdev->dev.parent);
hub               985 drivers/hwtracing/intel_th/core.c 	struct intel_th_driver *hubdrv = to_intel_th_driver(hub->dev.driver);
hub               987 drivers/hwtracing/intel_th/core.c 	if (WARN_ON_ONCE(hub->type != INTEL_TH_SWITCH))
hub               993 drivers/hwtracing/intel_th/core.c 	hubdrv->trig_switch(hub, &thdev->output);
hub              1005 drivers/hwtracing/intel_th/core.c 	struct intel_th_device *hub = to_intel_th_device(thdev->dev.parent);
hub              1006 drivers/hwtracing/intel_th/core.c 	struct intel_th_driver *hubdrv = to_intel_th_driver(hub->dev.driver);
hub              1008 drivers/hwtracing/intel_th/core.c 	WARN_ON_ONCE(hub->type != INTEL_TH_SWITCH);
hub              1012 drivers/hwtracing/intel_th/core.c 	hubdrv->disable(hub, &thdev->output);
hub              1022 drivers/hwtracing/intel_th/core.c 	struct intel_th_device *hub = to_intel_th_hub(thdev);
hub              1023 drivers/hwtracing/intel_th/core.c 	struct intel_th_driver *hubdrv = to_intel_th_driver(hub->dev.driver);
hub              1026 drivers/hwtracing/intel_th/core.c 	if (hub->host_mode)
hub              1032 drivers/hwtracing/intel_th/core.c 	return hubdrv->set_output(hub, master);
hub               272 drivers/hwtracing/intel_th/intel_th.h 	struct intel_th_device	*hub;
hub               301 drivers/hwtracing/intel_th/intel_th.h 	return to_intel_th(thdev)->hub;
hub               113 drivers/usb/core/hub.c static int hub_port_disable(struct usb_hub *hub, int port1, int set_state);
hub               114 drivers/usb/core/hub.c static bool hub_port_warm_reset_required(struct usb_hub *hub, int port1,
hub               117 drivers/usb/core/hub.c static inline char *portspeed(struct usb_hub *hub, int portstatus)
hub               119 drivers/usb/core/hub.c 	if (hub_is_superspeedplus(hub->hdev))
hub               121 drivers/usb/core/hub.c 	if (hub_is_superspeed(hub->hdev))
hub               187 drivers/usb/core/hub.c 		struct usb_hub *hub,
hub               205 drivers/usb/core/hub.c 		(hub->descriptor->u.ss.bHubHdrDecLat * 100);
hub               232 drivers/usb/core/hub.c 		struct usb_hub *hub,
hub               308 drivers/usb/core/hub.c 	struct usb_hub *hub;
hub               318 drivers/usb/core/hub.c 	hub = usb_hub_to_struct_hub(udev->parent);
hub               322 drivers/usb/core/hub.c 	if (!hub)
hub               331 drivers/usb/core/hub.c 			hub, &udev->parent->u1_params, hub_u1_del);
hub               334 drivers/usb/core/hub.c 			hub, &udev->parent->u2_params, hub_u2_del);
hub               356 drivers/usb/core/hub.c 			hub, &udev->parent->u1_params, hub_u1_del,
hub               365 drivers/usb/core/hub.c 			hub, &udev->parent->u2_params, hub_u2_del,
hub               456 drivers/usb/core/hub.c static void set_port_led(struct usb_hub *hub, int port1, int selector)
hub               458 drivers/usb/core/hub.c 	struct usb_port *port_dev = hub->ports[port1 - 1];
hub               461 drivers/usb/core/hub.c 	status = set_port_feature(hub->hdev, (selector << 8) | port1,
hub               471 drivers/usb/core/hub.c 	struct usb_hub		*hub =
hub               473 drivers/usb/core/hub.c 	struct usb_device	*hdev = hub->hdev;
hub               478 drivers/usb/core/hub.c 	if (hdev->state != USB_STATE_CONFIGURED || hub->quiescing)
hub               486 drivers/usb/core/hub.c 		switch (hub->indicator[i]) {
hub               525 drivers/usb/core/hub.c 		set_port_led(hub, i + 1, selector);
hub               526 drivers/usb/core/hub.c 		hub->indicator[i] = mode;
hub               531 drivers/usb/core/hub.c 		set_port_led(hub, cursor + 1, HUB_LED_GREEN);
hub               532 drivers/usb/core/hub.c 		hub->indicator[cursor] = INDICATOR_CYCLE;
hub               537 drivers/usb/core/hub.c 				&hub->leds, LED_CYCLE_PERIOD);
hub               579 drivers/usb/core/hub.c static int hub_ext_port_status(struct usb_hub *hub, int port1, int type,
hub               588 drivers/usb/core/hub.c 	mutex_lock(&hub->status_mutex);
hub               589 drivers/usb/core/hub.c 	ret = get_port_status(hub->hdev, port1, &hub->status->port, type, len);
hub               592 drivers/usb/core/hub.c 			dev_err(hub->intfdev,
hub               597 drivers/usb/core/hub.c 		*status = le16_to_cpu(hub->status->port.wPortStatus);
hub               598 drivers/usb/core/hub.c 		*change = le16_to_cpu(hub->status->port.wPortChange);
hub               601 drivers/usb/core/hub.c 				hub->status->port.dwExtPortStatus);
hub               604 drivers/usb/core/hub.c 	mutex_unlock(&hub->status_mutex);
hub               608 drivers/usb/core/hub.c static int hub_port_status(struct usb_hub *hub, int port1,
hub               611 drivers/usb/core/hub.c 	return hub_ext_port_status(hub, port1, HUB_PORT_STATUS,
hub               615 drivers/usb/core/hub.c static void hub_resubmit_irq_urb(struct usb_hub *hub)
hub               620 drivers/usb/core/hub.c 	spin_lock_irqsave(&hub->irq_urb_lock, flags);
hub               622 drivers/usb/core/hub.c 	if (hub->quiescing) {
hub               623 drivers/usb/core/hub.c 		spin_unlock_irqrestore(&hub->irq_urb_lock, flags);
hub               627 drivers/usb/core/hub.c 	status = usb_submit_urb(hub->urb, GFP_ATOMIC);
hub               630 drivers/usb/core/hub.c 		dev_err(hub->intfdev, "resubmit --> %d\n", status);
hub               631 drivers/usb/core/hub.c 		mod_timer(&hub->irq_urb_retry, jiffies + HZ);
hub               634 drivers/usb/core/hub.c 	spin_unlock_irqrestore(&hub->irq_urb_lock, flags);
hub               639 drivers/usb/core/hub.c 	struct usb_hub *hub = from_timer(hub, t, irq_urb_retry);
hub               641 drivers/usb/core/hub.c 	hub_resubmit_irq_urb(hub);
hub               645 drivers/usb/core/hub.c static void kick_hub_wq(struct usb_hub *hub)
hub               649 drivers/usb/core/hub.c 	if (hub->disconnected || work_pending(&hub->events))
hub               660 drivers/usb/core/hub.c 	intf = to_usb_interface(hub->intfdev);
hub               662 drivers/usb/core/hub.c 	kref_get(&hub->kref);
hub               664 drivers/usb/core/hub.c 	if (queue_work(hub_wq, &hub->events))
hub               669 drivers/usb/core/hub.c 	kref_put(&hub->kref, hub_release);
hub               674 drivers/usb/core/hub.c 	struct usb_hub *hub = usb_hub_to_struct_hub(hdev);
hub               676 drivers/usb/core/hub.c 	if (hub)
hub               677 drivers/usb/core/hub.c 		kick_hub_wq(hub);
hub               691 drivers/usb/core/hub.c 	struct usb_hub *hub;
hub               697 drivers/usb/core/hub.c 	hub = usb_hub_to_struct_hub(hdev);
hub               698 drivers/usb/core/hub.c 	if (hub) {
hub               699 drivers/usb/core/hub.c 		port_dev = hub->ports[portnum - 1];
hub               703 drivers/usb/core/hub.c 		set_bit(portnum, hub->wakeup_bits);
hub               704 drivers/usb/core/hub.c 		kick_hub_wq(hub);
hub               712 drivers/usb/core/hub.c 	struct usb_hub *hub = urb->context;
hub               725 drivers/usb/core/hub.c 		dev_dbg(hub->intfdev, "transfer --> %d\n", status);
hub               726 drivers/usb/core/hub.c 		if ((++hub->nerrors < 10) || hub->error)
hub               728 drivers/usb/core/hub.c 		hub->error = status;
hub               735 drivers/usb/core/hub.c 			bits |= ((unsigned long) ((*hub->buffer)[i]))
hub               737 drivers/usb/core/hub.c 		hub->event_bits[0] = bits;
hub               741 drivers/usb/core/hub.c 	hub->nerrors = 0;
hub               744 drivers/usb/core/hub.c 	kick_hub_wq(hub);
hub               747 drivers/usb/core/hub.c 	hub_resubmit_irq_urb(hub);
hub               776 drivers/usb/core/hub.c 	struct usb_hub		*hub =
hub               780 drivers/usb/core/hub.c 	spin_lock_irqsave(&hub->tt.lock, flags);
hub               781 drivers/usb/core/hub.c 	while (!list_empty(&hub->tt.clear_list)) {
hub               784 drivers/usb/core/hub.c 		struct usb_device	*hdev = hub->hdev;
hub               788 drivers/usb/core/hub.c 		next = hub->tt.clear_list.next;
hub               793 drivers/usb/core/hub.c 		spin_unlock_irqrestore(&hub->tt.lock, flags);
hub               806 drivers/usb/core/hub.c 		spin_lock_irqsave(&hub->tt.lock, flags);
hub               808 drivers/usb/core/hub.c 	spin_unlock_irqrestore(&hub->tt.lock, flags);
hub               823 drivers/usb/core/hub.c int usb_hub_set_port_power(struct usb_device *hdev, struct usb_hub *hub,
hub               837 drivers/usb/core/hub.c 		set_bit(port1, hub->power_bits);
hub               839 drivers/usb/core/hub.c 		clear_bit(port1, hub->power_bits);
hub               899 drivers/usb/core/hub.c static void hub_power_on(struct usb_hub *hub, bool do_delay)
hub               909 drivers/usb/core/hub.c 	if (hub_is_port_power_switchable(hub))
hub               910 drivers/usb/core/hub.c 		dev_dbg(hub->intfdev, "enabling power on all ports\n");
hub               912 drivers/usb/core/hub.c 		dev_dbg(hub->intfdev, "trying to enable port power on "
hub               914 drivers/usb/core/hub.c 	for (port1 = 1; port1 <= hub->hdev->maxchild; port1++)
hub               915 drivers/usb/core/hub.c 		if (test_bit(port1, hub->power_bits))
hub               916 drivers/usb/core/hub.c 			set_port_feature(hub->hdev, port1, USB_PORT_FEAT_POWER);
hub               918 drivers/usb/core/hub.c 			usb_clear_port_feature(hub->hdev, port1,
hub               921 drivers/usb/core/hub.c 		msleep(hub_power_on_good_delay(hub));
hub               924 drivers/usb/core/hub.c static int hub_hub_status(struct usb_hub *hub,
hub               929 drivers/usb/core/hub.c 	mutex_lock(&hub->status_mutex);
hub               930 drivers/usb/core/hub.c 	ret = get_hub_status(hub->hdev, &hub->status->hub);
hub               933 drivers/usb/core/hub.c 			dev_err(hub->intfdev,
hub               936 drivers/usb/core/hub.c 		*status = le16_to_cpu(hub->status->hub.wHubStatus);
hub               937 drivers/usb/core/hub.c 		*change = le16_to_cpu(hub->status->hub.wHubChange);
hub               940 drivers/usb/core/hub.c 	mutex_unlock(&hub->status_mutex);
hub               944 drivers/usb/core/hub.c static int hub_set_port_link_state(struct usb_hub *hub, int port1,
hub               947 drivers/usb/core/hub.c 	return set_port_feature(hub->hdev,
hub               957 drivers/usb/core/hub.c static void hub_port_logical_disconnect(struct usb_hub *hub, int port1)
hub               959 drivers/usb/core/hub.c 	dev_dbg(&hub->ports[port1 - 1]->dev, "logical disconnect\n");
hub               960 drivers/usb/core/hub.c 	hub_port_disable(hub, port1, 1);
hub               971 drivers/usb/core/hub.c 	set_bit(port1, hub->change_bits);
hub               972 drivers/usb/core/hub.c 	kick_hub_wq(hub);
hub               989 drivers/usb/core/hub.c 	struct usb_hub *hub;
hub               995 drivers/usb/core/hub.c 	hub = usb_hub_to_struct_hub(udev->parent);
hub               996 drivers/usb/core/hub.c 	intf = to_usb_interface(hub->intfdev);
hub              1002 drivers/usb/core/hub.c 	set_bit(udev->portnum, hub->removed_bits);
hub              1003 drivers/usb/core/hub.c 	hub_port_logical_disconnect(hub, udev->portnum);
hub              1016 drivers/usb/core/hub.c static void hub_activate(struct usb_hub *hub, enum hub_activation_type type)
hub              1018 drivers/usb/core/hub.c 	struct usb_device *hdev = hub->hdev;
hub              1031 drivers/usb/core/hub.c 		if (hub->disconnected)
hub              1037 drivers/usb/core/hub.c 	kref_get(&hub->kref);
hub              1056 drivers/usb/core/hub.c 				dev_err(hub->intfdev,
hub              1073 drivers/usb/core/hub.c 			delay = hub_power_on_good_delay(hub);
hub              1075 drivers/usb/core/hub.c 			hub_power_on(hub, false);
hub              1076 drivers/usb/core/hub.c 			INIT_DELAYED_WORK(&hub->init_work, hub_init_func2);
hub              1078 drivers/usb/core/hub.c 					&hub->init_work,
hub              1083 drivers/usb/core/hub.c 					to_usb_interface(hub->intfdev));
hub              1093 drivers/usb/core/hub.c 						&hub->tt, GFP_NOIO);
hub              1095 drivers/usb/core/hub.c 					dev_err(hub->intfdev,
hub              1097 drivers/usb/core/hub.c 					dev_err(hub->intfdev,
hub              1101 drivers/usb/core/hub.c 			hub_power_on(hub, true);
hub              1103 drivers/usb/core/hub.c 			hub_power_on(hub, true);
hub              1113 drivers/usb/core/hub.c 		struct usb_port *port_dev = hub->ports[port1 - 1];
hub              1118 drivers/usb/core/hub.c 		status = hub_port_status(hub, port1, &portstatus, &portchange);
hub              1151 drivers/usb/core/hub.c 		    hub_port_warm_reset_required(hub, port1, portstatus))
hub              1152 drivers/usb/core/hub.c 			set_bit(port1, hub->event_bits);
hub              1167 drivers/usb/core/hub.c 			usb_clear_port_feature(hub->hdev, port1,
hub              1172 drivers/usb/core/hub.c 			usb_clear_port_feature(hub->hdev, port1,
hub              1177 drivers/usb/core/hub.c 			usb_clear_port_feature(hub->hdev, port1,
hub              1181 drivers/usb/core/hub.c 				hub_is_superspeed(hub->hdev)) {
hub              1183 drivers/usb/core/hub.c 			usb_clear_port_feature(hub->hdev, port1,
hub              1191 drivers/usb/core/hub.c 			clear_bit(port1, hub->removed_bits);
hub              1204 drivers/usb/core/hub.c 				set_bit(port1, hub->change_bits);
hub              1218 drivers/usb/core/hub.c 			if (portchange || (hub_is_superspeed(hub->hdev) &&
hub              1220 drivers/usb/core/hub.c 				set_bit(port1, hub->change_bits);
hub              1229 drivers/usb/core/hub.c 			if (test_bit(port1, hub->power_bits))
hub              1230 drivers/usb/core/hub.c 				set_bit(port1, hub->change_bits);
hub              1235 drivers/usb/core/hub.c 			set_bit(port1, hub->change_bits);
hub              1252 drivers/usb/core/hub.c 			INIT_DELAYED_WORK(&hub->init_work, hub_init_func3);
hub              1254 drivers/usb/core/hub.c 					&hub->init_work,
hub              1263 drivers/usb/core/hub.c 	hub->quiescing = 0;
hub              1265 drivers/usb/core/hub.c 	status = usb_submit_urb(hub->urb, GFP_NOIO);
hub              1267 drivers/usb/core/hub.c 		dev_err(hub->intfdev, "activate --> %d\n", status);
hub              1268 drivers/usb/core/hub.c 	if (hub->has_indicators && blinkenlights)
hub              1270 drivers/usb/core/hub.c 				&hub->leds, LED_CYCLE_PERIOD);
hub              1273 drivers/usb/core/hub.c 	kick_hub_wq(hub);
hub              1278 drivers/usb/core/hub.c 		usb_autopm_put_interface_async(to_usb_interface(hub->intfdev));
hub              1282 drivers/usb/core/hub.c 	kref_put(&hub->kref, hub_release);
hub              1288 drivers/usb/core/hub.c 	struct usb_hub *hub = container_of(ws, struct usb_hub, init_work.work);
hub              1290 drivers/usb/core/hub.c 	hub_activate(hub, HUB_INIT2);
hub              1295 drivers/usb/core/hub.c 	struct usb_hub *hub = container_of(ws, struct usb_hub, init_work.work);
hub              1297 drivers/usb/core/hub.c 	hub_activate(hub, HUB_INIT3);
hub              1304 drivers/usb/core/hub.c static void hub_quiesce(struct usb_hub *hub, enum hub_quiescing_type type)
hub              1306 drivers/usb/core/hub.c 	struct usb_device *hdev = hub->hdev;
hub              1311 drivers/usb/core/hub.c 	spin_lock_irqsave(&hub->irq_urb_lock, flags);
hub              1312 drivers/usb/core/hub.c 	hub->quiescing = 1;
hub              1313 drivers/usb/core/hub.c 	spin_unlock_irqrestore(&hub->irq_urb_lock, flags);
hub              1318 drivers/usb/core/hub.c 			if (hub->ports[i]->child)
hub              1319 drivers/usb/core/hub.c 				usb_disconnect(&hub->ports[i]->child);
hub              1324 drivers/usb/core/hub.c 	del_timer_sync(&hub->irq_urb_retry);
hub              1325 drivers/usb/core/hub.c 	usb_kill_urb(hub->urb);
hub              1326 drivers/usb/core/hub.c 	if (hub->has_indicators)
hub              1327 drivers/usb/core/hub.c 		cancel_delayed_work_sync(&hub->leds);
hub              1328 drivers/usb/core/hub.c 	if (hub->tt.hub)
hub              1329 drivers/usb/core/hub.c 		flush_work(&hub->tt.clear_work);
hub              1332 drivers/usb/core/hub.c static void hub_pm_barrier_for_all_ports(struct usb_hub *hub)
hub              1336 drivers/usb/core/hub.c 	for (i = 0; i < hub->hdev->maxchild; ++i)
hub              1337 drivers/usb/core/hub.c 		pm_runtime_barrier(&hub->ports[i]->dev);
hub              1343 drivers/usb/core/hub.c 	struct usb_hub *hub = usb_get_intfdata(intf);
hub              1345 drivers/usb/core/hub.c 	hub_quiesce(hub, HUB_PRE_RESET);
hub              1346 drivers/usb/core/hub.c 	hub->in_reset = 1;
hub              1347 drivers/usb/core/hub.c 	hub_pm_barrier_for_all_ports(hub);
hub              1354 drivers/usb/core/hub.c 	struct usb_hub *hub = usb_get_intfdata(intf);
hub              1356 drivers/usb/core/hub.c 	hub->in_reset = 0;
hub              1357 drivers/usb/core/hub.c 	hub_pm_barrier_for_all_ports(hub);
hub              1358 drivers/usb/core/hub.c 	hub_activate(hub, HUB_POST_RESET);
hub              1362 drivers/usb/core/hub.c static int hub_configure(struct usb_hub *hub,
hub              1366 drivers/usb/core/hub.c 	struct usb_device *hdev = hub->hdev;
hub              1367 drivers/usb/core/hub.c 	struct device *hub_dev = hub->intfdev;
hub              1377 drivers/usb/core/hub.c 	hub->buffer = kmalloc(sizeof(*hub->buffer), GFP_KERNEL);
hub              1378 drivers/usb/core/hub.c 	if (!hub->buffer) {
hub              1383 drivers/usb/core/hub.c 	hub->status = kmalloc(sizeof(*hub->status), GFP_KERNEL);
hub              1384 drivers/usb/core/hub.c 	if (!hub->status) {
hub              1388 drivers/usb/core/hub.c 	mutex_init(&hub->status_mutex);
hub              1390 drivers/usb/core/hub.c 	hub->descriptor = kzalloc(sizeof(*hub->descriptor), GFP_KERNEL);
hub              1391 drivers/usb/core/hub.c 	if (!hub->descriptor) {
hub              1400 drivers/usb/core/hub.c 	ret = get_hub_descriptor(hdev, hub->descriptor);
hub              1410 drivers/usb/core/hub.c 	if (hub->descriptor->bNbrPorts > maxchild) {
hub              1414 drivers/usb/core/hub.c 	} else if (hub->descriptor->bNbrPorts == 0) {
hub              1425 drivers/usb/core/hub.c 		u32 delay = __le16_to_cpu(hub->descriptor->u.ss.wHubDelay);
hub              1434 drivers/usb/core/hub.c 	maxchild = hub->descriptor->bNbrPorts;
hub              1438 drivers/usb/core/hub.c 	hub->ports = kcalloc(maxchild, sizeof(struct usb_port *), GFP_KERNEL);
hub              1439 drivers/usb/core/hub.c 	if (!hub->ports) {
hub              1444 drivers/usb/core/hub.c 	wHubCharacteristics = le16_to_cpu(hub->descriptor->wHubCharacteristics);
hub              1459 drivers/usb/core/hub.c 			portstr[i] = hub->descriptor->u.hs.DeviceRemovable
hub              1493 drivers/usb/core/hub.c 	spin_lock_init(&hub->tt.lock);
hub              1494 drivers/usb/core/hub.c 	INIT_LIST_HEAD(&hub->tt.clear_list);
hub              1495 drivers/usb/core/hub.c 	INIT_WORK(&hub->tt.clear_work, hub_tt_work);
hub              1501 drivers/usb/core/hub.c 		hub->tt.hub = hdev;
hub              1507 drivers/usb/core/hub.c 			hub->tt.multi = 1;
hub              1511 drivers/usb/core/hub.c 		hub->tt.hub = hdev;
hub              1526 drivers/usb/core/hub.c 			hub->tt.think_time = 666;
hub              1529 drivers/usb/core/hub.c 				8, hub->tt.think_time);
hub              1533 drivers/usb/core/hub.c 		hub->tt.think_time = 666 * 2;
hub              1536 drivers/usb/core/hub.c 			16, hub->tt.think_time);
hub              1539 drivers/usb/core/hub.c 		hub->tt.think_time = 666 * 3;
hub              1542 drivers/usb/core/hub.c 			24, hub->tt.think_time);
hub              1545 drivers/usb/core/hub.c 		hub->tt.think_time = 666 * 4;
hub              1548 drivers/usb/core/hub.c 			32, hub->tt.think_time);
hub              1554 drivers/usb/core/hub.c 		hub->has_indicators = 1;
hub              1559 drivers/usb/core/hub.c 		hub->descriptor->bPwrOn2PwrGood * 2);
hub              1576 drivers/usb/core/hub.c 			hub->mA_per_port = full_load;
hub              1578 drivers/usb/core/hub.c 			hub->mA_per_port = hdev->bus_mA;
hub              1579 drivers/usb/core/hub.c 			hub->limited_power = 1;
hub              1583 drivers/usb/core/hub.c 			hub->descriptor->bHubContrCurrent;
hub              1586 drivers/usb/core/hub.c 			hub->descriptor->bHubContrCurrent);
hub              1587 drivers/usb/core/hub.c 		hub->limited_power = 1;
hub              1593 drivers/usb/core/hub.c 		hub->mA_per_port = unit_load;	/* 7.2.1 */
hub              1598 drivers/usb/core/hub.c 		hub->mA_per_port = full_load;
hub              1600 drivers/usb/core/hub.c 	if (hub->mA_per_port < full_load)
hub              1602 drivers/usb/core/hub.c 				hub->mA_per_port);
hub              1604 drivers/usb/core/hub.c 	ret = hub_hub_status(hub, &hubstatus, &hubchange);
hub              1629 drivers/usb/core/hub.c 	if (maxp > sizeof(*hub->buffer))
hub              1630 drivers/usb/core/hub.c 		maxp = sizeof(*hub->buffer);
hub              1632 drivers/usb/core/hub.c 	hub->urb = usb_alloc_urb(0, GFP_KERNEL);
hub              1633 drivers/usb/core/hub.c 	if (!hub->urb) {
hub              1638 drivers/usb/core/hub.c 	usb_fill_int_urb(hub->urb, hdev, pipe, *hub->buffer, maxp, hub_irq,
hub              1639 drivers/usb/core/hub.c 		hub, endpoint->bInterval);
hub              1642 drivers/usb/core/hub.c 	if (hub->has_indicators && blinkenlights)
hub              1643 drivers/usb/core/hub.c 		hub->indicator[0] = INDICATOR_CYCLE;
hub              1647 drivers/usb/core/hub.c 		ret = usb_hub_create_port_device(hub, i + 1);
hub              1649 drivers/usb/core/hub.c 			dev_err(hub->intfdev,
hub              1656 drivers/usb/core/hub.c 		struct usb_port *port_dev = hub->ports[i];
hub              1670 drivers/usb/core/hub.c 				&hub->tt, GFP_KERNEL);
hub              1677 drivers/usb/core/hub.c 	usb_hub_adjust_deviceremovable(hdev, hub->descriptor);
hub              1679 drivers/usb/core/hub.c 	hub_activate(hub, HUB_INIT);
hub              1691 drivers/usb/core/hub.c 	struct usb_hub *hub = container_of(kref, struct usb_hub, kref);
hub              1693 drivers/usb/core/hub.c 	usb_put_dev(hub->hdev);
hub              1694 drivers/usb/core/hub.c 	usb_put_intf(to_usb_interface(hub->intfdev));
hub              1695 drivers/usb/core/hub.c 	kfree(hub);
hub              1702 drivers/usb/core/hub.c 	struct usb_hub *hub = usb_get_intfdata(intf);
hub              1710 drivers/usb/core/hub.c 	hub->disconnected = 1;
hub              1713 drivers/usb/core/hub.c 	hub->error = 0;
hub              1714 drivers/usb/core/hub.c 	hub_quiesce(hub, HUB_DISCONNECT);
hub              1726 drivers/usb/core/hub.c 		usb_hub_remove_port_device(hub, port1);
hub              1730 drivers/usb/core/hub.c 	if (hub->hdev->speed == USB_SPEED_HIGH)
hub              1733 drivers/usb/core/hub.c 	usb_free_urb(hub->urb);
hub              1734 drivers/usb/core/hub.c 	kfree(hub->ports);
hub              1735 drivers/usb/core/hub.c 	kfree(hub->descriptor);
hub              1736 drivers/usb/core/hub.c 	kfree(hub->status);
hub              1737 drivers/usb/core/hub.c 	kfree(hub->buffer);
hub              1741 drivers/usb/core/hub.c 	if (hub->quirk_disable_autosuspend)
hub              1744 drivers/usb/core/hub.c 	kref_put(&hub->kref, hub_release);
hub              1770 drivers/usb/core/hub.c 	struct usb_hub *hub;
hub              1851 drivers/usb/core/hub.c 	hub = kzalloc(sizeof(*hub), GFP_KERNEL);
hub              1852 drivers/usb/core/hub.c 	if (!hub)
hub              1855 drivers/usb/core/hub.c 	kref_init(&hub->kref);
hub              1856 drivers/usb/core/hub.c 	hub->intfdev = &intf->dev;
hub              1857 drivers/usb/core/hub.c 	hub->hdev = hdev;
hub              1858 drivers/usb/core/hub.c 	INIT_DELAYED_WORK(&hub->leds, led_work);
hub              1859 drivers/usb/core/hub.c 	INIT_DELAYED_WORK(&hub->init_work, NULL);
hub              1860 drivers/usb/core/hub.c 	INIT_WORK(&hub->events, hub_event);
hub              1861 drivers/usb/core/hub.c 	spin_lock_init(&hub->irq_urb_lock);
hub              1862 drivers/usb/core/hub.c 	timer_setup(&hub->irq_urb_retry, hub_retry_irq_urb, 0);
hub              1866 drivers/usb/core/hub.c 	usb_set_intfdata(intf, hub);
hub              1874 drivers/usb/core/hub.c 		hub->quirk_check_port_auto_suspend = 1;
hub              1877 drivers/usb/core/hub.c 		hub->quirk_disable_autosuspend = 1;
hub              1881 drivers/usb/core/hub.c 	if (hub_configure(hub, &desc->endpoint[0].desc) >= 0)
hub              1892 drivers/usb/core/hub.c 	struct usb_hub *hub = usb_hub_to_struct_hub(hdev);
hub              1906 drivers/usb/core/hub.c 				if (hub->ports[i]->child == NULL)
hub              1910 drivers/usb/core/hub.c 						hub->ports[i]->child->devnum;
hub              1930 drivers/usb/core/hub.c 	struct usb_hub *hub = usb_hub_to_struct_hub(hdev);
hub              1940 drivers/usb/core/hub.c 	*ppowner = &(hub->ports[port1 - 1]->port_owner);
hub              1979 drivers/usb/core/hub.c 	struct usb_hub *hub = usb_hub_to_struct_hub(hdev);
hub              1983 drivers/usb/core/hub.c 		if (hub->ports[n]->port_owner == owner)
hub              1984 drivers/usb/core/hub.c 			hub->ports[n]->port_owner = NULL;
hub              1992 drivers/usb/core/hub.c 	struct usb_hub *hub;
hub              1996 drivers/usb/core/hub.c 	hub = usb_hub_to_struct_hub(udev->parent);
hub              1997 drivers/usb/core/hub.c 	return !!hub->ports[udev->portnum - 1]->port_owner;
hub              2002 drivers/usb/core/hub.c 	struct usb_hub *hub = usb_hub_to_struct_hub(udev);
hub              2006 drivers/usb/core/hub.c 		if (hub->ports[i]->child)
hub              2007 drivers/usb/core/hub.c 			recursively_mark_NOTATTACHED(hub->ports[i]->child);
hub              2160 drivers/usb/core/hub.c 	struct usb_hub *hub = usb_hub_to_struct_hub(udev);
hub              2165 drivers/usb/core/hub.c 		if (hub->ports[i]->child)
hub              2166 drivers/usb/core/hub.c 			usb_disconnect(&hub->ports[i]->child);
hub              2190 drivers/usb/core/hub.c 	struct usb_hub *hub = NULL;
hub              2221 drivers/usb/core/hub.c 		hub = usb_hub_to_struct_hub(udev->parent);
hub              2222 drivers/usb/core/hub.c 		port_dev = hub->ports[port1 - 1];
hub              2231 drivers/usb/core/hub.c 		if (!test_and_set_bit(port1, hub->child_usage_bits))
hub              2254 drivers/usb/core/hub.c 	if (port_dev && test_and_clear_bit(port1, hub->child_usage_bits))
hub              2427 drivers/usb/core/hub.c 	struct usb_hub *hub;
hub              2435 drivers/usb/core/hub.c 	hub = usb_hub_to_struct_hub(udev->parent);
hub              2441 drivers/usb/core/hub.c 	switch (hub->ports[udev->portnum - 1]->connect_type) {
hub              2457 drivers/usb/core/hub.c 	wHubCharacteristics = le16_to_cpu(hub->descriptor->wHubCharacteristics);
hub              2463 drivers/usb/core/hub.c 		if (le16_to_cpu(hub->descriptor->u.ss.DeviceRemovable)
hub              2467 drivers/usb/core/hub.c 		if (hub->descriptor->u.hs.DeviceRemovable[port / 8] & (1 << (port % 8)))
hub              2561 drivers/usb/core/hub.c 		struct usb_hub *hub = usb_hub_to_struct_hub(udev->parent);
hub              2563 drivers/usb/core/hub.c 		struct usb_port	*port_dev = hub->ports[port1 - 1];
hub              2577 drivers/usb/core/hub.c 		if (!test_and_set_bit(port1, hub->child_usage_bits))
hub              2697 drivers/usb/core/hub.c static unsigned hub_is_wusb(struct usb_hub *hub)
hub              2700 drivers/usb/core/hub.c 	if (hub->hdev->parent != NULL)  /* not a root hub? */
hub              2702 drivers/usb/core/hub.c 	hcd = bus_to_hcd(hub->hdev->bus);
hub              2741 drivers/usb/core/hub.c static bool hub_port_warm_reset_required(struct usb_hub *hub, int port1,
hub              2746 drivers/usb/core/hub.c 	if (!hub_is_superspeed(hub->hdev))
hub              2749 drivers/usb/core/hub.c 	if (test_bit(port1, hub->warm_reset_bits))
hub              2757 drivers/usb/core/hub.c static int hub_port_wait_reset(struct usb_hub *hub, int port1,
hub              2772 drivers/usb/core/hub.c 		if (hub_is_superspeedplus(hub->hdev))
hub              2773 drivers/usb/core/hub.c 			ret = hub_ext_port_status(hub, port1,
hub              2778 drivers/usb/core/hub.c 			ret = hub_port_status(hub, port1, &portstatus,
hub              2798 drivers/usb/core/hub.c 		dev_dbg(&hub->ports[port1 - 1]->dev,
hub              2806 drivers/usb/core/hub.c 	if (hub_port_warm_reset_required(hub, port1, portstatus))
hub              2817 drivers/usb/core/hub.c 	if (!hub_is_superspeed(hub->hdev) &&
hub              2819 drivers/usb/core/hub.c 		usb_clear_port_feature(hub->hdev, port1,
hub              2830 drivers/usb/core/hub.c 	if (hub_is_superspeedplus(hub->hdev)) {
hub              2838 drivers/usb/core/hub.c 	if (hub_is_wusb(hub))
hub              2840 drivers/usb/core/hub.c 	else if (hub_is_superspeedplus(hub->hdev) &&
hub              2841 drivers/usb/core/hub.c 		 port_speed_is_ssp(hub->hdev, ext_portstatus &
hub              2844 drivers/usb/core/hub.c 	else if (hub_is_superspeed(hub->hdev))
hub              2856 drivers/usb/core/hub.c static int hub_port_reset(struct usb_hub *hub, int port1,
hub              2861 drivers/usb/core/hub.c 	struct usb_port *port_dev = hub->ports[port1 - 1];
hub              2864 drivers/usb/core/hub.c 	if (!hub_is_superspeed(hub->hdev)) {
hub              2866 drivers/usb/core/hub.c 			dev_err(hub->intfdev, "only USB3 hub support "
hub              2879 drivers/usb/core/hub.c 		if (hub_port_status(hub, port1, &portstatus, &portchange) == 0)
hub              2880 drivers/usb/core/hub.c 			if (hub_port_warm_reset_required(hub, port1,
hub              2884 drivers/usb/core/hub.c 	clear_bit(port1, hub->warm_reset_bits);
hub              2888 drivers/usb/core/hub.c 		status = set_port_feature(hub->hdev, port1, (warm ?
hub              2898 drivers/usb/core/hub.c 			status = hub_port_wait_reset(hub, port1, udev, delay,
hub              2901 drivers/usb/core/hub.c 				dev_dbg(hub->intfdev,
hub              2908 drivers/usb/core/hub.c 			usb_clear_port_feature(hub->hdev, port1,
hub              2911 drivers/usb/core/hub.c 			if (!hub_is_superspeed(hub->hdev))
hub              2914 drivers/usb/core/hub.c 			usb_clear_port_feature(hub->hdev, port1,
hub              2916 drivers/usb/core/hub.c 			usb_clear_port_feature(hub->hdev, port1,
hub              2920 drivers/usb/core/hub.c 				usb_clear_port_feature(hub->hdev, port1,
hub              2927 drivers/usb/core/hub.c 			if (hub_port_status(hub, port1,
hub              2931 drivers/usb/core/hub.c 			if (!hub_port_warm_reset_required(hub, port1,
hub              2963 drivers/usb/core/hub.c 			if (hub->hdev->quirks & USB_QUIRK_HUB_SLOW_RESET)
hub              2986 drivers/usb/core/hub.c 	if (!hub_is_superspeed(hub->hdev))
hub              2993 drivers/usb/core/hub.c static int port_is_power_on(struct usb_hub *hub, unsigned portstatus)
hub              2997 drivers/usb/core/hub.c 	if (hub_is_superspeed(hub->hdev)) {
hub              3025 drivers/usb/core/hub.c static int port_is_suspended(struct usb_hub *hub, unsigned portstatus)
hub              3029 drivers/usb/core/hub.c 	if (hub_is_superspeed(hub->hdev)) {
hub              3045 drivers/usb/core/hub.c 		struct usb_hub *hub, int port1,
hub              3048 drivers/usb/core/hub.c 	struct usb_port *port_dev = hub->ports[port1 - 1];
hub              3054 drivers/usb/core/hub.c 		&& hub_port_warm_reset_required(hub, port1, portstatus)) {
hub              3058 drivers/usb/core/hub.c 	else if (status || port_is_suspended(hub, portstatus) ||
hub              3059 drivers/usb/core/hub.c 			!port_is_power_on(hub, portstatus)) {
hub              3065 drivers/usb/core/hub.c 			status = hub_port_status(hub, port1, &portstatus,
hub              3089 drivers/usb/core/hub.c 			usb_clear_port_feature(hub->hdev, port1,
hub              3092 drivers/usb/core/hub.c 			usb_clear_port_feature(hub->hdev, port1,
hub              3102 drivers/usb/core/hub.c 		clear_bit(port1, hub->change_bits);
hub              3205 drivers/usb/core/hub.c 	struct usb_hub *hub = usb_hub_to_struct_hub(udev);
hub              3208 drivers/usb/core/hub.c 			(hub ? hub->wakeup_enabled_descendants : 0);
hub              3262 drivers/usb/core/hub.c 	struct usb_hub	*hub = usb_hub_to_struct_hub(udev->parent);
hub              3263 drivers/usb/core/hub.c 	struct usb_port *port_dev = hub->ports[udev->portnum - 1];
hub              3298 drivers/usb/core/hub.c 	if (hub_is_superspeed(hub->hdev))
hub              3299 drivers/usb/core/hub.c 		status = hub_set_port_link_state(hub, port1, USB_SS_PORT_LS_U3);
hub              3313 drivers/usb/core/hub.c 		status = set_port_feature(hub->hdev, port1,
hub              3349 drivers/usb/core/hub.c 			&& test_and_clear_bit(port1, hub->child_usage_bits))
hub              3352 drivers/usb/core/hub.c 	usb_mark_last_busy(hub->hdev);
hub              3477 drivers/usb/core/hub.c 		struct usb_hub *hub, int *port1,
hub              3485 drivers/usb/core/hub.c 		if (!port_is_power_on(hub, *portstatus)) {
hub              3491 drivers/usb/core/hub.c 		status = hub_port_status(hub, *port1, portstatus, portchange);
hub              3533 drivers/usb/core/hub.c 	struct usb_hub	*hub = usb_hub_to_struct_hub(udev->parent);
hub              3534 drivers/usb/core/hub.c 	struct usb_port *port_dev = hub->ports[udev->portnum  - 1];
hub              3539 drivers/usb/core/hub.c 	if (!test_and_set_bit(port1, hub->child_usage_bits)) {
hub              3551 drivers/usb/core/hub.c 	status = hub_port_status(hub, port1, &portstatus, &portchange);
hub              3552 drivers/usb/core/hub.c 	if (status == 0 && !port_is_suspended(hub, portstatus)) {
hub              3559 drivers/usb/core/hub.c 	if (hub_is_superspeed(hub->hdev))
hub              3560 drivers/usb/core/hub.c 		status = hub_set_port_link_state(hub, port1, USB_SS_PORT_LS_U0);
hub              3562 drivers/usb/core/hub.c 		status = usb_clear_port_feature(hub->hdev,
hub              3576 drivers/usb/core/hub.c 		status = hub_port_status(hub, port1, &portstatus, &portchange);
hub              3585 drivers/usb/core/hub.c 		if (hub_is_superspeed(hub->hdev)) {
hub              3587 drivers/usb/core/hub.c 				usb_clear_port_feature(hub->hdev, port1,
hub              3591 drivers/usb/core/hub.c 				usb_clear_port_feature(hub->hdev, port1,
hub              3597 drivers/usb/core/hub.c 		status = wait_for_connected(udev, hub, &port1, &portchange,
hub              3601 drivers/usb/core/hub.c 			hub, port1, status, portchange, portstatus);
hub              3606 drivers/usb/core/hub.c 		hub_port_logical_disconnect(hub, port1);
hub              3638 drivers/usb/core/hub.c static int hub_handle_remote_wakeup(struct usb_hub *hub, unsigned int port,
hub              3642 drivers/usb/core/hub.c 	struct usb_port *port_dev = hub->ports[port - 1];
hub              3649 drivers/usb/core/hub.c 	hdev = hub->hdev;
hub              3675 drivers/usb/core/hub.c 		hub_port_disable(hub, port, 1);
hub              3681 drivers/usb/core/hub.c static int check_ports_changed(struct usb_hub *hub)
hub              3685 drivers/usb/core/hub.c 	for (port1 = 1; port1 <= hub->hdev->maxchild; ++port1) {
hub              3689 drivers/usb/core/hub.c 		status = hub_port_status(hub, port1, &portstatus, &portchange);
hub              3698 drivers/usb/core/hub.c 	struct usb_hub		*hub = usb_get_intfdata(intf);
hub              3699 drivers/usb/core/hub.c 	struct usb_device	*hdev = hub->hdev;
hub              3706 drivers/usb/core/hub.c 	hub->wakeup_enabled_descendants = 0;
hub              3708 drivers/usb/core/hub.c 		struct usb_port *port_dev = hub->ports[port1 - 1];
hub              3718 drivers/usb/core/hub.c 			hub->wakeup_enabled_descendants +=
hub              3722 drivers/usb/core/hub.c 	if (hdev->do_remote_wakeup && hub->quirk_check_port_auto_suspend) {
hub              3724 drivers/usb/core/hub.c 		if (check_ports_changed(hub)) {
hub              3746 drivers/usb/core/hub.c 	hub_quiesce(hub, HUB_SUSPEND);
hub              3751 drivers/usb/core/hub.c static void report_wakeup_requests(struct usb_hub *hub)
hub              3753 drivers/usb/core/hub.c 	struct usb_device	*hdev = hub->hdev;
hub              3776 drivers/usb/core/hub.c 				udev = hub->ports[i]->child;
hub              3786 drivers/usb/core/hub.c 	struct usb_hub *hub = usb_get_intfdata(intf);
hub              3789 drivers/usb/core/hub.c 	hub_activate(hub, HUB_RESUME);
hub              3797 drivers/usb/core/hub.c 	report_wakeup_requests(hub);
hub              3803 drivers/usb/core/hub.c 	struct usb_hub *hub = usb_get_intfdata(intf);
hub              3806 drivers/usb/core/hub.c 	hub_activate(hub, HUB_RESET_RESUME);
hub              4228 drivers/usb/core/hub.c 	struct usb_hub *hub;
hub              4249 drivers/usb/core/hub.c 	hub = usb_hub_to_struct_hub(udev->parent);
hub              4250 drivers/usb/core/hub.c 	if (!hub)
hub              4253 drivers/usb/core/hub.c 	port_dev = hub->ports[udev->portnum - 1];
hub              4278 drivers/usb/core/hub.c static void hub_usb3_port_prepare_disable(struct usb_hub *hub,
hub              4285 drivers/usb/core/hub.c 		ret = hub_set_port_link_state(hub, port_dev->portnum,
hub              4304 drivers/usb/core/hub.c static inline void hub_usb3_port_prepare_disable(struct usb_hub *hub,
hub              4334 drivers/usb/core/hub.c static int hub_handle_remote_wakeup(struct usb_hub *hub, unsigned int port,
hub              4347 drivers/usb/core/hub.c static int hub_port_disable(struct usb_hub *hub, int port1, int set_state)
hub              4349 drivers/usb/core/hub.c 	struct usb_port *port_dev = hub->ports[port1 - 1];
hub              4350 drivers/usb/core/hub.c 	struct usb_device *hdev = hub->hdev;
hub              4353 drivers/usb/core/hub.c 	if (!hub->error) {
hub              4354 drivers/usb/core/hub.c 		if (hub_is_superspeed(hub->hdev)) {
hub              4355 drivers/usb/core/hub.c 			hub_usb3_port_prepare_disable(hub, port_dev);
hub              4356 drivers/usb/core/hub.c 			ret = hub_set_port_link_state(hub, port_dev->portnum,
hub              4379 drivers/usb/core/hub.c 	struct usb_hub *hub = usb_hub_to_struct_hub(udev->parent);
hub              4381 drivers/usb/core/hub.c 	return hub_port_disable(hub, udev->portnum, 0);
hub              4399 drivers/usb/core/hub.c int hub_port_debounce(struct usb_hub *hub, int port1, bool must_be_connected)
hub              4405 drivers/usb/core/hub.c 	struct usb_port *port_dev = hub->ports[port1 - 1];
hub              4408 drivers/usb/core/hub.c 		ret = hub_port_status(hub, port1, &portstatus, &portchange);
hub              4425 drivers/usb/core/hub.c 			usb_clear_port_feature(hub->hdev, port1,
hub              4494 drivers/usb/core/hub.c 	struct usb_hub *hub = usb_hub_to_struct_hub(udev->parent);
hub              4500 drivers/usb/core/hub.c 	if (hub)
hub              4501 drivers/usb/core/hub.c 		connect_type = hub->ports[udev->portnum - 1]->connect_type;
hub              4535 drivers/usb/core/hub.c hub_port_init(struct usb_hub *hub, struct usb_device *udev, int port1,
hub              4538 drivers/usb/core/hub.c 	struct usb_device	*hdev = hub->hdev;
hub              4540 drivers/usb/core/hub.c 	struct usb_port		*port_dev = hub->ports[port1 - 1];
hub              4566 drivers/usb/core/hub.c 	retval = hub_port_reset(hub, port1, udev, delay, false);
hub              4638 drivers/usb/core/hub.c 		if (!hub->tt.hub) {
hub              4643 drivers/usb/core/hub.c 		udev->tt = &hub->tt;
hub              4721 drivers/usb/core/hub.c 			retval = hub_port_reset(hub, port1, udev, delay, false);
hub              4822 drivers/usb/core/hub.c 		hub_port_reset(hub, port1, udev,
hub              4875 drivers/usb/core/hub.c 		hub_port_disable(hub, port1, 0);
hub              4883 drivers/usb/core/hub.c check_highspeed(struct usb_hub *hub, struct usb_device *udev, int port1)
hub              4901 drivers/usb/core/hub.c 		if (hub->has_indicators) {
hub              4902 drivers/usb/core/hub.c 			hub->indicator[port1-1] = INDICATOR_GREEN_BLINK;
hub              4904 drivers/usb/core/hub.c 					&hub->leds, 0);
hub              4911 drivers/usb/core/hub.c hub_power_remaining(struct usb_hub *hub)
hub              4913 drivers/usb/core/hub.c 	struct usb_device *hdev = hub->hdev;
hub              4917 drivers/usb/core/hub.c 	if (!hub->limited_power)
hub              4920 drivers/usb/core/hub.c 	remaining = hdev->bus_mA - hub->descriptor->bHubContrCurrent;
hub              4922 drivers/usb/core/hub.c 		struct usb_port *port_dev = hub->ports[port1 - 1];
hub              4944 drivers/usb/core/hub.c 		if (delta > hub->mA_per_port)
hub              4946 drivers/usb/core/hub.c 					delta, hub->mA_per_port);
hub              4950 drivers/usb/core/hub.c 		dev_warn(hub->intfdev, "%dmA over power budget!\n",
hub              4957 drivers/usb/core/hub.c static void hub_port_connect(struct usb_hub *hub, int port1, u16 portstatus,
hub              4963 drivers/usb/core/hub.c 	struct usb_device *hdev = hub->hdev;
hub              4965 drivers/usb/core/hub.c 	struct usb_port *port_dev = hub->ports[port1 - 1];
hub              4981 drivers/usb/core/hub.c 		clear_bit(port1, hub->removed_bits);
hub              4985 drivers/usb/core/hub.c 		status = hub_port_debounce_be_stable(hub, port1);
hub              5002 drivers/usb/core/hub.c 			test_bit(port1, hub->removed_bits)) {
hub              5008 drivers/usb/core/hub.c 		if (hub_is_port_power_switchable(hub)
hub              5009 drivers/usb/core/hub.c 				&& !port_is_power_on(hub, portstatus)
hub              5017 drivers/usb/core/hub.c 	if (hub_is_superspeed(hub->hdev))
hub              5036 drivers/usb/core/hub.c 		udev->bus_mA = hub->mA_per_port;
hub              5038 drivers/usb/core/hub.c 		udev->wusb = hub_is_wusb(hub);
hub              5041 drivers/usb/core/hub.c 		if (hub_is_superspeed(hub->hdev))
hub              5054 drivers/usb/core/hub.c 		status = hub_port_init(hub, udev, port1, i);
hub              5082 drivers/usb/core/hub.c 				if (hub->has_indicators) {
hub              5083 drivers/usb/core/hub.c 					hub->indicator[port1-1] =
hub              5087 drivers/usb/core/hub.c 						&hub->leds, 0);
hub              5098 drivers/usb/core/hub.c 			check_highspeed(hub, udev, port1);
hub              5139 drivers/usb/core/hub.c 		status = hub_power_remaining(hub);
hub              5141 drivers/usb/core/hub.c 			dev_dbg(hub->intfdev, "%dmA power budget left\n", status);
hub              5146 drivers/usb/core/hub.c 		hub_port_disable(hub, port1, 1);
hub              5158 drivers/usb/core/hub.c 			usb_hub_set_port_power(hdev, hub, port1, false);
hub              5159 drivers/usb/core/hub.c 			msleep(2 * hub_power_on_good_delay(hub));
hub              5160 drivers/usb/core/hub.c 			usb_hub_set_port_power(hdev, hub, port1, true);
hub              5161 drivers/usb/core/hub.c 			msleep(hub_power_on_good_delay(hub));
hub              5164 drivers/usb/core/hub.c 	if (hub->hdev->parent ||
hub              5173 drivers/usb/core/hub.c 	hub_port_disable(hub, port1, 1);
hub              5174 drivers/usb/core/hub.c 	if (hcd->driver->relinquish_port && !hub->hdev->parent) {
hub              5188 drivers/usb/core/hub.c static void hub_port_connect_change(struct usb_hub *hub, int port1,
hub              5192 drivers/usb/core/hub.c 	struct usb_port *port_dev = hub->ports[port1 - 1];
hub              5197 drivers/usb/core/hub.c 			portchange, portspeed(hub, portstatus));
hub              5199 drivers/usb/core/hub.c 	if (hub->has_indicators) {
hub              5200 drivers/usb/core/hub.c 		set_port_led(hub, port1, HUB_LED_AUTO);
hub              5201 drivers/usb/core/hub.c 		hub->indicator[port1-1] = INDICATOR_AUTO;
hub              5206 drivers/usb/core/hub.c 	if (hub->hdev->bus->is_b_host)
hub              5230 drivers/usb/core/hub.c 	clear_bit(port1, hub->change_bits);
hub              5237 drivers/usb/core/hub.c 	hub_port_connect(hub, port1, portstatus, portchange);
hub              5278 drivers/usb/core/hub.c static void port_event(struct usb_hub *hub, int port1)
hub              5282 drivers/usb/core/hub.c 	struct usb_port *port_dev = hub->ports[port1 - 1];
hub              5284 drivers/usb/core/hub.c 	struct usb_device *hdev = hub->hdev;
hub              5287 drivers/usb/core/hub.c 	connect_change = test_bit(port1, hub->change_bits);
hub              5288 drivers/usb/core/hub.c 	clear_bit(port1, hub->event_bits);
hub              5289 drivers/usb/core/hub.c 	clear_bit(port1, hub->wakeup_bits);
hub              5291 drivers/usb/core/hub.c 	if (hub_port_status(hub, port1, &portstatus, &portchange) < 0)
hub              5327 drivers/usb/core/hub.c 		hub_power_on(hub, true);
hub              5328 drivers/usb/core/hub.c 		hub_port_status(hub, port1, &status, &unused);
hub              5358 drivers/usb/core/hub.c 	if (hub_handle_remote_wakeup(hub, port1, portstatus, portchange))
hub              5365 drivers/usb/core/hub.c 	if (hub_port_warm_reset_required(hub, port1, portstatus)) {
hub              5369 drivers/usb/core/hub.c 			if (hub_port_reset(hub, port1, NULL,
hub              5371 drivers/usb/core/hub.c 				hub_port_disable(hub, port1, 1);
hub              5383 drivers/usb/core/hub.c 		hub_port_connect_change(hub, port1, portstatus, portchange);
hub              5390 drivers/usb/core/hub.c 	struct usb_hub *hub;
hub              5396 drivers/usb/core/hub.c 	hub = container_of(work, struct usb_hub, events);
hub              5397 drivers/usb/core/hub.c 	hdev = hub->hdev;
hub              5398 drivers/usb/core/hub.c 	hub_dev = hub->intfdev;
hub              5404 drivers/usb/core/hub.c 			(u16) hub->change_bits[0],
hub              5405 drivers/usb/core/hub.c 			(u16) hub->event_bits[0]);
hub              5410 drivers/usb/core/hub.c 	if (unlikely(hub->disconnected))
hub              5415 drivers/usb/core/hub.c 		hub->error = -ENODEV;
hub              5416 drivers/usb/core/hub.c 		hub_quiesce(hub, HUB_DISCONNECT);
hub              5428 drivers/usb/core/hub.c 	if (hub->quiescing)
hub              5431 drivers/usb/core/hub.c 	if (hub->error) {
hub              5432 drivers/usb/core/hub.c 		dev_dbg(hub_dev, "resetting for error %d\n", hub->error);
hub              5440 drivers/usb/core/hub.c 		hub->nerrors = 0;
hub              5441 drivers/usb/core/hub.c 		hub->error = 0;
hub              5446 drivers/usb/core/hub.c 		struct usb_port *port_dev = hub->ports[i - 1];
hub              5448 drivers/usb/core/hub.c 		if (test_bit(i, hub->event_bits)
hub              5449 drivers/usb/core/hub.c 				|| test_bit(i, hub->change_bits)
hub              5450 drivers/usb/core/hub.c 				|| test_bit(i, hub->wakeup_bits)) {
hub              5463 drivers/usb/core/hub.c 			port_event(hub, i);
hub              5470 drivers/usb/core/hub.c 	if (test_and_clear_bit(0, hub->event_bits) == 0)
hub              5472 drivers/usb/core/hub.c 	else if (hub_hub_status(hub, &hubstatus, &hubchange) < 0)
hub              5480 drivers/usb/core/hub.c 				hub->limited_power = 1;
hub              5482 drivers/usb/core/hub.c 				hub->limited_power = 0;
hub              5491 drivers/usb/core/hub.c 			hub_power_on(hub, true);
hub              5492 drivers/usb/core/hub.c 			hub_hub_status(hub, &status, &unused);
hub              5506 drivers/usb/core/hub.c 	kref_put(&hub->kref, hub_release);
hub              5874 drivers/usb/core/hub.c 	struct usb_hub *hub = usb_hub_to_struct_hub(udev->parent);
hub              5888 drivers/usb/core/hub.c 	port_dev = hub->ports[udev->portnum - 1];
hub              6008 drivers/usb/core/hub.c 	struct usb_hub *hub = usb_hub_to_struct_hub(hdev);
hub              6012 drivers/usb/core/hub.c 	return hub->ports[port1 - 1]->child;
hub              6019 drivers/usb/core/hub.c 	struct usb_hub *hub = usb_hub_to_struct_hub(hdev);
hub              6023 drivers/usb/core/hub.c 	if (!hub)
hub              6028 drivers/usb/core/hub.c 			struct usb_port *port_dev = hub->ports[i - 1];
hub              6044 drivers/usb/core/hub.c 			struct usb_port *port_dev = hub->ports[i - 1];
hub              6073 drivers/usb/core/hub.c 	struct usb_hub *hub = usb_hub_to_struct_hub(hdev);
hub              6075 drivers/usb/core/hub.c 	if (!hub)
hub              6078 drivers/usb/core/hub.c 	return ACPI_HANDLE(&hub->ports[port1 - 1]->dev);
hub                28 drivers/usb/core/hub.h 		struct usb_hub_status	hub;
hub               113 drivers/usb/core/hub.h extern int usb_hub_create_port_device(struct usb_hub *hub,
hub               115 drivers/usb/core/hub.h extern void usb_hub_remove_port_device(struct usb_hub *hub,
hub               117 drivers/usb/core/hub.h extern int usb_hub_set_port_power(struct usb_device *hdev, struct usb_hub *hub,
hub               120 drivers/usb/core/hub.h extern int hub_port_debounce(struct usb_hub *hub, int port1,
hub               125 drivers/usb/core/hub.h static inline bool hub_is_port_power_switchable(struct usb_hub *hub)
hub               129 drivers/usb/core/hub.h 	if (!hub)
hub               131 drivers/usb/core/hub.h 	hcs = hub->descriptor->wHubCharacteristics;
hub               147 drivers/usb/core/hub.h static inline unsigned hub_power_on_good_delay(struct usb_hub *hub)
hub               149 drivers/usb/core/hub.h 	unsigned delay = hub->descriptor->bPwrOn2PwrGood * 2;
hub               155 drivers/usb/core/hub.h static inline int hub_port_debounce_be_connected(struct usb_hub *hub,
hub               158 drivers/usb/core/hub.h 	return hub_port_debounce(hub, port1, true);
hub               161 drivers/usb/core/hub.h static inline int hub_port_debounce_be_stable(struct usb_hub *hub,
hub               164 drivers/usb/core/hub.h 	return hub_port_debounce(hub, port1, false);
hub                25 drivers/usb/core/ledtrig-usbport.c 	struct usb_device *hub;
hub                49 drivers/usb/core/ledtrig-usbport.c 		if (usb_dev->parent == port->hub &&
hub               199 drivers/usb/core/ledtrig-usbport.c 	port->hub = usb_dev;
hub               266 drivers/usb/core/ledtrig-usbport.c 		if (port->hub == usb_dev)
hub                25 drivers/usb/core/of.c struct device_node *usb_of_get_device_node(struct usb_device *hub, int port1)
hub                30 drivers/usb/core/of.c 	for_each_child_of_node(hub->dev.of_node, node) {
hub               196 drivers/usb/core/port.c 	struct usb_hub *hub = usb_hub_to_struct_hub(hdev);
hub               202 drivers/usb/core/port.c 	if (!hub)
hub               204 drivers/usb/core/port.c 	if (hub->in_reset) {
hub               205 drivers/usb/core/port.c 		set_bit(port1, hub->power_bits);
hub               220 drivers/usb/core/port.c 	retval = usb_hub_set_port_power(hdev, hub, port1, true);
hub               221 drivers/usb/core/port.c 	msleep(hub_power_on_good_delay(hub));
hub               232 drivers/usb/core/port.c 		if (hub_port_debounce_be_connected(hub, port1) < 0) {
hub               235 drivers/usb/core/port.c 				set_bit(port1, hub->warm_reset_bits);
hub               239 drivers/usb/core/port.c 		if (!test_and_set_bit(port1, hub->child_usage_bits)) {
hub               255 drivers/usb/core/port.c 	struct usb_hub *hub = usb_hub_to_struct_hub(hdev);
hub               260 drivers/usb/core/port.c 	if (!hub)
hub               262 drivers/usb/core/port.c 	if (hub->in_reset)
hub               276 drivers/usb/core/port.c 	retval = usb_hub_set_port_power(hdev, hub, port1, false);
hub               478 drivers/usb/core/port.c static void find_and_link_peer(struct usb_hub *hub, int port1)
hub               480 drivers/usb/core/port.c 	struct usb_port *port_dev = hub->ports[port1 - 1], *peer;
hub               481 drivers/usb/core/port.c 	struct usb_device *hdev = hub->hdev;
hub               531 drivers/usb/core/port.c int usb_hub_create_port_device(struct usb_hub *hub, int port1)
hub               534 drivers/usb/core/port.c 	struct usb_device *hdev = hub->hdev;
hub               547 drivers/usb/core/port.c 	hub->ports[port1 - 1] = port_dev;
hub               549 drivers/usb/core/port.c 	set_bit(port1, hub->power_bits);
hub               550 drivers/usb/core/port.c 	port_dev->dev.parent = hub->intfdev;
hub               559 drivers/usb/core/port.c 	if (hub_is_superspeed(hub->hdev))
hub               561 drivers/usb/core/port.c 	dev_set_name(&port_dev->dev, "%s-port%d", dev_name(&hub->hdev->dev),
hub               578 drivers/usb/core/port.c 	find_and_link_peer(hub, port1);
hub               594 drivers/usb/core/port.c 	if (!hub_is_port_power_switchable(hub))
hub               614 drivers/usb/core/port.c void usb_hub_remove_port_device(struct usb_hub *hub, int port1)
hub               616 drivers/usb/core/port.c 	struct usb_port *port_dev = hub->ports[port1 - 1];
hub                54 drivers/usb/core/usb-acpi.c 	struct usb_hub *hub = usb_hub_to_struct_hub(hdev);
hub                61 drivers/usb/core/usb-acpi.c 	if (!hub)
hub                63 drivers/usb/core/usb-acpi.c 	port_dev = hub->ports[port1 - 1];
hub               204 drivers/usb/core/usb-acpi.c 	struct usb_hub *hub;
hub               212 drivers/usb/core/usb-acpi.c 	hub = usb_hub_to_struct_hub(udev->parent);
hub               213 drivers/usb/core/usb-acpi.c 	if (!hub)
hub               220 drivers/usb/core/usb-acpi.c 	port_dev = hub->ports[udev->portnum - 1];
hub               540 drivers/usb/core/usb.c 	struct usb_hub *hub;
hub               554 drivers/usb/core/usb.c 		hub = usb_hub_to_struct_hub(dev->parent);
hub               555 drivers/usb/core/usb.c 		return hub->ports[dev->portnum - 1]->connect_type ==
hub               518 drivers/usb/dwc2/hcd.c 		*hub_addr = urb->dev->tt->hub->devnum;
hub              4012 drivers/usb/dwc2/hcd.c 				bitmap_size *= urb->dev->tt->hub->maxchild;
hub               123 drivers/usb/dwc2/hcd_intr.c 	if (usb_urb->dev->tt->hub == root_hub)
hub               549 drivers/usb/host/ehci-dbg.c 				dev_name(&tt->usb_tt->hub->dev),
hub               167 drivers/usb/host/ehci-q.c 		struct usb_device *tt = urb->dev->tt->hub;
hub               174 drivers/usb/host/ehci-q.c 				|| urb->dev->tt->hub !=
hub               902 drivers/usb/host/ehci-q.c 		if (tt && tt->hub != ehci_to_hcd(ehci)->self.root_hub)
hub               903 drivers/usb/host/ehci-q.c 			info2 |= tt->hub->devnum << 16;
hub               120 drivers/usb/host/ehci-sched.c 			tt_index = kcalloc(utt->hub->maxchild,
hub               174 drivers/usb/host/ehci-sched.c 		for (i = 0; i < utt->hub->maxchild; ++i)
hub              1090 drivers/usb/host/ehci-sched.c 				|| (dev->tt->hub !=
hub              1092 drivers/usb/host/ehci-sched.c 			addr |= dev->tt->hub->devnum << 16;
hub               349 drivers/usb/host/fhci-hcd.c 	fhci->vroot_hub->hub.wHubStatus = 0;
hub               350 drivers/usb/host/fhci-hcd.c 	fhci->vroot_hub->hub.wHubChange = 0;
hub               274 drivers/usb/host/fhci-hub.c 		    cpu_to_le16(fhci->vroot_hub->hub.wHubStatus);
hub               276 drivers/usb/host/fhci-hub.c 		    cpu_to_le16(fhci->vroot_hub->hub.wHubChange);
hub               218 drivers/usb/host/fhci.h 	struct usb_hub_status hub;
hub              2122 drivers/usb/host/fotg210-hcd.c 		struct usb_device *tt = urb->dev->tt->hub;
hub              2129 drivers/usb/host/fotg210-hcd.c 		if (urb->dev->tt->hub !=
hub              2835 drivers/usb/host/fotg210-hcd.c 		if (tt && tt->hub != fotg210_to_hcd(fotg210)->self.root_hub)
hub              2836 drivers/usb/host/fotg210-hcd.c 			info2 |= tt->hub->devnum << 16;
hub               171 drivers/usb/host/ohci-da8xx.c 	struct da8xx_ohci_root_hub *hub	= dev_get_platdata(dev);
hub               173 drivers/usb/host/ohci-da8xx.c 	if (hub && hub->potpgt)
hub               230 drivers/usb/host/ohci-da8xx.c 	struct da8xx_ohci_root_hub *hub	= dev_get_platdata(dev);
hub               270 drivers/usb/host/ohci-da8xx.c 		rh_a |= hub->potpgt << 24;
hub              1163 drivers/usb/host/xhci-mem.c 	if (!udev->tt || !udev->tt->hub->parent) {
hub              1172 drivers/usb/host/xhci-mem.c 			if (tt_bw->slot_id != udev->tt->hub->slot_id)
hub              1188 drivers/usb/host/xhci-mem.c 	if (udev->tt && udev->tt->hub->parent) {
hub              1189 drivers/usb/host/xhci-mem.c 		slot_ctx->tt_info = cpu_to_le32(udev->tt->hub->slot_id |
hub               103 drivers/usb/host/xhci-mtk-sch.c 			tt_index = kcalloc(utt->hub->maxchild,
hub               151 drivers/usb/host/xhci-mtk-sch.c 		for (i = 0; i < utt->hub->maxchild; ++i)
hub              1835 drivers/usb/host/xhci-ring.c 	    (td->urb->dev->tt->hub != xhci_to_hcd(xhci)->self.root_hub) &&
hub              2466 drivers/usb/host/xhci.h 	u32 hub;
hub              2471 drivers/usb/host/xhci.h 	hub = info & DEV_HUB;
hub              2497 drivers/usb/host/xhci.h 			hub ? " Hub" : "",
hub               575 drivers/usb/isp1760/isp1760-hcd.c 		ptd->dw1 |= TO_DW1_HUB_NUM(qtd->urb->dev->tt->hub->devnum);
hub               237 drivers/usb/misc/usb251xb.c static int usb251x_check_gpio_chip(struct usb251xb *hub)
hub               239 drivers/usb/misc/usb251xb.c 	struct gpio_chip *gc = gpiod_to_chip(hub->gpio_reset);
hub               240 drivers/usb/misc/usb251xb.c 	struct i2c_adapter *adap = hub->i2c->adapter;
hub               243 drivers/usb/misc/usb251xb.c 	if (!hub->gpio_reset)
hub               251 drivers/usb/misc/usb251xb.c 		dev_err(hub->dev, "Reset GPIO chip is at the same i2c-bus\n");
hub               258 drivers/usb/misc/usb251xb.c static int usb251x_check_gpio_chip(struct usb251xb *hub)
hub               264 drivers/usb/misc/usb251xb.c static void usb251xb_reset(struct usb251xb *hub, int state)
hub               266 drivers/usb/misc/usb251xb.c 	if (!hub->gpio_reset)
hub               269 drivers/usb/misc/usb251xb.c 	i2c_lock_bus(hub->i2c->adapter, I2C_LOCK_SEGMENT);
hub               271 drivers/usb/misc/usb251xb.c 	gpiod_set_value_cansleep(hub->gpio_reset, state);
hub               279 drivers/usb/misc/usb251xb.c 	i2c_unlock_bus(hub->i2c->adapter, I2C_LOCK_SEGMENT);
hub               282 drivers/usb/misc/usb251xb.c static int usb251xb_connect(struct usb251xb *hub)
hub               284 drivers/usb/misc/usb251xb.c 	struct device *dev = hub->dev;
hub               290 drivers/usb/misc/usb251xb.c 	if (hub->skip_config) {
hub               295 drivers/usb/misc/usb251xb.c 		usb251xb_reset(hub, 0);
hub               297 drivers/usb/misc/usb251xb.c 		err = i2c_smbus_write_i2c_block_data(hub->i2c,
hub               306 drivers/usb/misc/usb251xb.c 	i2c_wb[USB251XB_ADDR_VENDOR_ID_MSB]     = (hub->vendor_id >> 8) & 0xFF;
hub               307 drivers/usb/misc/usb251xb.c 	i2c_wb[USB251XB_ADDR_VENDOR_ID_LSB]     = hub->vendor_id & 0xFF;
hub               308 drivers/usb/misc/usb251xb.c 	i2c_wb[USB251XB_ADDR_PRODUCT_ID_MSB]    = (hub->product_id >> 8) & 0xFF;
hub               309 drivers/usb/misc/usb251xb.c 	i2c_wb[USB251XB_ADDR_PRODUCT_ID_LSB]    = hub->product_id & 0xFF;
hub               310 drivers/usb/misc/usb251xb.c 	i2c_wb[USB251XB_ADDR_DEVICE_ID_MSB]     = (hub->device_id >> 8) & 0xFF;
hub               311 drivers/usb/misc/usb251xb.c 	i2c_wb[USB251XB_ADDR_DEVICE_ID_LSB]     = hub->device_id & 0xFF;
hub               312 drivers/usb/misc/usb251xb.c 	i2c_wb[USB251XB_ADDR_CONFIG_DATA_1]     = hub->conf_data1;
hub               313 drivers/usb/misc/usb251xb.c 	i2c_wb[USB251XB_ADDR_CONFIG_DATA_2]     = hub->conf_data2;
hub               314 drivers/usb/misc/usb251xb.c 	i2c_wb[USB251XB_ADDR_CONFIG_DATA_3]     = hub->conf_data3;
hub               315 drivers/usb/misc/usb251xb.c 	i2c_wb[USB251XB_ADDR_NON_REMOVABLE_DEVICES] = hub->non_rem_dev;
hub               316 drivers/usb/misc/usb251xb.c 	i2c_wb[USB251XB_ADDR_PORT_DISABLE_SELF] = hub->port_disable_sp;
hub               317 drivers/usb/misc/usb251xb.c 	i2c_wb[USB251XB_ADDR_PORT_DISABLE_BUS]  = hub->port_disable_bp;
hub               318 drivers/usb/misc/usb251xb.c 	i2c_wb[USB251XB_ADDR_MAX_POWER_SELF]    = hub->max_power_sp;
hub               319 drivers/usb/misc/usb251xb.c 	i2c_wb[USB251XB_ADDR_MAX_POWER_BUS]     = hub->max_power_bp;
hub               320 drivers/usb/misc/usb251xb.c 	i2c_wb[USB251XB_ADDR_MAX_CURRENT_SELF]  = hub->max_current_sp;
hub               321 drivers/usb/misc/usb251xb.c 	i2c_wb[USB251XB_ADDR_MAX_CURRENT_BUS]   = hub->max_current_bp;
hub               322 drivers/usb/misc/usb251xb.c 	i2c_wb[USB251XB_ADDR_POWER_ON_TIME]     = hub->power_on_time;
hub               323 drivers/usb/misc/usb251xb.c 	i2c_wb[USB251XB_ADDR_LANGUAGE_ID_HIGH]  = (hub->lang_id >> 8) & 0xFF;
hub               324 drivers/usb/misc/usb251xb.c 	i2c_wb[USB251XB_ADDR_LANGUAGE_ID_LOW]   = hub->lang_id & 0xFF;
hub               325 drivers/usb/misc/usb251xb.c 	i2c_wb[USB251XB_ADDR_MANUFACTURER_STRING_LEN] = hub->manufacturer_len;
hub               326 drivers/usb/misc/usb251xb.c 	i2c_wb[USB251XB_ADDR_PRODUCT_STRING_LEN]      = hub->product_len;
hub               327 drivers/usb/misc/usb251xb.c 	i2c_wb[USB251XB_ADDR_SERIAL_STRING_LEN]       = hub->serial_len;
hub               328 drivers/usb/misc/usb251xb.c 	memcpy(&i2c_wb[USB251XB_ADDR_MANUFACTURER_STRING], hub->manufacturer,
hub               330 drivers/usb/misc/usb251xb.c 	memcpy(&i2c_wb[USB251XB_ADDR_SERIAL_STRING], hub->serial,
hub               332 drivers/usb/misc/usb251xb.c 	memcpy(&i2c_wb[USB251XB_ADDR_PRODUCT_STRING], hub->product,
hub               334 drivers/usb/misc/usb251xb.c 	i2c_wb[USB251XB_ADDR_BATTERY_CHARGING_ENABLE] = hub->bat_charge_en;
hub               335 drivers/usb/misc/usb251xb.c 	i2c_wb[USB251XB_ADDR_BOOST_UP]          = hub->boost_up;
hub               336 drivers/usb/misc/usb251xb.c 	i2c_wb[USB251XB_ADDR_BOOST_57]          = hub->boost_57;
hub               337 drivers/usb/misc/usb251xb.c 	i2c_wb[USB251XB_ADDR_BOOST_14]          = hub->boost_14;
hub               338 drivers/usb/misc/usb251xb.c 	i2c_wb[USB251XB_ADDR_PORT_SWAP]         = hub->port_swap;
hub               339 drivers/usb/misc/usb251xb.c 	i2c_wb[USB251XB_ADDR_PORT_MAP_12]       = hub->port_map12;
hub               340 drivers/usb/misc/usb251xb.c 	i2c_wb[USB251XB_ADDR_PORT_MAP_34]       = hub->port_map34;
hub               341 drivers/usb/misc/usb251xb.c 	i2c_wb[USB251XB_ADDR_PORT_MAP_56]       = hub->port_map56;
hub               342 drivers/usb/misc/usb251xb.c 	i2c_wb[USB251XB_ADDR_PORT_MAP_7]        = hub->port_map7;
hub               345 drivers/usb/misc/usb251xb.c 	usb251xb_reset(hub, 0);
hub               361 drivers/usb/misc/usb251xb.c 		err = i2c_smbus_write_i2c_block_data(hub->i2c, offset,
hub               377 drivers/usb/misc/usb251xb.c static void usb251xb_get_ports_field(struct usb251xb *hub,
hub               381 drivers/usb/misc/usb251xb.c 	struct device *dev = hub->dev;
hub               394 drivers/usb/misc/usb251xb.c static int usb251xb_get_ofdata(struct usb251xb *hub,
hub               397 drivers/usb/misc/usb251xb.c 	struct device *dev = hub->dev;
hub               410 drivers/usb/misc/usb251xb.c 		hub->skip_config = 1;
hub               412 drivers/usb/misc/usb251xb.c 		hub->skip_config = 0;
hub               414 drivers/usb/misc/usb251xb.c 	hub->gpio_reset = devm_gpiod_get_optional(dev, "reset", GPIOD_OUT_HIGH);
hub               415 drivers/usb/misc/usb251xb.c 	if (PTR_ERR(hub->gpio_reset) == -EPROBE_DEFER) {
hub               417 drivers/usb/misc/usb251xb.c 	} else if (IS_ERR(hub->gpio_reset)) {
hub               418 drivers/usb/misc/usb251xb.c 		err = PTR_ERR(hub->gpio_reset);
hub               423 drivers/usb/misc/usb251xb.c 	if (of_property_read_u16_array(np, "vendor-id", &hub->vendor_id, 1))
hub               424 drivers/usb/misc/usb251xb.c 		hub->vendor_id = USB251XB_DEF_VENDOR_ID;
hub               427 drivers/usb/misc/usb251xb.c 				       &hub->product_id, 1))
hub               428 drivers/usb/misc/usb251xb.c 		hub->product_id = data->product_id;
hub               430 drivers/usb/misc/usb251xb.c 	if (of_property_read_u16_array(np, "device-id", &hub->device_id, 1))
hub               431 drivers/usb/misc/usb251xb.c 		hub->device_id = USB251XB_DEF_DEVICE_ID;
hub               433 drivers/usb/misc/usb251xb.c 	hub->conf_data1 = USB251XB_DEF_CONFIG_DATA_1;
hub               435 drivers/usb/misc/usb251xb.c 		hub->conf_data1 |= BIT(7);
hub               438 drivers/usb/misc/usb251xb.c 		hub->conf_data1 &= ~BIT(2);
hub               440 drivers/usb/misc/usb251xb.c 			hub->conf_data1 &= ~BIT(1);
hub               442 drivers/usb/misc/usb251xb.c 			hub->conf_data1 |= BIT(1);
hub               444 drivers/usb/misc/usb251xb.c 		hub->conf_data1 &= ~BIT(7);
hub               447 drivers/usb/misc/usb251xb.c 		hub->conf_data1 |= BIT(2);
hub               451 drivers/usb/misc/usb251xb.c 		hub->conf_data1 |= BIT(5);
hub               454 drivers/usb/misc/usb251xb.c 		hub->conf_data1 |= BIT(4);
hub               456 drivers/usb/misc/usb251xb.c 		hub->conf_data1 &= ~BIT(4);
hub               459 drivers/usb/misc/usb251xb.c 		hub->conf_data1 |= BIT(3);
hub               462 drivers/usb/misc/usb251xb.c 		hub->conf_data1 |= BIT(0);
hub               464 drivers/usb/misc/usb251xb.c 		hub->conf_data1 &= ~BIT(0);
hub               466 drivers/usb/misc/usb251xb.c 	hub->conf_data2 = USB251XB_DEF_CONFIG_DATA_2;
hub               468 drivers/usb/misc/usb251xb.c 		hub->conf_data2 |= BIT(7);
hub               473 drivers/usb/misc/usb251xb.c 			hub->conf_data2 &= ~BIT(5);
hub               474 drivers/usb/misc/usb251xb.c 			hub->conf_data2 &= ~BIT(4);
hub               477 drivers/usb/misc/usb251xb.c 			hub->conf_data2 &= ~BIT(5);
hub               478 drivers/usb/misc/usb251xb.c 			hub->conf_data2 |= BIT(4);
hub               481 drivers/usb/misc/usb251xb.c 			hub->conf_data2 |= BIT(5);
hub               482 drivers/usb/misc/usb251xb.c 			hub->conf_data2 |= BIT(4);
hub               485 drivers/usb/misc/usb251xb.c 			hub->conf_data2 |= BIT(5);
hub               486 drivers/usb/misc/usb251xb.c 			hub->conf_data2 &= ~BIT(4);
hub               491 drivers/usb/misc/usb251xb.c 		hub->conf_data2 |= BIT(3);
hub               493 drivers/usb/misc/usb251xb.c 	hub->conf_data3 = USB251XB_DEF_CONFIG_DATA_3;
hub               495 drivers/usb/misc/usb251xb.c 		hub->conf_data3 |= BIT(3);
hub               498 drivers/usb/misc/usb251xb.c 		hub->conf_data3 &= ~BIT(1);
hub               501 drivers/usb/misc/usb251xb.c 		hub->conf_data3 |= BIT(0);
hub               503 drivers/usb/misc/usb251xb.c 	hub->non_rem_dev = USB251XB_DEF_NON_REMOVABLE_DEVICES;
hub               504 drivers/usb/misc/usb251xb.c 	usb251xb_get_ports_field(hub, "non-removable-ports", data->port_cnt,
hub               505 drivers/usb/misc/usb251xb.c 				 true, &hub->non_rem_dev);
hub               507 drivers/usb/misc/usb251xb.c 	hub->port_disable_sp = USB251XB_DEF_PORT_DISABLE_SELF;
hub               508 drivers/usb/misc/usb251xb.c 	usb251xb_get_ports_field(hub, "sp-disabled-ports", data->port_cnt,
hub               509 drivers/usb/misc/usb251xb.c 				 true, &hub->port_disable_sp);
hub               511 drivers/usb/misc/usb251xb.c 	hub->port_disable_bp = USB251XB_DEF_PORT_DISABLE_BUS;
hub               512 drivers/usb/misc/usb251xb.c 	usb251xb_get_ports_field(hub, "bp-disabled-ports", data->port_cnt,
hub               513 drivers/usb/misc/usb251xb.c 				 true, &hub->port_disable_bp);
hub               515 drivers/usb/misc/usb251xb.c 	hub->max_power_sp = USB251XB_DEF_MAX_POWER_SELF;
hub               518 drivers/usb/misc/usb251xb.c 		hub->max_power_sp = min_t(u8, property_u32 / 2000, 50);
hub               520 drivers/usb/misc/usb251xb.c 	hub->max_power_bp = USB251XB_DEF_MAX_POWER_BUS;
hub               523 drivers/usb/misc/usb251xb.c 		hub->max_power_bp = min_t(u8, property_u32 / 2000, 255);
hub               525 drivers/usb/misc/usb251xb.c 	hub->max_current_sp = USB251XB_DEF_MAX_CURRENT_SELF;
hub               528 drivers/usb/misc/usb251xb.c 		hub->max_current_sp = min_t(u8, property_u32 / 2000, 50);
hub               530 drivers/usb/misc/usb251xb.c 	hub->max_current_bp = USB251XB_DEF_MAX_CURRENT_BUS;
hub               533 drivers/usb/misc/usb251xb.c 		hub->max_current_bp = min_t(u8, property_u32 / 2000, 255);
hub               535 drivers/usb/misc/usb251xb.c 	hub->power_on_time = USB251XB_DEF_POWER_ON_TIME;
hub               537 drivers/usb/misc/usb251xb.c 		hub->power_on_time = min_t(u8, property_u32 / 2, 255);
hub               539 drivers/usb/misc/usb251xb.c 	if (of_property_read_u16_array(np, "language-id", &hub->lang_id, 1))
hub               540 drivers/usb/misc/usb251xb.c 		hub->lang_id = USB251XB_DEF_LANGUAGE_ID;
hub               545 drivers/usb/misc/usb251xb.c 	hub->manufacturer_len = strlen(str) & 0xFF;
hub               546 drivers/usb/misc/usb251xb.c 	memset(hub->manufacturer, 0, USB251XB_STRING_BUFSIZE);
hub               549 drivers/usb/misc/usb251xb.c 			      (wchar_t *)hub->manufacturer,
hub               554 drivers/usb/misc/usb251xb.c 	hub->product_len = strlen(str) & 0xFF;
hub               555 drivers/usb/misc/usb251xb.c 	memset(hub->product, 0, USB251XB_STRING_BUFSIZE);
hub               558 drivers/usb/misc/usb251xb.c 			      (wchar_t *)hub->product,
hub               564 drivers/usb/misc/usb251xb.c 	hub->serial_len = strlen(str) & 0xFF;
hub               565 drivers/usb/misc/usb251xb.c 	memset(hub->serial, 0, USB251XB_STRING_BUFSIZE);
hub               568 drivers/usb/misc/usb251xb.c 			      (wchar_t *)hub->serial,
hub               575 drivers/usb/misc/usb251xb.c 	hub->port_swap = USB251XB_DEF_PORT_SWAP;
hub               576 drivers/usb/misc/usb251xb.c 	usb251xb_get_ports_field(hub, "swap-dx-lanes", data->port_cnt,
hub               577 drivers/usb/misc/usb251xb.c 				 false, &hub->port_swap);
hub               582 drivers/usb/misc/usb251xb.c 	hub->bat_charge_en = USB251XB_DEF_BATTERY_CHARGING_ENABLE;
hub               583 drivers/usb/misc/usb251xb.c 	hub->boost_up = USB251XB_DEF_BOOST_UP;
hub               584 drivers/usb/misc/usb251xb.c 	hub->boost_57 = USB251XB_DEF_BOOST_57;
hub               585 drivers/usb/misc/usb251xb.c 	hub->boost_14 = USB251XB_DEF_BOOST_14;
hub               586 drivers/usb/misc/usb251xb.c 	hub->port_map12 = USB251XB_DEF_PORT_MAP_12;
hub               587 drivers/usb/misc/usb251xb.c 	hub->port_map34 = USB251XB_DEF_PORT_MAP_34;
hub               588 drivers/usb/misc/usb251xb.c 	hub->port_map56 = USB251XB_DEF_PORT_MAP_56;
hub               589 drivers/usb/misc/usb251xb.c 	hub->port_map7  = USB251XB_DEF_PORT_MAP_7;
hub               625 drivers/usb/misc/usb251xb.c static int usb251xb_get_ofdata(struct usb251xb *hub,
hub               632 drivers/usb/misc/usb251xb.c static int usb251xb_probe(struct usb251xb *hub)
hub               634 drivers/usb/misc/usb251xb.c 	struct device *dev = hub->dev;
hub               641 drivers/usb/misc/usb251xb.c 		err = usb251xb_get_ofdata(hub,
hub               664 drivers/usb/misc/usb251xb.c 	err = usb251x_check_gpio_chip(hub);
hub               668 drivers/usb/misc/usb251xb.c 	err = usb251xb_connect(hub);
hub               682 drivers/usb/misc/usb251xb.c 	struct usb251xb *hub;
hub               684 drivers/usb/misc/usb251xb.c 	hub = devm_kzalloc(&i2c->dev, sizeof(struct usb251xb), GFP_KERNEL);
hub               685 drivers/usb/misc/usb251xb.c 	if (!hub)
hub               688 drivers/usb/misc/usb251xb.c 	i2c_set_clientdata(i2c, hub);
hub               689 drivers/usb/misc/usb251xb.c 	hub->dev = &i2c->dev;
hub               690 drivers/usb/misc/usb251xb.c 	hub->i2c = i2c;
hub               692 drivers/usb/misc/usb251xb.c 	return usb251xb_probe(hub);
hub                56 drivers/usb/misc/usb3503.c static int usb3503_reset(struct usb3503 *hub, int state)
hub                58 drivers/usb/misc/usb3503.c 	if (!state && gpio_is_valid(hub->gpio_connect))
hub                59 drivers/usb/misc/usb3503.c 		gpio_set_value_cansleep(hub->gpio_connect, 0);
hub                61 drivers/usb/misc/usb3503.c 	if (gpio_is_valid(hub->gpio_reset))
hub                62 drivers/usb/misc/usb3503.c 		gpio_set_value_cansleep(hub->gpio_reset, state);
hub                71 drivers/usb/misc/usb3503.c static int usb3503_connect(struct usb3503 *hub)
hub                73 drivers/usb/misc/usb3503.c 	struct device *dev = hub->dev;
hub                76 drivers/usb/misc/usb3503.c 	usb3503_reset(hub, 1);
hub                78 drivers/usb/misc/usb3503.c 	if (hub->regmap) {
hub                80 drivers/usb/misc/usb3503.c 		err = regmap_write(hub->regmap, USB3503_SP_ILOCK,
hub                89 drivers/usb/misc/usb3503.c 		if (hub->port_off_mask) {
hub                90 drivers/usb/misc/usb3503.c 			err = regmap_update_bits(hub->regmap, USB3503_PDS,
hub                91 drivers/usb/misc/usb3503.c 					hub->port_off_mask,
hub                92 drivers/usb/misc/usb3503.c 					hub->port_off_mask);
hub               100 drivers/usb/misc/usb3503.c 		err = regmap_update_bits(hub->regmap, USB3503_CFG1,
hub               109 drivers/usb/misc/usb3503.c 		err = regmap_update_bits(hub->regmap, USB3503_SP_ILOCK,
hub               118 drivers/usb/misc/usb3503.c 	if (gpio_is_valid(hub->gpio_connect))
hub               119 drivers/usb/misc/usb3503.c 		gpio_set_value_cansleep(hub->gpio_connect, 1);
hub               121 drivers/usb/misc/usb3503.c 	hub->mode = USB3503_MODE_HUB;
hub               127 drivers/usb/misc/usb3503.c static int usb3503_switch_mode(struct usb3503 *hub, enum usb3503_mode mode)
hub               129 drivers/usb/misc/usb3503.c 	struct device *dev = hub->dev;
hub               134 drivers/usb/misc/usb3503.c 		err = usb3503_connect(hub);
hub               138 drivers/usb/misc/usb3503.c 		usb3503_reset(hub, 0);
hub               158 drivers/usb/misc/usb3503.c static int usb3503_probe(struct usb3503 *hub)
hub               160 drivers/usb/misc/usb3503.c 	struct device *dev = hub->dev;
hub               169 drivers/usb/misc/usb3503.c 		hub->port_off_mask	= pdata->port_off_mask;
hub               170 drivers/usb/misc/usb3503.c 		hub->gpio_intn		= pdata->gpio_intn;
hub               171 drivers/usb/misc/usb3503.c 		hub->gpio_connect	= pdata->gpio_connect;
hub               172 drivers/usb/misc/usb3503.c 		hub->gpio_reset		= pdata->gpio_reset;
hub               173 drivers/usb/misc/usb3503.c 		hub->mode		= pdata->initial_mode;
hub               176 drivers/usb/misc/usb3503.c 		hub->port_off_mask = 0;
hub               184 drivers/usb/misc/usb3503.c 				hub->secondary_ref_clk = 0;
hub               190 drivers/usb/misc/usb3503.c 				hub->secondary_ref_clk = 1;
hub               200 drivers/usb/misc/usb3503.c 		hub->clk = devm_clk_get_optional(dev, "refclk");
hub               201 drivers/usb/misc/usb3503.c 		if (IS_ERR(hub->clk)) {
hub               203 drivers/usb/misc/usb3503.c 					PTR_ERR(hub->clk));
hub               204 drivers/usb/misc/usb3503.c 			return PTR_ERR(hub->clk);
hub               208 drivers/usb/misc/usb3503.c 			err = clk_set_rate(hub->clk, rate);
hub               217 drivers/usb/misc/usb3503.c 		err = clk_prepare_enable(hub->clk);
hub               229 drivers/usb/misc/usb3503.c 					hub->port_off_mask |= (1 << port);
hub               233 drivers/usb/misc/usb3503.c 		hub->gpio_intn	= of_get_named_gpio(np, "intn-gpios", 0);
hub               234 drivers/usb/misc/usb3503.c 		if (hub->gpio_intn == -EPROBE_DEFER)
hub               236 drivers/usb/misc/usb3503.c 		hub->gpio_connect = of_get_named_gpio(np, "connect-gpios", 0);
hub               237 drivers/usb/misc/usb3503.c 		if (hub->gpio_connect == -EPROBE_DEFER)
hub               239 drivers/usb/misc/usb3503.c 		hub->gpio_reset = of_get_named_gpio(np, "reset-gpios", 0);
hub               240 drivers/usb/misc/usb3503.c 		if (hub->gpio_reset == -EPROBE_DEFER)
hub               243 drivers/usb/misc/usb3503.c 		hub->mode = mode;
hub               246 drivers/usb/misc/usb3503.c 	if (hub->port_off_mask && !hub->regmap)
hub               249 drivers/usb/misc/usb3503.c 	if (gpio_is_valid(hub->gpio_intn)) {
hub               250 drivers/usb/misc/usb3503.c 		int val = hub->secondary_ref_clk ? GPIOF_OUT_INIT_LOW :
hub               252 drivers/usb/misc/usb3503.c 		err = devm_gpio_request_one(dev, hub->gpio_intn, val,
hub               257 drivers/usb/misc/usb3503.c 				hub->gpio_intn, err);
hub               262 drivers/usb/misc/usb3503.c 	if (gpio_is_valid(hub->gpio_connect)) {
hub               263 drivers/usb/misc/usb3503.c 		err = devm_gpio_request_one(dev, hub->gpio_connect,
hub               268 drivers/usb/misc/usb3503.c 				hub->gpio_connect, err);
hub               273 drivers/usb/misc/usb3503.c 	if (gpio_is_valid(hub->gpio_reset)) {
hub               274 drivers/usb/misc/usb3503.c 		err = devm_gpio_request_one(dev, hub->gpio_reset,
hub               281 drivers/usb/misc/usb3503.c 				hub->gpio_reset, err);
hub               286 drivers/usb/misc/usb3503.c 	usb3503_switch_mode(hub, hub->mode);
hub               289 drivers/usb/misc/usb3503.c 			(hub->mode == USB3503_MODE_HUB) ? "hub" : "standby");
hub               297 drivers/usb/misc/usb3503.c 	struct usb3503 *hub;
hub               300 drivers/usb/misc/usb3503.c 	hub = devm_kzalloc(&i2c->dev, sizeof(struct usb3503), GFP_KERNEL);
hub               301 drivers/usb/misc/usb3503.c 	if (!hub)
hub               304 drivers/usb/misc/usb3503.c 	i2c_set_clientdata(i2c, hub);
hub               305 drivers/usb/misc/usb3503.c 	hub->regmap = devm_regmap_init_i2c(i2c, &usb3503_regmap_config);
hub               306 drivers/usb/misc/usb3503.c 	if (IS_ERR(hub->regmap)) {
hub               307 drivers/usb/misc/usb3503.c 		err = PTR_ERR(hub->regmap);
hub               311 drivers/usb/misc/usb3503.c 	hub->dev = &i2c->dev;
hub               313 drivers/usb/misc/usb3503.c 	return usb3503_probe(hub);
hub               318 drivers/usb/misc/usb3503.c 	struct usb3503 *hub;
hub               320 drivers/usb/misc/usb3503.c 	hub = i2c_get_clientdata(i2c);
hub               321 drivers/usb/misc/usb3503.c 	clk_disable_unprepare(hub->clk);
hub               328 drivers/usb/misc/usb3503.c 	struct usb3503 *hub;
hub               330 drivers/usb/misc/usb3503.c 	hub = devm_kzalloc(&pdev->dev, sizeof(struct usb3503), GFP_KERNEL);
hub               331 drivers/usb/misc/usb3503.c 	if (!hub)
hub               333 drivers/usb/misc/usb3503.c 	hub->dev = &pdev->dev;
hub               334 drivers/usb/misc/usb3503.c 	platform_set_drvdata(pdev, hub);
hub               336 drivers/usb/misc/usb3503.c 	return usb3503_probe(hub);
hub               341 drivers/usb/misc/usb3503.c 	struct usb3503 *hub;
hub               343 drivers/usb/misc/usb3503.c 	hub = platform_get_drvdata(pdev);
hub               344 drivers/usb/misc/usb3503.c 	clk_disable_unprepare(hub->clk);
hub               350 drivers/usb/misc/usb3503.c static int usb3503_suspend(struct usb3503 *hub)
hub               352 drivers/usb/misc/usb3503.c 	usb3503_switch_mode(hub, USB3503_MODE_STANDBY);
hub               353 drivers/usb/misc/usb3503.c 	clk_disable_unprepare(hub->clk);
hub               358 drivers/usb/misc/usb3503.c static int usb3503_resume(struct usb3503 *hub)
hub               360 drivers/usb/misc/usb3503.c 	clk_prepare_enable(hub->clk);
hub               361 drivers/usb/misc/usb3503.c 	usb3503_switch_mode(hub, hub->mode);
hub                28 drivers/usb/misc/usb4604.c static void usb4604_reset(struct usb4604 *hub, int state)
hub                30 drivers/usb/misc/usb4604.c 	gpiod_set_value_cansleep(hub->gpio_reset, state);
hub                37 drivers/usb/misc/usb4604.c static int usb4604_connect(struct usb4604 *hub)
hub                39 drivers/usb/misc/usb4604.c 	struct device *dev = hub->dev;
hub                44 drivers/usb/misc/usb4604.c 	usb4604_reset(hub, 1);
hub                48 drivers/usb/misc/usb4604.c 		usb4604_reset(hub, 0);
hub                52 drivers/usb/misc/usb4604.c 	hub->mode = USB4604_MODE_HUB;
hub                58 drivers/usb/misc/usb4604.c static int usb4604_switch_mode(struct usb4604 *hub, enum usb4604_mode mode)
hub                60 drivers/usb/misc/usb4604.c 	struct device *dev = hub->dev;
hub                65 drivers/usb/misc/usb4604.c 		err = usb4604_connect(hub);
hub                69 drivers/usb/misc/usb4604.c 		usb4604_reset(hub, 0);
hub                82 drivers/usb/misc/usb4604.c static int usb4604_probe(struct usb4604 *hub)
hub                84 drivers/usb/misc/usb4604.c 	struct device *dev = hub->dev;
hub                92 drivers/usb/misc/usb4604.c 	hub->gpio_reset = gpio;
hub                94 drivers/usb/misc/usb4604.c 	if (of_property_read_u32(np, "initial-mode", &hub->mode))
hub                95 drivers/usb/misc/usb4604.c 		hub->mode = mode;
hub                97 drivers/usb/misc/usb4604.c 	return usb4604_switch_mode(hub, hub->mode);
hub               103 drivers/usb/misc/usb4604.c 	struct usb4604 *hub;
hub               105 drivers/usb/misc/usb4604.c 	hub = devm_kzalloc(&i2c->dev, sizeof(*hub), GFP_KERNEL);
hub               106 drivers/usb/misc/usb4604.c 	if (!hub)
hub               109 drivers/usb/misc/usb4604.c 	i2c_set_clientdata(i2c, hub);
hub               110 drivers/usb/misc/usb4604.c 	hub->dev = &i2c->dev;
hub               112 drivers/usb/misc/usb4604.c 	return usb4604_probe(hub);
hub               119 drivers/usb/misc/usb4604.c 	struct usb4604 *hub = i2c_get_clientdata(client);
hub               121 drivers/usb/misc/usb4604.c 	usb4604_switch_mode(hub, USB4604_MODE_STANDBY);
hub               129 drivers/usb/misc/usb4604.c 	struct usb4604 *hub = i2c_get_clientdata(client);
hub               131 drivers/usb/misc/usb4604.c 	usb4604_switch_mode(hub, hub->mode);
hub              2279 drivers/usb/musb/musb_host.c 				if (urb->dev->tt->hub)
hub              2281 drivers/usb/musb/musb_host.c 						(u8) urb->dev->tt->hub->devnum;
hub                38 drivers/usb/usbip/vhci_sysfs.c static void port_show_vhci(char **out, int hub, int port, struct vhci_device *vdev)
hub                40 drivers/usb/usbip/vhci_sysfs.c 	if (hub == HUB_SPEED_HIGH)
hub               554 include/linux/usb/hcd.h 	struct usb_device	*hub;	/* upstream highspeed hub */
hub                22 include/linux/usb/of.h struct device_node *usb_of_get_device_node(struct usb_device *hub, int port1);
hub                43 include/linux/usb/of.h usb_of_get_device_node(struct usb_device *hub, int port1)
hub                56 tools/usb/usbip/libsrc/vhci_driver.c 		char hub[3];
hub                59 tools/usb/usbip/libsrc/vhci_driver.c 				hub, &port, &status, &speed,
hub                68 tools/usb/usbip/libsrc/vhci_driver.c 				hub, port, status, speed, devid);
hub                75 tools/usb/usbip/libsrc/vhci_driver.c 		if (strncmp("hs", hub, 2) == 0)
hub                76 tools/usb/usbip/libsrc/vhci_driver.c 			idev->hub = HUB_SPEED_HIGH;
hub                78 tools/usb/usbip/libsrc/vhci_driver.c 			idev->hub = HUB_SPEED_SUPER;
hub               341 tools/usb/usbip/libsrc/vhci_driver.c 			if (vhci_driver->idev[i].hub != HUB_SPEED_SUPER)
hub               345 tools/usb/usbip/libsrc/vhci_driver.c 			if (vhci_driver->idev[i].hub != HUB_SPEED_HIGH)
hub                23 tools/usb/usbip/libsrc/vhci_driver.h 	enum hub_speed hub;