Lines Matching refs:thdev

93 intel_th_device_get_resource(struct intel_th_device *thdev, unsigned int type,  in intel_th_device_get_resource()  argument
98 for (i = 0; i < thdev->num_resources; i++) in intel_th_device_get_resource()
99 if (resource_type(&thdev->resource[i]) == type && !num--) in intel_th_device_get_resource()
100 return &thdev->resource[i]; in intel_th_device_get_resource()
123 intel_th_output_assigned(struct intel_th_device *thdev) in intel_th_output_assigned() argument
125 return thdev->type == INTEL_TH_OUTPUT && in intel_th_output_assigned()
126 (thdev->output.port >= 0 || in intel_th_output_assigned()
127 thdev->output.type == GTH_NONE); in intel_th_output_assigned()
151 int (*probe)(struct intel_th_device *thdev);
152 void (*remove)(struct intel_th_device *thdev);
154 int (*assign)(struct intel_th_device *thdev,
156 void (*unassign)(struct intel_th_device *thdev,
158 void (*enable)(struct intel_th_device *thdev,
160 void (*disable)(struct intel_th_device *thdev,
163 void (*irq)(struct intel_th_device *thdev);
164 int (*activate)(struct intel_th_device *thdev);
165 void (*deactivate)(struct intel_th_device *thdev);
172 int (*set_output)(struct intel_th_device *thdev,
193 to_intel_th_parent(struct intel_th_device *thdev) in to_intel_th_parent() argument
195 struct device *parent = thdev->dev.parent; in to_intel_th_parent()
203 static inline struct intel_th *to_intel_th(struct intel_th_device *thdev) in to_intel_th() argument
205 if (thdev->type == INTEL_TH_OUTPUT) in to_intel_th()
206 thdev = to_intel_th_parent(thdev); in to_intel_th()
208 if (WARN_ON_ONCE(!thdev || thdev->type == INTEL_TH_OUTPUT)) in to_intel_th()
211 return dev_get_drvdata(thdev->dev.parent); in to_intel_th()
222 int intel_th_trace_enable(struct intel_th_device *thdev);
223 int intel_th_trace_disable(struct intel_th_device *thdev);
224 int intel_th_set_output(struct intel_th_device *thdev,
255 struct intel_th_device *thdev[TH_SUBDEVICE_MAX]; member
277 to_intel_th_hub(struct intel_th_device *thdev) in to_intel_th_hub() argument
279 if (thdev->type == INTEL_TH_SWITCH) in to_intel_th_hub()
280 return thdev; in to_intel_th_hub()
281 else if (thdev->type == INTEL_TH_OUTPUT) in to_intel_th_hub()
282 return to_intel_th_parent(thdev); in to_intel_th_hub()
284 return to_intel_th(thdev)->hub; in to_intel_th_hub()