Lines Matching defs:hub

53 	struct intel_th_device *hub = NULL;
57 hub = thdev;
59 hub = to_intel_th_device(dev->parent);
61 if (!hub || !hub->dev.driver)
64 hubdrv = to_intel_th_driver(hub->dev.driver);
83 ret = hubdrv->assign(hub, thdev);
102 struct intel_th_device *hub = to_intel_th_hub(thdev);
105 struct intel_th *th = to_intel_th(hub);
117 * Remove outputs, that is, hub's children: they are created
118 * at hub's probe time by having the hub call
159 if (hub->dev.driver)
161 hubdrv->unassign(hub, thdev);
220 struct intel_th_device *hub = to_intel_th_hub(thdev);
221 struct intel_th_driver *hubdrv = to_intel_th_driver(hub->dev.driver);
223 if (hub->type != INTEL_TH_SWITCH)
230 hubdrv->prepare(hub, &thdev->output);
379 parent = &th->hub->dev;
589 request_module("intel_th_%s", th->hub->name);
681 th->hub = thdev;
712 * matches @otype and instantiate it. These devices are removed when the hub
950 intel_th_device_remove(th->hub);
952 if (th->thdev[i] != th->hub)
980 struct intel_th_device *hub = to_intel_th_device(thdev->dev.parent);
981 struct intel_th_driver *hubdrv = to_intel_th_driver(hub->dev.driver);
983 if (WARN_ON_ONCE(hub->type != INTEL_TH_SWITCH))
990 hubdrv->enable(hub, &thdev->output);
1002 struct intel_th_device *hub = to_intel_th_device(thdev->dev.parent);
1003 struct intel_th_driver *hubdrv = to_intel_th_driver(hub->dev.driver);
1005 if (WARN_ON_ONCE(hub->type != INTEL_TH_SWITCH))
1011 hubdrv->trig_switch(hub, &thdev->output);
1023 struct intel_th_device *hub = to_intel_th_device(thdev->dev.parent);
1024 struct intel_th_driver *hubdrv = to_intel_th_driver(hub->dev.driver);
1026 WARN_ON_ONCE(hub->type != INTEL_TH_SWITCH);
1030 hubdrv->disable(hub, &thdev->output);
1040 struct intel_th_device *hub = to_intel_th_hub(thdev);
1041 struct intel_th_driver *hubdrv = to_intel_th_driver(hub->dev.driver);
1045 if (hub->host_mode)
1049 * hub is instantiated together with the source device that
1052 hubdrv = to_intel_th_driver(hub->dev.driver);
1061 ret = hubdrv->set_output(hub, master);