Lines Matching full:hub
3 * Intel(R) Trace Hub driver core
53 struct intel_th_device *hub = NULL; in intel_th_probe() local
57 hub = thdev; in intel_th_probe()
59 hub = to_intel_th_device(dev->parent); in intel_th_probe()
61 if (!hub || !hub->dev.driver) in intel_th_probe()
64 hubdrv = to_intel_th_driver(hub->dev.driver); in intel_th_probe()
83 ret = hubdrv->assign(hub, thdev); in intel_th_probe()
102 struct intel_th_device *hub = to_intel_th_hub(thdev); in intel_th_remove() local
106 struct intel_th *th = to_intel_th(hub); in intel_th_remove()
115 * Remove outputs, that is, hub's children: they are created in intel_th_remove()
116 * at hub's probe time by having the hub call in intel_th_remove()
157 if (hub->dev.driver) in intel_th_remove()
159 hubdrv->unassign(hub, thdev); in intel_th_remove()
362 parent = &th->hub->dev; in intel_th_device_alloc()
417 * Intel(R) Trace Hub subdevices
572 request_module("intel_th_%s", th->hub->name); in __intel_th_request_hub_module()
664 th->hub = thdev; in intel_th_subdevice_alloc()
695 * matches @otype and instantiate it. These devices are removed when the hub
932 intel_th_device_remove(th->hub); in intel_th_free()
934 if (th->thdev[i] != th->hub) in intel_th_free()
962 struct intel_th_device *hub = to_intel_th_device(thdev->dev.parent); in intel_th_trace_enable() local
963 struct intel_th_driver *hubdrv = to_intel_th_driver(hub->dev.driver); in intel_th_trace_enable()
965 if (WARN_ON_ONCE(hub->type != INTEL_TH_SWITCH)) in intel_th_trace_enable()
972 hubdrv->enable(hub, &thdev->output); in intel_th_trace_enable()
984 struct intel_th_device *hub = to_intel_th_device(thdev->dev.parent); in intel_th_trace_switch() local
985 struct intel_th_driver *hubdrv = to_intel_th_driver(hub->dev.driver); in intel_th_trace_switch()
987 if (WARN_ON_ONCE(hub->type != INTEL_TH_SWITCH)) in intel_th_trace_switch()
993 hubdrv->trig_switch(hub, &thdev->output); in intel_th_trace_switch()
1005 struct intel_th_device *hub = to_intel_th_device(thdev->dev.parent); in intel_th_trace_disable() local
1006 struct intel_th_driver *hubdrv = to_intel_th_driver(hub->dev.driver); in intel_th_trace_disable()
1008 WARN_ON_ONCE(hub->type != INTEL_TH_SWITCH); in intel_th_trace_disable()
1012 hubdrv->disable(hub, &thdev->output); in intel_th_trace_disable()
1022 struct intel_th_device *hub = to_intel_th_hub(thdev); in intel_th_set_output() local
1023 struct intel_th_driver *hubdrv = to_intel_th_driver(hub->dev.driver); in intel_th_set_output()
1027 if (hub->host_mode) in intel_th_set_output()
1031 * hub is instantiated together with the source device that in intel_th_set_output()
1034 hubdrv = to_intel_th_driver(hub->dev.driver); in intel_th_set_output()
1043 ret = hubdrv->set_output(hub, master); in intel_th_set_output()
1068 MODULE_DESCRIPTION("Intel(R) Trace Hub controller driver");