Searched refs:thdev (Results 1 - 6 of 6) sorted by relevance

/linux-master/drivers/hwtracing/intel_th/
H A Dintel_th.h97 * @thdev: the device to search the resource for
102 intel_th_device_get_resource(struct intel_th_device *thdev, unsigned int type, argument
107 for (i = 0; i < thdev->num_resources; i++)
108 if (resource_type(&thdev->resource[i]) == type && !num--)
109 return &thdev->resource[i];
127 * @thdev: the output device
132 intel_th_output_assigned(struct intel_th_device *thdev) argument
134 return thdev->type == INTEL_TH_OUTPUT &&
135 (thdev->output.port >= 0 ||
136 thdev
208 to_intel_th_parent(const struct intel_th_device *thdev) argument
218 to_intel_th(const struct intel_th_device *thdev) argument
276 struct intel_th_device *thdev[TH_SUBDEVICE_MAX]; member in struct:intel_th
299 to_intel_th_hub(struct intel_th_device *thdev) argument
[all...]
H A Dcore.c32 struct intel_th_device *thdev = to_intel_th_device(dev); local
34 if (thdev->type == INTEL_TH_SWITCH &&
38 return !strcmp(thdev->name, driver->name);
51 struct intel_th_device *thdev = to_intel_th_device(dev); local
56 if (thdev->type == INTEL_TH_SWITCH)
57 hub = thdev;
75 ret = sysfs_create_group(&thdev->dev.kobj, thdrv->attr_group);
80 if (thdev->type == INTEL_TH_OUTPUT &&
81 !intel_th_output_assigned(thdev))
83 ret = hubdrv->assign(hub, thdev);
101 struct intel_th_device *thdev = to_intel_th_device(dev); local
191 const struct intel_th_device *thdev = to_intel_th_device(dev); local
208 struct intel_th_device *thdev = to_intel_th_device(dev); local
218 intel_th_trace_prepare(struct intel_th_device *thdev) argument
234 intel_th_output_activate(struct intel_th_device *thdev) argument
276 intel_th_output_deactivate(struct intel_th_device *thdev) argument
300 struct intel_th_device *thdev = to_intel_th_device(dev); local
308 struct intel_th_device *thdev = to_intel_th_device(dev); local
376 struct intel_th_device *thdev; local
406 intel_th_device_add_resources(struct intel_th_device *thdev, struct resource *res, int nres) argument
421 intel_th_device_remove(struct intel_th_device *thdev) argument
427 intel_th_device_free(struct intel_th_device *thdev) argument
619 struct intel_th_device *thdev; local
717 struct intel_th_device *thdev; local
774 struct intel_th_device *thdev; local
977 intel_th_trace_enable(struct intel_th_device *thdev) argument
999 intel_th_trace_switch(struct intel_th_device *thdev) argument
1020 intel_th_trace_disable(struct intel_th_device *thdev) argument
1036 intel_th_set_output(struct intel_th_device *thdev, unsigned int master) argument
[all...]
H A Dpti.c24 struct intel_th_device *thdev; member in struct:pti_device
149 static int intel_th_pti_activate(struct intel_th_device *thdev) argument
151 struct pti_device *pti = dev_get_drvdata(&thdev->dev);
164 intel_th_trace_enable(thdev);
169 static void intel_th_pti_deactivate(struct intel_th_device *thdev) argument
171 struct pti_device *pti = dev_get_drvdata(&thdev->dev);
173 intel_th_trace_disable(thdev);
191 if (pti->thdev->output.type == GTH_LPP) {
201 static int intel_th_pti_probe(struct intel_th_device *thdev) argument
203 struct device *dev = &thdev
230 intel_th_pti_remove(struct intel_th_device *thdev) argument
[all...]
H A Dgth.c528 * @thdev: GTH device
535 static void intel_th_gth_disable(struct intel_th_device *thdev, argument
538 struct gth_device *gth = dev_get_drvdata(&thdev->dev);
567 static void intel_th_gth_prepare(struct intel_th_device *thdev, argument
570 struct gth_device *gth = dev_get_drvdata(&thdev->dev);
584 * @thdev: GTH device
590 static void intel_th_gth_enable(struct intel_th_device *thdev, argument
593 struct gth_device *gth = dev_get_drvdata(&thdev->dev);
594 struct intel_th *th = to_intel_th(thdev);
619 * @thdev
625 intel_th_gth_switch(struct intel_th_device *thdev, struct intel_th_output *output) argument
662 intel_th_gth_assign(struct intel_th_device *thdev, struct intel_th_device *othdev) argument
701 intel_th_gth_unassign(struct intel_th_device *thdev, struct intel_th_device *othdev) argument
722 intel_th_gth_set_output(struct intel_th_device *thdev, unsigned int master) argument
744 intel_th_gth_probe(struct intel_th_device *thdev) argument
819 intel_th_gth_remove(struct intel_th_device *thdev) argument
[all...]
H A Dsth.c186 static int intel_th_sth_probe(struct intel_th_device *thdev) argument
188 struct device *dev = &thdev->dev;
194 res = intel_th_device_get_resource(thdev, IORESOURCE_MEM, 0);
202 res = intel_th_device_get_resource(thdev, IORESOURCE_MEM, 1);
239 static void intel_th_sth_remove(struct intel_th_device *thdev) argument
241 struct sth_device *sth = dev_get_drvdata(&thdev->dev);
H A Dmsu.c31 #define msc_dev(x) (&(x)->thdev->dev)
108 * @thdev: intel_th_device pointer
132 struct intel_th_device *thdev; member in struct:msc
800 msc->thdev->output.multiblock = msc->mode == MSC_MODE_MULTI;
801 intel_th_trace_enable(msc->thdev);
830 intel_th_trace_disable(msc->thdev);
866 static int intel_th_msc_activate(struct intel_th_device *thdev) argument
868 struct msc *msc = dev_get_drvdata(&thdev->dev);
888 static void intel_th_msc_deactivate(struct intel_th_device *thdev) argument
890 struct msc *msc = dev_get_drvdata(&thdev
1460 struct intel_th_device *thdev = file->private_data; local
1676 intel_th_msc_wait_empty(struct intel_th_device *thdev) argument
1762 intel_th_msc_interrupt(struct intel_th_device *thdev) argument
2126 intel_th_msc_probe(struct intel_th_device *thdev) argument
2169 intel_th_msc_remove(struct intel_th_device *thdev) argument
[all...]

Completed in 194 milliseconds