Lines Matching +full:generic +full:- +full:xhci

1 /* SPDX-License-Identifier: GPL-2.0 */
5 * Copyright (C) 2014-2015 Intel Corporation.
26 * struct intel_th_output - descriptor INTEL_TH_OUTPUT type devices
48 * struct intel_th_drvdata - describes hardware capabilities and quirks
61 #define INTEL_TH_CAP(_th, _cap) ((_th)->drvdata ? (_th)->drvdata->_cap : 0)
64 * struct intel_th_device - device on the intel_th bus
70 * @id: device instance or -1
96 * intel_th_device_get_resource() - obtain @num'th resource of type @type
107 for (i = 0; i < thdev->num_resources; i++) in intel_th_device_get_resource()
108 if (resource_type(&thdev->resource[i]) == type && !num--) in intel_th_device_get_resource()
109 return &thdev->resource[i]; in intel_th_device_get_resource()
122 GTH_PTI, /* MIPI-PTI */
126 * intel_th_output_assigned() - if an output device is assigned to a switch port
134 return thdev->type == INTEL_TH_OUTPUT && in intel_th_output_assigned()
135 (thdev->output.port >= 0 || in intel_th_output_assigned()
136 thdev->output.type == GTH_NONE); in intel_th_output_assigned()
140 * struct intel_th_driver - driver for an intel_th_device device
141 * @driver: generic driver
210 struct device *parent = thdev->dev.parent; in to_intel_th_parent()
220 if (thdev->type == INTEL_TH_OUTPUT) in to_intel_th()
223 if (WARN_ON_ONCE(!thdev || thdev->type == INTEL_TH_OUTPUT)) in to_intel_th()
226 return dev_get_drvdata(thdev->dev.parent); in to_intel_th()
261 * struct intel_th - Intel TH controller
301 if (thdev->type == INTEL_TH_SWITCH) in to_intel_th_hub()
303 else if (thdev->type == INTEL_TH_OUTPUT) in to_intel_th_hub()
306 return to_intel_th(thdev)->hub; in to_intel_th_hub()
352 /* XHCI DbC is the primary destination */