Lines Matching refs:thdev

100 intel_th_device_get_resource(struct intel_th_device *thdev, unsigned int type,  in intel_th_device_get_resource()  argument
105 for (i = 0; i < thdev->num_resources; i++) in intel_th_device_get_resource()
106 if (resource_type(&thdev->resource[i]) == type && !num--) in intel_th_device_get_resource()
107 return &thdev->resource[i]; in intel_th_device_get_resource()
130 intel_th_output_assigned(struct intel_th_device *thdev) in intel_th_output_assigned() argument
132 return thdev->type == INTEL_TH_OUTPUT && in intel_th_output_assigned()
133 (thdev->output.port >= 0 || in intel_th_output_assigned()
134 thdev->output.type == GTH_NONE); in intel_th_output_assigned()
158 int (*probe)(struct intel_th_device *thdev);
159 void (*remove)(struct intel_th_device *thdev);
161 int (*assign)(struct intel_th_device *thdev,
163 void (*unassign)(struct intel_th_device *thdev,
165 void (*enable)(struct intel_th_device *thdev,
167 void (*trig_switch)(struct intel_th_device *thdev,
169 void (*disable)(struct intel_th_device *thdev,
172 irqreturn_t (*irq)(struct intel_th_device *thdev);
173 void (*wait_empty)(struct intel_th_device *thdev);
174 int (*activate)(struct intel_th_device *thdev);
175 void (*deactivate)(struct intel_th_device *thdev);
182 int (*set_output)(struct intel_th_device *thdev,
203 to_intel_th_parent(struct intel_th_device *thdev) in to_intel_th_parent() argument
205 struct device *parent = thdev->dev.parent; in to_intel_th_parent()
213 static inline struct intel_th *to_intel_th(struct intel_th_device *thdev) in to_intel_th() argument
215 if (thdev->type == INTEL_TH_OUTPUT) in to_intel_th()
216 thdev = to_intel_th_parent(thdev); in to_intel_th()
218 if (WARN_ON_ONCE(!thdev || thdev->type == INTEL_TH_OUTPUT)) in to_intel_th()
221 return dev_get_drvdata(thdev->dev.parent); in to_intel_th()
232 int intel_th_trace_enable(struct intel_th_device *thdev);
233 int intel_th_trace_switch(struct intel_th_device *thdev);
234 int intel_th_trace_disable(struct intel_th_device *thdev);
235 int intel_th_set_output(struct intel_th_device *thdev,
270 struct intel_th_device *thdev[TH_SUBDEVICE_MAX]; member
292 to_intel_th_hub(struct intel_th_device *thdev) in to_intel_th_hub() argument
294 if (thdev->type == INTEL_TH_SWITCH) in to_intel_th_hub()
295 return thdev; in to_intel_th_hub()
296 else if (thdev->type == INTEL_TH_OUTPUT) in to_intel_th_hub()
297 return to_intel_th_parent(thdev); in to_intel_th_hub()
299 return to_intel_th(thdev)->hub; in to_intel_th_hub()