Lines Matching defs:thdev
31 #define msc_dev(x) (&(x)->thdev->dev)
108 * @thdev: intel_th_device pointer
132 struct intel_th_device *thdev;
802 msc->thdev->output.multiblock = msc->mode == MSC_MODE_MULTI;
803 intel_th_trace_enable(msc->thdev);
832 intel_th_trace_disable(msc->thdev);
868 static int intel_th_msc_activate(struct intel_th_device *thdev)
870 struct msc *msc = dev_get_drvdata(&thdev->dev);
890 static void intel_th_msc_deactivate(struct intel_th_device *thdev)
892 struct msc *msc = dev_get_drvdata(&thdev->dev);
1446 struct intel_th_device *thdev = file->private_data;
1447 struct msc *msc = dev_get_drvdata(&thdev->dev);
1662 static void intel_th_msc_wait_empty(struct intel_th_device *thdev)
1664 struct msc *msc = dev_get_drvdata(&thdev->dev);
1711 intel_th_trace_switch(msc->thdev);
1745 intel_th_msc_deactivate(msc->thdev);
1748 static irqreturn_t intel_th_msc_interrupt(struct intel_th_device *thdev)
1750 struct msc *msc = dev_get_drvdata(&thdev->dev);
2112 static int intel_th_msc_probe(struct intel_th_device *thdev)
2114 struct device *dev = &thdev->dev;
2120 res = intel_th_device_get_resource(thdev, IORESOURCE_MEM, 0);
2132 res = intel_th_device_get_resource(thdev, IORESOURCE_IRQ, 1);
2136 if (INTEL_TH_CAP(to_intel_th(thdev), multi_is_broken))
2139 msc->index = thdev->id;
2141 msc->thdev = thdev;
2155 static void intel_th_msc_remove(struct intel_th_device *thdev)
2157 struct msc *msc = dev_get_drvdata(&thdev->dev);
2160 intel_th_msc_deactivate(thdev);