Lines Matching defs:thdev
31 #define msc_dev(x) (&(x)->thdev->dev)
108 * @thdev: intel_th_device pointer
132 struct intel_th_device *thdev;
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)
868 struct msc *msc = dev_get_drvdata(&thdev->dev);
888 static void intel_th_msc_deactivate(struct intel_th_device *thdev)
890 struct msc *msc = dev_get_drvdata(&thdev->dev);
1460 struct intel_th_device *thdev = file->private_data;
1461 struct msc *msc = dev_get_drvdata(&thdev->dev);
1676 static void intel_th_msc_wait_empty(struct intel_th_device *thdev)
1678 struct msc *msc = dev_get_drvdata(&thdev->dev);
1725 intel_th_trace_switch(msc->thdev);
1759 intel_th_msc_deactivate(msc->thdev);
1762 static irqreturn_t intel_th_msc_interrupt(struct intel_th_device *thdev)
1764 struct msc *msc = dev_get_drvdata(&thdev->dev);
2126 static int intel_th_msc_probe(struct intel_th_device *thdev)
2128 struct device *dev = &thdev->dev;
2134 res = intel_th_device_get_resource(thdev, IORESOURCE_MEM, 0);
2146 res = intel_th_device_get_resource(thdev, IORESOURCE_IRQ, 1);
2150 if (INTEL_TH_CAP(to_intel_th(thdev), multi_is_broken))
2153 msc->index = thdev->id;
2155 msc->thdev = thdev;
2169 static void intel_th_msc_remove(struct intel_th_device *thdev)
2171 struct msc *msc = dev_get_drvdata(&thdev->dev);
2174 intel_th_msc_deactivate(thdev);